From: John Crispin Date: Wed, 27 Apr 2016 01:30:40 +0000 (+0200) Subject: block: add remount paramter X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3b4b625362545685303a84e8ac3787d1b6d682c8;p=oweals%2Ffstools.git block: add remount paramter Signed-off-by: John Crispin --- diff --git a/block.c b/block.c index 2d44a8a..ef58665 100644 --- a/block.c +++ b/block.c @@ -1434,6 +1434,14 @@ int main(int argc, char **argv) if (!strcmp(argv[1], "umount")) return main_umount(argc, argv); + + if (!strcmp(argv[1], "remount")) { + int ret = main_umount(argc, argv); + + if (!ret) + ret = main_mount(argc, argv); + return ret; + } } ULOG_ERR("Usage: block \n");