Re: [f2fs-dev] f2fs.resize makes errors in FS

2021-04-12 Thread Chao Yu
On 2021/4/12 23:40, beroal wrote: Hi. Sorry for the delay. The 1.14.0 version with the patches "fix wrong sit/nat bitmap during rebuild_checkpoint()" and "fix to check free space before shrink" completes my test case successfully. Thanks for the test. ;) Jaegeuk, could you please check these t

Re: [f2fs-dev] f2fs.resize makes errors in FS

2021-04-12 Thread beroal
Hi. Sorry for the delay. The 1.14.0 version with the patches "fix wrong sit/nat bitmap during rebuild_checkpoint()" and "fix to check free space before shrink" completes my test case successfully. On 06.04.21 04:44, Chao Yu wrote: Hi beroal, Could you please apply below patch based on last fi

Re: [f2fs-dev] f2fs.resize makes errors in FS

2021-04-05 Thread Chao Yu
Hi beroal, Could you please apply below patch based on last fix patch and do the test again? [PATCH] resize.f2fs: fix to check free space before shrink On 2021/4/2 17:28, beroal wrote: I can't mount the resulting file system. ``` + set -e + F=/tmp/img + D=/dev/loop0 + M=/root/mnt/temp + dd bs

Re: [f2fs-dev] f2fs.resize makes errors in FS

2021-04-02 Thread Chao Yu
On 2021/4/2 17:28, beroal wrote: I can't mount the resulting file system. ``` + set -e + F=/tmp/img + D=/dev/loop0 + M=/root/mnt/temp + dd bs=1M count=256 if=/dev/zero of=/tmp/img 256+0 records in 256+0 records out 268435456 bytes (268 MB, 256 MiB) copied, 0,0937109 s, 2,9 GB/s + losetup /dev/lo

Re: [f2fs-dev] f2fs.resize makes errors in FS

2021-04-02 Thread beroal
I can't mount the resulting file system. ``` + set -e + F=/tmp/img + D=/dev/loop0 + M=/root/mnt/temp + dd bs=1M count=256 if=/dev/zero of=/tmp/img 256+0 records in 256+0 records out 268435456 bytes (268 MB, 256 MiB) copied, 0,0937109 s, 2,9 GB/s + losetup /dev/loop0 /tmp/img + mkfs.f2fs /dev/loop

Re: [f2fs-dev] f2fs.resize makes errors in FS

2021-04-02 Thread Chao Yu
Hi beroal, I figured out a patch, could you please check with it? [PATCH] resize.f2fs: fix wrong sit/nat bitmap during rebuild_checkpoint() On 2021/3/29 9:51, Chao Yu wrote: Hello, Sorry for the delay reply. I can reproduce this bug now, but I haven't enough time for debuging, will check th

Re: [f2fs-dev] f2fs.resize makes errors in FS

2021-03-28 Thread Chao Yu
Hello, Sorry for the delay reply. I can reproduce this bug now, but I haven't enough time for debuging, will check this soon. On 2021/3/27 21:26, beroal wrote: Ping. On 19.03.21 23:24, beroal wrote: Hi. I am trying to use a new function to reduce the size of an F2FS file system. After resizi

Re: [f2fs-dev] f2fs.resize makes errors in FS

2021-03-27 Thread beroal
Ping. On 19.03.21 23:24, beroal wrote: Hi. I am trying to use a new function to reduce the size of an F2FS file system. After resizing, `fsck.f2fs` gives a lot of errors. Here is a shell script that creates and resizes a dummy file system: ``` #!/bin/sh set -e F=/tmp/img D=/dev/loop0 M=/root/

[f2fs-dev] f2fs.resize makes errors in FS

2021-03-19 Thread beroal
Hi. I am trying to use a new function to reduce the size of an F2FS file system. After resizing, `fsck.f2fs` gives a lot of errors. Here is a shell script that creates and resizes a dummy file system: ``` #!/bin/sh set -e F=/tmp/img D=/dev/loop0 M=/root/mnt/temp dd bs=1M count=256 if=/dev/zero