[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: rm --preserve-root=all to protect mount points
From: |
Kaz Kylheku (Coreutils) |
Subject: |
Re: RFC: rm --preserve-root=all to protect mount points |
Date: |
Mon, 11 Jun 2018 12:18:09 -0700 |
User-agent: |
Roundcube Webmail/0.9.2 |
On 2018-06-10 23:14, Pádraig Brady wrote:
I was asked off list to consider adding an option to rm
that could be enabled with an alias, and would protect
mount points specified on the command line.
[...]
$ rm -r --preserve-root=all /dev/shm
rm: skipping '/dev/shm', since it's a mount point
rm: and --preserve-root=all is in effect
The command option is well-named, but consider changing
"mount point" to "mount" in this diagnostic and, more
importantly, any documentation which refers to this.
E.g. "since a filesystem is mounted there",
"since it is a filesystem root", etc.
I think the "mount point" terminology is misleading because
one important sense of the word is that it refers to the
Unix kludge of requiring an empty directory to exist for
a mount. The empty directory where one intends to mount a
filesystem is the "mount point" for it.
This option cannot protect directories which are mount
points in that sense; only ones that are carrying mounts.
- RFC: rm --preserve-root=all to protect mount points, Pádraig Brady, 2018/06/11
- Re: RFC: rm --preserve-root=all to protect mount points, L A Walsh, 2018/06/11
- Re: RFC: rm --preserve-root=all to protect mount points,
Kaz Kylheku (Coreutils) <=
- Re: RFC: rm --preserve-root=all to protect mount points, Pádraig Brady, 2018/06/17
- [PATCH] rm: add --preserve-root=all to protect mounts, Pádraig Brady, 2018/06/17
- Re: [PATCH] rm: add --preserve-root=all to protect mounts, Jim Meyering, 2018/06/18
- Re: [PATCH] rm: add --preserve-root=all to protect mounts, Pádraig Brady, 2018/06/18
- Re: [PATCH] rm: add --preserve-root=all to protect mounts, Jim Meyering, 2018/06/18
- Re: [PATCH] rm: add --preserve-root=all to protect mounts, Jim Meyering, 2018/06/18