Commit Graph

44 Commits

Author SHA1 Message Date
Frederick Grose 8fef799d8b Fix typos in --target 2015-08-14 09:37:07 -04:00
Karel Zak 8449f2cb59 findmnt: add --json
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-06-05 09:47:59 +02:00
Karel Zak 0009f510cb findmnt: add --mountpoint command line option
The current --target <path> implementation check the <path> elements in
reverse order to get the mountpoint. The feature may be inwanted in
some cases when we really want to check for mountpoint specified by
the <path>. The new option "--mountpoint <path>" allows to be strict.

Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-19 12:12:21 +01:00
Karel Zak cd41b385a0 findmnt: don't rely on st_dev for --target
The overlay filesystem does not provide usable st_dev (in traditional
UNIX way). It's necessary to search in /proc/self/mountinfo to detect
which path element is mountpoint.

$ findmnt --target /mnt/merged/dir-a/foo
TARGET      SOURCE  FSTYPE  OPTIONS
/mnt/merged overlay overlay rw,relatime,lowerdir=/mnt/low,upperdir=/mnt/high/data,workdir=/mnt/high/work

Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-10 12:51:44 +01:00
J William Piggott b06c1ca6f8 docs: restore minus symbols in long opts
Signed-off-by: J William Piggott <elseifthen@gmx.com>
2015-01-20 18:15:30 -05:00
Benno Schulenberg 3a60b1c26b docs: remove obsolete and unneeded comments from man-page files
Transform some of them into copyright lines.
Also fix three header lines and snip some trailing whitespace.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-01-12 11:03:26 +01:00
Benno Schulenberg f49ccec212 docs: don't use bold or italics for "[option]" in synopsis of man pages
As per the convention shown in Documentation/howto-man-page.txt.
Also make a few other tiny adjustments along the way.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2014-12-19 09:57:23 +01:00
Karel Zak 68e422ecae docs: update info about env debug variables
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-03 13:13:54 +01:00
Bernhard Voelker 169b85c9f2 findmnt: document --uniq option in man page
* misc-utils/findmnt.8: Add an entry for the -U, --uniq option
added in commit v2.24-132-gbebdda3.
2014-10-31 10:39:21 +01:00
Benno Schulenberg 9421a1a3b3 findmnt: slightly improve wording and formatting in man page
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-30 10:22:07 +02:00
Karel Zak 097e7f2ff4 findmnt: add --nocanonicalize to avoid realpath()
* in some cases is realpath() overkill
 * sometimes you want to search for explicitly specified paths (e.g.
   "findmnt --fstab /mnt/symlink") rather than for real paths
 * you want to avoid readlink() and stat() on NFS

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-16 15:47:50 +02:00
Karel Zak 2b6759df0c findmnt: add --bytes to print sizes in bytes
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-02-21 12:27:58 +01:00
Benno Schulenberg b4362b6f84 docs: standardize the phrases for --help and --version in all man pages
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-10-15 10:28:30 +02:00
Benno Schulenberg 4b44c245dd docs: normalize formatting of findmnt man page
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-03-20 14:08:03 +01:00
Benno Schulenberg 469202cdc3 docs: sort the options in findmnt man page alphabetically
Also improve wording and formatting a bit.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-03-20 14:08:03 +01:00
Benno Schulenberg 3768420374 docs: improve grammar and formatting of explanation of "-o +list"
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-03-04 12:33:25 +01:00
Karel Zak 36fb10074c docs: add missing information about -o +<list>
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-18 13:30:00 +01:00
Bernhard Voelker c370688f62 findmnt: fix typo in manpage
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
2012-07-09 17:10:05 +02:00
Karel Zak c7fcc8307d findmnt: add --task <tid> option
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-28 13:51:34 +02:00
Karel Zak aca72ac2f9 findmnt: don't use tree-like output if more -F options specified
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-28 13:20:31 +02:00
Karel Zak 4644638fe8 findmnt: add note about \x<hex> to man page
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-26 09:19:07 +02:00
Karel Zak cd49218679 findmnt: add support for maj:min source
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-25 09:51:26 +02:00
Karel Zak 090b5e84b2 findmnt: add support for PARTUUID= and PARTLABEL=
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-19 14:38:53 +02:00
Karel Zak cd4ed46f98 findmnt: improve --df output
* don't print pseudo-filesystems (except tmpfs)
 * add --all to disable built-in filters
 * don't overwrite --df --output=<list> with default columns

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-20 10:52:13 +01:00
Dave Reisner eda399b995 findmnt: add -D, --df option to imitate df(1)
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-03-20 09:53:47 +01:00
Dave Reisner a85ef33b16 findmnt: add FS size, avail, used, and use% columns
Provide display of filesystem attributes from statvfs(3). These are all
displayed in human readable format.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-03-20 09:53:41 +01:00
Bill Pemberton 27b35a6d55 findmnt: add -P, --pairs to the man page
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
2012-03-20 09:30:21 +01:00
Karel Zak 9354fea342 libmount: remove fstab.d support
If you really need to store your configuration to a alternative files
then you have to explicitly specify the files or directories on
mount(8) command line by --fstab option.

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-24 11:16:53 +01:00
Karel Zak c0d2c6e11c findmnt: add note about LIBMOUNT_* env.variables
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-20 12:47:15 +01:00
Karel Zak 2f1ac44b4b findmnt: revert --fstab behavior, add --tab-file option
The optional argument for -s, --fstab options (--fstab=file) is not
backwardly compatible, because command line with short options (e.g.
findmnt -snr) will be interpreted incorrectly.

This patch removes support for the optional --fstab argument and
introduces a new option --tab-file, for example:

	findmnt --fstab --tab-file=/etc/fstab.foo

Reported-by: Juergen Daubert <jue@jue.li>
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-20 12:15:37 +01:00
Dave Reisner d466c6a1fe findmnt: support alternative location of fstab
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-12-16 11:29:39 +01:00
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