Karel Zak
8adbcf0ce9
libfdisk: add generic label code
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 11:20:40 +01:00
Karel Zak
9475cc78ff
libfdisk: add alignment code
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 11:20:40 +01:00
Karel Zak
a5fe1b3f1d
libfdisk: add parttype code
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 11:20:40 +01:00
Karel Zak
a8019843ab
libfdisk: add basic structs
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 11:20:40 +01:00
Karel Zak
f3744ac569
fdisk: use debug stuff from libfdisk
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 11:20:40 +01:00
Karel Zak
d56a7c2330
libfdisk: add basic library files
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 11:20:40 +01:00
Karel Zak
9dd068103e
tests: add fdisk GPT test
...
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>
2013-03-06 14:36:23 +01:00
Karel Zak
0385dcf0ad
tests: add fdisk BSD test
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-06 14:01:41 +01:00
Karel Zak
7a8ba79e98
tests: update fdisk mbr tests
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-06 12:32:34 +01:00
Karel Zak
7cabfd8677
tests: use checksum to detect rev(1) consistency
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-05 09:38:46 +01:00
Karel Zak
02658d9bb5
tests: make utmpdump TZ independent
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-04 13:10:09 +01:00
Karel Zak
65f25186d5
ionice: keep output backwardly compatible
...
...bug introduced by 8c219bf463
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-04 12:58:12 +01:00
Karel Zak
c1e12ecf2f
tests: update ipcs (reorder default output)
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-04 12:53:31 +01:00
Karel Zak
d0a7dc61f5
tests: update libblkid PT tests
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-04 12:49:11 +01:00
Karel Zak
cb768d0583
tests: update UDF test
...
.. blkid now returns infor from ISO header too.
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-04 12:45:13 +01:00
Karel Zak
a4eb4f81a5
tests: update ISO tests
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-04 12:44:34 +01:00
Karel Zak
7c5dec2fa2
Merge branch 'master' of https://github.com/zec/util-linux
2013-03-04 12:40:38 +01:00
Benno Schulenberg
ceefa682b4
docs: improve wording, grammar and formatting of lsblk man page
...
Also sort the options alphabetically.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-03-04 12:33:31 +01:00
Benno Schulenberg
3768420374
docs: improve grammar and formatting of explanation of "-o +list"
...
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-03-04 12:33:25 +01:00
Bernhard Voelker
96f4747712
build-sys: add exec_shell.h to distribution
...
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
2013-03-04 12:28:39 +01:00
Mike Frysinger
2eefe5170a
unshare: tweak style
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-03-04 12:28:37 +01:00
Mike Frysinger
47535d77d2
unshare(1): delete empty NOTES section
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-03-04 12:28:36 +01:00
Sami Kerola
747168d444
login: remove file descriptor leak [cppcheck]
...
[login-utils/login.c:510]: (error) Resource leak: fd
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-03-04 12:28:34 +01:00
Sami Kerola
2281e1eda3
wall: use xgethostname()
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-03-04 12:28:32 +01:00
Karel Zak
9b80bef687
readprofile: fix --reest (--reset) typo
...
Reported-by: Branislav Blaskovic <notifications@github.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-04 12:25:47 +01:00
Zachary Catlin
5a45eb2d2c
libblkid: use correct block size for UDF probe
...
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>
2013-03-01 21:54:00 -05:00
Karel Zak
6a83f8ecd7
libmount: ignore name=value if only 'name' is expected
...
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>
2013-02-28 12:55:30 +01:00
Karel Zak
6f7bce8651
umount: add note about namespaces too --all-targets
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-27 11:23:33 +01:00
Karel Zak
956e582874
docs: update deprecated.txt
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-26 15:28:05 +01:00
Karel Zak
e0688353db
tests: add umount --all-targets tests
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-26 14:59:07 +01:00
Karel Zak
4eb49f6392
umount: add --all-targets
...
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>
2013-02-26 14:50:26 +01:00
Karel Zak
6506a86601
libmount: export umount mountpoint look up code
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-26 14:19:05 +01:00
Karel Zak
2b90c471de
libmount: don't prepare update for empty mtab/utab on umount
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-26 14:17:42 +01:00
Karel Zak
dad88cb357
libmount: optimize tab files parsing
...
- ignore empty files
- ignore empty tables
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-26 14:16:53 +01:00
Karel Zak
fd2b0ce5d7
umount: improve --recursive docs
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-25 11:17:27 +01:00
Karel Zak
d48f6c5db8
Merge branch 'patch-1' of https://github.com/dtrebbien/util-linux
...
* 'patch-1' of https://github.com/dtrebbien/util-linux :
Implement mempcpy() in terms of memcpy() if mempcpy() is unavailable
2013-02-20 13:07:07 +01:00
William Pitcock
51924a4ef0
add missing rpmatch.h everywhere it needs to be
...
Signed-off-by: William Pitcock <nenolod@dereferenced.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-20 13:04:02 +01:00
Karel Zak
a4dc853a4d
libblkid: add debug messages for "idmag" stuff and btrfs
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-20 10:43:30 +01:00
Karel Zak
6c4581b695
libblkid: make backup superblock visible for wipefs(8) only
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-19 15:51:51 +01:00
Karel Zak
3785056ca8
lib/tty: don't truncate output on non-terminals
...
for example:
$ findmnt | cat
$ lslocks > foo
the output should not be truncated.
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-19 14:10:24 +01:00
Karel Zak
9148b9bb47
libblkid: add blkid_probe_step_back to documentation
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-19 13:12:31 +01:00
Karel Zak
583120378d
libblkid: return disk ID/UUID by PT binary interface
...
Add blkid_parttable_get_id() function.
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-19 13:09:48 +01:00
Karel Zak
e346233ea2
findmnt: allow to read (PART)UUID/LABEL from udev DB
...
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>
2013-02-18 15:00:57 +01:00
Karel Zak
d44e3391b7
lsblk: resuse udev handler
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-18 13:37:00 +01:00
Karel Zak
36fb10074c
docs: add missing information about -o +<list>
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-18 13:30:00 +01:00
Karel Zak
e68948e146
lslocks: support -o +<list> convention
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-18 13:21:42 +01:00
Karel Zak
7badb909e2
lslocks: add BLOCKER column
...
BLOCKER - PID of the process blocking the lock
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-18 13:12:01 +01:00
Karel Zak
45b6445fe1
libmount: fix a mem leak
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-18 12:59:33 +01:00
Karel Zak
6bf463c54c
fsck.cramfs: add dummy -a -y for compatibility
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-18 12:18:29 +01:00
Karel Zak
55c0d16bab
lslocks: detect blocked locks, fix /proc/locks parser
...
$ flock foo -c "sleep 100" & flock foo -c "sleep 100"
old version:
$ lslocks
lslocks: failed to parse pid: 'WRITE'
new version:
COMMAND PID TYPE SIZE MODE M START END PATH
[...]
flock 1318 FLOCK 0B WRITE* 0 0 0 /home/projects/
flock 1319 FLOCK 0B WRITE 0 0 0 /home/projects/
The asterisk (e.g. WRITE*) is used for blocked processes.
Reported-by: Mantas Mikulenas <grawity@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-14 16:29:51 +01:00