Re: -CURRENT does not recognize standard mount options



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@xxxxxxxxxxxxxx
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: maildir with softupdates
    ... maildirs and mail queue on separate partitions and mount them sync. ... > be corrupted in the event of hardware failure. ...
    (freebsd-questions)
  • Re: USB pen drive: "sync" option of mount, makes copying slow.
    ... When I mount it with sync option it takes 35 minutes, ... Not having to update two sectors worth of FAT every time a new block is ... How can I check the version of my USB port at my PC. ...
    (uk.comp.os.linux)
  • Re: (S)ATA performance in FBSD 6.2/7.0
    ... and also mine at home seem to be outperformed by some Linux setups around here and I saw something interesting. ... linux by default mounts async ... E.g if sync is default why mount do not report that my /dev/ad4s3f on /usr is mounted synchronous? ... From what I seed in rc.X scripts mount -a -t $is used to mount things form fstab at boot time ...
    (freebsd-performance)
  • Re: (S)ATA performance in FBSD 6.2/7.0
    ... and also mine at home seem to be outperformed by some Linux setups around here and I saw something interesting. ... linux by default mounts async ... E.g if sync is default why mount do not report that my /dev/ad4s3f on /usr is mounted synchronous? ... From what I seed in rc.X scripts mount -a -t $is used to mount things form fstab at boot time ...
    (freebsd-questions)
  • Re: [SLE] USB disk hotplug sync mounting
    ... Jan Romportl wrote: ... > mounted with synchronous acces. ... Try replacing sync with async, ... Hamradio License G3VBV, Keen licensed Private Pilot ...
    (SuSE)