From d42cdc2222d08fcc5ad8251ecf7a00454cb0c419 Mon Sep 17 00:00:00 2001 From: Serj Kalichev Date: Mon, 29 Aug 2016 18:28:34 +0300 Subject: volume_id: Add support for UBIFS Signed-off-by: Serj Kalichev Signed-off-by: Denys Vlasenko --- util-linux/volume_id/get_devname.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'util-linux/volume_id/get_devname.c') diff --git a/util-linux/volume_id/get_devname.c b/util-linux/volume_id/get_devname.c index 6b97df113..b64d28ceb 100644 --- a/util-linux/volume_id/get_devname.c +++ b/util-linux/volume_id/get_devname.c @@ -107,7 +107,11 @@ uuidcache_check_device(const char *device, int depth UNUSED_PARAM) { /* note: this check rejects links to devices, among other nodes */ - if (!S_ISBLK(statbuf->st_mode)) + if (!S_ISBLK(statbuf->st_mode) +#if ENABLE_FEATURE_VOLUMEID_UBIFS + && !(S_ISCHR(statbuf->st_mode) && strncmp(bb_basename(device), "ubi", 3) == 0) +#endif + ) return TRUE; /* Users report that mucking with floppies (especially non-present -- cgit v1.2.3