On Mon 12-01-26 12:46:20, Chuck Lever wrote: > From: Chuck Lever <[email protected]> > > Report ext4's case sensitivity behavior via file_kattr boolean > fields. ext4 always preserves case at rest. > > Case sensitivity is a per-directory setting in ext4. If the queried > inode is a casefolded directory, report case-insensitive; otherwise > report case-sensitive (standard POSIX behavior). > > Signed-off-by: Chuck Lever <[email protected]>
Looks good. Feel free to add: Reviewed-by: Jan Kara <[email protected]> Honza > --- > fs/ext4/ioctl.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c > index 7ce0fc40aec2..653035017c7f 100644 > --- a/fs/ext4/ioctl.c > +++ b/fs/ext4/ioctl.c > @@ -996,6 +996,14 @@ int ext4_fileattr_get(struct dentry *dentry, struct > file_kattr *fa) > if (ext4_has_feature_project(inode->i_sb)) > fa->fsx_projid = from_kprojid(&init_user_ns, ei->i_projid); > > + /* > + * ext4 always preserves case. If this inode is a casefolded > + * directory, report case-insensitive; otherwise report > + * case-sensitive (standard POSIX behavior). > + */ > + fa->case_insensitive = IS_CASEFOLDED(inode); > + fa->case_preserving = true; > + > return 0; > } > > -- > 2.52.0 > -- Jan Kara <[email protected]> SUSE Labs, CR _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
