|
From: Miklos S. <mi...@sz...> - 2006-01-09 11:11:28
|
> Just started messing with fuse and have discovered that many bugs
> with 2.4.2 are fixed in CVS. I see that the option processing
> has been totally reworked.
>
> One problem I still find is that the "noauto" option in fstab
> results in an error.
>
> The Linux mount man page has a long list of options which mountable
> filesystems should recognize, even if they simply ignore them. It
> is apppened below. Auto and noauto are especially important.
>
> Glad to see that "user" works in CVS now! I'm sure that someone familiar
> with the new option processing code can fix this more easily than I could.
Can you please try the following patch? Does it fix the problem?
Thanks,
Miklos
Index: util/mount.fuse
===================================================================
RCS file: /cvsroot/fuse/fuse/util/mount.fuse,v
retrieving revision 1.5
diff -u -r1.5 mount.fuse
--- util/mount.fuse 2 Jan 2006 16:27:48 -0000 1.5
+++ util/mount.fuse 9 Jan 2006 11:07:46 -0000
@@ -41,6 +41,8 @@
shift
shift
-OPTIONS=`echo $@ | sed 's/,user//'`
+ignore_opts="(user|nouser|users|auto|noauto|_netdev)"
+
+OPTIONS=`echo $@ | sed -r "s/(,${ignore_opts}|${ignore_opts},)//g"`
${FSTYPE} ${MOUNTPATH} ${MOUNTPOINT} ${OPTIONS}
|