libfstools: use class interface to iterate over ubi devices
authorDaniel Golle <daniel@makrotopia.org>
Fri, 23 Dec 2022 00:25:56 +0000 (00:25 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 15 Feb 2023 03:24:04 +0000 (03:24 +0000)
commit12155d3881b9bdd44b8682970638dbfd9f55e2cb
treea0c348b07ac1025ee3655189da23e3e4c263b358
parent14d535e4485dc030deecbba9ab493c379df5c237
libfstools: use class interface to iterate over ubi devices

Instead of relying on /sys/devices/virtual/ubi/* better use
/sys/class/ubi/* which makes things more straight forward.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libfstools/ubi.c