From owner-freebsd-current@FreeBSD.ORG Sat Feb 17 02:11:40 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 3B3D516A407 for ; Sat, 17 Feb 2007 02:11:40 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (cognet.ci0.org [80.65.224.102]) by mx1.freebsd.org (Postfix) with ESMTP id 9A64513C467 for ; Sat, 17 Feb 2007 02:11:38 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.13.7/8.13.4) with ESMTP id l1H2GTpG025111; Sat, 17 Feb 2007 03:16:30 +0100 (CET) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.13.8/8.13.8/Submit) id l1H2GTxM025110; Sat, 17 Feb 2007 03:16:29 +0100 (CET) (envelope-from mlfbsd) Date: Sat, 17 Feb 2007 03:16:29 +0100 From: Olivier Houchard To: Scot Hetzel Message-ID: <20070217021629.GA24579@ci0.org> References: <790a9fff0702161738r154b5087m877c604092727e39@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <790a9fff0702161738r154b5087m877c604092727e39@mail.gmail.com> User-Agent: Mutt/1.4.1i Cc: FreeBSD Current Subject: Re: mount_ntfs: /dev/ad0s1: No such file or directory 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: Sat, 17 Feb 2007 02:11:40 -0000 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Feb 16, 2007 at 07:38:18PM -0600, Scot Hetzel wrote: > I'm no longer able to mount NTFS partitions on a recent -CURRENT, when > mount tries to mount the partition it give "mount_ntfs: /dev/ad0s1: No > such file or directory". > > Anyone else having a problem mounting these NTFS partitions? > > Scot > Hi Scot, That may be my fault. Does the attached patch fix it ? Cheers, Olivier --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ntfs_vfsops.c.diff" Index: fs/ntfs/ntfs_vfsops.c =================================================================== RCS file: /cognet/ncvs/src/sys/fs/ntfs/ntfs_vfsops.c,v retrieving revision 1.84 diff -u -p -r1.84 ntfs_vfsops.c --- fs/ntfs/ntfs_vfsops.c 26 Sep 2006 04:12:45 -0000 1.84 +++ fs/ntfs/ntfs_vfsops.c 17 Feb 2007 01:55:46 -0000 @@ -327,10 +327,10 @@ ntfs_mountfs(devvp, mp, td) ntmp->ntm_bo = &devvp->v_bufobj; cs_local = vfs_getopts(mp->mnt_optnew, "cs_local", &error); - if (error) + if (error && error != ENOENT) goto out; cs_ntfs = vfs_getopts(mp->mnt_optnew, "cs_ntfs", &error); - if (error) + if (error && error != ENOENT) goto out; /* Copy in the 8-bit to Unicode conversion table */ /* Initialize Unicode to 8-bit table from 8toU table */ --EVF5PPMfhYS0aIcm--