rm --no-traverse-mount-points [Re: stop rm at same-dev bind mounts

Thomas Moschny thomas.moschny at gmail.com
Sun Sep 11 12:25:51 UTC 2011

2011/9/10 Jim Meyering <jim at meyering.net>:
> Thanks for the example, but I don't see how that option name is
> misleading.  A "file system" is the thing you create with "mkfs".
> Even though normally there is only one mount point per file system,
> the fact that with bind mounts there can be many doesn't change
> the name of the thing occupying the underlying device: a file system.
> I think you want a new option, say --no-traverse-mount-points.

The term "file system" can of course have different meaning to
different people - you could also argue it means "file system type",
with unexpected results for the interpretation of "--one-file-system".
Anyway, that is nitpicking on my side; obviously it was clear what I
meant: An option to make rm walk the tree, ignoring (=not following)
mount points. Thanks for opening the ticket.

As a side note: I am not sure whether that also means it should remove
stuff normally hidden by such a mountpoint?

As long as such a "--no-traverse-mount-points" option is not available
yet for rm, I am still looking for suggestions on how to achieve the
same effect in a shell script.

Thomas Moschny <thomas.moschny at gmail.com>

More information about the devel mailing list