Skip to content

overlayfs: support freeze/thaw

Amir Goldstein linux-api linux-fsdevel linux-unionfs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 3 repliesIn review
  2. v2 RFC3 patches 1 replySuperseded
  3. v12 patches 15 repliesSuperseded

Changes in v3 from the cover letter

- Verify regular file before calling file_start_write()

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5vfs: deny fallocate() on directoryfs/open.c+4 -61 reply
2/5vfs: deny copy_file_range() for non regular filesfs/read_write.c+5 -01 reply
3/5vfs: wrap write f_ops with file_{start,end}_write()fs/open.c fs/read_write.c include/linux/fs.h+17 -171 reply
4/5vfs: freeze protect overlay inode on file_start_write()include/linux/fs.h+16 -10 replies
5/5ovl: support freeze/thaw superfs/overlayfs/super.c+12 -00 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchJan KaraChristoph Hellwig
1/5R-b
2/5R-b
3/5R-b R-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/5] overlayfs: support freeze/thaw

Miklos,

Patches 1-3 address your review comments and some
issues I found with fallocate() and copy_file_range() helpers.
They are supposed to replace the patch already in overlayfs-next 97e147358bea ("vfs: wrap write f_ops with file_{start,end}_write()")

Let me know if you want me to rebase them on top of the already committed change.

Patches 4-5 implement overlayfs freeze and are more of an RFC at this point, but they are tested.

v3:
- Verify regular file before calling file_start_write()

v2:
- file_start_write() gets freeze protection on both upper and overlay
- convert file ops wraped with sb_start_write() to file_start_write()

v1:
- freeze upper on freeze of overlay

Amir Goldstein (5):
vfs: deny fallocate() on directory
vfs: deny copy_file_range() for non regular files
vfs: wrap write f_ops with file_{start,end}_write()
vfs: freeze protect overlay inode on file_start_write()
ovl: support freeze/thaw super

 fs/open.c            | 14 ++++++--------
 fs/overlayfs/super.c | 12 ++++++++++++
 fs/read_write.c      |  9 +++++++--
 include/linux/fs.h   | 43 +++++++++++++++++++++++++++++--------------
 4 files changed, 54 insertions(+), 24 deletions(-)
Signature · 1 line
2.7.4