summaryrefslogtreecommitdiff
path: root/misc-utils
AgeCommit message (Collapse)AuthorFilesLines
2013-02-06textual: spell and encode the name of Arkadiusz Miśkiewicz correctlyBenno Schulenberg8-9/+9
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-02-01libblkid: remove optimization from verify( funrtionKarel Zak1-0/+11
Now libblkid (the cache based part) tries to probe for the cached filesystem firstly. This optimization is broken, because: * new another superblock could be on the device and the original is already obsolete * we still need to probe for partitions and raids * the code was too fragile The patch also suggests lsblk --fs in blkid.8 for end users. lsblk read information from used db. Reported-by: Andreas Hofmeister <andi@collax.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-30textual: fix the example in whereis man page, plus further improvementsBenno Schulenberg1-42/+41
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-01-25rename: make usage() translator friendlySami Kerola1-8/+8
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-25lsblk: make usage() translator friendlySami Kerola1-25/+24
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-25findmnt: make usage() translator friendlySami Kerola1-6/+5
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-25textual: use UTIL_LINUX_VERSION everywhereKarel Zak12-29/+12
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-25textual: standardize reporting of program name plus package versionBenno Schulenberg1-2/+3
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-01-25textual: gettextize several overlooked messagesBenno Schulenberg1-2/+1
Also improve the clarity of some of them. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-01-25textual: fix a few typos in some of the usage help textsBenno Schulenberg2-7/+7
Also improve clarity of some other lines of those texts. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-01-17cal: don't mix ncurses output functions and printf()Karel Zak1-16/+27
Fedora 18 (ncurses-libs-5.9-7.20121017, glibc-2.16-28): $ cal | cat Actual results: January 2013 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 1213 14 15 16 17 18 1920 21 22 23 24 25 2627 28 29 30 31 Not sure where is the problem, but it's too fragile to mix two output methods in one code. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=896447 Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-17findmnt: use tree output in more casesKarel Zak1-7/+19
It seems that we can create the tree also if output is restricted by fstype or options filter, for example $ findmnt -t cgroups Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-15kill: add note about threads to the man pageKarel Zak1-0/+20
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=846790 Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-14findmnt: make --target usable with bind mountsKarel Zak1-8/+15
The --target <non-mount-point> functionality should be enabled only if previous regular search found nothing to avoid collisions with bind mounts, because to detect mountpoint we use traditional child / parent stat.st_dev comparison which does not work for bind mounts (--bind /A /A). Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-10findmnt: add PROPAGATION columnKarel Zak1-0/+25
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-10findmnt: add ID columnKarel Zak1-0/+8
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-10findmnt: add OPT-FIELDS columnKarel Zak1-0/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-10build-sys: ignore chkdupexeSami Kerola1-0/+1
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-07lsblk: Add write-same attribute to topology infoMilan Broz2-2/+17
Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2012-12-20lslocks: fix compiler warningsKarel Zak1-3/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-12-12blkid: fix double free [coverity scan]Karel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-12-12namei: don't care about xasprintf() return codeKarel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-12-12lslocks: don't care about xasprintf() return codeKarel Zak1-11/+10
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-12-12lsblk: don't care about xasprintf() return codeKarel Zak1-4/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-12-12findmnt: don't care about xasprintf() return codeKarel Zak1-18/+13
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-12-10rename: use macro to print versionKarel Zak1-3/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-12-10rename: add --symlink option for renaming symlink targetJan (yac) Matějka2-13/+54
[kzak@redhat.com: - coding style clean up] Signed-off-by: Karel Zak <kzak@redhat.com>
2012-12-10blkid: fix man page messKarel Zak1-6/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-27lsblk: fix copy & past bugKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-22build-sys: use libcommon.a for lslocksKarel Zak1-6/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-20wipefs: Add --force option to force it to erase.Richard W.M. Jones2-4/+18
Commit c550f728f724360f99aae0fdb45b0589d9a347e0 added O_EXCL when opening the thing to erase. This broke the wipefs utility when used on anything which isn't an unmounted filesystem. eg. If you use it on a block device containing partitions, then it won't work because the kernel recognizes the partitions and so thinks the device is in use. This change adds the --force option which, when used, undoes the above flag change. However you still have to use --force most of the time when erasing something that isn't a plain unmounted filesystem. Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
2012-11-19uuidgen: fix --randomKarel Zak1-1/+1
Addresses: https://github.com/karelzak/util-linux/issues/20 Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-07lsblk: fix and update man page about --scsiKarel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-07lsblk: add TRANsport to --scsi outputKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-07lsblk: don't ignore disk deviceKarel Zak1-3/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-07lsblk: Add --scsi switchMilan Broz2-3/+22
The --scsi switch prints similar information to lsscsi command. Signed-off-by: Milan Broz <mbroz@redhat.com>
2012-11-07lsblk: Add vendor columnMilan Broz1-0/+9
Signed-off-by: Milan Broz <mbroz@redhat.com>
2012-11-07lsblk: Add revision columnMilan Broz1-0/+9
Signed-off-by: Milan Broz <mbroz@redhat.com>
2012-10-23misc: make readlink() usage more robustKarel Zak2-3/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-10-23lsblk: use new sysfs functions, clean up get_transport()Karel Zak1-62/+22
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-10-23lib/sysfs: add functions for SCSI host attributesKarel Zak1-42/+11
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-10-23include/sysfs: add SCSI host:channel:target:lun supportKarel Zak1-23/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-10-23lsblk: add SCSI transport type attributeMilan Broz1-0/+131
Patch adds "SCSI transport layer" similar attribute to "lsscsi -t". This is useful for script where you want to distinguish e.g. FC, iSCSI or USB devices from local disks. Detection logic is quite simplified in comparison to lsscsi but it should provide the same output (except detailed transport attributes). Signed-off-by: Milan Broz <mbroz@redhat.com>
2012-10-23lsblk: add SCSI H:C:T:L attributeMilan Broz1-0/+32
For block devices it is sometimes useful to print SCSI device ID" Host:Channel:Target:LUN. Patch adds column name HCTL which can be used in lsblk. Signed-off-by: Milan Broz <mbroz@redhat.com>
2012-10-23lsblk: add parent kernel name columnMilan Broz1-1/+6
For raw output used in scripts it is sometimes necessary to reconstruct tree of devices. Parent kernel name (PKNAME) provides needed information to do that easily. Signed-off-by: Milan Broz <mbroz@redhat.com>
2012-10-22logger: replace gethostbyname() with getaddrinfo()Sami Kerola1-17/+17
The gethostbyname() is legacy function which may be withdrawn in a future. Reference: http://pubs.opengroup.org/onlinepubs/009695399/functions/gethostbyname.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-10-19docs: add line breaks to whereis.1Sami Kerola1-2/+2
Fix to tools script checkmans.sh warning. testing: /home/src/util-linux/misc-utils/whereis.1 :120: warning [p 1, 10.8i, div `an-div', 0.0i]: can't break line Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-10-15ddate: remove from util-linuxSami Kerola3-495/+0
See RedHat bug for reasons why the ddate is cleaned up. The reference is where to get the command in future. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=823156 References: https://github.com/bo0ts/ddate Acked-by: Petr Uzel <petr.uzel@suse.cz> Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
2012-10-15wipefs: use O_EXCLKarel Zak1-1/+1
Address: https://bugzilla.redhat.com/show_bug.cgi?id=865961 Signed-off-by: Karel Zak <kzak@redhat.com>
2012-10-09fix bold style of man page referencesMike Frysinger2-3/+3
Signed-off-by: Mike Frysinger <vapier@gentoo.org>