Re: Bind mount bug?

From: Frans Pop
Date: Sun Nov 11 2007 - 18:42:37 EST


On Sunday 11 November 2007, Jan Engelhardt wrote:
> >This mounts the bindtest/ tree on test/ _without_ copying the mount
> >points which are found on subtrees. This is necessary to avoid loops
> >in the filesystem (bind mounts are somewhat like hardlinks on
> >directories, just without the headaches).
>
> What you seek is mount --rbind.

Thanks! That works fine with mount from util-linux-ng.

Busybox' mount (at least Debian's admittedly old 1.1.3 version) seems to
fail to do the recursing. I'll file a BR against busybox in Debian and
check that again when we have a more current version.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/