2017-11-23 20:55:59 +08:00
|
|
|
function __fish_complete_zfs_mountpoint_properties -d "Completes with ZFS mountpoint properties"
|
2019-05-05 18:09:25 +08:00
|
|
|
set -l OS ""
|
2017-11-23 20:55:59 +08:00
|
|
|
switch (uname)
|
|
|
|
case Linux
|
2020-03-10 02:36:12 +08:00
|
|
|
set OS Linux
|
2017-11-23 20:55:59 +08:00
|
|
|
case Darwin
|
2020-03-10 02:36:12 +08:00
|
|
|
set OS macOS
|
2017-11-23 20:55:59 +08:00
|
|
|
case FreeBSD
|
2020-03-10 02:36:12 +08:00
|
|
|
set OS FreeBSD
|
2017-11-23 20:55:59 +08:00
|
|
|
case SunOS
|
2020-03-10 02:36:12 +08:00
|
|
|
set OS SunOS
|
2019-05-05 18:09:25 +08:00
|
|
|
# Others?
|
2017-11-23 20:55:59 +08:00
|
|
|
case "*"
|
2020-03-10 02:36:12 +08:00
|
|
|
set OS unknown
|
2017-11-23 20:55:59 +08:00
|
|
|
end
|
2020-02-28 20:37:14 +08: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-10 02:36:12 +08:00
|
|
|
if test $OS = SunOS
|
2020-02-28 20:37:14 +08:00
|
|
|
echo -e "nbmand\tMount with Non Blocking mandatory locks (on, off)"
|
|
|
|
echo -e "xattr\tExtended attributes (on, off, sa)"
|
2020-03-10 02:36:12 +08:00
|
|
|
else if test $OS = Linux
|
2020-02-28 20:37:14 +08: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 18:09:25 +08:00
|
|
|
end
|
2017-11-23 20:55:59 +08:00
|
|
|
end
|