On 2007-11-07T12:39:23, Dominik Klein <[EMAIL PROTECTED]> wrote: > Hi > > I would like to suggest a change at the Filesystem RA. > > The monitor action actually does something like "grep $MOUNTPOINT > /etc/mtab". This does not work if you use a symbolic link as a mountpoint. > > If instead it would grep for $DEVICE (maybe with -w to avoid problems with > +10 partitions on one disc), this would still find out if the filesystem is > mounted and solve that problem. > > What do you think?
Grepping by device doesn't work for mount-by-label at least, and requires a lot of escaping for networked mounts; so we thought grepping for the mountpoint was exactly the approach we needed to take. (Also, the RA will try and traverse the mounts _below_ within stop, if any, so we need to know where it is in the directory hierarchy. Of course, this is only an optimisation, as all mounts should be stopped by then anyway.) I've got to admit I've never had someone use a symlink as a mountpoint. ;-) Maybe the right answer would be for the RA to dereference the symlink then? Regards, Lars -- Teamlead Kernel, SuSE Labs, Research and Development SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) "Experience is the name everyone gives to their mistakes." -- Oscar Wilde _______________________________________________ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems