uvol: make volume creation atomic
authorDaniel Golle <redacted>
Thu, 15 Apr 2021 01:51:11 +0000 (02:51 +0100)
committerDaniel Golle <redacted>
Thu, 15 Apr 2021 01:55:10 +0000 (02:55 +0100)
commit3d4d75c519c435337a04eec4cc16ab0296f2c507
treed6c621812ccd44ece8ab1b93280f1e69e970a87e
parentee1a3654dcc74b60ae78394e06d5927bc1fa23af
uvol: make volume creation atomic

Make sure filesystem is ready when volume becomes available.
Use 'write-once' as initial state for read-only volumes, only allow
writing to volumes in that state and transision to 'read-only' once
write has completed.
Also fix a typo which prevented 'list' command from working with LVM.

Signed-off-by: Daniel Golle <redacted>
utils/uvol/files/lvm.sh
utils/uvol/files/ubi.sh
utils/uvol/files/uvol
git clone https://git.99rst.org/PROJECT