mount_ntfs: /dev/ad0s1: No such file or directory

Olivier Houchard mlfbsd at cognet.ci0.org
Sat Feb 17 02:11:40 UTC 2007


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
-------------- next part --------------
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 */


More information about the freebsd-current mailing list