Merge branch 'gio-tool-mount-docs' into 'main'

gio-tool: Clarify that `gio mount -l` only lists user-interesting things

See merge request GNOME/glib!4423
This commit is contained in:
Michael Catanzaro 2024-12-09 14:32:21 +00:00
commit c5f9eb51a2
2 changed files with 8 additions and 2 deletions

View File

@ -58,6 +58,12 @@ Plain filenames which contain a colon will be interpreted as URIs with an
unknown protocol. To avoid this, prefix them with a path such as ``./``, or with
the ``file:`` protocol.
Volumes, drives and mounts are limited to the ones which are considered
interesting to the user, such as removable drives. System mounts will not be
shown, meaning the output from ``gio mount`` is not equivalent to the output
from tools like ``fdisk``, and ``gio monitor --mounts`` will only list events
relevant to selected mounts.
COMMANDS
--------

View File

@ -71,8 +71,8 @@ static const GOptionEntry entries[] =
{ "force", 'f', 0, G_OPTION_ARG_NONE, &force, N_("Ignore outstanding file operations when unmounting or ejecting"), NULL },
{ "anonymous", 'a', 0, G_OPTION_ARG_NONE, &anonymous, N_("Use an anonymous user when authenticating"), NULL },
/* Translator: List here is a verb as in 'List all mounts' */
{ "list", 'l', 0, G_OPTION_ARG_NONE, &mount_list, N_("List"), NULL},
{ "monitor", 'o', 0, G_OPTION_ARG_NONE, &mount_monitor, N_("Monitor events"), NULL},
{ "list", 'l', 0, G_OPTION_ARG_NONE, &mount_list, N_("List user-interesting volumes, drives and mounts"), NULL},
{ "monitor", 'o', 0, G_OPTION_ARG_NONE, &mount_monitor, N_("Monitor user-interesting volume, drive and mount events"), NULL},
{ "detail", 'i', 0, G_OPTION_ARG_NONE, &extra_detail, N_("Show extra information"), NULL},
{ "tcrypt-pim", 0, 0, G_OPTION_ARG_INT, &tcrypt_pim, N_("The numeric PIM when unlocking a VeraCrypt volume"), N_("PIM")},
{ "tcrypt-hidden", 0, 0, G_OPTION_ARG_NONE, &tcrypt_hidden, N_("Mount a TCRYPT hidden volume"), NULL},