fuse: disallow dynamic inode blksize changes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | fuse: disallow dynamic inode blksize changesfs/ fs/ include/ | +5 | 2 replies | |
| 2/2 | fuse: add blksize configuration at mount for non-fuseblk serversfs/ | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH v1 0/2] fuse: disallow dynamic inode blksize changes
With fuse now using iomap for writeback handling, inode blocksize changes are problematic because iomap relies on the inode blocksize value for its internal bitmap logic.
There are a few options for addressing this, as discussed in [1].
a) add "u8 blkbits" to iomap internals (struct iomap_folio_state) and change iomap logic to use this static value instead of using inode->i_blkbits
b) remove all folios for the inode from the page cache and synchronize that with modifying inode->i_blkbits
(unfortunately this does not work, see [1] for more details)
c) disallow the inode blocksize from changing dynamically in fuse
In the discussion in [1], we decided to go with c) given that servers don't have a good use case for dynamically modifying the blocksize and it doesn't seem likely that servers use this. If the server wishes to set a constant blocksize for all inodes, then from patch 2, this can be done at mount time through the -oblksize= configuration option.
Thanks,
Joanne
Joanne Koong (2):
fuse: disallow dynamic inode blksize changes
fuse: add blksize configuration at mount for non-fuseblk servers
fs/fuse/dir.c | 9 +-------- fs/fuse/inode.c | 18 +++++++++--------- include/uapi/linux/fuse.h | 4 ++-- 3 files changed, 12 insertions(+), 19 deletions(-)
Signature · 1 line
2.47.3