Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 May 2006 12:04:05 -0400
From:      Craig Rodrigues <rodrigc@crodrigues.org>
To:        Joe Marcus Clarke <marcus@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: -CURRENT does not recognize standard mount options
Message-ID:  <20060530160405.GA39658@crodrigues.org>
In-Reply-To: <1148962081.8820.49.camel@shumai.marcuscom.com>
References:  <1148962081.8820.49.camel@shumai.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@crodrigues.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060530160405.GA39658>