Karel Zak
6c7d5ae9a2
move struct option to .rodata
...
It does not make sense to have writable large arrays of "struct
option" on the stack.
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-03-03 15:00:30 +01:00
Benno Schulenberg
e8ab5ce3d0
textual: improve the wording of some error and usage messages
...
[kzak@redhat.com: - cleanup lscpu(1) usage text
- use <disk> rather than <device> in partx(8)
usage text]
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-02-16 15:46:38 +01:00
Fabian Groffen
eb76ca98b0
build-sys: provide alternatives for err, errx, warn and warnx
...
Solaris lacks err, errx, warn and warnx. This also means the err.h header
doesn't exist. Removed err.h include from all files, and included err.h from
c.h instead if it exists, otherwise alternatives are provided.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-02-14 17:45:24 +01:00
Karel Zak
68164f6c30
libmount: cleanup API, remove typedef
...
- replace mnt_ with libmnt_ prefix for types (the old prefix was too generic)
- remove typedef, use struct everywhere
- use shorter functions names (s/userspace/user/; s/mountflags/mflags/)
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-22 00:27:26 +01:00
Karel Zak
2a1f429ad0
libmount: rename mount.h to libmount.h
...
The mount.h file name is too generic.
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-22 00:27:26 +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
4623638882
findmnt: add MAJ:MIN
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03 12:28:48 +01:00
Karel Zak
411fe06eed
findmnt: use new libmount functions
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03 12:28:47 +01:00
Karel Zak
932d154c8d
findmnt: fix exit code
...
... returns 1 if nothing printed.
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03 12:28:46 +01:00
Karel Zak
dde0e3dbb7
findmnt: use new tab parsing API
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03 12:28:46 +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
0532ba1d8f
libmount: add mnt_tab_parse_mtab()
...
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
911238af45
libmount: remove mnt_tab_strerr()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03 12:28:39 +01:00
Karel Zak
abafd68667
fix __noreturn__ usage
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-10 16:47:18 +01:00
Karel Zak
9ead000613
findmnt: apply new changes from tt.c
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-24 17:08:32 +01:00
Karel Zak
f7a29259ee
findmnt: follow HAVE_LANGINFO
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-15 16:47:13 +01:00
Milan Broz
7bbbf65045
findmnt: fix support for -a option
...
Signed-off-by: Milan Broz <mbroz@redhat.com>
2010-10-07 10:23:29 +02:00
Karel Zak
9a30c6ef92
findmnt: don't swap source and target if the source is a tag
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-08-31 12:24:00 +02:00
Karel Zak
8e350e48c1
textual: fix typos
...
Reported-by: Petr Pisar <petr.pisar@atlas.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-14 18:15:29 +02:00
Benno Schulenberg
4e6bd74c27
findmnt: ungettextize the directions and fix spelling
...
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2010-06-14 11:20:11 +02:00
Karel Zak
cc492b3d04
libmount: add #warning libmount API is not stable yet!
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-04 09:43:21 +02:00
Karel Zak
00b4bcdf0f
findmnt: minor coding style fixes
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-03 15:20:13 +02:00
Karel Zak
cbec3cbfd5
findmnt: small change in usage()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-03 15:20:13 +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
ac808156cb
findmnt: don't swap source and target for tags
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-03 15:20:12 +02:00
Karel Zak
fdedb45e31
findmnt: rewrite to use lib/tt.c
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-03 15:20:12 +02:00
Karel Zak
9d67679b05
findmnt: add tree support
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-03 15:20:11 +02:00
Karel Zak
04fd7a9feb
findmnt: add new command
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-03 15:20:11 +02:00