fsck.f2fs: support large sector size
authorChao Yu <chao2.yu@samsung.com>
Thu, 5 Feb 2015 09:38:09 +0000 (17:38 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 6 Feb 2015 02:42:46 +0000 (18:42 -0800)
commit37580f1c5b2d7d0f815105685b68c329002d459b
tree545fd5d2ea6b6bc0c78cdd5517d95b606451b2f6
parentb6012fd6a177856c5f97a5b56bb72b46cf3ab388
fsck.f2fs: support large sector size

Since f2fs support large sector size in commit 55cf9cb63f0e "f2fs: support large
sector size", block device with sector size of 512/1024/2048/4096 bytes can be
supported.

But fsck.f2fs still use default F2FS_LOG_SECTOR_SIZE/F2FS_LOG_SECTORS_PER_BLOCK to
verify related data in f2fs image, it's wrong, let's fix this issue in this patch.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/mount.c
include/f2fs_fs.h