diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-05-19 23:02:56 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-05-19 23:02:56 +0200 |
commit | 17af86139f4d038f00ed21648dc145ef1e5c1b51 (patch) | |
tree | 356932469b1370b6d62948291ad3c28088ac15bf /libfstools | |
parent | aa3c7ce6a37f2a2844d61a90cc510062b5ee1ddb (diff) | |
download | fstools-17af86139f4d038f00ed21648dc145ef1e5c1b51.tar.gz |
skip ubi volume detection if ubifs is not present (fall back to mtd in that case)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'libfstools')
-rw-r--r-- | libfstools/ubi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libfstools/ubi.c b/libfstools/ubi.c index a281729..42f76ca 100644 --- a/libfstools/ubi.c +++ b/libfstools/ubi.c @@ -180,6 +180,9 @@ static int ubi_volume_find(struct volume *v, char *name) unsigned int ubi_num; int ret = -1; + if (find_filesystem("ubifs")) + return ret; + ubi_dir = opendir(ubi_dir_name); /* check for os ubi support */ if (!ubi_dir) |