-CURRENT does not recognize standard mount options

Craig Rodrigues rodrigc at crodrigues.org
Tue May 30 09:04:08 PDT 2006


On Tue, May 30, 2006 at 12:08:01AM -0400, Joe Marcus Clarke wrote:
> I'm trying to mount a USB stick with an MS-DOS file system on it, and
> I'm specifying -o sync.  This mount works in RELENG_6, and the source
> for mount_msdosfs.c makes me think it should work in -CURRENT.  However,
> this is what I see:
> 
> # mount_msdosfs -o sync /dev/da1s1 /mnt
> mount_msdosfs: /dev/da1s1: Invalid argument

Just because you could do this in RELENG_6,
did -o sync actually ever work in msdosfs?

There were a lot of inconsistencies in the old parsing of mount options,
where UFS specific mount options would just happen to "work", i.e.
"not fail" for other filesystems.

Anyways, you can try this patch:


Index: vfs_mount.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/vfs_mount.c,v
retrieving revision 1.225
diff -u -u -r1.225 vfs_mount.c
--- vfs_mount.c	26 May 2006 02:38:48 -0000	1.225
+++ vfs_mount.c	30 May 2006 15:59:30 -0000
@@ -139,6 +139,7 @@
 	"suid",
 	"exec",
 	"update",
+	"sync",
 	NULL
 };
 

-- 
Craig Rodrigues        
rodrigc at crodrigues.org


More information about the freebsd-current mailing list