From 2aeba8876ae75f4492093bd06b3a7c2b65805541 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Wed, 12 May 2021 23:54:47 +0100 Subject: block: allow autofs and umount commands also on MTD/UBI As devices with large NAND flash are becoming more common, users may use that resource for additional (UBI) volumes. To support that in fstools, allow autofs and umount also on MTD/UBI devices. Signed-off-by: Daniel Golle --- block.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block.c b/block.c index de6229d..5b0517e 100644 --- a/block.c +++ b/block.c @@ -1187,7 +1187,7 @@ static int main_autofs(int argc, char **argv) if (config_load(NULL)) return -1; - cache_load(0); + cache_load(1); list_for_each_entry(pr, &devices, list) { struct mount *m; char *mp; @@ -1630,7 +1630,7 @@ static int main_umount(int argc, char **argv) handle_swapfiles(false); - cache_load(0); + cache_load(1); if (argc == 3) all = !strcmp(argv[2], "-a"); -- cgit v1.2.1