[patch] mount fails to call external programs

Yoshihiro Ota ota at j.email.ne.jp
Thu Feb 1 05:49:11 UTC 2007


Hello.

The 'mount' program attempts to maintain external mount programs in order to determine whether it needs to call external programs or handle it internally.

Not all external programs can be listed in mount.c.  Indeed, my mount_md failed after mount trying to handle it itself.

The solution is to maintain interally handlable fs types.

I am not fully sure if I listed all of them correctly; however, it fixes the problem.

Thanks,
Hiro
-------------- next part --------------
Index: mount.c
===================================================================
RCS file: /home/ncvs/src/sbin/mount/mount.c,v
retrieving revision 1.92
diff -u -r1.92 mount.c
--- mount.c	14 Nov 2006 01:07:42 -0000	1.92
+++ mount.c	1 Feb 2007 05:25:55 -0000
@@ -133,18 +133,19 @@
 	 */
 	unsigned int i;
 	const char *fs[] = {
-	"cd9660", "mfs", "msdosfs", "nfs", "nfs4", "ntfs",
-	"nwfs", "nullfs", "portalfs", "smbfs", "udf", "umapfs",
-	"unionfs",
+	"ufs",
+	"ext2fs",
+	"devfs", "fdescfs", "procfs", "linprocfs", "linsysfs",
+	"std",
 	NULL
 	};
 
 	for (i = 0; fs[i] != NULL; ++i) {
 		if (strcmp(vfstype, fs[i]) == 0)
-			return (1);
+			return (0);
 	}
 	
-	return (0);
+	return (1);
 }
 
 static int


More information about the freebsd-current mailing list