[Pkg-sysvinit-devel] Bug#391375: initscripts: umountnfs.sh: shutdown fails in presence of bind-mounts

Peter Colberg peterco at gmx.net
Sat Oct 7 07:45:36 UTC 2006


Hello Gabor,

On Fri, Oct 06, 2006 at 12:13:36PM +0200, Gabor Gombas wrote:
> [..]
> A quick experiment shows that fuser cannot make a difference between
> processes holding the source of a bind mount and processes holding the
> target of the bind mount:
> 
> 	# mkdir /tmp/a /tmp/b
> 	# mount -t tmpfs tmpfs /tmp/a
> 	# mount --bind /tmp/a /tmp/b
> 	# cd /tmp/a
> 	# fuser -m /tmp/b
> 	/tmp/b:		3958c
> 
> The behaviour of fuser is correct (it works on the filesystem level,
> while bind mounts are pure namespace operations only). But the effect is
> that the 'fuser' call in umountnfs.sh line 98 just kills /etc/init.d/rc
> because it thinks it is using the bind-mounted location when in fact it
> does not. If I just comment out the whole 'if [ -x /bin/fuser ]' block
> and revert to using /etc/init.d/sendsigs, then everything works again.

Thank you very much for mentioning how to temporarily fix this.

Regards,
Peter




More information about the Pkg-sysvinit-devel mailing list