libblkid-tiny: add support for NTFS superblock Its copied from the util-linux project and its libblkid. Call to the blkid_probe_set_utf8label was commented out due to libblkid-tiny not supporting it yet. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Acked-by: John Crispin <john@phrozen.org>
libblkid-tiny: add support for UBI superblock Detecting UBI superblock may be useful for tools wanting to simplify or automate attaching UBI. Please note it's not directly related to the ubifs support which is just a filesystem working on top of UBI volume. This patch adds simple code reading UBI version and unique number and setting it in the blkid_probe. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
libblkid-tiny: avoid setting phantom UUIDs When blkid_probe_set_uuid_as() is invoked with a non-NULL name parameter then the name parameter denotes the kind of UUID (like "EXT_JOURNAL") not the name of the file system. Only copy the UUID value to the probe uuid member if the given name is either NULL or "UUID". Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libblkid-tiny: Add F2FS support Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
libblkid-tiny: Update the code from util-linux's libblkid This updates the relevant source files to util-linux changeset 4419ffb9eff5801fdbd385a4a6199b3877f802ad. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
properly handle return codes Signed-off-by: John Crispin <blogic@openwrt.org>
libblkid-tiny: add btrfs probe info This only adds the magic for btrfs to show btrfs volumes in block detect. In order to properly support btrfs with more than one device and avoid trying to mount the same device group once for each instance we have to make sure that only one device per group will be mounted (btrfs then automatically detects all other devices of the group). For unmounting, the opposite should be applied: umount if called for any of the devices in a mounted device group, unmount the filesystem. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Felix Fietkau <nbd@openwrt.org>
support UBI blocks (volumes) We already had ubifs idinfo, so only /dev/ubiN_M support was missing. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
various updates Signed-off-by: John Crispin <blogic@openwrt.org>
initial import of fs-tools package Signed-off-by: John Crispin <blogic@openwrt.org>