Re: [f2fs-dev] [PATCH 2/2] f2fs: support RO feature

2021-05-24 Thread Jaegeuk Kim
On 05/25, Chao Yu wrote: > On 2021/5/25 1:07, Jaegeuk Kim wrote: > > On 05/24, Chao Yu wrote: > > > On 2021/5/22 3:02, Jaegeuk Kim wrote: > > > > Given RO feature in superblock, we don't need to check > > > > provisioning/reserve > > > > spaces and SSA area. > > > > > > Cool, any solution to upda

Re: [f2fs-dev] [PATCH 2/2] f2fs: support RO feature

2021-05-24 Thread Chao Yu
On 2021/5/25 1:07, Jaegeuk Kim wrote: On 05/24, Chao Yu wrote: On 2021/5/22 3:02, Jaegeuk Kim wrote: Given RO feature in superblock, we don't need to check provisioning/reserve spaces and SSA area. Cool, any solution to update files of ro f2fs image if there is such scenario? Hmm, overlayfs

Re: [f2fs-dev] [PATCH 2/2] f2fs: support RO feature

2021-05-24 Thread Jaegeuk Kim
On 05/24, Chao Yu wrote: > On 2021/5/22 3:02, Jaegeuk Kim wrote: > > Given RO feature in superblock, we don't need to check provisioning/reserve > > spaces and SSA area. > > Cool, any solution to update files of ro f2fs image if there is such > scenario? Hmm, overlayfs? > > > > > Signed-off-by

Re: [f2fs-dev] [PATCH 2/2] f2fs: support RO feature

2021-05-24 Thread Chao Yu
On 2021/5/22 3:02, Jaegeuk Kim wrote: Given RO feature in superblock, we don't need to check provisioning/reserve spaces and SSA area. Cool, any solution to update files of ro f2fs image if there is such scenario? Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h| 2 ++ fs/f2fs/segment.

Re: [f2fs-dev] [PATCH v3] tools: Introduce f2fslabel

2021-05-24 Thread Chao Yu
On 2021/5/21 18:32, Dongwoo Lee wrote: Although many other filesystems provide a tool for changing volume label, e.g. e2label for ext filesystem, but f2fs has no way to change volume label except set it while formatting with mkfs.f2fs. This introduces f2fslabel, simple tool for changing label of

Re: [f2fs-dev] [RFC PATCH] f2fs: compress: remove unneeded read when rewrite whole cluster

2021-05-24 Thread Chao Yu
On 2021/5/18 20:51, Fengnan Chang wrote: For now,when overwrite compressed file, we need read old data to page cache first and update pages. But when we need overwrite whole cluster, we don't need old data anymore. I only see you just check the whole page was dirty as below rather than the whol