summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2026-05-07 11:53:00 +0300
committerChristian Brauner <brauner@kernel.org>2026-05-11 17:50:28 +0300
commita6469a15eefe10e8c5e49eb80cc38dbe94803ea9 (patch)
tree461ee79bc4a06a05b120d9149a6359518e747fb7 /include/uapi
parentb6fe046c30236e37e3f8c500cf5b1297c317c5ee (diff)
downloadlinux-a6469a15eefe10e8c5e49eb80cc38dbe94803ea9.tar.xz
hfsplus: Report case sensitivity in fileattr_get
Add case sensitivity reporting to the existing hfsplus_fileattr_get() function via the FS_XFLAG_CASEFOLD flag. HFS+ always preserves case at rest. Case sensitivity depends on how the volume was formatted: HFSX volumes may be either case-sensitive or case-insensitive, indicated by the HFSPLUS_SB_CASEFOLD superblock flag. FS_XFLAG_CASEFOLD is read-only: FS_XFLAG_RDONLY_MASK ensures FS_IOC_FSSETXATTR strips it. The legacy FS_IOC_SETFLAGS path in hfsplus_fileattr_set() also allows FS_CASEFOLD_FL through its allowlist on case-insensitive volumes so that a chattr read-modify-write cycle does not fail with EOPNOTSUPP. Reviewed-by: Viacheslav Dubeyko <slava@dubeyko.com> Reviewed-by: Roland Mainz <roland.mainz@nrubsig.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Link: https://patch.msgid.link/20260507-case-sensitivity-v14-7-e62cc8200435@oracle.com Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions