Re: [f2fs-dev] [PATCH 1/3] resize.f2fs: support to expand partition size

2016-04-25 Thread He YunLei
hi, kim On 2016/4/26 8:28, Jaegeuk Kim wrote: > Now user can expand existing partition with resize.f2fs. > Currently, it doesn't support shrink an image. > > For example, > # resize.f2fs -t [# of sectors] [image] > > Signed-off-by: Jaegeuk Kim > --- > fsck/Makefile.am |

Re: [f2fs-dev] [PATCH 1/3] resize.f2fs: support to expand partition size

2016-04-25 Thread He YunLei
On 2016/4/26 10:17, Jaegeuk Kim wrote: > Hello, > > ... > >>> + /* ovp / free segments */ >>> + set_cp(overprov_segment_count, config.new_overprovision); >>> + set_cp(rsvd_segment_count, config.new_reserved_segments); >> >> maybe something wrong here: >> set_cp(rsvd_segment_count,

[f2fs-dev] [PATCH 1/3] resize.f2fs: support to expand partition size

2016-04-25 Thread Jaegeuk Kim
Now user can expand existing partition with resize.f2fs. Currently, it doesn't support shrink an image. For example, # resize.f2fs -t [# of sectors] [image] Signed-off-by: Jaegeuk Kim --- fsck/Makefile.am | 4 +- fsck/f2fs.h | 4 +- fsck/fsck.h | 2 +