]> git.99rst.org Git - openwrt-packages.git/commit
uvol: bump version to 1.1
authorDaniel Golle <redacted>
Sat, 25 Jul 2026 17:46:50 +0000 (18:46 +0100)
committerDaniel Golle <redacted>
Sat, 25 Jul 2026 22:53:57 +0000 (23:53 +0100)
commitcb60600aec1b46b781c3bf72bdef2f4ce95fe9e1
treef8cfc1f5344431c622acc7d6f626c930b5aa163c
parenta9fc86bec536913805453dda0cab3dbfe7601491
uvol: bump version to 1.1

manage volume state over ubus instead of the rootfs

Rework the volume lifecycle around blockd's ubus API, so volume state
lives entirely on the self-describing LVM/UBI backing store and never
leaks into the firmware rootfs.

- register active volumes with blockd over ubus (mount.uc) instead of
  spooling mounts into /etc/config/fstab (uci.uc)

- bootstrap .meta from 'uvol boot' and drop the broken 90-uvol-init
  uci-default

- run 'uvol boot' straight from the mount.ready trigger, and query
  'ubus call block status' at service start to cover storage already
  being ready

- defer removal of a volume whose backing device is still held, and
  reap it from the mount.umount trigger once it is free

- enforce content-addressed "<algo>-<hexdigest>" volumes in the
  dispatcher: reuse an existing volume of the same digest, verify
  every write

- verify a content-addressed write in place while the volume is still
  incomplete, reporting EBADMSG on mismatch instead of flipping
  volume state

- purge incomplete wo/wp leftovers on boot and reclaim an exactly
  matching one on create

- serialise mutating commands with a device-wide lock, plus a
  per-volume lock ordered after it so a slow write cannot stall other
  volumes

- add a grow-only 'resize' verb to both backends: lvextend plus the
  matching fs-grow tool for lvm, ubirsvol for ubi

- create ext4 volumes with a journal (was ext2) and request check_fs
  when registering a read-write volume

- declare read-only mounts to blockd rather than letting block guess
  from the filesystem

- reject non-numeric and non-positive sizes in create and resize

- report its own version

- simplify command line parsing (drop compatibility with ancient ucode)

Requires the matching fstools changes from
openwrt/openwrt@9b11fa4088c6a.

Signed-off-by: Daniel Golle <redacted>
utils/uvol/Makefile
utils/uvol/files/lvm.uc
utils/uvol/files/mount.uc [new file with mode: 0644]
utils/uvol/files/ubi.uc
utils/uvol/files/uci.uc [deleted file]
utils/uvol/files/uvol
utils/uvol/files/uvol.defaults [deleted file]
utils/uvol/files/uvol.init
git clone https://git.99rst.org/PROJECT