FS#4681 - shfs and fuse support in initscripts
Attached to Project:
Arch Linux
Opened by Roman Kyrylych (Romashka) - Monday, 22 May 2006, 13:56 GMT
Last edited by Judd Vinet (judd) - Tuesday, 25 July 2006, 22:21 GMT
Opened by Roman Kyrylych (Romashka) - Monday, 22 May 2006, 13:56 GMT
Last edited by Judd Vinet (judd) - Tuesday, 25 July 2006, 22:21 GMT
|
Details
Complete list of fixes:
/etc/rc.d/netfs - added support for shfs and fuse, capitalized message /etc/rc.sysinit - added support for shfs, codafs and fuse, fixed fsck reporting fstab errors caused by fuse entries. Now FUSE filesystems are treated as network filesystems and can be started from fstab with entries like: sshfs#root@alpha.virtual.net:/var/cache/pacman/pkg/ /var/cache/pacman/pkg fuse rw,reconnect 0 0 and there will be no fsck messages about errors in fstab (caused by # char). |
This task depends upon
Please include this fix in the next initscripts. These are trivial fixes and they works for me few months and doesn't break anything.
netfs (0.5 KiB)
There are two ssh-based remote filesystems: sshfs (which requires fuse) and shfs (standalone kernel module). Both of them (and all fuse filesystems) need these proposed fixes to work seemly from fstab.
I see that you are preparing a bunch of fixes for the next initscripts release. Please include these fixes too.
Please add 2>/dev/null to /sbin/fsck -A -T -C -a -t $NETFS $FORCEFSCK as in my proposal or else when fuse or shfs will be mounted on boot user will see fsck messages about errors in fstab (that's because fsck doesn't like # char)
And please change "Unmounting network filesystems" to "Unmounting Network Filesystems" for better consistency with "Mounting Network Filesystems" in netfs.
PS: intoducing $NETFS was nice idea! :-)
Hmm, that's a bit of a problem for me. Some users may very well want to see the output from fsck, since it could contain useful information if they have filesystem issues.
>> And please change "Unmounting network filesystems" to "Unmounting Network Filesystems" for better consistency with "Mounting Network Filesystems" in netfs.
Sure.
Line 140 should be /sbin/fsck -A -T -C -a -t $NETFS $FORCEFSCK 2>/dev/null
I'm sure that fsck doesn't output any usefull info to stderr except errors in fstab. These errors are false in case of using fuse or shfs, which means that on every boot usersof fuse or shfs will get those error messages visible (of course, fuse and shfs are mounted correctly after that but these messages are annoying).
Messages about errors in filesystem are produced to stdout. I've had few filesystem problems and didn't miss any usefull otput from fsck with my patched initscripts. So I'm pretty sure it is safe to redirect fsck stderr output to /dev/null.
Of course it would be better if this false error messages were fixed in mainstream (directly in fsck), or maybe apply patch to fix it, but I cannot supply such patch.