-
Mike Fleetwood authored
On CentOS 7 with f2fs-tools 1.4.1, checking an F2FS file system fails like this: # fsck.f2fs -f -y -a /dev/sdb3 Info: Force to fix corruption fsck.f2fs: invalid option -- 'y' Error: Unknown option ? Usage: fsck.f2fs [options] device [options]: -a check/fix potential corruption, reported by f2fs -d debug level default:0] -f check/fix entire partition -t show directory tree [-d -1] # echo $? 1 Turns out that the '-y' option was not available until f2fs-tools 1.10.0 and is identical to the existing '-f' option anyway [1], which GParted already uses. Just remove the '-y' option passed to fsck.f2fs. [1] https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/commit/?id=55ee9e7202f84168f868d863da8ed1c4995a0e6d fsck.f2fs: add -y for generic fsck Closes !29 - Enhance F2FS support
afbf56c1