diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-09-30 16:26:13 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-11-21 11:38:23 -0800 |
commit | 38e47ce596093566e9a06626406b3137afe0c0e7 (patch) | |
tree | a3fb39dc08ac082144ac7fa9e42049542c3e33b8 /fsck/main.c | |
parent | a48bda057ae0fc653fd0a348fc33d2631bd8ba85 (diff) | |
download | f2fs-tools-38e47ce596093566e9a06626406b3137afe0c0e7.tar.gz |
dump.f2fs: allow dump data on mounted image
xfstests assumes it's allow to dump data on mounted image, for example,
some common functions call dumpe2fs on mounted ext[2|3|4] image to check
feature lists. To adapt such requirement, let's follow that rule in
dump.f2fs.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fsck/main.c')
-rw-r--r-- | fsck/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fsck/main.c b/fsck/main.c index 2cf6faa..399397b 100644 --- a/fsck/main.c +++ b/fsck/main.c @@ -747,7 +747,7 @@ int main(int argc, char **argv) f2fs_parse_options(argc, argv); - if (f2fs_devs_are_umounted() < 0) { + if (c.func != DUMP && f2fs_devs_are_umounted() < 0) { if (errno == EBUSY) return -1; if (!c.ro || c.func == DEFRAG) { |