uvol: update to re-write in ucode
authorDaniel Golle <daniel@makrotopia.org>
Thu, 31 Mar 2022 16:51:22 +0000 (17:51 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 25 Apr 2022 18:30:14 +0000 (19:30 +0100)
commit27b395871df294675ac636e02e58e929f66f67f9
tree64d577f1c4869801387481199ea795be5d41dba4
parentff9109ad7cecbbd39b49e66bb5c527151a143a0d
uvol: update to re-write in ucode

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>
(cherry picked from commit 6350c7bc63a1cf32e4ef9de42d2e47983df25932)
utils/uvol/Makefile
utils/uvol/files/blockdev_common.uc [new file with mode: 0644]
utils/uvol/files/common.sh [deleted file]
utils/uvol/files/lvm.sh [deleted file]
utils/uvol/files/lvm.uc [new file with mode: 0644]
utils/uvol/files/ubi.sh [deleted file]
utils/uvol/files/ubi.uc [new file with mode: 0644]
utils/uvol/files/uci.uc [new file with mode: 0644]
utils/uvol/files/uvol