Date: Thu, 1 Feb 2007 00:26:23 -0500 From: Yoshihiro Ota <ota@j.email.ne.jp> To: freebsd-current@freebsd.org Subject: [patch] mount fails to call external programs Message-ID: <20070201002623.b8cb5d08.ota@j.email.ne.jp>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --Multipart=_Thu__1_Feb_2007_00_26_23_-0500_nQB5ee+ldxt8WotE Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 --Multipart=_Thu__1_Feb_2007_00_26_23_-0500_nQB5ee+ldxt8WotE Content-Type: text/plain; name="current-7.0-mount.diff" Content-Disposition: attachment; filename="current-7.0-mount.diff" Content-Transfer-Encoding: 7bit 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 --Multipart=_Thu__1_Feb_2007_00_26_23_-0500_nQB5ee+ldxt8WotE--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070201002623.b8cb5d08.ota>