mkfs.f2fs: support <1% overprovision ratio
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 25 Sep 2015 16:31:04 +0000 (09:31 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 25 Sep 2015 17:32:12 +0000 (10:32 -0700)
commit2cdb04b52f202e931e370564396366d44bd4d1e2
tree8cfa12dc6f058559074f04bfd0bf14a3cf4bcd1f
parente8766f2887bfd965f087127211f09c177ac3f098
mkfs.f2fs: support <1% overprovision ratio

Big partition size needs uner 1% overprovision space to acquire more space.

    section  ovp ratio  ovp size
For 8TB,
    -s1    : 0.07%     -> 10GB
    -s32   : 0.39%     -> 65GB
    -s64   : 0.55%     -> 92GB
    -s128  : 0.78%     -> 132GB

For 128GB,
    -s1    : 0.55%     -> 1.4GB
    -s32   : 3.14%     -> 8GB
    -s64   : 4.45%     -> 12GB
    -s128  : 6.32%     -> 17GB

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
include/f2fs_fs.h
mkfs/f2fs_format.c
mkfs/f2fs_format_main.c