mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Expose ZFS dataset case sensitivity setting via sb_opts
Makes the case sensitivity setting visible on Linux in /proc/mounts. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Ameer Hamza <ahamza@ixsystems.com> Closes #13607
This commit is contained in:
@@ -233,6 +233,18 @@ __zpl_show_options(struct seq_file *seq, zfsvfs_t *zfsvfs)
|
||||
}
|
||||
#endif /* CONFIG_FS_POSIX_ACL */
|
||||
|
||||
switch (zfsvfs->z_case) {
|
||||
case ZFS_CASE_SENSITIVE:
|
||||
seq_puts(seq, ",casesensitive");
|
||||
break;
|
||||
case ZFS_CASE_INSENSITIVE:
|
||||
seq_puts(seq, ",caseinsensitive");
|
||||
break;
|
||||
default:
|
||||
seq_puts(seq, ",casemixed");
|
||||
break;
|
||||
}
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user