linux/fs/gfs2/locking/dlm
Fabio Massimo Di Nitto 0b7580c786 [GFS2] Check for installation of mount helpers for DLM mounts
The patch is a fix to abort mount if the mount.gfs* and possible
umount.* are missing from /sbin.

While we do what we can to guarantee that they are installed properly in
userland (CVS HEAD), we want to make sure that mount still aborts properly.

The only sign of missing helpers is that lock_dlm will receive no mount options
at all. According to David the problem does not exist for lock_nolock as the
helpers are not required.

The patch has been tested for both gfs and gfs2 and it works as expected. The
lack of mount.gfs* will generate an error that is propagated to mount:

oot@node1:~# mount -t  gfs2 /dev/nbd2 /mnt/
mount: wrong fs type, bad option, bad superblock on /dev/nbd2,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

[ 3513.303346] GFS2: fsid=: Trying to join cluster "lock_dlm", "gutsy:gfs2"
[ 3513.304546] DLM/GFS2/GFS ERROR: (u)mount helpers are not installed properly!
[ 3513.306290] GFS2: fsid=: can't mount proto=lock_dlm, table=gutsy:gfs2, hostdata=

You might want to notice that it will also avoid mount to hang or fail silently
or with strange errors that will require the cluster to reboot/restart before
you can actually mount the filesystem again.

Signed-off-by: Fabio M. Di Nitto <fabbione@ubuntu.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2008-01-25 08:08:01 +00:00
..
lock_dlm.h [GFS2] Clean up duplicate includes in fs/gfs2/ 2007-10-10 08:54:44 +01:00
lock.c [GFS2] Reduce size of struct gdlm_lock 2007-07-09 08:22:21 +01:00
main.c [GFS2] make lock_dlm drop_count tunable in sysfs 2007-02-05 13:38:01 -05:00
Makefile [GFS2] Fix bug in Makefiles for lock modules 2006-09-27 12:20:06 -04:00
mount.c [GFS2] Check for installation of mount helpers for DLM mounts 2008-01-25 08:08:01 +00:00
plock.c [GFS2] use an temp variable to reduce a spin_unlock 2007-10-10 08:54:58 +01:00
sysfs.c Drivers: clean up direct setting of the name of a kset 2007-10-12 14:51:02 -07:00
thread.c [GFS2] check kthread_should_stop when waiting 2008-01-25 08:07:49 +00:00