mount_msdos(8) says:

-o options
           Use the specified mount options, as described in
           mount(8).

But when you try -o async it says "option not supported".
I added MOPT_ASYNC into mount_msdos (see diff below), and now msdosfs
can be mounted asynchronously (bwrite() checks mount flags and 
passes buffer to bdwrite() if MNT_ASYNC is on the list).
I haven't done any benchmarks, but it feels a little faster (and more
responsive) when writing to a usb flash drive.

So the question is: why doesn't mount_msdos support -o async?

Index: mount_msdos.c
===================================================================
RCS file: /cvs/src/sbin/mount_msdos/mount_msdos.c,v
retrieving revision 1.23
diff -u -r1.23 mount_msdos.c
--- mount_msdos.c       27 Oct 2009 23:59:33 -0000      1.23
+++ mount_msdos.c       3 Apr 2011 23:09:50 -0000
@@ -50,6 +50,7 @@
 const struct mntopt mopts[] = {
        MOPT_STDOPTS,
        MOPT_UPDATE,
+       MOPT_ASYNC,
        { NULL }
 };
 

-- 
Alexander Polakov | plhk.ru

Reply via email to