summaryrefslogtreecommitdiff
path: root/misc-utils
AgeCommit message (Collapse)AuthorFilesLines
2017-10-13logger: fix C macroIgor Pashev1-1/+1
2012-01-22Restored building libblkid, findfs and wipefsIgor Pashev3-0/+9
2012-01-22Added gnulib modulesIgor Pashev1-1/+0
2012-01-22Link with gnulibIgor Pashev1-3/+14
2012-01-22#include <argp.h> for program_invocation_short_nameIgor Pashev1-0/+1
2012-01-22#include <fcntl.h>Igor Pashev1-0/+1
2012-01-22Adjusted logger for Illumos realityIgor Pashev1-5/+84
2012-01-21Use static cfmakeraw() if not systemIgor Pashev1-0/+12
2011-01-31Merge remote branch 'origin/master'LaMont Jones6-76/+191
Conflicts: mount/mount.8 mount/mount.c
2011-01-31build-sys: enable lsblk and libmount for Linux onlyKarel Zak1-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-22libmount: cleanup API, remove typedefKarel Zak1-37/+41
- 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-22libmount: rename mount.h to libmount.hKarel Zak1-1/+1
The mount.h file name is too generic. Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-17uuidd: mention -q in uuidd.8Petr Uzel1-0/+3
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2011-01-17findmnt: fix manpage typosDavidlohr Bueso1-1/+1
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-01-10lsblk: use "RM" for removableKarel Zak1-4/+4
Suggested by Przemoc <noreply-comment@blogger.com> at my blog. Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-04remove duplicate includesKarel Zak1-1/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-04findmnt: add --submounts optionKarel Zak2-33/+81
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03findmnt: add MAJ:MINKarel Zak1-3/+21
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03findmnt: use new libmount functionsKarel Zak1-3/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03findmnt: fix exit codeKarel Zak1-2/+5
... returns 1 if nothing printed. Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03findmnt: use new tab parsing APIKarel Zak1-3/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03findmnt: add support for fs-root (subvolumes and bind mounts)Karel Zak2-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>
2011-01-03libmount: add mnt_tab_parse_mtab()Karel Zak1-0/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03findmnt: add /etc/fstab.d supportKarel Zak2-3/+23
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03libmount: remove mnt_tab_strerr()Karel Zak1-6/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-30wipefs: fail if more device arguments specifiedMilan Broz1-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>
2010-12-29Merge remote branch 'origin/master'LaMont Jones30-160/+1186
Conflicts: login-utils/Makefile.am mount/lomount.c text-utils/od.1
2010-12-26lsblk: rename "RA" column to "RE"Karel Zak1-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>
2010-12-16lsblk: add --nodepsKarel Zak2-1/+14
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-10fix __noreturn__ usageKarel Zak2-4/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-09partx: complete rewriteDavidlohr Bueso1-46/+0
Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-30rename util-linux-ng back to util-linuxKarel Zak22-44/+44
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-24build-sys: fix lsblk buildingKarel Zak2-9/+14
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-24lsblk: add new utilityMilan Broz4-2/+1138
Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-24lib: [strutils] move strmode() from namei.c to strutils.cKarel Zak2-36/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-24lib: [xalloc] add xstrdup()Karel Zak1-9/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-24findmnt: apply new changes from tt.cKarel Zak1-42/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-23lib: [strutils] general purpose string handling functionsDavidlohr Bueso3-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>
2010-11-15cal: follow HAVE_LANGINFOKarel Zak2-20/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-15findmnt: follow HAVE_LANGINFOKarel Zak2-3/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-10-29use _exit() instead of exit() in sighandlersMarek Polacek1-1/+1
Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
2010-10-25Merge remote branch 'origin/master'LaMont Jones5-57/+18
2010-10-21look: fix conflict between locally defined err() and glibc's versionDavidlohr Bueso1-40/+10
Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-10-21misc-utils: use new xmalloc() wrapperDavidlohr Bueso4-17/+8
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2010-10-18Merge remote branch 'origin/master'LaMont Jones4-26/+37
2010-10-07cal: use EXIT_* and program_invocation_short_nameKarel Zak1-13/+9
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-10-07findmnt: fix support for -a optionMilan Broz1-1/+1
Signed-off-by: Milan Broz <mbroz@redhat.com>
2010-10-01namei: parse all path arguments when an optarg path will failSami Kerola1-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>
2010-09-30ddate: revert man page typoKarel Zak1-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>
2010-09-17ddate: fix typo in ddate.1Davidlohr Bueso1-3/+3
Signed-off-by: Davidlohr Bueso <dave@gnu.org>