Commit Graph

63 Commits

Author SHA1 Message Date
Karel Zak ede8a60e05 libmount: add "+" prefix for options pattern (e.g findmnt -O)
Examples:

 * findmnt --fstab -O noauto
   Returns all entries where is not "auto" option (including entries
   with "noauto" option.

 * findmnt --fstab -O +noauto
   Returns all entries where is literally "noauto" option.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=758457
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-12-01 18:28:42 +01:00
Benno Schulenberg 232dc924c4 docs: uniformize the header and footer lines in man pages
Use dates without the day, use the full month name, put "util-linux" in
the lower left corner, and "User Commands" or "System Administration"
at the top center.

Also improve here and there the one-line program description.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-22 10:39:21 +02:00
Benno Schulenberg de9501ab10 findmnt: (man page) short option for --timeout is not -t but -w
Additionally make some formatting and spacing tweaks.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-08 11:58:43 +02:00
Karel Zak 582a5006d4 findmnt: filter filesystems and actions for --poll
The patch allows to filter by:

 * actions name:
	$ findmnt --poll=umount

 * target, source, fstype, options:
	$ findmnt --poll /mnt/test
	$ findmnt --poll -O ro
	$ findmnt --poll -t ext4

 * --first-only option to wait only for the first matching change:

	$ findmnt --poll=umount --first-only /mnt/test

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-04-27 22:59:00 +02:00
Karel Zak a8862fab94 findmnt: add --poll and --timeout to the man page
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-04-27 18:07:39 +02:00
Davidlohr Bueso c2b9f70a25 findmnt: fix manpage typos
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-01-17 15:27:01 +01:00
Karel Zak 049caefdcf findmnt: add --submounts option
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-04 14:01:33 +01:00
Karel Zak b2214e1f3e findmnt: add support for fs-root (subvolumes and bind mounts)
This patch modifies the default output for SOURCE column. All btrfs
subvolume mountpoints and all bind-mount (where source is not root of
FS) will be printed as:

   SOURCE               TARGET
   /dev/sda1[/aaa]      /mnt/test

where /aaa is subvolume name or fs root for bind mounts, it means:

   # mount -t btrfs /dev/sda1 /mnt/test -o subvol=aaa

or:

   # mount --bind /aaa /mnt/test

The info about fs-root is 4th column in /proc/self/mountinfo.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03 12:28:40 +01:00
Karel Zak 2005515135 findmnt: add /etc/fstab.d support
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03 12:28:39 +01:00
Karel Zak 601d12fb10 rename util-linux-ng back to util-linux
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-30 11:41:59 +01:00
Benno Schulenberg d0bb6987a8 textual: fix typos, and rephrase some things for clarity
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2010-06-14 11:17:00 +02:00
Karel Zak 631280e05b findmnt: add {fs,vfs}-options columns
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-03 15:20:13 +02:00
Karel Zak 62b4550fde findmnt: add man page
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-03 15:20:12 +02:00