tmpfs: fix casefold flag inheritance and document mount constraints
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | shmem: do not inherit FS_CASEFOLD_FL onto non-directoriesmm/ | +7 | 0 replies | |
| 2/2 | Documentation: tmpfs: document casefold option constraintsDocumentation/ | +9 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Gabriel Krisman Bertazi |
|---|---|
| Series | R-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] tmpfs: fix casefold flag inheritance and document mount constraints
From: Tao Cui <[email protected]>
Files created in a casefold tmpfs directory inherit the directory-only FS_CASEFOLD_FL flag, which shmem_set_inode_flags() then rejects with -ENOTDIR on non-directories: the inode records a phantom F flag, so the value FS_IOC_GETFLAGS reports can never be written back and attribute changes via chattr fail, dropping NOATIME/NODUMP from the same request. The casefold mount option constraints that commit 5cd9aecbc72c ("tmpfs: Add flag FS_CASEFOLD_FL support for tmpfs dirs") landed with are also undocumented.
- P1: mask FS_CASEFOLD_FL for non-directory inodes the way
ext4_mask_flags()/f2fs_mask_flags() do.
- P2: document the CONFIG_UNICODE prerequisite, the strict_encoding pairing and that both options are ignored on remount.
Testing: on a VM with CONFIG_UNICODE=y, before the patch a file created in a +F directory advertises the F flag via FS_IOC_GETFLAGS and chattr +i on it fails with ENOTDIR; after, the flag is not recorded and chattr works as usual.