From: Chuck Lever Upper layers such as NFSD need to query whether a filesystem is case-sensitive. Populate the case_insensitive and case_preserving fields in xfs_fileattr_get(). XFS always preserves case. XFS is case-sensitive by default, but supports ASCII case-insensitive lookups when formatted with the ASCIICI feature flag. Reviewed-by: "Darrick J. Wong" Signed-off-by: Chuck Lever --- fs/xfs/xfs_ioctl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index 59eaad774371..e8061fe109e9 100644 --- a/fs/xfs/xfs_ioctl.c +++ b/fs/xfs/xfs_ioctl.c @@ -516,6 +516,12 @@ xfs_fileattr_get( xfs_fill_fsxattr(ip, XFS_DATA_FORK, fa); xfs_iunlock(ip, XFS_ILOCK_SHARED); + /* + * XFS preserves case (the default). It is case-sensitive by + * default, but can be formatted with ASCII case-insensitive + * mode enabled. + */ + fa->case_insensitive = xfs_has_asciici(ip->i_mount); return 0; } -- 2.52.0