volume_id: Add support for UBIFS

Signed-off-by: Serj Kalichev <serj.kalichev@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Serj Kalichev
2016-08-29 18:28:34 +03:00
committed by Denys Vlasenko
parent 9fd61be191
commit d42cdc2222
4 changed files with 135 additions and 1 deletions

View File

@@ -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