summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-10-12 23:21:32 +0000
committerJim Meyering <jim@meyering.net>1996-10-12 23:21:32 +0000
commit1751c454c2746a4ec322a2b82755968b2f2d3ec8 (patch)
treea5cd35b8f7e4272c330a4553bfe551ac9be5cfaf
parentda59dde0bba2ba7bdb98c74b36e75c3c66b8fefb (diff)
downloadcoreutils-1751c454c2746a4ec322a2b82755968b2f2d3ec8.tar.xz
(fstype_to_string): Handle fstypes of freebsd.
From Arne Henrik Juul.
-rw-r--r--lib/mountlist.c68
1 files changed, 64 insertions, 4 deletions
diff --git a/lib/mountlist.c b/lib/mountlist.c
index 5a6d664c5..37c3d1bdd 100644
--- a/lib/mountlist.c
+++ b/lib/mountlist.c
@@ -134,10 +134,6 @@ fstype_to_string (t)
{
switch (t)
{
- case MOUNT_UFS:
- return "ufs";
- case MOUNT_NFS:
- return "nfs";
#ifdef MOUNT_PC
case MOUNT_PC:
return "pc";
@@ -158,6 +154,70 @@ fstype_to_string (t)
case MOUNT_TMP:
return "tmp";
#endif
+#ifdef MOUNT_UFS
+ case MOUNT_UFS:
+ return "ufs" ;
+#endif
+#ifdef MOUNT_NFS
+ case MOUNT_NFS:
+ return "nfs" ;
+#endif
+#ifdef MOUNT_MSDOS
+ case MOUNT_MSDOS:
+ return "msdos" ;
+#endif
+#ifdef MOUNT_LFS
+ case MOUNT_LFS:
+ return "lfs" ;
+#endif
+#ifdef MOUNT_LOFS
+ case MOUNT_LOFS:
+ return "lofs" ;
+#endif
+#ifdef MOUNT_FDESC
+ case MOUNT_FDESC:
+ return "fdesc" ;
+#endif
+#ifdef MOUNT_PORTAL
+ case MOUNT_PORTAL:
+ return "portal" ;
+#endif
+#ifdef MOUNT_NULL
+ case MOUNT_NULL:
+ return "null" ;
+#endif
+#ifdef MOUNT_UMAP
+ case MOUNT_UMAP:
+ return "umap" ;
+#endif
+#ifdef MOUNT_KERNFS
+ case MOUNT_KERNFS:
+ return "kernfs" ;
+#endif
+#ifdef MOUNT_PROCFS
+ case MOUNT_PROCFS:
+ return "procfs" ;
+#endif
+#ifdef MOUNT_AFS
+ case MOUNT_AFS:
+ return "afs" ;
+#endif
+#ifdef MOUNT_CD9660
+ case MOUNT_CD9660:
+ return "cd9660" ;
+#endif
+#ifdef MOUNT_UNION
+ case MOUNT_UNION:
+ return "union" ;
+#endif
+#ifdef MOUNT_DEVFS
+ case MOUNT_DEVFS:
+ return "devfs" ;
+#endif
+#ifdef MOUNT_EXT2FS
+ case MOUNT_EXT2FS:
+ return "ext2fs" ;
+#endif
default:
return "?";
}