2017-11-23 12:55:59 +00:00
|
|
|
function __fish_complete_zfs_mountpoint_properties -d "Completes with ZFS mountpoint properties"
|
2019-05-05 10:09:25 +00:00
|
|
|
set -l OS ""
|
2017-11-23 12:55:59 +00:00
|
|
|
switch (uname)
|
|
|
|
case Linux
|
2020-03-09 18:36:12 +00:00
|
|
|
set OS Linux
|
2017-11-23 12:55:59 +00:00
|
|
|
case Darwin
|
2020-03-09 18:36:12 +00:00
|
|
|
set OS macOS
|
2017-11-23 12:55:59 +00:00
|
|
|
case FreeBSD
|
2020-03-09 18:36:12 +00:00
|
|
|
set OS FreeBSD
|
2017-11-23 12:55:59 +00:00
|
|
|
case SunOS
|
2020-03-09 18:36:12 +00:00
|
|
|
set OS SunOS
|
2019-05-05 10:09:25 +00:00
|
|
|
# Others?
|
2017-11-23 12:55:59 +00:00
|
|
|
case "*"
|
2020-03-09 18:36:12 +00:00
|
|
|
set OS unknown
|
2017-11-23 12:55:59 +00:00
|
|
|
end
|
2020-02-28 12:37:14 +00:00
|
|
|
echo -e "atime\tUpdate access time on read (on, off)"
|
|
|
|
echo -e "devices\tAre contained device nodes openable (on, off)"
|
|
|
|
echo -e "exec\tCan contained executables be executed (on, off)"
|
|
|
|
echo -e "readonly\tRead-only (on, off)"
|
|
|
|
echo -e "setuid\tRespect set-UID bit (on, off)"
|
2020-03-09 18:36:12 +00:00
|
|
|
if test $OS = SunOS
|
2020-02-28 12:37:14 +00:00
|
|
|
echo -e "nbmand\tMount with Non Blocking mandatory locks (on, off)"
|
|
|
|
echo -e "xattr\tExtended attributes (on, off, sa)"
|
2020-03-09 18:36:12 +00:00
|
|
|
else if test $OS = Linux
|
2020-02-28 12:37:14 +00:00
|
|
|
echo -e "nbmand\tMount with Non Blocking mandatory locks (on, off)"
|
|
|
|
echo -e "relatime\tSometimes update access time on read (on, off)"
|
|
|
|
echo -e "xattr\tExtended attributes (on, off, sa)"
|
2019-05-05 10:09:25 +00:00
|
|
|
end
|
2017-11-23 12:55:59 +00:00
|
|
|
end
|