mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 01:59:54 +00:00
64750e90d6
As Ondřej Jirman <megi@xff.cz> reported: I was trying to run: fsck.f2fs --dry-run /dev/mmcblk0p2 on a RO mounted device, and fsck refuses to run. Strace shows that it tries to open the block device with O_EXCL even in RO mode, which will always fail if the block device is mounted. fsck.f2fs --dry-run /dev/mmcblk0p2 Info: Dry run Info: Mounted device! Info: Check FS only on RO mounted device Error: Failed to open the device! I suggest not using O_EXCL for --dry-run check. Let's change to allow --dry-run to check readonly mounted fs. Reported-by: Ondřej Jirman <megi@xff.cz> Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> |
||
---|---|---|
.. | ||
libf2fs_io.c | ||
libf2fs_zoned.c | ||
libf2fs.c | ||
Makefile.am | ||
nls_utf8.c | ||
utf8data.h |