Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: mount and linux



> static char
> *magic_known[] = {
> 	"adfs", "bfs", "cramfs", "ext", "ext2", "ext3",
> 	"hfs", "hpfs", "iso9660", "minix", "ntfs",
> 	"qnx4", "reiserfs", "romfs", "swap", "udf", "ufs",
> 	"vxfs", "xfs", "xiafs"
> };
> 
> since they are auto detected by magic number....

It might be nicer to use the original array, /proc/filesystems,
and /etc/filesystems all with different tags.

Index: Completion/Unix/Command/_mount
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_mount,v
retrieving revision 1.10
diff -u -r1.10 _mount
--- Completion/Unix/Command/_mount	2001/10/08 15:08:02	1.10
+++ Completion/Unix/Command/_mount	2001/10/10 19:23:23
@@ -559,11 +559,13 @@
       ':dev or dir:->devordir'
       ':mount point:_files -/'
     )
-    fss=( minix ext ext2 xiafs hpfs msdos umsdos vfat proc nfs iso9660
-          smbfs ncpfs affs ufs romfs sysv adfs autofs coda devpts efs
-          hfs ntfs qnx4 smbfs udf ext3 xfs reiserfs )
+    typeset -aU fss
+    fss=( adfs bfs cramfs ext2 ext3 hfs hpfs iso9660 minix ntfs qnx4
+          reiserfs romfs swap udf ufs vxfs xfs xiafs )
     [[ -r /proc/filesystems ]] &&
-        fss=( ${$(</proc/filesystems)#nodev} )
+        fss=( $fss ${$(</proc/filesystems)#nodev} )
+    [[ -r /etc/filesystems ]] &&
+        fss=( $fss ${$(</etc/filesystems)#nodev} )
     ;;
   osf*)
     args=( -s



Messages sorted by: Reverse Date, Date, Thread, Author