summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* libfdisk: add firstsector utilsKarel Zak2013-03-115-42/+51
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: remove duplicate code (already in libfdisk)Karel Zak2013-03-111-27/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add generic label codeKarel Zak2013-03-116-123/+132
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add alignment codeKarel Zak2013-03-117-104/+128
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add parttype codeKarel Zak2013-03-115-217/+230
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add basic structsKarel Zak2013-03-113-105/+106
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: use debug stuff from libfdiskKarel Zak2013-03-112-42/+8Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add basic library filesKarel Zak2013-03-116-0/+191
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add fdisk GPT testKarel Zak2013-03-062-0/+197
| | | | | | | | Note that the test does not check on-disk data (by checksum) because the current fdisk does not allow to modify automatically generated partition and disk UUIDs. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add fdisk BSD testKarel Zak2013-03-062-0/+233
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update fdisk mbr testsKarel Zak2013-03-062-0/+23
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use checksum to detect rev(1) consistencyKarel Zak2013-03-052-3/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: make utmpdump TZ independentKarel Zak2013-03-042-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: keep output backwardly compatibleKarel Zak2013-03-041-1/+1
| | | | | | ...bug introduced by 8c219bf463dbbae412767d269bff1cdd4e4bf4a5 Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update ipcs (reorder default output)Karel Zak2013-03-041-11/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update libblkid PT testsKarel Zak2013-03-045-5/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update UDF testKarel Zak2013-03-041-0/+5
| | | | | | .. blkid now returns infor from ISO header too. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update ISO testsKarel Zak2013-03-043-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'master' of https://github.com/zec/util-linuxKarel Zak2013-03-042-15/+31
|\
| * libblkid: use correct block size for UDF probeZachary Catlin2013-03-022-15/+31
| | | | | | | | | | | | | | | | | | | | | | In UDF, Volume Structure Descriptors are always 2048 bytes long (ECMA-167, 3rd ed., §2/9.1), while filesystem sectors are the same size as the sectors of the underlying media (e.g., UDF 2.01 §1.3.2). Before this commit, the block size was estimated from VSD offsets, which gives incorrect answers for non-optical media. Now, the UDF probe uses the device block size by default, falling back to 2048-byte sectors for the case of optical-disk images. Signed-off-by: Zachary Catlin <z@zc.is>
* | docs: improve wording, grammar and formatting of lsblk man pageBenno Schulenberg2013-03-041-58/+78
| | | | | | | | | | | | Also sort the options alphabetically. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | docs: improve grammar and formatting of explanation of "-o +list"Benno Schulenberg2013-03-043-6/+6
| | | | | | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | build-sys: add exec_shell.h to distributionBernhard Voelker2013-03-041-0/+1
| | | | | | | | Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* | unshare: tweak styleMike Frysinger2013-03-041-3/+3
| | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* | unshare(1): delete empty NOTES sectionMike Frysinger2013-03-041-1/+0Star
| | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* | login: remove file descriptor leak [cppcheck]Sami Kerola2013-03-041-1/+3
| | | | | | | | | | | | [login-utils/login.c:510]: (error) Resource leak: fd Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | wall: use xgethostname()Sami Kerola2013-03-041-4/+3Star
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | readprofile: fix --reest (--reset) typoKarel Zak2013-03-041-1/+1
|/ | | | | Reported-by: Branislav Blaskovic <notifications@github.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: ignore name=value if only 'name' is expectedKarel Zak2013-02-281-1/+21
| | | | | | | | | | | | For example mount /srv/www /mnt -o rw,group=woven,dev,suid the group= should not be interpreted as userspace mount option, because umount(8) expects 'group' (without =<value>). Reported-by: Jan Engelhardt <jengelh@inai.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* umount: add note about namespaces too --all-targetsKarel Zak2013-02-272-6/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update deprecated.txtKarel Zak2013-02-261-0/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add umount --all-targets testsKarel Zak2013-02-265-0/+137
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* umount: add --all-targetsKarel Zak2013-02-262-59/+136
| | | | | | | | | | | | | | | | | | | | | The same source (whole filesystem or filesystems subvolume) could be mounted on more targets (mountpoints). For example bind mounts or btrfs sub-volumes. If you want to detach the source device from the system then you need to unmount all the mountpoints. umount --all-targets <device|mountpoint> provides this functionality. This option could be used together with --recursive. Then all nested mountpoints within the filesystem are unmounted too. For example: umount --recursive --all-targets /dev/sdb1 should be a way how to make the device unmounted at all. Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: export umount mountpoint look up codeKarel Zak2013-02-263-25/+61
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: don't prepare update for empty mtab/utab on umountKarel Zak2013-02-261-3/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: optimize tab files parsingKarel Zak2013-02-263-20/+33
| | | | | | | - ignore empty files - ignore empty tables Signed-off-by: Karel Zak <kzak@redhat.com>
* umount: improve --recursive docsKarel Zak2013-02-251-1/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'patch-1' of https://github.com/dtrebbien/util-linuxKarel Zak2013-02-203-0/+11
|\ | | | | | | | | * 'patch-1' of https://github.com/dtrebbien/util-linux: Implement mempcpy() in terms of memcpy() if mempcpy() is unavailable
| * Implement mempcpy() in terms of memcpy() if mempcpy() is unavailableDaniel Trebbien2013-01-313-0/+11
| |
* | add missing rpmatch.h everywhere it needs to beWilliam Pitcock2013-02-203-0/+3
| | | | | | | | | | Signed-off-by: William Pitcock <nenolod@dereferenced.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* | libblkid: add debug messages for "idmag" stuff and btrfsKarel Zak2013-02-202-1/+5
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | libblkid: make backup superblock visible for wipefs(8) onlyKarel Zak2013-02-193-0/+12
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lib/tty: don't truncate output on non-terminalsKarel Zak2013-02-192-2/+9
| | | | | | | | | | | | | | | | | | | | | | for example: $ findmnt | cat $ lslocks > foo the output should not be truncated. Signed-off-by: Karel Zak <kzak@redhat.com>
* | libblkid: add blkid_probe_step_back to documentationKarel Zak2013-02-191-3/+4
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | libblkid: return disk ID/UUID by PT binary interfaceKarel Zak2013-02-199-4/+58
| | | | | | | | | | | | Add blkid_parttable_get_id() function. Signed-off-by: Karel Zak <kzak@redhat.com>
* | findmnt: allow to read (PART)UUID/LABEL from udev DBKarel Zak2013-02-182-14/+78
| | | | | | | | | | | | | | | | | | | | | | Currently findmnt uses libmount to get filesystem properties (and libmount uses libblkid). This works as expected, but root permissions are required to read the tags from the devices. It seems better to read the information from udev db and use libblkid as fallback solution only. Signed-off-by: Karel Zak <kzak@redhat.com>
* | lsblk: resuse udev handlerKarel Zak2013-02-181-4/+9
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | docs: add missing information about -o +<list>Karel Zak2013-02-182-0/+6
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lslocks: support -o +<list> conventionKarel Zak2013-02-182-5/+9
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lslocks: add BLOCKER columnKarel Zak2013-02-182-21/+44
| | | | | | | | | | | | BLOCKER - PID of the process blocking the lock Signed-off-by: Karel Zak <kzak@redhat.com>