aboutsummaryrefslogtreecommitdiff
path: root/utils/uvol/Makefile
Commit message (Collapse)AuthorAge
* uvol: switch to /sys/class/ubiDaniel Golle2023-02-15
| | | | | | | | | Instead of /sys/devices/virtual/ubi which will no longer be available in future kernels, switch to /sys/class/ubi. While at it fix unrelated arithmetic syntax error by guarding the affected expression to not run on an empty string. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uvol: add missing quoteDaniel Golle2023-01-25
| | | | | | | Add missing quote which broke the autopart script. Fixes: b1edbe349 ("uvol: fix regression in handling fractional megabytes free") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uvol: fix regression in handling fractional megabytes freePhilip Prindeville2023-01-23
| | | | | | Also, fix off-by-one issue when computing free size. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* uvol: update to version 0.8Daniel Golle2022-04-15
| | | | | | | | Bump version to reset PKG_RELEASE counter. Add missing dependency on ucode-mod-math which is needed for the mkdtemp() implementation used to format UBI volumes. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uvol: fixes and adapt to in-tree ucodeDaniel Golle2022-04-04
| | | | | | | | | Don't use features which are not yet present in the version of ucode currently shipped with OpenWrt (such as `fs.access()` or assuming raw mode by default). Fix syntax error in main executable. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uvol: unbreak build and adapt to updated ucodeDaniel Golle2022-03-31
| | | | | | | | | | | | * Fix build which was broken by a wrong path in the Makefile. Adapt to ucode commit 4618807 ("main: rework CLI frontend"): * ucode now no longer needs the {% %} around each code file, remove that and safe one level of indentation. * ARGV now no longer includes ucode executable and script itself Fixes: 6350c7bc6 ("uvol: replace with re-write in ucode") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uvol: replace with re-write in ucodeDaniel Golle2022-03-31
| | | | | | | | | | | | | | | | | | | | | | | | | Replace previous Shell draft-quality implementation of uvol with a rewrite in ucode[1]. While the new code is slightly larger, it performs much better (as we no longer fork() for parsing strings like in Shell with grep, sed and friends). Before: time uvol list -j [ ... ] real 0m 0.82s user 0m 0.13s sys 0m 0.10s After: time uvol list -j [ ... ] real 0m 0.47s user 0m 0.05s sys 0m 0.05s [1]: https://github.com/jow-/ucode Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uvol: update to 0.6Daniel Golle2021-12-20
| | | | | | | | | | | | | | | | | | * auto-created meta volume Automatically create volume '.meta' sized 0.01% of the total space managed by uvol, the minimum size being 4 MiB. This volume should be used to keep metadata about stored volumes, such as container runtime configuration (in /var/run/uvol/.meta/uxc) or the database of installed container packages. * configurable LVM volume group Allow setting volume group to be used by uvol using UCI. This is useful on devices which do not boot off the device which should be used for uvol and hence cannot make use of autopart and physical volume detection based on kernel cmdline. Use option vg_name in uvol section of fstab UCI config package. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uvol: update to version 0.5Daniel Golle2021-09-15
| | | | | | Adds '-j' option for 'list' command to generate JSON output. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uvol: update to version 0.4Daniel Golle2021-08-15
| | | | | | | | | | Create UCI fstab mount sections for existing volumes on firstboot. Introduce special handling for volumes with non-[:alnum:] prefix: - do not create UCI sections for these 'hidden' volumes - create UCI section for '.uxc' special volume with target /var/state/uxc to be used for uxc config. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uvol: update to version 0.3Daniel Golle2021-07-25
| | | | | | | | | | | * genrate UCI fstab configs for each volume before first 'up' * remove UCI section on volume remove * use autofs automounter for read-only volumes * try umount on 'down' * emulate hotplug events for UBI volume up/down * more robust error paths Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uvol: emmit ubus events and bring up volumes on bootDaniel Golle2021-04-18
| | | | | | | | | Emmit ubus events when volumes come up/down. Make sure volume state is always well defined by introducing additional state 'write-prepare' (wp) during mkfs. Add init scripts to bring up volumes at boot. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uvol: add new packageDaniel Golle2021-04-10
uvol is a wrapper-script which allows automated handling of storage volumes. uvol currently comes with backend support for LVM2 and UBI, covering practically all options for storage large enough to be managed (NAND, SPI-NAND, eMMC, SATA, NVME, virtio-blk, ...). Signed-off-by: Daniel Golle <daniel@makrotopia.org>