dump.f2fs: allow to dump data on mounted device
authorChao Yu <yuchao0@huawei.com>
Mon, 29 Jul 2019 15:39:36 +0000 (23:39 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 20 Aug 2019 18:23:58 +0000 (11:23 -0700)
commit523e36856f208a9f673fc3d849f85741b4c50d48
tree5bc4d7a7bafb26a46f8cbfb1c9e22ccf5f7bc113
parent81bad9d11ea5f728cfc815a3060583171c2b4d7d
dump.f2fs: allow to dump data on mounted device

In generic/38[3456], we use quotactl(2) to check if prjquota is
enabled on the given device (src/feature -P $dev in _require_prjquota),
and quotactl(2) requires the given device is a mounted device.

So it requires dump.f2fs to list/check enabled features on a mounted
device, let's relieve to allow such operation.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
lib/libf2fs.c