Re: [f2fs-dev] [PATCH v2] f2fs-tools: set segment_count in super block correctly

2016-02-29 Thread Junling Zheng
Hi, Fan, On 2016/3/1 13:58, Fan Li wrote: > > >> -Original Message----- >> From: Junling Zheng [mailto:zhengjunl...@huawei.com] >> Sent: Wednesday, February 24, 2016 4:34 PM >> To: Fan Li; 'Jaegeuk Kim' >> Cc: heyun...@huawei.com; linux-f2fs-devel@lists.s

[f2fs-dev] [RFC PATCH v2] fsck.f2fs: calculate the total size correctly

2016-02-26 Thread Junling Zheng
Correctly calculate the total FS size in init_sb_info(), for sector size may not be 512 bytes. Signed-off-by: Junling Zheng <zhengjunl...@huawei.com> --- fsck/mount.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fsck/mount.c b/fsck/mount.c index 4c807f9..7f4b85a

[f2fs-dev] [RFC PATCH] fsck.f2fs: calculate the total size correctly

2016-02-26 Thread Junling Zheng
Correctly calculate the total FS size in init_sb_info, for sector size may not be 512 bytes. Signed-off-by: Junling Zheng <zhengjunl...@huawei.com> --- fsck/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsck/mount.c b/fsck/mount.c index 4c807f9..3adaa8a

Re: [f2fs-dev] [PATCH v2] f2fs-tools: set segment_count in super block correctly

2016-02-24 Thread Junling Zheng
Hi, Fan, On 2016/2/24 15:57, Fan Li wrote: > > >> -Original Message- >> From: Jaegeuk Kim [mailto:jaeg...@kernel.org] >> Sent: Saturday, February 06, 2016 12:08 PM >> To: Fan Li >> Cc: 'Junling Zheng'; heyun...@huawei.com; >> linux-f2fs-devel@l

[f2fs-dev] [RFC PATCH 2/2] f2fs-tools: redefine MAX_SIT_BITMAP_SIZE

2016-02-23 Thread Junling Zheng
methods and redefine MAX_SIT_BITMAP_SIZE to prevent sit_ver_bitmap_bytesize overflowing. Signed-off-by: Junling Zheng <zhengjunl...@huawei.com> --- include/f2fs_fs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h index b58aa74..3

[f2fs-dev] [RFC PATCH 1/2] libf2fs: limit the total size up to 16T

2016-02-23 Thread Junling Zheng
F2FS can support 16T bytes at most. Limit the config.total_sectors so that most parameters calculated according to it in sb/cp can be limited correctly too. Signed-off-by: Junling Zheng <zhengjunl...@huawei.com> --- lib/libf2fs.c | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [f2fs-dev] [RFC PATCH v2] mkfs.f2fs: recalculate sit_segments by max_sit_bitmap_size

2016-02-23 Thread Junling Zheng
Hi Chao, On 2016/2/23 17:46, Chao Yu wrote: > Hi Junling, > >> -Original Message----- >> From: Junling Zheng [mailto:zhengjunl...@huawei.com] >> Sent: Tuesday, February 23, 2016 3:20 PM >> To: Chao Yu; jaeg...@kernel.org >> Cc: linux-f2fs-devel@lists.sourc

Re: [f2fs-dev] [RFC PATCH v2] mkfs.f2fs: recalculate sit_segments by max_sit_bitmap_size

2016-02-22 Thread Junling Zheng
On 2016/2/23 13:28, Chao Yu wrote: > Hi all, > >> -Original Message----- >> From: Junling Zheng [mailto:zhengjunl...@huawei.com] >> Sent: Tuesday, February 23, 2016 11:47 AM >> To: linux-f2fs-devel@lists.sourceforge.net; jaeg...@kernel.org >> Subject:

[f2fs-dev] [RFC PATCH v2] mkfs.f2fs: recalculate sit_segments by max_sit_bitmap_size

2016-02-22 Thread Junling Zheng
from segment_count_sit in f2fs_write_check_point_pack() being over MAX_SIT_BITMAP_SIZE. Signed-off-by: Junling Zheng <zhengjunl...@huawei.com> --- mkfs/f2fs_format.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_fo

Re: [f2fs-dev] [PATCH] mkfs.f2fs: recalculate sit_segments by max_sit_bitmap_size

2016-02-22 Thread Junling Zheng
On 2016/2/23 1:31, Jaegeuk Kim wrote: > Hi Junling, > > On Thu, Feb 18, 2016 at 04:59:04PM +0800, Junling Zheng wrote: >> In most cases, sit_bitmap_size is smaller than MAX_SIT_BITMAP_SIZE. >> >> However, in some extreme scenarios, such as 16TB, sit_bitmap_s

[f2fs-dev] [PATCH] mkfs.f2fs: recalculate sit_segments by max_sit_bitmap_size

2016-02-18 Thread Junling Zheng
from segment_count_sit in f2fs_write_check_point_pack() being over MAX_SIT_BITMAP_SIZE. Signed-off-by: Junling Zheng <zhengjunl...@huawei.com> --- mkfs/f2fs_format.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/mkfs/f2fs_format.c

Re: [f2fs-dev] [PATCH v2] f2fs-tools: set segment_count in super block correctly

2016-02-03 Thread Junling Zheng
On 2016/2/3 13:29, Fan Li wrote: > Now f2fs will check statistics recorded in super block in > sanity_check_area_boundary() during mount,if number of segments per > section is greater than 1, and the disk space isn't aligned with section, Hi Fan, Hi Kim: I'm uncertain about which unit the disk

<    1   2