diff options
author | Marco Lima <cipparello@gmail.com> | 2009-07-30 13:49:44 -0700 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-07-30 13:49:44 -0700 |
commit | e2ee36ac9ef274d40b99967320bd3169c36479f0 (patch) | |
tree | 69f2803a4c9b93289d4e357ae174f15fc597a3a2 /netfs | |
parent | abeacaed86e297923bd69de597a7e30dbf3cb990 (diff) |
Add _netdev support to netfs (also add glusterfs support)
The system-wide mount will no longer mount items in fstab marked
as _netdev (requires a network device). These _netdev items are
handled by the netfs daemon now.
Additionally, add support for glusterfs :)
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'netfs')
-rwxr-xr-x | netfs | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -4,11 +4,16 @@ . /etc/rc.conf . /etc/rc.d/functions +rc=0 + case "$1" in start) stat_busy "Mounting Network Filesystems" - /bin/mount -a -t nfs,nfs4,smbfs,codafs,ncpfs,cifs,shfs,fuse,fuseblk - if [ $? -gt 0 ]; then + /bin/mount -a -t nfs,nfs4,smbfs,codafs,ncpfs,cifs,shfs,glusterfs,fuse,fuseblk,fuse.glusterfs + rc=$? + /bin/mount -a -O _netdev + rc=$(($rc+$?)) + if [ $rc -gt 0 ]; then stat_fail else add_daemon netfs @@ -17,7 +22,10 @@ case "$1" in ;; stop) stat_busy "Unmounting Network Filesystems" - umount -a -t nfs,nfs4,smbfs,codafs,ncpfs,cifs,shfs,fuse,fuseblk + /bin/umount -a -O _netdev + rc=$? + /bin/umount -a -t nfs,nfs4,smbfs,codafs,ncpfs,cifs,shfs,glusterfs,fuse,fuseblk,fuse.glusterfs + rc=$(($rc+$?)) if [ $? -gt 0 ]; then stat_fail else |