mount.linux: Add some new mount options intoduced in Linux 3.0-3.2

Also add jffs2 to the fs list.
See: http://kernelnewbies.org/Linux_3.2
This commit is contained in:
Igor Murzov 2012-01-12 01:22:34 +04:00
parent 2ad325d4af
commit 1cb1e31e18

View File

@ -17,9 +17,9 @@ _mount()
fi fi
COMPREPLY=( $(compgen -W 'auto adfs affs autofs btrfs cifs coda COMPREPLY=( $(compgen -W 'auto adfs affs autofs btrfs cifs coda
cramfs debugfs devpts efs ext2 ext3 ext4 fuse hfs hfsplus hpfs cramfs debugfs devpts efs ext2 ext3 ext4 fuse hfs hfsplus hpfs
iso9660 jfs minix msdos ncpfs nfs nfs4 ntfs ntfs-3g proc qnx4 iso9660 jffs2 jfs minix msdos ncpfs nfs nfs4 ntfs ntfs-3g proc
ramfs reiserfs romfs squashfs smbfs sysv tmpfs ubifs udf ufs qnx4 ramfs reiserfs romfs squashfs smbfs sysv tmpfs ubifs udf
umsdos usbfs vfat xfs' -- "$cur") ) ufs umsdos usbfs vfat xfs' -- "$cur") )
_fstypes _fstypes
$split && COMPREPLY=( ${COMPREPLY[@]/#/$prev,} ) $split && COMPREPLY=( ${COMPREPLY[@]/#/$prev,} )
return return
@ -91,7 +91,7 @@ _mount()
COMPREPLY+=( $(compgen -W 'degraded subvol= subvolid= device= COMPREPLY+=( $(compgen -W 'degraded subvol= subvolid= device=
nodatasum nodatacow nobarrier max_inline= alloc_start= nodatasum nodatacow nobarrier max_inline= alloc_start=
thread_pool= compress= compress-force= ssd noacl notreelog thread_pool= compress= compress-force= ssd noacl notreelog
flushoncommit metadata_ratio= space_cache clear_cache flushoncommit metadata_ratio= {,no}space_cache clear_cache
user_subvol_rm_allowed autodefrag inode_cache' -- "$cur") ) user_subvol_rm_allowed autodefrag inode_cache' -- "$cur") )
;;& ;;&
cifs|auto) cifs|auto)
@ -99,8 +99,8 @@ _mount()
force{u,g}id port= servern= netbiosname= {file,dir}_mode= force{u,g}id port= servern= netbiosname= {file,dir}_mode=
ip= domain= guest iocharset ro rw {,no}setuids {,no,dyn}perm ip= domain= guest iocharset ro rw {,no}setuids {,no,dyn}perm
directio {,no}mapchars {,no}intr hard soft noacl nocase sec= directio {,no}mapchars {,no}intr hard soft noacl nocase sec=
nobrl sfu {,no}serverino nounix nouser_xattr {r,w}size=' \ nobrl sfu {,no}serverino nounix nouser_xattr {r,w}size=
-- "$cur") ) rwpidforward backup{u,g}id' -- "$cur") )
;;& ;;&
ext[2-4]|auto) ext[2-4]|auto)
COMPREPLY+=( $(compgen -W '{,no}acl bsddf minixdf check= debug COMPREPLY+=( $(compgen -W '{,no}acl bsddf minixdf check= debug
@ -134,6 +134,9 @@ _mount()
mode= unhide block= conv= cruft session= sbsector= mode= unhide block= conv= cruft session= sbsector=
iocharset= utf8' -- "$cur") ) iocharset= utf8' -- "$cur") )
;;& ;;&
jffs2|auto)
COMPREPLY+=( $(compgen -W 'compr=' -- "$cur") )
;;&
jfs|auto) jfs|auto)
COMPREPLY+=( $(compgen -W 'iocharset= resize= {,no}integrity COMPREPLY+=( $(compgen -W 'iocharset= resize= {,no}integrity
errors= {,no,usr,grp}quota' -- "$cur") ) errors= {,no,usr,grp}quota' -- "$cur") )