Skip to content

Commit

Permalink
Expose ZFS dataset case sensitivity setting via sb_opts
Browse files Browse the repository at this point in the history
Signed-off-by: Ameer Hamza <[email protected]>
  • Loading branch information
ixhamza committed Jun 28, 2022
1 parent c0bf952 commit 5a5ef44
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions module/os/linux/zfs/zpl_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, ",case_senstive");
break;
case ZFS_CASE_INSENSITIVE:
seq_puts(seq, ",case_insenstive");
break;
default:
seq_puts(seq, ",case_mixed");
break;
}

return (0);
}

Expand Down

0 comments on commit 5a5ef44

Please sign in to comment.