Re: -CURRENT does not recognize standard mount options

From: Craig Rodrigues <rodrigc_at_crodrigues.org>
Date: Tue, 30 May 2006 12:04:05 -0400
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
_at__at_ -139,6 +139,7 _at__at_
 	"suid",
 	"exec",
 	"update",
+	"sync",
 	NULL
 };
 

-- 
Craig Rodrigues        
rodrigc_at_crodrigues.org
Received on Tue May 30 2006 - 14:04:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:56 UTC