summaryrefslogtreecommitdiffstats
path: root/misc-utils
Commit message (Collapse)AuthorAgeFilesLines
* findmnt: add --submounts optionKarel Zak2011-01-042-33/+81
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: add MAJ:MINKarel Zak2011-01-031-3/+21
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: use new libmount functionsKarel Zak2011-01-031-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: fix exit codeKarel Zak2011-01-031-2/+5
| | | | | | ... returns 1 if nothing printed. Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: use new tab parsing APIKarel Zak2011-01-031-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: add support for fs-root (subvolumes and bind mounts)Karel Zak2011-01-032-2/+20
| | | | | | | | | | | | | | | | | | | | | 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>
* libmount: add mnt_tab_parse_mtab()Karel Zak2011-01-031-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: add /etc/fstab.d supportKarel Zak2011-01-032-3/+23
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: remove mnt_tab_strerr()Karel Zak2011-01-031-6/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* wipefs: fail if more device arguments specifiedMilan Broz2010-12-301-0/+3
| | | | | | | | Currently wipefs process only first device argument and silently ignores remaining. Print error instead because it can be quite confusing. Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: rename "RA" column to "RE"Karel Zak2010-12-261-4/+4
| | | | | | | The RA abbreviation is usually used for readahead, the column in lsblk(8) means removable. Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: add --nodepsKarel Zak2010-12-162-1/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fix __noreturn__ usageKarel Zak2010-12-102-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* partx: complete rewriteDavidlohr Bueso2010-12-091-46/+0Star
| | | | | | Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* rename util-linux-ng back to util-linuxKarel Zak2010-11-3022-44/+44
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix lsblk buildingKarel Zak2010-11-242-9/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: add new utilityMilan Broz2010-11-244-2/+1138
| | | | | Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [strutils] move strmode() from namei.c to strutils.cKarel Zak2010-11-242-36/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [xalloc] add xstrdup()Karel Zak2010-11-241-9/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: apply new changes from tt.cKarel Zak2010-11-241-42/+16Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [strutils] general purpose string handling functionsDavidlohr Bueso2010-11-233-4/+4
| | | | | | | | | | | | | This patch replaces a few functions used throughout the source: * Renames getnum (from schedutils) to strtol_or_err * Moves strtosize (from lib/strtosize.c) * Moves xstrncpy (from include/xstrncpy.h) * Adds strnlen, strnchr and strndup if not available (remove it from libmount utils) A few Makefile.am files were modified to compile accordingly along with trivial renaming in schedutils source code. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* cal: follow HAVE_LANGINFOKarel Zak2010-11-152-20/+6Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: follow HAVE_LANGINFOKarel Zak2010-11-152-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* use _exit() instead of exit() in sighandlersMarek Polacek2010-10-291-1/+1
| | | | Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
* look: fix conflict between locally defined err() and glibc's versionDavidlohr Bueso2010-10-211-40/+10Star
| | | | | Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* misc-utils: use new xmalloc() wrapperDavidlohr Bueso2010-10-214-17/+8Star
| | | | Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* cal: use EXIT_* and program_invocation_short_nameKarel Zak2010-10-071-13/+9Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: fix support for -a optionMilan Broz2010-10-071-1/+1
| | | | Signed-off-by: Milan Broz <mbroz@redhat.com>
* namei: parse all path arguments when an optarg path will failSami Kerola2010-10-011-11/+26
| | | | | | | | | | | | | | | | | | | | | | | | Old implementation of namei listed path all the way to non-existing file or directory, something like: f: /usr/bin/nxdir/file d / d usr d bin ? nxdir - No such file or directory (2) whiles the current implementation prints: namei: failed to stat: /usr/bin/nxdir/file: No such file or directory The new output it's not helpful. I am especially interested see where the path is broken when a path is symlink to other path with symlink, and few more like that, and something somewhere is broken. [kzak@redhat.com: - coding style changes] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* ddate: revert man page typoKarel Zak2010-09-301-2/+2
| | | | | | | | | | On Sat, Sep 18, 2010 at 03:10:52AM +0300, Anssi Hannula wrote: > According to wikipedia [1] 'Holyday' was the correct spelling, I > guess the first hunk should be reverted. > > [1] http://en.wikipedia.org/wiki/Discordian_calendar Signed-off-by: Karel Zak <kzak@redhat.com>
* ddate: fix typo in ddate.1Davidlohr Bueso2010-09-171-3/+3
| | | | Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* findmnt: don't swap source and target if the source is a tagKarel Zak2010-08-311-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* look: fix memory leak in look(1)Davidlohr Bueso2010-07-291-0/+3
| | | | Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* namei: fix memory leak in namei(1)Davidlohr Bueso2010-07-291-0/+3
| | | | Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* portability: fix mntent.h and pty.h usageFrançois Revol2010-07-261-3/+3
| | | | | Signed-off-by: François Revol <revol@free.fr> Signed-off-by: Karel Zak <kzak@redhat.com>
* wipefs: fix memory leaksKarel Zak2010-06-161-0/+19
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* wipefs: fix mem usageKarel Zak2010-06-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: remove unnecessary info from man pageKarel Zak2010-06-161-6/+0Star
| | | | | Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=604238 Signed-off-by: Karel Zak <kzak@redhat.com>
* textual: fix typosKarel Zak2010-06-141-1/+1
| | | | | Reported-by: Petr Pisar <petr.pisar@atlas.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: ungettextize the directions and fix spellingBenno Schulenberg2010-06-141-3/+3
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* messages: gettextize a few skipped or forgotten onesBenno Schulenberg2010-06-141-3/+3
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* textual: fix typos, and rephrase some things for clarityBenno Schulenberg2010-06-144-47/+47
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* uuidd: spell the plural of "UUID" consistently as "UUIDs"Benno Schulenberg2010-06-143-8/+8
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* build-sys: cleanup lib{mount,blkid} buildingKarel Zak2010-06-081-5/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add #warning libmount API is not stable yet!Karel Zak2010-06-041-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: move from /sbin to /binKarel Zak2010-06-031-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: minor coding style fixesKarel Zak2010-06-031-12/+13
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: small change in usage()Karel Zak2010-06-031-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: add {fs,vfs}-options columnsKarel Zak2010-06-032-0/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: add man pageKarel Zak2010-06-032-0/+149
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>