From owner-freebsd-current@FreeBSD.ORG Thu Feb 1 05:49:11 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8A60516A400 for ; Thu, 1 Feb 2007 05:49:11 +0000 (UTC) (envelope-from ota@j.email.ne.jp) Received: from mail.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by mx1.freebsd.org (Postfix) with ESMTP id 5A11613C442 for ; Thu, 1 Feb 2007 05:49:11 +0000 (UTC) (envelope-from ota@j.email.ne.jp) Received: from dynabook-freebsd.advok.com (pool-141-151-59-20.phlapa.east.verizon.net [141.151.59.20]) by mail.asahi-net.or.jp (Postfix) with ESMTP id AB6B22CC9F for ; Thu, 1 Feb 2007 14:31:24 +0900 (JST) Date: Thu, 1 Feb 2007 00:26:23 -0500 From: Yoshihiro Ota To: freebsd-current@freebsd.org Message-Id: <20070201002623.b8cb5d08.ota@j.email.ne.jp> X-Mailer: Sylpheed version 2.2.9 (GTK+ 2.10.6; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Thu__1_Feb_2007_00_26_23_-0500_nQB5ee+ldxt8WotE" Subject: [patch] mount fails to call external programs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2007 05:49:11 -0000 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--