Changes between v2.24 and v2.25-rc1 ----------------------------------- commit 4ee839dfe2ccf77d49e3875ce9eaebe36dd19f4b Author: Karel Zak Date: Wed Jun 18 14:40:28 2014 +0200 build-sys: release++ (v2.25-rc1) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit a6fdc280ea359225f4fb43c62357e1f6e24a2f5a Author: Karel Zak Date: Wed Jun 18 14:38:55 2014 +0200 docs: add v2.25-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.25-ReleaseNotes | 1139 +++++++++++++++++++++++++++++ 1 file changed, 1139 insertions(+) commit bddcbbf4ae82651708b09211dcc3e88f125165e9 Author: Karel Zak Date: Wed Jun 18 13:16:03 2014 +0200 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) commit 0ed2f80bd043d55a6e81787a64694a073b395c69 Author: Karel Zak Date: Wed Jun 18 13:11:17 2014 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 27246 ++++++++++++++++++++++++------------------------ po/cs.po | 25817 ++++++++++++++++++++++++---------------------- po/da.po | 23800 +++++++++++++++++++++--------------------- po/de.po | 27144 +++++++++++++++++++++++++----------------------- po/es.po | 27244 ++++++++++++++++++++++++------------------------ po/et.po | 20130 ++++++++++++++++++------------------ po/eu.po | 21369 +++++++++++++++++++------------------- po/fi.po | 27230 ++++++++++++++++++++++++------------------------ po/fr.po | 28295 +++++++++++++++++++++++++------------------------- po/gl.po | 13546 ++++++++++++------------ po/hr.po | 12428 +++++++++++----------- po/hu.po | 27412 ++++++++++++++++++++++++------------------------ po/id.po | 27716 ++++++++++++++++++++++++------------------------- po/it.po | 26194 +++++++++++++++++++++++----------------------- po/ja.po | 27471 ++++++++++++++++++++++++------------------------ po/nl.po | 26571 +++++++++++++++++++++++------------------------ po/pl.po | 25972 +++++++++++++++++++++++----------------------- po/pt_BR.po | 25726 +++++++++++++++++++++++---------------------- po/ru.po | 23683 +++++++++++++++++++++--------------------- po/sl.po | 25513 ++++++++++++++++++++++----------------------- po/sv.po | 23008 +++++++++++++++++++++-------------------- po/tr.po | 25400 +++++++++++++++++++++++---------------------- po/uk.po | 26294 +++++++++++++++++++++++----------------------- po/util-linux.pot | 10892 ++++++++++---------- po/vi.po | 26669 +++++++++++++++++++++++------------------------ po/zh_CN.po | 24910 +++++++++++++++++++++++--------------------- po/zh_TW.po | 29226 +++++++++++++++++++++++++++------------------------- 27 files changed, 331880 insertions(+), 325026 deletions(-) commit 5d768cf9fca050eee87b4128b63374ad440e0f06 Author: Wylmer Wang Date: Wed Jun 18 13:02:37 2014 +0200 po: update zh_CN.po (from translationproject.org) po/zh_CN.po | 2281 +++++++++++++++++++++++++++++------------------------------ 1 file changed, 1102 insertions(+), 1179 deletions(-) commit 54ca8ddeec45443c8eb30cfaf981f7ac3b2f6908 Author: Rafael Ferreira Date: Wed Jun 18 13:02:37 2014 +0200 po: update pt_BR.po (from translationproject.org) po/pt_BR.po | 4389 ++++++++++++++++++++++++----------------------------------- 1 file changed, 1798 insertions(+), 2591 deletions(-) commit 9a0c2a866a2a1163d23515528afd5da08135b022 Author: Takeshi Hamasaki Date: Wed Jun 18 13:02:37 2014 +0200 po: update ja.po (from translationproject.org) po/ja.po | 13841 ++++++++++++++++++++++--------------------------------------- 1 file changed, 4956 insertions(+), 8885 deletions(-) commit c9500cbd57502d4f0c40b61d15b2a7671e75ea85 Author: Mario Blättermann Date: Wed Jun 18 13:02:37 2014 +0200 po: update de.po (from translationproject.org) po/de.po | 11503 ++++++++++++++++++++++++++----------------------------------- 1 file changed, 4879 insertions(+), 6624 deletions(-) commit ed1c96deaec920c3038797053f7243e2ef18a659 Author: Joe Hansen Date: Wed Jun 18 13:02:36 2014 +0200 po: update da.po (from translationproject.org) po/da.po | 4776 +++++++++++++++----------------------------------------------- 1 file changed, 1155 insertions(+), 3621 deletions(-) commit 1a156983e22a65f66580e971ab4a8843968e3a18 Author: Petr Písař Date: Wed Jun 18 13:02:36 2014 +0200 po: update cs.po (from translationproject.org) po/cs.po | 2329 ++++++++++++++++++++++---------------------------------------- 1 file changed, 819 insertions(+), 1510 deletions(-) commit 8eba5feabea00b1a0a4bb6271f7da13ed96e2f44 Author: Karel Zak Date: Wed Jun 18 12:58:49 2014 +0200 mount: fix man page [checkmans] Signed-off-by: Karel Zak sys-utils/mount.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f272b32c57dcfd440f01c2eae119dce1aea5611e Author: Karel Zak Date: Wed Jun 18 12:57:42 2014 +0200 lib/fileutils: xalloc stuff in library-like code Signed-off-by: Karel Zak include/fileutils.h | 5 +++-- lib/fileutils.c | 11 +++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) commit 65322517eb6961b16a7d833332cfdae18c0dcf03 Author: Karel Zak Date: Wed Jun 18 12:51:25 2014 +0200 lscpu: fix ifdef HAVE_sys_io_h [checkconfig] Signed-off-by: Karel Zak sys-utils/lscpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b56dd06df653eaaa07dc0f35ad56a681fa2d24e4 Author: Karel Zak Date: Wed Jun 18 12:46:04 2014 +0200 tests: update build tests Signed-off-by: Karel Zak tests/expected/build-sys/config-all | 30 ++++---- tests/expected/build-sys/config-all-non-nls | 30 ++++---- tests/expected/build-sys/config-audit | 33 ++++---- tests/expected/build-sys/config-chfnsh-libuser | 31 ++++---- tests/expected/build-sys/config-chfnsh-no-password | 31 ++++---- tests/expected/build-sys/config-chfnsh-pam | 31 ++++---- tests/expected/build-sys/config-core | 33 ++++---- tests/expected/build-sys/config-devel | 30 ++++---- tests/expected/build-sys/config-devel-non-docs | 30 ++++---- tests/expected/build-sys/config-disable-all | 0 tests/expected/build-sys/config-non-libblkid | 22 +++--- tests/expected/build-sys/config-non-libmount | 24 +++--- tests/expected/build-sys/config-non-libs | 11 +-- tests/expected/build-sys/config-non-libsmartcols | 87 ++++++++++++++++++++++ tests/expected/build-sys/config-non-libuuid | 28 ++++--- tests/expected/build-sys/config-non-nls | 33 ++++---- tests/expected/build-sys/config-selinux | 33 ++++---- tests/expected/build-sys/config-slang | 33 ++++---- tests/expected/build-sys/config-static | 33 ++++---- tools/config-gen.d/non-libs.conf | 1 + 20 files changed, 364 insertions(+), 220 deletions(-) commit fd0e5ae46e406c95a4cdbc1a7b437d12ccee7909 Author: Karel Zak Date: Wed Jun 18 12:44:37 2014 +0200 build-sys: add non-libsmartcols.conf Signed-off-by: Karel Zak tools/config-gen.d/non-libsmartcols.conf | 3 +++ 1 file changed, 3 insertions(+) commit 25472aaf946d21ecfe98b8af5820f4f239ac3520 Author: Karel Zak Date: Wed Jun 18 11:27:39 2014 +0200 libblkid: fix compiler warning [-Wimplicit-function-declaration] Signed-off-by: Karel Zak libblkid/src/probe.c | 1 + libblkid/src/verify.c | 2 ++ 2 files changed, 3 insertions(+) commit e99b64e7fa7479c9259d2e7425c3b7d0d9747eba Author: Karel Zak Date: Wed Jun 18 11:25:47 2014 +0200 lib/sysfs: fix compiler warning [-Wunused-variable] Signed-off-by: Karel Zak lib/sysfs.c | 1 - 1 file changed, 1 deletion(-) commit 150e696dacafb2a2583e9c5dae736480b84d6673 Author: Karel Zak Date: Tue Jun 17 15:38:14 2014 +0200 libmount: don't touch mtab when mount -n specified Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1109367 Signed-off-by: Karel Zak libmount/src/context.c | 74 +++++++++++++++++++++++++++++++++++------- libmount/src/context_loopdev.c | 2 +- libmount/src/context_umount.c | 8 ++--- libmount/src/mountP.h | 5 +++ 4 files changed, 73 insertions(+), 16 deletions(-) commit d8ae3d977bc4a07b96c9c3e916b8d84691236878 Author: Karel Zak Date: Tue Jun 17 12:45:28 2014 +0200 tests: remove test_wholedisk Signed-off-by: Karel Zak lib/Makemodule.am | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) commit 62acb047a625059e77dc429ea83ef96786d3b228 Author: Karel Zak Date: Tue Jun 17 12:16:29 2014 +0200 build-sys: remove obsolete wholedisk.c Signed-off-by: Karel Zak disk-utils/mkswap.c | 1 - include/Makemodule.am | 1 - include/wholedisk.h | 8 ------- lib/Makemodule.am | 1 - lib/wholedisk.c | 62 --------------------------------------------------- 5 files changed, 73 deletions(-) commit 83b69e409cfe9c0e31d298d07e27cb508299f7ad Author: Karel Zak Date: Tue Jun 17 12:16:05 2014 +0200 sfdisk: use sysfs_devno_is_wholedisk() Signed-off-by: Karel Zak disk-utils/sfdisk.c | 48 ++++++++++++++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 18 deletions(-) commit a22c6eb206fb716fa42bb245d0726efcb01355a1 Author: Karel Zak Date: Tue Jun 17 12:15:59 2014 +0200 fdisk: use sysfs_devno_is_wholedisk() Signed-off-by: Karel Zak disk-utils/fdisk.c | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) commit b55e5886ea8691e32abe2415119e43b94761fd95 Author: Karel Zak Date: Tue Jun 17 12:15:01 2014 +0200 lib/sysfs: add sysfs_devno_is_wholedisk() Signed-off-by: Karel Zak include/sysfs.h | 1 + lib/sysfs.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) commit 39866431eef1329660a30567c6a8de0b60330115 Author: Karel Zak Date: Tue Jun 17 11:20:32 2014 +0200 lib/sysfs: add sysfs_devno_is_lvm_private() from libblkid Signed-off-by: Karel Zak include/sysfs.h | 2 ++ lib/sysfs.c | 28 ++++++++++++++++++++++++++++ libblkid/src/blkidP.h | 1 - libblkid/src/devno.c | 29 ----------------------------- libblkid/src/probe.c | 2 +- libblkid/src/verify.c | 2 +- 6 files changed, 32 insertions(+), 32 deletions(-) commit 097e7f2ff48a31cdbd3f92236388fbc2c8e986c3 Author: Karel Zak Date: Mon Jun 16 15:47:50 2014 +0200 findmnt: add --nocanonicalize to avoid realpath() * in some cases is realpath() overkill * sometimes you want to search for explicitly specified paths (e.g. "findmnt --fstab /mnt/symlink") rather than for real paths * you want to avoid readlink() and stat() on NFS Signed-off-by: Karel Zak misc-utils/findmnt.8 | 4 ++++ misc-utils/findmnt.c | 36 +++++++++++++++++++++++++----------- 2 files changed, 29 insertions(+), 11 deletions(-) commit 1469736053d9c14b5a74117048168ece63cd2aac Author: Karel Zak Date: Mon Jun 16 15:18:20 2014 +0200 build-sys: fix smartcols.pc Signed-off-by: Karel Zak Makefile.am | 1 + 1 file changed, 1 insertion(+) commit 8675a3503dc01573aec0e94babc3d164e7dd84d1 Author: Karel Zak Date: Mon Jun 16 15:00:33 2014 +0200 build-sys: move libsmartcols.so to /lib if they exists Signed-off-by: Karel Zak libsmartcols/src/Makemodule.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6e90f2b479ed03f48e429bb7164fc7e9f402e1de Author: Thomas Petazzoni Date: Thu Jun 12 22:10:27 2014 +0200 Only move shared libraries to /lib if they exists In several Makemodule.am, there is a install-exec-hook- target whose role is to move the shared library from /usr/lib to /lib, while keeping a symbolic link /usr/lib/libuuid.so -> ../../lib/.so.. However, when util-linux is built with --enable-static --disable-shared (as is needed on noMMU platforms that don't support shared libraries), no .so is built, but the install-exec-hook-libuuid creates an invalid /usr/lib/.so symbolic link, pointing to ../../lib (yes, the directory). This causes troubles later one when other libraries/programs are compiled with -l, as gcc thinks a shared library is available because there's a file named /usr/lib/.so. Signed-off-by: Thomas Petazzoni libblkid/src/Makemodule.am | 2 +- libmount/src/Makemodule.am | 2 +- libuuid/src/Makemodule.am | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 9123621450b4e16a3a5e3e2c94692d41c6b8e856 Merge: 129c0c7 a98de96 Author: Karel Zak Date: Mon Jun 16 14:37:39 2014 +0200 Merge branch 'tests-utmp' of https://github.com/rudimeier/util-linux * 'tests-utmp' of https://github.com/rudimeier/util-linux: tests: skip some last tests if no dns support tests: split last into dns and nodns subtests tests: add utmpdump-circle test (arch independent) tests: provide missing test data for "last" on exotic archs tests: skip utmpdump tests for exotic archs tests: merge last/ and utmpdump/ into new utmp/ dir utmpdump: fix localtime() error handling commit 129c0c79f90c9a92173642c5a81e2ddbeb403eaa Merge: 58d1d54 f8d75a6 Author: Karel Zak Date: Mon Jun 16 14:33:32 2014 +0200 Merge branch 'gettext-version' of https://github.com/rudimeier/util-linux * 'gettext-version' of https://github.com/rudimeier/util-linux: build-sys: fix autopoint gettext version fun commit 58d1d54de9f95868ce51f4b798f1c50e277f6991 Author: Karel Zak Date: Thu Jun 12 11:15:00 2014 +0200 mount: more hints about default mount options to man page Signed-off-by: Karel Zak sys-utils/mount.8 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit 7734a6e3ece0da0b723dd02cf226dd99207abe13 Author: Karel Zak Date: Thu Jun 12 10:28:10 2014 +0200 rename: remove reference to mmv gtom man page It seems better to not have a reference to the program that is not available in many cases on usual Linux installation. Signed-off-by: Karel Zak misc-utils/rename.1 | 1 - 1 file changed, 1 deletion(-) commit a98de9696e1a898f925c9154e5693e73aec0779d Author: Ruediger Meier Date: Wed Jun 11 19:28:20 2014 +0200 tests: skip some last tests if no dns support Signed-off-by: Ruediger Meier tests/functions.sh | 17 +++++++++++++++++ tests/ts/hwclock/systohc | 20 +------------------- tests/ts/utmp/last | 5 +++++ tests/ts/utmp/last-ipv6 | 5 +++++ 4 files changed, 28 insertions(+), 19 deletions(-) commit fa57e908dad47fea5d7115148ec591c729ae44c6 Author: Ruediger Meier Date: Wed Jun 11 19:22:41 2014 +0200 tests: split last into dns and nodns subtests Signed-off-by: Ruediger Meier tests/expected/utmp/last | 138 ------------------------------------ tests/expected/utmp/last-dns | 12 ++++ tests/expected/utmp/last-ipv6 | 20 ------ tests/expected/utmp/last-ipv6-dns | 12 ++++ tests/expected/utmp/last-ipv6-nodns | 8 +++ tests/expected/utmp/last-nodns | 126 ++++++++++++++++++++++++++++++++ tests/ts/utmp/last | 18 ++--- tests/ts/utmp/last-ipv6 | 6 +- 8 files changed, 172 insertions(+), 168 deletions(-) commit 0e2a16094f685c80232b8fbf7d59b1a46ffc31cb Author: Ruediger Meier Date: Wed Jun 11 16:08:29 2014 +0200 tests: add utmpdump-circle test (arch independent) This one is a completely arch independent conversion round: text -> bin -> text -> bin Signed-off-by: Ruediger Meier tests/expected/utmp/utmpdump-circle | 1 + tests/ts/utmp/utmpdump-circle | 42 +++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) commit 85f7fb663689623f28b0ae42a3f3b1e5962105d6 Author: Ruediger Meier Date: Wed Jun 11 20:26:04 2014 +0200 tests: provide missing test data for "last" on exotic archs Signed-off-by: Ruediger Meier tests/ts/utmp/last | 11 +++++++++-- tests/ts/utmp/last-ipv6 | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) commit 45b1ca8eb045c87307deed1dfe1497314d64cbd6 Author: Ruediger Meier Date: Wed Jun 11 15:36:42 2014 +0200 tests: skip utmpdump tests for exotic archs We introduce utmp_functions.sh and skip tests if size of utmp struct does not match our wtmp test data. Signed-off-by: Ruediger Meier tests/ts/utmp/utmp_functions.sh | 18 ++++++++++++++++++ tests/ts/utmp/utmpdump-tobin | 5 ++--- tests/ts/utmp/utmpdump-tobin-ipv6 | 5 ++--- tests/ts/utmp/utmpdump-totxt | 5 ++--- tests/ts/utmp/utmpdump-totxt-ipv6 | 5 ++--- 5 files changed, 26 insertions(+), 12 deletions(-) commit 02229b5519ac77dec26d829c6be14e826d4611bc Author: Ruediger Meier Date: Wed Jun 11 17:47:34 2014 +0200 tests: merge last/ and utmpdump/ into new utmp/ dir We want to prepare and simplify utmp sepcific fixes. Beside all this renaming we also update/add some text data to have it more consistent. Signed-off-by: Ruediger Meier tests/expected/last/ipv6 | 20 ----- tests/expected/last/last | 138 -------------------------------- tests/expected/utmp/last | 138 ++++++++++++++++++++++++++++++++ tests/expected/utmp/last-ipv6 | 20 +++++ tests/expected/utmp/utmpdump-tobin | 1 + tests/expected/utmp/utmpdump-tobin-ipv6 | 1 + tests/expected/utmp/utmpdump-totxt | 10 +++ tests/expected/utmp/utmpdump-totxt-ipv6 | 2 + tests/expected/utmpdump/ipv6tobin | 1 - tests/expected/utmpdump/ipv6totxt | 2 - tests/expected/utmpdump/to-binary | 1 - tests/expected/utmpdump/to-text | 10 --- tests/ts/last/ipv6 | 52 ------------ tests/ts/last/ipv6-input.BE | Bin 768 -> 0 bytes tests/ts/last/ipv6-input.LE | Bin 768 -> 0 bytes tests/ts/last/last | 76 ------------------ tests/ts/last/wtmp.BE | Bin 7296 -> 0 bytes tests/ts/last/wtmp.LE | Bin 7296 -> 0 bytes tests/ts/utmp/last | 76 ++++++++++++++++++ tests/ts/utmp/last-ipv6 | 52 ++++++++++++ tests/ts/utmp/txt-a | 19 +++++ tests/ts/utmp/txt-b | 10 +++ tests/ts/utmp/txt-ipv6 | 2 + tests/ts/utmp/utmpdump-tobin | 33 ++++++++ tests/ts/utmp/utmpdump-tobin-ipv6 | 33 ++++++++ tests/ts/utmp/utmpdump-totxt | 29 +++++++ tests/ts/utmp/utmpdump-totxt-ipv6 | 29 +++++++ tests/ts/utmp/wtmp-a.BE | Bin 0 -> 7296 bytes tests/ts/utmp/wtmp-a.LE | Bin 0 -> 7296 bytes tests/ts/utmp/wtmp-b.BE | Bin 0 -> 3840 bytes tests/ts/utmp/wtmp-b.LE | Bin 0 -> 3840 bytes tests/ts/utmp/wtmp-ipv6.BE | Bin 0 -> 768 bytes tests/ts/utmp/wtmp-ipv6.LE | Bin 0 -> 768 bytes tests/ts/utmpdump/binary.BE | Bin 3840 -> 0 bytes tests/ts/utmpdump/binary.LE | Bin 3840 -> 0 bytes tests/ts/utmpdump/ipv6bin.BE | Bin 768 -> 0 bytes tests/ts/utmpdump/ipv6bin.LE | Bin 768 -> 0 bytes tests/ts/utmpdump/ipv6tobin | 33 -------- tests/ts/utmpdump/ipv6totxt | 29 ------- tests/ts/utmpdump/ipv6txt | 2 - tests/ts/utmpdump/text | 10 --- tests/ts/utmpdump/to-binary | 33 -------- tests/ts/utmpdump/to-text | 29 ------- 43 files changed, 455 insertions(+), 436 deletions(-) commit 18df1cc77c20acf0d80cc5c5ef38afa2f3fa148e Author: Ruediger Meier Date: Wed Jun 11 17:31:56 2014 +0200 utmpdump: fix localtime() error handling If current TZ has no representation of a given time_t then localtime() would return NULL and break the next strftime(). In practice this happens very likely on systems with 64bit time_t when parsing broken binary data. Seen on aarch64 (and probably s390) using our (incompatible) test wtmp data. Signed-off-by: Ruediger Meier login-utils/utmpdump.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit f8d75a6647830b496d6ff4697925204cb4d420d9 Author: Ruediger Meier Date: Tue Jun 10 18:44:08 2014 +0200 build-sys: fix autopoint gettext version fun We avoid or fix many portability issues. The first more generic "sort --version-sort" solution was almost useless anyway because autopoint itself can also only deal with a few hardcoded versions. Signed-off-by: Ruediger Meier autogen.sh | 21 +++++++++------------ configure.ac | 2 +- 2 files changed, 10 insertions(+), 13 deletions(-) commit 91c520bc9b90dea6d93d41b1437ae25ec948e639 Author: Ruediger Meier Date: Tue Jun 10 12:08:51 2014 +0200 build-sys: use gettext 0.18.3 if possible We add a little hack for backward compatibility on systems with older gettext installed See 0576dbd3 and 81ed13ed. Signed-off-by: Ruediger Meier autogen.sh | 31 ++++++++++++++++++++++++++++++- configure.ac | 3 ++- 2 files changed, 32 insertions(+), 2 deletions(-) commit d2a8b8d145435a39b489c51b200d80ab18bda9c7 Author: Karel Zak Date: Tue Jun 10 13:32:02 2014 +0200 libblkid: cleanup internal return codes Signed-off-by: Karel Zak libblkid/src/partitions/partitions.c | 30 +++++++++++++++++++----------- libblkid/src/superblocks/superblocks.c | 23 +++++++++++------------ libblkid/src/topology/topology.c | 8 ++++---- 3 files changed, 34 insertions(+), 27 deletions(-) commit 20e1c3dc03399d6988ef35dedc1364cfc12e9263 Author: Karel Zak Date: Tue Jun 10 12:16:59 2014 +0200 libblkid: ignore private LVM devices The virtual private LVM devices do not contain any blkid relevant data and it does not make any sense to scan for superblocks or partitions on the devices, because we can interpret data from the devices in bad way. Unfortunately, for LVM has "private" very special meaning. The private LVM devices are accessible and readable (according to LVM guys it's feature, because debugging etc.). The problem is pretty visible with LVM thin provisioning where a virtual pool device contains segments from the top-level thin devices. Mountable top-level LVM-thin device: # blkid -o udev -p /dev/mapper/vg-thin1 ID_FS_UUID=57ed6490-903b-416c-91d2-6d06804ec60c ID_FS_TYPE=ext4 Virtual private LVM-pool device (contains data from all thin devices): # blkid -o udev -p /dev/mapper/vg-pool0 ID_FS_UUID=57ed6490-903b-416c-91d2-6d06804ec60c ID_FS_TYPE=ext4 ... this is incorrect, vg-pool0 is unmountable. LVM uses special UUID suffixes for private devices. All devices with uuid in format "LVM--" are private. This patch modifies libblkid to not scan such devices. The high-level API ignores such devices at all now. The low-level API allows to assign the device to blkid_prober, but all scan functions always return nothing and library does not read anything from the device. The another functionality (get parental device, topology, sector sizes, etc.) still works as expected. The change affects only probing code. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1101345 Signed-off-by: Karel Zak libblkid/src/blkidP.h | 2 ++ libblkid/src/devno.c | 28 ++++++++++++++++++++++++++++ libblkid/src/partitions/partitions.c | 17 +++++++++++++++-- libblkid/src/probe.c | 15 ++++++++++++++- libblkid/src/superblocks/superblocks.c | 6 ++++++ libblkid/src/verify.c | 4 ++++ 6 files changed, 69 insertions(+), 3 deletions(-) commit 180b3a7e4735666046845634ed90ae24d0a14114 Author: Ruediger Meier Date: Thu May 29 19:52:52 2014 +0200 tests: fix fdisk/bsd for big endian systems Signed-off-by: Ruediger Meier tests/ts/fdisk/bsd | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit 69a5de423c3f0edb8d371ee9af01beac8f0a2233 Merge: 115b801 dd68764 Author: Karel Zak Date: Mon Jun 9 12:18:47 2014 +0200 Merge branch 'travis-functions' of https://github.com/rudimeier/util-linux commit 115b801f390bf922aa1c4adc2559e535378d2eb0 Merge: 2c94e10 75f7c3e Author: Karel Zak Date: Mon Jun 9 12:13:18 2014 +0200 Merge branch 'tests-hwclock' of https://github.com/rudimeier/util-linux * 'tests-hwclock' of https://github.com/rudimeier/util-linux: tests: rewrite hwclock test commit 2c94e10b50de89fbcf366e73ab8cf1f86ee3eb83 Author: Karel Zak Date: Mon Jun 9 12:09:18 2014 +0200 libfdisk: fix fdisk_context_assign_device() comment Signed-off-by: Karel Zak libfdisk/src/context.c | 4 ---- 1 file changed, 4 deletions(-) commit 3bbdae633f4a1dda5f95ee6c61f18a1c8ef12250 Author: Karel Zak Date: Mon Jun 9 11:59:44 2014 +0200 fsck: use private lock file rather than whole-disk directly It seems overkill to lock directly whole-disk device (for -l) when we use the lock only to synchronize fsck instances. It's fsck private business, so don't use system files, but let's use private /run/fsck/.lock file. Addresses: https://bugs.freedesktop.org/show_bug.cgi?id=79576 Signed-off-by: Karel Zak disk-utils/Makemodule.am | 2 +- disk-utils/fsck.8 | 5 ++-- disk-utils/fsck.c | 70 +++++++++++++++++++++++++++++++++++++----------- 3 files changed, 58 insertions(+), 19 deletions(-) commit d4eaabc86ad36af8f2d0e37ebfc56d53d5a8a21d Author: Karel Zak Date: Mon Jun 9 11:54:32 2014 +0200 lib/fileutils: add stripoff_last_component() from libmount Signed-off-by: Karel Zak include/fileutils.h | 1 + lib/fileutils.c | 12 ++++++++++++ lib/sysfs.c | 12 +----------- libmount/src/mountP.h | 4 ---- libmount/src/tab.c | 1 + libmount/src/utils.c | 12 ------------ 6 files changed, 15 insertions(+), 27 deletions(-) commit 934530c7e831e6265142df14e08246dcb4952872 Author: Karel Zak Date: Mon Jun 9 10:59:18 2014 +0200 lib/fileutils: add mkdir_p() from libmount disk-utils/fsck.c | 2 +- include/fileutils.h | 2 ++ lib/fileutils.c | 36 ++++++++++++++++++++++++++++++++++++ libmount/src/context.c | 1 + libmount/src/utils.c | 38 +------------------------------------- 5 files changed, 41 insertions(+), 38 deletions(-) commit ce6d69ddac954475a40510286946b4bf1d2bb976 Author: Phillip Susi Date: Tue Jun 3 09:55:52 2014 -0400 flock: document exit status of flock in man page The man page did not indicate that the exit status of flock is actually that of the child command, when one is run. sys-utils/flock.1 | 3 +++ 1 file changed, 3 insertions(+) commit 0b166f2482541689bce6de90430214ebc7de46d1 Author: Ruediger Meier Date: Sun Jun 8 15:32:48 2014 +0200 libfdisk: fix bsd_translate_fstype() for alpha Reported-by: Tobias Klausmann Signed-off-by: Ruediger Meier libfdisk/src/bsd.c | 2 ++ 1 file changed, 2 insertions(+) commit 75f7c3ed840a2db11f56190b4bf016af4086a344 Author: Ruediger Meier Date: Fri Jun 6 13:40:48 2014 +0200 tests: rewrite hwclock test Major changes: - don't use deprecated ntpdate but sntp client - don't update sys time from ntp, just compare offsets - now hwclock is the only command which needs root permissions - resolve ntp server to one fixed IP to get comparable offsets always from the same remote machine - don't enter the systohc/hctosys loop if not even --show works - verbose but not too ugly debug output Note, maybe later the resolve_host function could be moved to functions.sh because other tests (e.g. last) should check whether dns is available. Signed-off-by: Ruediger Meier tests/ts/hwclock/systohc | 97 +++++++++++++++++++++++++++++++++++++----------- 1 file changed, 76 insertions(+), 21 deletions(-) commit a9add961e9e95350171488925582e469e44bb2b5 Author: Nicolas Boichat Date: Sat Jun 7 21:38:00 2014 +0800 umount: Make sure exit code does not overflow POSIX exit code is only 8-bit, and since umount sums up error codes, it can sometimes report success (exit code 0) even though a number of operations failed. For example, running, in an empty directory: umount `seq 1 7` returns 224 (7*32), since none of the 7 mount point exists but umount `seq 1 8` returns 0 (8*32=256) This patch clips the return value to 255. Signed-off-by: Nicolas Boichat sys-utils/umount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit dd68764c592dfc9992e1be333b2ce4bbd00eecb5 Author: Ruediger Meier Date: Mon Jun 2 00:58:01 2014 +0200 travis-ci: refactor and add .travis-functions.sh Travis yaml syntax, where we can only use shell one-liners, is awful and ugly. We add a real shell script and source it from .travis.yml. This commit squashes a lot changes because we don't want to pollute history with this meta CI stuff. Highlights of this commit: - enable make distcheck - cleanup configure options (enable all progs, with python and docs) - shorter config.log dump - out-of-tree build supported - workaround broken libtool on travis host - now it's easy to add temporary debugging stuff - testing locally is possible now What are we testing now: - gcc and clang compiler - configure mostly with --enable-all-programs, --with-python and --enable-gtk-doc - make check with and without root permissions - make distcheck - make install (with and without --prefix as well as DESTDIR=...) - usually we always build in-tree but distcheck does out-of-tree What do we want/expect at all: - This travis setup is intended to always work without fixing or updating this build script all the time. Thats why we only use a few configure flags. - We want to avoid predictable failures on travis host to not make developers tired of this machinery. Any tested feature which is known to be (sometimes) broken should be fixed or skipped as soon as possible. - If this works like wanted then in future almost any point in master commit history should at least survive the build and common tests on this reference host/arch. Moreover we will have a comparable, deterministic build log history. This could make bisecting real bugs easier. - It's not our goal to test any kind of config flags, host setup and arch combination. This would be done better by external build scripts which do not live within the project itself. - Of course this machinery can be also used to reproduce bugs with more exotic config and host setup by pushing a debug branch with modified travis script to github. Signed-off-by: Ruediger Meier .travis-functions.sh | 128 +++++++++++++++++++++++++++++++++++++++++++++++++++ .travis.yml | 34 ++++---------- 2 files changed, 136 insertions(+), 26 deletions(-) commit 710ed55dcde95cad66a8f9bd2a7ecd223f14d653 Author: Karel Zak Date: Fri Jun 6 13:47:06 2014 +0200 libsmartcols: add debug messages Signed-off-by: Karel Zak disk-utils/cfdisk.c | 2 + disk-utils/partx.c | 1 + libsmartcols/src/cell.c | 3 ++ libsmartcols/src/column.c | 7 +++- libsmartcols/src/line.c | 15 +++++++- libsmartcols/src/smartcolsP.h | 5 +++ libsmartcols/src/table.c | 30 +++++++++++++++ libsmartcols/src/table_print.c | 83 ++++++++++++++++++++++++++++++++++-------- login-utils/lslogins.c | 2 + misc-utils/findmnt.c | 1 + misc-utils/lsblk.c | 1 + misc-utils/lslocks.c | 2 + sys-utils/losetup.c | 2 + sys-utils/lscpu.c | 5 ++- sys-utils/prlimit.c | 2 + sys-utils/swapon.c | 2 + sys-utils/wdctl.c | 2 + 17 files changed, 145 insertions(+), 20 deletions(-) commit f36de15e2f172614ba8b187b51f7791209ca3cea Author: Gui Hecheng Date: Thu Jun 5 10:05:19 2014 +0800 mount: add btrfs to mount.8 Based on Documentation/filesystems/btrfs.txt Signed-off-by: Gui Hecheng sys-utils/mount.8 | 186 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 186 insertions(+) commit ee312c654b0c9f2e516fca729cb54c6c0ce42524 Author: Karel Zak Date: Fri Jun 6 09:49:35 2014 +0200 docs: fix "behaviour" vs. "behavior" Sometimes we use "behaviour" and "behavior" in the same text, let's use "behavior" only everywhere. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1011068 Signed-off-by: Karel Zak Documentation/howto-contribute.txt | 4 ++-- NEWS | 2 +- disk-utils/mkfs.bfs.c | 2 +- lib/terminal-colors.d.5 | 2 +- libblkid/src/partitions/aix.c | 2 +- libmount/python/context.c | 4 ++-- m4/ul.m4 | 2 +- sys-utils/ctrlaltdel.c | 2 +- sys-utils/mount.8 | 28 ++++++++++++++-------------- term-utils/agetty.8 | 2 +- term-utils/script.c | 2 +- text-utils/pg.1 | 2 +- 12 files changed, 27 insertions(+), 27 deletions(-) commit 7556c9443a5550731df5de15d6d3c6850f848503 Author: Karel Zak Date: Thu Jun 5 14:32:51 2014 +0200 cfdisk: resize UI on SIGWINCH Signed-off-by: Karel Zak configure.ac | 6 ++- disk-utils/cfdisk.c | 110 ++++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 108 insertions(+), 8 deletions(-) commit d5314bf56f72ee3d4d9ca0d8f7d59a95559571af Author: Karel Zak Date: Thu Jun 5 12:13:41 2014 +0200 cfdisk: add [Sort] operation Signed-off-by: Karel Zak disk-utils/cfdisk.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) commit ee7f60034bd99dd201d30ed47fb54fcb0328af1c Merge: 4c54eff 15b2606 Author: Karel Zak Date: Wed Jun 4 14:16:22 2014 +0200 Merge branch 'misc-build-sys' of https://github.com/rudimeier/util-linux * 'misc-build-sys' of https://github.com/rudimeier/util-linux: tests: fix python tests for dist and out-of-tree builds build-sys: fix update-potfiles script build-sys: restore make distcheck's configure flags build-sys: use automake's PYTHON primary for __init__.py tests: ignore deprecated last tests: remove deprecated mount tests Conflicts: Makefile.am commit 4c54effbf709701fca7d88b2d36bfc8f4cd7f497 Author: Karel Zak Date: Wed Jun 4 13:43:15 2014 +0200 build-sys: fix with_python usage, improve logic We have to set the default withval= on the default with_python=check otherwise uninitialized value is used. Signed-off-by: Karel Zak configure.ac | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) commit da0ec90b482ad92df2d35cf9b95b07bcaf47b1d4 Author: Karel Zak Date: Wed Jun 4 11:16:48 2014 +0200 build-sys: add --enable-pylibmount * globally disable all Python bindings by --without-python * use --with-python= to specify Python version * --enable-pylibmount to override --disable-all-programs Reported-by: Ruediger Meier Signed-off-by: Karel Zak configure.ac | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) commit 15b2606c4f86dbb73abf41cdecfba7f65fd5bb22 Author: Ruediger Meier Date: Wed Jun 4 00:17:58 2014 +0200 tests: fix python tests for dist and out-of-tree builds - add python helper scripts to the dist - helper scripts are always in srcdir - python libs are in builddir - abort tests if helpers are missing Signed-off-by: Ruediger Meier Makefile.am | 1 + libmount/python/Makemodule.am | 4 ++++ tests/commands.sh | 6 +++--- tests/functions.sh | 6 +++--- tests/ts/libmount/context-py | 1 + tests/ts/libmount/context-utab-py | 2 ++ tests/ts/libmount/tabfiles-py | 1 + tests/ts/libmount/tabfiles-tags-py | 2 ++ tests/ts/libmount/update-py | 3 +-- 9 files changed, 18 insertions(+), 8 deletions(-) commit 0a8e0e8b2f336806110071eabb80bca609b97759 Author: Ruediger Meier Date: Tue Jun 3 19:07:37 2014 +0200 build-sys: fix update-potfiles script Now are using "git ls-files" to avoid finding non-project files or autoheaders which could break the dist tarball. For non-git source dirs we assume that any existing POTFILES.in is up-todate (build from tarball) or we provide at least an empty list to not be a show-stopper for builds from poor "git archive". Signed-off-by: Ruediger Meier po/update-potfiles | 42 ++++++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 10 deletions(-) commit f339d2a5c291a9e1cfa547d56c58486f1db0fc49 Author: Ruediger Meier Date: Mon Jun 2 23:59:07 2014 +0200 build-sys: restore make distcheck's configure flags They got lost with --enable-most-builds in 08b1c219. Note additionally we add --enable-gtk-doc but don't add --with-systemd because there are still many systems where systemd is not available. Signed-off-by: Ruediger Meier Makefile.am | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) commit 15cb27895dc6032992e25e46654d0cc4986dea09 Author: Ruediger Meier Date: Mon Jun 2 16:34:47 2014 +0200 build-sys: use automake's PYTHON primary for __init__.py Actually the initial reason for this commit was to remove execute permission from installed __init__.py. Now after discovering automake's _PYTHON suffix we slightly cleanup Makemodule.am and we will install byte compiled .pyc and .pyo files. Signed-off-by: Ruediger Meier .gitignore | 1 + libmount/python/Makemodule.am | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) commit b95beee7096c5a2f96cc57394524ca41f3d75721 Author: Ruediger Meier Date: Mon Jun 2 22:59:27 2014 +0200 tests: ignore deprecated last Signed-off-by: Ruediger Meier tests/ts/last/ipv6 | 2 ++ tests/ts/last/last | 2 ++ 2 files changed, 4 insertions(+) commit 2f5aac3506d3a79e4aceb07ab3964ed60c5c6f3a Author: Ruediger Meier Date: Sun Jun 1 21:43:34 2014 +0200 tests: remove deprecated mount tests Signed-off-by: Ruediger Meier tests/expected/mount/noncanonical | 2 -- tests/expected/mount/paths | 11 ----------- tests/ts/mount/noncanonical | 40 --------------------------------------- tests/ts/mount/paths | 34 --------------------------------- 4 files changed, 87 deletions(-) commit a133b51af8fb19e46cb06ea84cd5267053285f09 Author: Karel Zak Date: Tue Jun 3 12:52:33 2014 +0200 build-sys: fix ENABLE_ALL Signed-off-by: Karel Zak Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 36e4bdf018a3bc05c8d4fe78d9cd1bfc5410445e Author: Karel Zak Date: Tue Jun 3 12:41:58 2014 +0200 libsmartcols: fix docs Signed-off-by: Karel Zak libsmartcols/src/cell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7a1c36ab38961ccaf6c23fe6b7f51ac7ace7dcde Author: Karel Zak Date: Tue Jun 3 12:37:33 2014 +0200 docs: rename libs xml/version.xml to xml/version-utils.xml It seems that gtk-docs stuff is confused when we use version.xml (package version) and xml/version.xml (library version functions). Signed-off-by: Karel Zak libblkid/docs/Makefile.am | 2 +- libmount/docs/libmount-docs.xml | 2 +- libmount/docs/libmount-sections.txt | 2 +- libmount/src/version.c | 2 +- libsmartcols/docs/libsmartcols-docs.xml | 2 +- libsmartcols/docs/libsmartcols-sections.txt | 2 +- libsmartcols/src/version.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) commit 56ce2d586db01c346e82f472bd75bd03303c93ef Author: Karel Zak Date: Mon Jun 2 11:34:21 2014 +0200 buil-sys: disable in UL_BUILD_INIT() on --disable-all-programs Signed-off-by: Karel Zak m4/ul.m4 | 3 +++ 1 file changed, 3 insertions(+) commit 569ff0d3b246140daad77000a07cdde83b784753 Author: Karel Zak Date: Mon Jun 2 11:21:35 2014 +0200 build-sys: don't compile deprecated last(1) on --enable-all-programs Reported-by: Ruediger Meier Signed-off-by: Karel Zak configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 578a1691f6d9d66799634c94687c849289f3fc36 Author: Csaba Kos Date: Fri May 30 18:40:15 2014 +0900 script: fix spurious exit from input read loop on EINTR. term-utils/script.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 26ed9fb872ef30e509745c5be728588a4a4739a4 Author: Csaba Kos Date: Fri May 30 14:33:32 2014 +0900 script: fix a rare deadlock after child termination term-utils/script.c | 53 +++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 45 insertions(+), 8 deletions(-) commit f92b26c184d0101213b987601c56cf688d22f047 Author: Karel Zak Date: Fri May 30 14:17:29 2014 +0200 libsmartcols: clean up test.c example Signed-off-by: Karel Zak libsmartcols/src/test.c | 84 +++++++++++++++++-------------------------------- 1 file changed, 28 insertions(+), 56 deletions(-) commit 7cecd940bf91c5e3d2ef6fdd86a4d3472f3297c9 Author: Karel Zak Date: Fri May 30 13:50:10 2014 +0200 docs: update TODO Signed-off-by: Karel Zak Documentation/TODO | 20 -------------------- 1 file changed, 20 deletions(-) commit 3859baf9c50f6e52afee92ddef81e395164c0cea Merge: 59cbbd7 b774473 Author: Karel Zak Date: Fri May 30 12:01:27 2014 +0200 Merge branch 'lscpu-detect-v3' of https://github.com/rudimeier/util-linux * 'lscpu-detect-v3' of https://github.com/rudimeier/util-linux: lscpu: improve vmware detection tests: add lscpu IBM pSeries test data lscpu: detect OS/400 and pHyp hypervisors tests: add vbox lscpu dump lscpu: minor cleanup and improve hypervisor detection commit 59cbbd71cdfb6a6fc6901e287b300aa8d45d6606 Author: Karel Zak Date: Fri May 30 11:27:41 2014 +0200 libblkid: (zfs) let's keep compiler happy Signed-off-by: Karel Zak libblkid/src/superblocks/zfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 85aec6c702d2d0dd01e2781cdc3eeea2270d7987 Merge: cbebd20 60cb2c3 Author: Karel Zak Date: Fri May 30 11:26:43 2014 +0200 Merge branch 'warnings-squashed' of https://github.com/rudimeier/util-linux * 'warnings-squashed' of https://github.com/rudimeier/util-linux: build: fix some compiler warnings commit cbebd20d26b8d06e28e67a07050967668af7ce08 Author: Karel Zak Date: Fri May 30 10:51:53 2014 +0200 libfdisk: (gpt) fix last LBA code for S_ISREG Reported-by: Ruediger Meier Signed-off-by: Karel Zak libfdisk/src/gpt.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) commit 60cb2c37201a453a76ea12e4d4b48f7b34ebef2c Author: Ruediger Meier Date: Fri May 30 01:18:09 2014 +0200 build: fix some compiler warnings Most of them catched on 32bit gcc and icc. disk-utils/fsck.cramfs.c: printf format type lib/boottime.c: unused variables misc-utils/cal.c: set but never used sys-utils/losetup.c: set but never used sys-utils/lscpu-dmi.c: defined but not used sys-utils/switch_root.c: comparison between signed and unsigned tests/helpers/test_sysinfo.c: printf format type disk-utils/fsck.cramfs.c | 4 ++-- lib/boottime.c | 5 ++++- misc-utils/cal.c | 2 -- sys-utils/losetup.c | 2 -- sys-utils/lscpu-dmi.c | 2 ++ sys-utils/switch_root.c | 3 ++- tests/helpers/test_sysinfo.c | 2 +- 7 files changed, 11 insertions(+), 9 deletions(-) commit 27e6e446b9d3cc487917a1ae3b7114dd1ef37113 Author: Karel Zak Date: Thu May 29 15:08:26 2014 +0200 lslogins: fix pretty-print columns Signed-off-by: Karel Zak login-utils/lslogins.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit b3f4f05632bf72fe46ec8c5fd9a351fe1953d5b0 Author: Karel Zak Date: Thu May 29 15:05:10 2014 +0200 lslogins: cleanup some command line options Signed-off-by: Karel Zak login-utils/lslogins.1 | 13 +++++++++---- login-utils/lslogins.c | 42 +++++++++++++++++++++--------------------- 2 files changed, 30 insertions(+), 25 deletions(-) commit 8b13a4d89d4a0feda25db7be5a9216628fc156ad Author: Karel Zak Date: Thu May 29 14:48:45 2014 +0200 lslogins: cleanup default outputs Signed-off-by: Karel Zak login-utils/lslogins.1 | 10 +++-- login-utils/lslogins.c | 110 ++++++++++++++++++------------------------------- 2 files changed, 47 insertions(+), 73 deletions(-) commit ed374569ae5819628dcaaf6c92785d58f6a45da0 Author: Karel Zak Date: Thu May 29 14:17:41 2014 +0200 lslogins: cleanup -a output Signed-off-by: Karel Zak login-utils/lslogins.c | 125 ++++++++++++++++++++++++++++++------------------- 1 file changed, 76 insertions(+), 49 deletions(-) commit d4aa0ff138b9bc6214313e7ab23e92b4d64742ea Author: Karel Zak Date: Thu May 29 13:37:58 2014 +0200 lslogins: improve COL_PWD_WARN and COL_NPROCS desc Signed-off-by: Karel Zak login-utils/lslogins.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 74fddd8623e0d707883793acf1e77c7bba034476 Author: Karel Zak Date: Thu May 29 13:32:03 2014 +0200 lslogins: cleanup usage() Signed-off-by: Karel Zak login-utils/lslogins.1 | 3 --- login-utils/lslogins.c | 47 +++++++++++++++++++++++------------------------ 2 files changed, 23 insertions(+), 27 deletions(-) commit f7aea533f400bdaa52d7f2e7976b40b7d31f6f9d Author: Karel Zak Date: Thu May 29 13:24:35 2014 +0200 lslogins: fix nologins check Signed-off-by: Karel Zak login-utils/lslogins.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit ea24eacc6bbbd3c8477df5c499be26846bf56547 Author: Karel Zak Date: Thu May 29 13:21:57 2014 +0200 lslogins: cleanup time formats Signed-off-by: Karel Zak login-utils/lslogins.1 | 3 ++- login-utils/lslogins.c | 54 +++++++++++++++++++++----------------------------- 2 files changed, 25 insertions(+), 32 deletions(-) commit b7744730f6e4b5b91c9846f3e7c58aaa7423a167 Author: Ruediger Meier Date: Tue May 20 11:26:48 2014 +0000 lscpu: improve vmware detection This patch comes from openSUSE / SLE. Original author was probably Petr Uzel. Internal SUSE references: fate310255, sr226509 VMmware backdoor assembler code has been fixed for old clang compiler (travis), see see http://llvm.org/bugs/show_bug.cgi?id=9379 CC: Stanislav Brabec CC: Petr Uzel Signed-off-by: Ruediger Meier sys-utils/lscpu.c | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 82 insertions(+), 1 deletion(-) commit b32488c121118d17ed4d93fd3c86cedc1ea0d75d Author: Ruediger Meier Date: Wed May 28 21:15:24 2014 +0200 tests: add lscpu IBM pSeries test data Just adding missing files /proc/device-tree/ibm,partition-name /proc/device-tree/hmc-managed? to our existing lscpu-ppc64-POWER7-64cpu dump. Signed-off-by: Ruediger Meier tests/expected/lscpu/lscpu-ppc64-POWER7-64cpu | 2 ++ tests/ts/lscpu/dumps/ppc64-POWER7-64cpu.tar.gz | Bin 56662 -> 56867 bytes 2 files changed, 2 insertions(+) commit 5bd31c6d6e1e77c2843505601ee6cbb58ac74e9c Author: Ruediger Meier Date: Tue May 20 11:26:48 2014 +0000 lscpu: detect OS/400 and pHyp hypervisors This patch comes originally from openSUSE / SLE. Author was probably Petr Uzel. Internal SUSE references: fate310255, sr226509 In comparison to the original patch we have slightly corrected iSeries and pSeries detection according to Alexander Graf's comments on util-linux@vger.kernel.org. Maybe we would need to add some more code to detect pSeries emulated by Qemu/KVM. CC: Stanislav Brabec CC: Petr Uzel CC: Alexander Graf Signed-off-by: Ruediger Meier sys-utils/lscpu.c | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ sys-utils/lscpu.h | 2 ++ 2 files changed, 63 insertions(+) commit 0f0c5588113b17198d47b652c437b2137c30752c Author: Ruediger Meier Date: Tue May 20 12:18:04 2014 +0000 tests: add vbox lscpu dump Taken from openSUSE-13.1 guest in VirtualBox-4.3.10 (host=Win7): Hypervisor vendor: Oracle Virtualization type: full Dump was provides by Bernhard Voelker. CC: Bernhard Voelker Signed-off-by: Ruediger Meier tests/expected/lscpu/lscpu-vbox-win | 29 +++++++++++++++++++++++++++++ tests/ts/lscpu/dumps/vbox-win.tar.gz | Bin 0 -> 15769 bytes 2 files changed, 29 insertions(+) commit f47c6d3a5903048a3ffc2eca68f9c78641bc459b Author: Karel Zak Date: Thu May 29 12:48:40 2014 +0200 lslogins: clean up password hash check * rename to PWD-* column names * add PWD-DENY for accounts where is no possible to login by password * PWD-LOCK (was LOCKED) checks for valid but locked pawwords * LOGIN renamed to USER Signed-off-by: Karel Zak login-utils/lslogins.c | 89 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 57 insertions(+), 32 deletions(-) commit b5f81ce2f5a7a8b315045950498a1a2893fae1c9 Author: Karel Zak Date: Thu May 29 11:50:44 2014 +0200 build-sys: add sys-utils/uname26.8 to gitignore Reported-by: Sami Kerola Signed-off-by: Karel Zak sys-utils/.gitignore | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit d8b2ddb7bbe5bd818c1f8946873da9a35f1bd275 Author: Karel Zak Date: Thu May 29 11:37:15 2014 +0200 lslogins: remove --sort-by-name If we really need a sort functionality hardcoded into lslogins(1) then we need a generic sort options (like for lsblk,--sort ). Note that it seems that "lslogins | sort --key " is good enough for now as lslogins(1) does not convert any data to human readable non-precise format (like for example lsblk SIZE column etc.). Signed-off-by: Karel Zak login-utils/lslogins.1 | 3 -- login-utils/lslogins.c | 77 ++++++++++++++------------------------------------ 2 files changed, 21 insertions(+), 59 deletions(-) commit 1624245ffe7d98de23589895ed8a957320352eee Author: Karel Zak Date: Thu May 29 11:28:39 2014 +0200 lslogins: improve nologins and shadow usage * fix coding style * don't require shadow entries * check for /var/run/nologin Signed-off-by: Karel Zak login-utils/lslogins.c | 96 +++++++++++++++++++++----------------------------- 1 file changed, 40 insertions(+), 56 deletions(-) commit ae2c3b5bee7036da76b247f563172b72eaf69cb0 Author: Ruediger Meier Date: Thu May 29 02:53:18 2014 +0200 setarch: add generic support for setarch $(uname -m) ... Signed-off-by: Ruediger Meier Signed-off-by: Karel Zak sys-utils/setarch.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) commit 96ce475f96b2a3bfb8be0824e38dfc5e9892e05e Author: Ruediger Meier Date: Tue May 20 11:26:48 2014 +0000 lscpu: minor cleanup and improve hypervisor detection - add HYPER_VBOX - improve HYPER_VMWARE This patch comes from openSUSE / SLE. Original author was probably Petr Uzel. Internal SUSE references: fate310255, sr226509 CC: Stanislav Brabec CC: Petr Uzel Signed-off-by: Ruediger Meier sys-utils/lscpu.c | 29 +++++++++++++++++++++++++++-- sys-utils/lscpu.h | 3 ++- 2 files changed, 29 insertions(+), 3 deletions(-) commit 13985252bbf6c0a43983f19ee94255749f984522 Author: Karel Zak Date: Wed May 28 10:05:22 2014 +0200 build-sys: fix typo, set HAVE_LIBUUID Signed-off-by: Karel Zak configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9a4e9c9d54196fcc1343256b7c8324e97be8f10e Author: Karel Zak Date: Wed May 28 09:57:55 2014 +0200 build-sys: enable chfn and chsh by default The util-linux version (is the best:-) uses libuser, so it usable for non-local users (LDAP, etc.). Signed-off-by: Karel Zak configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 705a823a6e6af608f8f84cb9ff6571545245ae25 Merge: d6ef7d6 1ef2d4b Author: Karel Zak Date: Wed May 28 09:37:41 2014 +0200 Merge branch 'tests-stuff' of https://github.com/rudimeier/util-linux * 'tests-stuff' of https://github.com/rudimeier/util-linux: tests: split off losetup scsi_debug part tests: fix, typo schedutils/cpuset tests: run tests in deterministic order tests: ts_scsi_debug_init skip instead of die commit d6ef7d6c69201190d9623885d418f9bdcf31642e Author: Stanislav Brabec Date: Tue May 27 20:38:17 2014 +0200 losetup: don't ignore EBUSY in losetup when the loop device is given losetup ignores the EBUSY error. In the loop fo A_CREATE action, it skips the error handling when errno = EBUSY. It's OK for the case where no loop device is specified, but the error has to be handled when the device is given explicitly. Author: Takashi Iwai Signed-off-by: Stanislav Brabec sys-utils/losetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f7e21185087c30c5f13bf92009238e316f8c1cf4 Author: Stanislav Brabec Date: Tue May 27 20:38:10 2014 +0200 losetup: don't clear FD at EBUSY error in loopcxt_setup_device() loopback lib clears the existing FD unconditionally at error in loopcxt_setup_device(). This is done even after EBUSY, thus the second call actually clears the previous setup wrongly. Author: Takashi Iwai Signed-off-by: Stanislav Brabec lib/loopdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f37b357b47a4329f578722b193d4aa070057a04f Author: Karel Zak Date: Tue May 27 17:34:15 2014 +0200 lslogins: print systemd journal logs Co-Author: Ondrej Oprala Signed-off-by: Karel Zak login-utils/Makemodule.am | 4 +++ login-utils/lslogins.c | 84 +++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 81 insertions(+), 7 deletions(-) commit 1ad36b5264b74394ab33f96968665e2ccfbe1b89 Author: Karel Zak Date: Tue May 27 17:22:28 2014 +0200 build_sys: fix default estate usage Signed-off-by: Karel Zak m4/ul.m4 | 1 + 1 file changed, 1 insertion(+) commit d3a93df80d7ec30641d73e90d9dd41ffbc76d90b Author: Ondrej Oprala Date: Mon May 19 12:25:06 2014 +0200 lslogins: count per-user processes [kzak@redhat.com: - rename column, align to right] Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak login-utils/lslogins.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) commit 127b33b8759a90433a835a3fc877bbc08e4d9706 Merge: 8c19519 8e3bdb3 Author: Karel Zak Date: Tue May 27 16:23:46 2014 +0200 Merge branch 'setterm' of git://github.com/kerolasa/lelux-utiliteetit * 'setterm' of git://github.com/kerolasa/lelux-utiliteetit: docs: setterm.1 clean up manual page groff style docs: setterm.1 add options compatibility note docs: setterm.1 add missing options to manual page and remove duplicate setterm: add usage() descriptions commit 8c19519930e89a6f6230c49faf248fc06a66ab56 Merge: 07ac4aa d8bb8a0 Author: Karel Zak Date: Tue May 27 16:15:30 2014 +0200 Merge branch 'uuid' of git://github.com/kerolasa/lelux-utiliteetit commit 07ac4aa9d4f36a6618fd3ab1423bc33e3903ddbd Author: Ruediger Meier Date: Tue May 27 15:07:05 2014 +0200 cal: all output must use my_putstring Replace all puts, fputs and printf calls by my_putstring() because we don't want to mix different output channels (buffers). Signed-off-by: Ruediger Meier misc-utils/cal.c | 50 ++++++++++++++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 20 deletions(-) commit ee6369973e5adcda95f9eb0c5ead896e9f946f5d Author: Petr Uzel Date: Mon May 26 18:28:03 2014 +0200 sfdisk: suppress Linux-irrelevant warnings with -L Sfdisk prints out a warning about extended partition not starting at a cylinder boundary. Since this is irrelevant for linux, the -L option should suppress this warning. Signed-off-by: Petr Uzel disk-utils/sfdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 70e2ed25f65abe90bd0981f9024c4354ca943a37 Author: Karel Zak Date: Tue May 27 15:37:26 2014 +0200 docs: update howto regards to build-system changes Signed-off-by: Karel Zak Documentation/howto-build-sys.txt | 7 +++++++ 1 file changed, 7 insertions(+) commit 1ef2d4b4bfd198e2391abd2e9ef34b9dcd41ec9b Author: Ruediger Meier Date: Tue May 27 00:43:37 2014 +0200 tests: split off losetup scsi_debug part It's a pity that we would skip the whole test if scsi_debug is not available. Signed-off-by: Ruediger Meier tests/expected/losetup/losetup-blkdev | 3 -- tests/expected/losetup/losetup-blkdev-show | 3 ++ tests/expected/losetup/losetup-file | 3 -- tests/expected/losetup/losetup-file-show | 3 ++ tests/ts/losetup/losetup | 64 ++---------------------- tests/ts/losetup/losetup-blkdev | 80 ++++++++++++++++++++++++++++++ tests/ts/losetup/losetup_functions.sh | 7 +++ 7 files changed, 96 insertions(+), 67 deletions(-) commit d37172b1892c7dc80e3652d366d03a1f5bd6f8cc Author: Karel Zak Date: Tue May 27 15:18:35 2014 +0200 docs: remove obsolete cfdisk.txt Signed-off-by: Karel Zak Documentation/cfdisk.txt | 35 ----------------------------------- 1 file changed, 35 deletions(-) commit 7477f356cb8d39163a31b50e3616c43c1530b3ae Author: Karel Zak Date: Tue May 27 11:45:24 2014 +0200 build-sys: add missing dependencies to libsmartcols Signed-off-by: Karel Zak configure.ac | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) commit b248c9d416624fe0748bd2caf94f66bb7d0d4a30 Author: Karel Zak Date: Tue May 27 14:58:14 2014 +0200 build-sys: fix UL_BUILD_INIT() Signed-off-by: Karel Zak m4/ul.m4 | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) commit f080cc99c8b47a616c7e68c88fab29de50d3c60c Author: Karel Zak Date: Tue May 27 11:37:18 2014 +0200 build-sys: add disable-all.conf to config-gen Signed-off-by: Karel Zak tools/config-gen.d/all.conf | 3 +-- tools/config-gen.d/disable-all.conf | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) commit 08b1c219427e44594f2d732ebfd057d2a0eed7bc Author: Karel Zak Date: Tue May 27 11:34:15 2014 +0200 build-sys: add --disable-all-programs This is necessary to build only explicitly specified program/library, for example to build only libblkid.so ./configure --disable-all-programs --enable-libblkid or to build only hwclock(8): ./configure --disable-all-programs --enable-hwclock Signed-off-by: Karel Zak configure.ac | 143 +++++++++++++++++++++++++++++++---------------------------- 1 file changed, 74 insertions(+), 69 deletions(-) commit 50d096acfd4f8daa7835efda9743293663f0ece9 Author: Karel Zak Date: Tue May 27 11:33:48 2014 +0200 build-sys: add UL_DEFAULT_ENABLE() and $ul_default_estate Signed-off-by: Karel Zak m4/ul.m4 | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) commit ef60a02e581994300d8b4dd4b2cee8234c5b71b0 Author: Ruediger Meier Date: Mon May 26 14:05:45 2014 +0200 tests: fix, typo schedutils/cpuset Signed-off-by: Ruediger Meier tests/ts/schedutils/cpuset | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 667e47352431af8af0add91b6e345dc2e90182b5 Author: Ruediger Meier Date: Wed May 21 13:04:55 2014 +0000 tests: run tests in deterministic order Not really needed but it makes debugging of existing build logs much more easier. Signed-off-by: Ruediger Meier tests/run.sh | 1 + 1 file changed, 1 insertion(+) commit f80c0d38b9e61b33e358d5d539a0f22676ecb077 Author: Ruediger Meier Date: Thu May 22 01:37:17 2014 +0200 tests: ts_scsi_debug_init skip instead of die If any of these modprobe commands fails then it's not a broken test. ALso ts_die often does not work correctly from subtests which should be fixed someday too. BTW modprobe dry-run (even the real modprobe) is not reliable. Moreover now we respect blacklisted modules (-b). This error handling is not only useful to let the test-suite succeed on broken systems but also to not fail all "scsi_debug tests" after just one of them failed to umount something. Signed-off-by: Ruediger Meier tests/functions.sh | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) commit d8bb8a033fed68b75c9367f9e7fbf97a305995e9 Author: Sami Kerola Date: Sat May 24 18:49:53 2014 +0100 uuidd: do not mix signed type and unsigned code Both the strtou32_or_err() and alarm() expect timeout to be unsigned. Signed-off-by: Sami Kerola misc-utils/uuidd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 6328799db1cad5ae63de182a75183d17a0777afd Author: Sami Kerola Date: Sat May 24 18:41:08 2014 +0100 uuidgen: use type definitions from uuid.h There is no need to re-invent wheel. Signed-off-by: Sami Kerola misc-utils/uuidgen.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) commit e4faf6484719061f41624d135beb93ca821045c6 Author: Sami Kerola Date: Sat May 24 17:58:05 2014 +0100 uuidd: set options to be mutually exclusive --pid || --no-pid --debug || --quiet --random || --time Signed-off-by: Sami Kerola misc-utils/uuidd.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) commit caac20642977478444c9f8be6f70a564a5966a37 Author: Sami Kerola Date: Sat May 24 17:38:49 2014 +0100 uuidd: ensure pid file is wrote when it is requested Earlier for example this 'uuidd --pid /dev/full' worked, now error is printed about truncating not being possible for character device and assuming someone would write pid to full disk it should not be go by unnoticed. Signed-off-by: Sami Kerola misc-utils/uuidd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 8e3bdb3468040675ec35ccdf0a7dc1f2e02e1faa Author: Sami Kerola Date: Sat May 24 12:04:05 2014 +0100 docs: setterm.1 clean up manual page groff style Underline option arguments, and use bold for options. Avoid use of \f font style change in paragraphs, but use them when describing options. Reviewed-by: Benno Schulenberg Signed-off-by: Sami Kerola term-utils/setterm.1 | 267 +++++++++++++++++++++++++++++++-------------------- 1 file changed, 164 insertions(+), 103 deletions(-) commit f0dcd918eb785388dd6f70b17d42024e75ec3b4d Author: Sami Kerola Date: Sat May 24 10:58:27 2014 +0100 docs: setterm.1 add options compatibility note Both --option and -option formats are accepted. Reviewed-by: Benno Schulenberg Signed-off-by: Sami Kerola term-utils/setterm.1 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) commit b5700fe50644131245ccdd4dc0aae1b27b62a5d3 Author: Sami Kerola Date: Sat May 24 10:38:16 2014 +0100 docs: setterm.1 add missing options to manual page and remove duplicate Reviewed-by: Benno Schulenberg Signed-off-by: Sami Kerola term-utils/setterm.1 | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) commit 5edc8dbc3392484116bc0ea6bb930d0ea6a293ac Author: Sami Kerola Date: Sat May 24 10:17:01 2014 +0100 setterm: add usage() descriptions Reviewed-by: Benno Schulenberg Signed-off-by: Sami Kerola term-utils/setterm.c | 69 ++++++++++++++++++++++++++-------------------------- 1 file changed, 35 insertions(+), 34 deletions(-) commit 574528ed406f1c647853a80a94419cbaba7473e4 Merge: a37811b 0f918ac Author: Karel Zak Date: Mon May 26 12:52:18 2014 +0200 Merge branch 'fix-build-sys' of https://github.com/rudimeier/util-linux commit a37811b51f45b60480aa4017fdec6c791a6d58c0 Merge: cb1caee f6eb160 Author: Karel Zak Date: Mon May 26 12:48:35 2014 +0200 Merge branch 'setarch' of https://github.com/rudimeier/util-linux * 'setarch' of https://github.com/rudimeier/util-linux: setarch: add shortcut binary uname26 setarch: flush output streams before exec commit cb1caee2ae30d55f471f94e221b6459ad437b4e2 Merge: edecf63 4e9e0d1 Author: Karel Zak Date: Mon May 26 12:44:31 2014 +0200 Merge branch 'master' of https://github.com/rudimeier/util-linux commit edecf6376f685036304361b6b662d52d4b909b1d Author: Karel Zak Date: Mon May 26 12:17:29 2014 +0200 mount: add note about order for -a to the man page Reported-by: Phillip Susi Signed-off-by: Karel Zak sys-utils/mount.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 11402f5e0d1bf57c40a842d85728476f89f1e315 Author: Ruediger Meier Date: Tue May 20 10:23:33 2014 +0000 libblkid: detect squashfs 3 vs 4 Detect squashfs version <= 3 as squashfs3 and version >= 4 as squashfs. squashfs kernel module version 4.0 (kernel 2.6.29) is not backward compatible to open squashfs created with previous versions. Also fixed version number parsing, see $ mkdir test $ mksquashfs test test.sqsh $ blkid -p test.sqsh - test.sqsh: VERSION="1024.0" TYPE="squashfs" USAGE="filesystem" + test.sqsh: VERSION="4.0" TYPE="squashfs" USAGE="filesystem" This patch comes from openSUSE / SLE. Original author was probably Miklos Szeredi. Internal SUSE references: bnc#666893, sr226509 CC: Stanislav Brabec CC: Miklos Szeredi Signed-off-by: Ruediger Meier libblkid/src/superblocks/squashfs.c | 63 ++++++++++++++++++++++++++-------- libblkid/src/superblocks/superblocks.c | 1 + libblkid/src/superblocks/superblocks.h | 1 + 3 files changed, 50 insertions(+), 15 deletions(-) commit 4ea79d96903b488d2f03bce8febee73681303cd2 Author: Karel Zak Date: Mon May 26 11:43:27 2014 +0200 tests: skip umount-alltargets on regular mtab Signed-off-by: Karel Zak tests/ts/mount/umount-alltargets | 2 ++ 1 file changed, 2 insertions(+) commit fd7c492401b75f606908ed9793cb87e0a3c2dbd8 Author: Karel Zak Date: Mon May 26 11:37:02 2014 +0200 umount: add info that --all-targets works with mtab symlink only Reported-by: Ruediger Meier Signed-off-by: Karel Zak sys-utils/umount.8 | 4 +++- sys-utils/umount.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) commit 0f918ac1973a72b0f36a653becdc24d744b7610c Author: Ruediger Meier Date: Fri May 23 15:15:05 2014 +0000 build-sys: fix typo, sparc vs spark (62b2c024) Signed-off-by: Ruediger Meier configure.ac | 2 +- libblkid/src/partitions/bsd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 4c838e6c0f193cb607d540b9d720c08397e0883c Author: Ruediger Meier Date: Fri May 23 11:08:28 2014 +0000 build-sys: fix typo, look vs loop (1b15cbd1) Signed-off-by: Ruediger Meier configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f6eb160c6ec9217e2ce8218edee657b7216bf5fc Author: Ruediger Meier Date: Thu May 22 09:42:32 2014 +0200 setarch: add shortcut binary uname26 There are some uname26 binaries flying around. Let's make it available everywhere. Internal SUSE references: fate313476, sr226509 CC: Stanislav Brabec Signed-off-by: Ruediger Meier sys-utils/Makemodule.am | 2 +- sys-utils/setarch.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) commit 34c265f01c8b189e7de4e73fb7ecb0e63a004c51 Author: Ruediger Meier Date: Thu May 22 09:19:08 2014 +0200 setarch: flush output streams before exec This fixes the following (non-deterministic) discrepancy: $ setarch x86_64 -RFZLvXBIST3 --uname-2.6 echo success Switching on READ_IMPLIES_EXEC. Switching on ADDR_LIMIT_32BIT. Switching on SHORT_INODE. Switching on WHOLE_SECONDS. Switching on STICKY_TIMEOUTS. Switching on ADDR_LIMIT_3GB. Switching on UNAME26. success $ setarch x86_64 -RFZLvXBIST3 --uname-2.6 echo success &> /tmp/bla; cat /tmp/bla success Signed-off-by: Ruediger Meier sys-utils/setarch.c | 3 +++ tests/expected/misc/setarch | 11 +++++++++++ 2 files changed, 14 insertions(+) commit ac6a37c8631f36c13e48d638e6a6785557496f26 Author: Karel Zak Date: Wed May 21 14:29:42 2014 +0200 build-sys: cleanup bash-completion/ Signed-off-by: Karel Zak Makefile.am | 1 + bash-completion/Makemodule.am | 324 ++++++++++++++++++++++-------------------- 2 files changed, 171 insertions(+), 154 deletions(-) commit cb45354ec6a34d13c8bde58385f07c5f3fd847aa Author: Karel Zak Date: Wed May 21 14:09:43 2014 +0200 build-sys: add BUILD_{COL,COLCRT,COLRM,COLUMN,HEXDUMP,REV,TAILF} Signed-off-by: Karel Zak configure.ac | 21 +++++++++++++++++++++ text-utils/Makemodule.am | 48 ++++++++++++++++++++++++++++-------------------- 2 files changed, 49 insertions(+), 20 deletions(-) commit 4e9e0d1e06ca145b774b6adce8f86499d716e0ef Author: Ruediger Meier Date: Wed May 21 11:56:20 2014 +0000 lsblk: fix, set default sort_id = -1 Introduced in 642048e4: $ lsblk -o SIZE /dev/loop1 lsblk: the sort column has to be between output columns. Signed-off-by: Ruediger Meier misc-utils/lsblk.c | 1 - 1 file changed, 1 deletion(-) commit 3f91b9902b7333c42d74f655a57532a0b8f15859 Author: Karel Zak Date: Wed May 21 13:58:03 2014 +0200 build-sys: add BUILD_{SCRIPT,SCRIPTREPLAY} Signed-off-by: Karel Zak configure.ac | 7 +++++++ term-utils/Makemodule.am | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) commit 205dbb7a6ce10c7f6635840bf1ddd1041095d469 Author: Karel Zak Date: Wed May 21 13:53:44 2014 +0200 build-sys: add BUILD_ vars for all Linux-only utils Signed-off-by: Karel Zak configure.ac | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ sys-utils/Makemodule.am | 36 +++++++++++++++++++++++++++-------- 2 files changed, 78 insertions(+), 8 deletions(-) commit d6ace0b8dddd72b6cc8e4e8803407a5bb7171a42 Author: Karel Zak Date: Wed May 21 13:35:01 2014 +0200 build-sys: add BUILD_CHRT Signed-off-by: Karel Zak bash-completion/Makemodule.am | 4 ++-- configure.ac | 8 ++++++-- schedutils/Makemodule.am | 6 ++---- 3 files changed, 10 insertions(+), 8 deletions(-) commit 3adaaa154e5d57c1862a1adb74855d5da2413c1b Author: Karel Zak Date: Wed May 21 13:26:56 2014 +0200 build-sys: add BUILD_GETOPT Signed-off-by: Karel Zak configure.ac | 3 +++ misc-utils/Makemodule.am | 2 ++ 2 files changed, 5 insertions(+) commit 15a2c74163d06f17f2ba63b505ea8ea26d56102f Author: Karel Zak Date: Wed May 21 13:24:21 2014 +0200 build-sys: add BUILD_{BLKID,FINDFS,WIPEFS,FINDMNT} Signed-off-by: Karel Zak configure.ac | 17 +++++++++++++++++ misc-utils/Makemodule.am | 28 ++++++++++++++++------------ 2 files changed, 33 insertions(+), 12 deletions(-) commit 1b15cbd1499d6f37b94f51345972ae88a1a6b956 Author: Karel Zak Date: Wed May 21 13:09:17 2014 +0200 build-sys: add BUILD_{UUIDGEN,CAL,LOGGER,LOOP,MCOOKIE,NAMEI,WHEREIS} Signed-off-by: Karel Zak configure.ac | 23 +++++++++++++++++++++++ misc-utils/Makemodule.am | 18 +++++++++++++++--- 2 files changed, 38 insertions(+), 3 deletions(-) commit 62b2c024213855a15f8cce809e6d240e6ade374c Author: Karel Zak Date: Wed May 21 12:57:13 2014 +0200 build-sys: add UL_EXCLUDE_ARCH() Signed-off-by: Karel Zak configure.ac | 3 ++- m4/ul.m4 | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) commit ecc6047ecd3a0cade1624d79a79c8e4dfb045be1 Author: Karel Zak Date: Wed May 21 12:34:34 2014 +0200 build-sys: add BUILD_{SFDISK,BLOCKDEV,MKSWAP,IOSIZE,MKFS} Signed-off-by: Karel Zak configure.ac | 19 +++++++++++++++++++ disk-utils/Makemodule.am | 16 +++++++++++++--- 2 files changed, 32 insertions(+), 3 deletions(-) commit 3d9fdac5eaafaf2358877d5d922f67ed36cb522a Author: Karel Zak Date: Wed May 21 12:13:12 2014 +0200 build-sys: add --disable-minix Signed-off-by: Karel Zak configure.ac | 9 +++++++++ disk-utils/Makemodule.am | 2 ++ m4/ul.m4 | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) commit 642048e4a4e059cf5f0c54a2e9e06b398f75748a Author: Karel Zak Date: Tue May 20 15:08:08 2014 +0200 lsblk: add --sort This implementation allow to sort output by arbitrary output column. Note that output is always converted to human readable strings, but sort functions in many cases work with original data (stored as private data to cells by scols_cell_set_userdata()). Signed-off-by: Karel Zak misc-utils/lsblk.8 | 3 + misc-utils/lsblk.c | 211 +++++++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 182 insertions(+), 32 deletions(-) commit 57a86f9bff68f24b167df9c571a09c6b89712296 Author: Karel Zak Date: Tue May 20 15:04:11 2014 +0200 libsmartcols: add scols_sort_table() * add pointer to column cmp() function [scols_column_set_cmpfunc()] * allow to store per-cell application private data (to make it possible to sort tables on data independent on cell output data) [scols_cell_set_userdata() ...] * make it possible to access line cell by column [scols_line_get_column_cell()] Sort and cmp() stuff based on patches from Shakur Shams Mullick. Co-Author: Shakur Shams Mullick Signed-off-by: Shakur Shams Mullick Signed-off-by: Karel Zak Signed-off-by: Karel Zak libsmartcols/docs/libsmartcols-sections.txt | 6 +++ libsmartcols/src/cell.c | 66 ++++++++++++++++++++++++++++- libsmartcols/src/column.c | 24 +++++++++++ libsmartcols/src/libsmartcols.h.in | 15 +++++++ libsmartcols/src/libsmartcols.sym | 6 +++ libsmartcols/src/line.c | 19 +++++++++ libsmartcols/src/smartcolsP.h | 6 +++ libsmartcols/src/table.c | 39 +++++++++++++++++ 8 files changed, 179 insertions(+), 2 deletions(-) commit 2832032772bb8d0a6ec9dda84c23db5d60a9f700 Author: Karel Zak Date: Tue May 20 11:56:43 2014 +0200 setterm: fix 'bright' in usage, remove unnecessary error message Signed-off-by: Karel Zak term-utils/setterm.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) commit 10bd07cad86923b89fc2d2a61fe34c35cb258772 Merge: deedae5 fbb0886 Author: Karel Zak Date: Tue May 20 11:44:26 2014 +0200 Merge branch '2014wk19' of git://github.com/kerolasa/lelux-utiliteetit * '2014wk19' of git://github.com/kerolasa/lelux-utiliteetit: setterm: remove ulcolor and hbcolor duplicates setterm: add set_blanking() action setterm: mark some options to be exclusive with each other setterm: various visual terminal effects are not console specific setterm: improve error messages setterm: tell user when options does not effect setterm: improve perform_sequence() coding style setterm: correct usage() bright color argument setterm: make -msglevel 0 to work as is did earlier setterm: remove devfs and /dev/vcsa0 support setterm: clean up screendump() setterm: add init_terminal() to make main() shorter setterm: add option control structure setterm: remove usage comment segment setterm: move show_tabs() and screendump() functions setterm: use string utils to numeric parsing setterm: recommend long options with double hyphen setterm: use getopt_long_only() for option parsing setterm: clean up includes commit deedae5f5c56bc1c6af860c880f8e397d53e5d3f Author: Karel Zak Date: Tue May 20 10:32:57 2014 +0200 fsck.cramfs: cleanup usage() and warning messages Signed-off-by: Karel Zak disk-utils/fsck.cramfs.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) commit 052ed36edd0ee3867eb0219b0f1ccedbf2ef9de1 Merge: 1dbbd85 ae2f9c7 Author: Karel Zak Date: Tue May 20 10:23:18 2014 +0200 Merge branch 'cramfs-blocksize' of https://github.com/rudimeier/util-linux * 'cramfs-blocksize' of https://github.com/rudimeier/util-linux: mkfs.cramfs: fix crash when -b 0 fsck.cramfs: update man page (--extract and --blocksize) tests: remove test_fsck.cramfs (reverts 6c32ae78) fsck.cramfs: remove define INCLUDE_FS_TESTS fsck.cramfs: refactor option -x/--extract tests: fix fsck.cramfs for systems with certain page sizes fsck.cramfs: add option --blocksize fsck.cramfs: rename variable page_size to blksize fsck.cramfs: ifdef unused outbuffer and page_size fsck.cramfs: allow smaller superblock sizes tests, fix cramfs for systems with certain page sizes commit 1dbbd85b9498536ab38758a03c9ec20362f1c572 Author: Karel Zak Date: Tue May 20 10:11:57 2014 +0200 lib/canonicalize: make DM canonicalization more robust The current code cares about filenames, but it's too fragile, we have to check the path is really path to the block device. Addresses: https://github.com/karelzak/util-linux/issues/83 Signed-off-by: Karel Zak lib/canonicalize.c | 45 ++++++++++++++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 15 deletions(-) commit fbb08864cb5c686cd91ef55e5f5cb990220c8185 Author: Sami Kerola Date: Mon May 19 22:58:14 2014 +0100 setterm: remove ulcolor and hbcolor duplicates Signed-off-by: Sami Kerola term-utils/setterm.c | 4 ---- 1 file changed, 4 deletions(-) commit 7a20c8a18855d9b0162fee18d5b453a395b0c361 Author: Sami Kerola Date: Sun May 18 14:55:23 2014 +0100 setterm: add set_blanking() action This make over long perform_sequence() function a little bit shorter. Signed-off-by: Sami Kerola term-utils/setterm.c | 57 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 21 deletions(-) commit 11f69359fabca6cf3f0561fc1e5a6d4337853bd4 Author: Sami Kerola Date: Sun May 18 14:39:58 2014 +0100 setterm: mark some options to be exclusive with each other Signed-off-by: Sami Kerola term-utils/setterm.c | 9 +++++++++ 1 file changed, 9 insertions(+) commit 78dd23cbf5d99713bdea6b5995803a704e72b6a6 Author: Sami Kerola Date: Sun May 18 14:10:21 2014 +0100 setterm: various visual terminal effects are not console specific Setting colors, making line not to wrap, and so on can be attempted in other than consoles. Signed-off-by: Sami Kerola term-utils/setterm.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) commit cda2b5b951fff09b1f02c3d52814de14df1fb214 Author: Sami Kerola Date: Sun May 18 14:04:03 2014 +0100 setterm: improve error messages Reuse messages to make translation work easier. Signed-off-by: Sami Kerola term-utils/setterm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit da27df255349be2fb45d7dc5712acffea323abac Author: Sami Kerola Date: Sun May 18 13:40:11 2014 +0100 setterm: tell user when options does not effect Signed-off-by: Sami Kerola term-utils/setterm.c | 83 ++++++++++++++++++++++++++++------------------------ 1 file changed, 45 insertions(+), 38 deletions(-) commit 16279cc2b47815eaed1b570d18a27ae2ee0576bc Author: Sami Kerola Date: Sun May 18 13:12:09 2014 +0100 setterm: improve perform_sequence() coding style Delete pointless braces, new lines, and add spacing between operators. Signed-off-by: Sami Kerola term-utils/setterm.c | 92 ++++++++++++++++++++-------------------------------- 1 file changed, 35 insertions(+), 57 deletions(-) commit 253e5e7161e2fb66c65204f91ceaaf8268a42777 Author: Sami Kerola Date: Sun May 18 12:37:24 2014 +0100 setterm: correct usage() bright color argument This has been wrong since commit 2dc8716. The bright is a prefix attribute to other colors. Signed-off-by: Sami Kerola bash-completion/setterm | 15 ++++++++++++--- term-utils/setterm.c | 26 ++++++++++++-------------- 2 files changed, 24 insertions(+), 17 deletions(-) commit ae2f9c71ae08e7a5a7403f97de2026303f57f912 Author: Ruediger Meier Date: Mon May 19 15:52:38 2014 +0200 mkfs.cramfs: fix crash when -b 0 Now -b 0 gives us the default (page size) like we do it in fsck.cramfs. Signed-off-by: Ruediger Meier disk-utils/mkfs.cramfs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit dfd7dbb468505fa8682fc2499134085d8e6242d1 Author: Ruediger Meier Date: Mon May 19 14:23:45 2014 +0200 fsck.cramfs: update man page (--extract and --blocksize) Signed-off-by: Ruediger Meier disk-utils/fsck.cramfs.8 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) commit 2c972db4249173344ea91dc907f3229922913439 Author: Ruediger Meier Date: Mon May 19 13:47:27 2014 +0200 tests: remove test_fsck.cramfs (reverts 6c32ae78) Signed-off-by: Ruediger Meier disk-utils/Makemodule.am | 5 ----- tests/commands.sh | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) commit 34731f89c7529f27ab009c32602013d1bda9b137 Author: Ruediger Meier Date: Mon May 19 13:03:16 2014 +0200 fsck.cramfs: remove define INCLUDE_FS_TESTS There is only one non-trivial issue where we now print a warning instead of exit error. Signed-off-by: Ruediger Meier disk-utils/fsck.cramfs.c | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) commit 917465831fd0a2673f4f92a07d2fcf6f0ceea43b Author: Sami Kerola Date: Sun May 18 12:31:16 2014 +0100 setterm: make -msglevel 0 to work as is did earlier Commit 3393c136 caused regression. The klogctl() logging range is 1-8, but the value 0 is special according to setterm.1 manual page. It turns on loging, same way as '-msg on' option. Signed-off-by: Sami Kerola bash-completion/setterm | 2 +- term-utils/setterm.c | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) commit 609d48534a1602ea568f218c6740ca171ec71efb Author: Sami Kerola Date: Sun May 18 11:32:04 2014 +0100 setterm: remove devfs and /dev/vcsa0 support The devfs files /dev/vcc/a* does not need to be supported, and vcsa0 has not existed in years if ever. Reference: http://lwn.net/Articles/65197/ Reference: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/devices.txt?id=14186fea0cb06bc43181ce239efe0df6f1af260a#n260 Signed-off-by: Sami Kerola bash-completion/setterm | 2 +- term-utils/setterm.c | 37 ++++++++++--------------------------- 2 files changed, 11 insertions(+), 28 deletions(-) commit 341566ff45c76197dca55773f689ecde7c54a450 Author: Sami Kerola Date: Sun May 18 11:00:14 2014 +0100 setterm: clean up screendump() Signed-off-by: Sami Kerola term-utils/setterm.c | 92 +++++++++++++++++++++++++++------------------------- 1 file changed, 47 insertions(+), 45 deletions(-) commit dcc2fe2903a6c85e93b81432640dbdf413ebad03 Author: Sami Kerola Date: Sun May 18 09:54:12 2014 +0100 setterm: add init_terminal() to make main() shorter Signed-off-by: Sami Kerola term-utils/setterm.c | 48 +++++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 23 deletions(-) commit d87d20b0fa3dc0cd2f407fc0648974a4a97f6379 Author: Sami Kerola Date: Sun May 18 09:35:01 2014 +0100 setterm: add option control structure Signed-off-by: Sami Kerola term-utils/setterm.c | 393 +++++++++++++++++++++++++-------------------------- 1 file changed, 194 insertions(+), 199 deletions(-) commit 43f68f8feaa9b345423e83f2419a0113b73e7c94 Author: Sami Kerola Date: Sat May 17 20:42:37 2014 +0100 setterm: remove usage comment segment It is enough trouble to keep usage output aligned with getopt() parsing, manual page, and bash-completion, so get rid of the unnecessary effort duplication. Signed-off-by: Sami Kerola term-utils/setterm.c | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) commit c591be873bc321ec21bdd959a94dad54d9fe36c7 Author: Sami Kerola Date: Sat May 17 20:12:23 2014 +0100 setterm: move show_tabs() and screendump() functions Earlier the function was in the middle of option parsing code segment, and screendump() required function prototype. Signed-off-by: Sami Kerola term-utils/setterm.c | 187 +++++++++++++++++++++++++-------------------------- 1 file changed, 92 insertions(+), 95 deletions(-) commit 35b578a02a8e22ce998be615f3c6dfe45c0a8b34 Author: Sami Kerola Date: Sat May 17 19:21:34 2014 +0100 setterm: use string utils to numeric parsing Check the input numbers are numbers, which makes also the code shorter, and user experience better as half invalid imputs will error. Signed-off-by: Sami Kerola term-utils/Makemodule.am | 2 +- term-utils/setterm.c | 61 ++++++++++++++++++++---------------------------- 2 files changed, 26 insertions(+), 37 deletions(-) commit fb27f91cac9702ad1858d782dd840d5868547423 Author: Sami Kerola Date: Mon May 19 22:21:14 2014 +0100 setterm: recommend long options with double hyphen While the -version style options will work for next unknown number of years start moving towards user interface that has way of invoking long options as most of the other commands. Signed-off-by: Sami Kerola bash-completion/setterm | 104 ++++++++++++++++++++++++------------------------ term-utils/setterm.1 | 94 +++++++++++++++++++++---------------------- term-utils/setterm.c | 74 +++++++++++++++++----------------- 3 files changed, 136 insertions(+), 136 deletions(-) commit 45c90b77e6aa67b86043734c294652be5aa9f8f7 Author: Sami Kerola Date: Sat May 17 18:52:01 2014 +0100 setterm: use getopt_long_only() for option parsing The getopt_long_only() has advantage of allowing one and two hyphen versions of options, for example -help and --help. Secondly the getopt function family from libc can ensure some options requiring arguments, while other are optional, and some should not accept argument at all. That makes option parsing more robust. Unfortunately retiring the old option parsing makes this change greater than preferred. Assuming not mistakes happen the new code works functionally exactly as the old did. Signed-off-by: Sami Kerola term-utils/setterm.c | 916 ++++++++++++++++++++++++--------------------------- 1 file changed, 426 insertions(+), 490 deletions(-) commit 104ecc7e701fcec340ccc76d15bfc855f7786ced Author: Sami Kerola Date: Sun May 11 22:52:09 2014 +0100 setterm: clean up includes Use klogctl(2) from sys/klog.h just like dmesg(1). The rest is just reordering, and indenting. Signed-off-by: Sami Kerola term-utils/setterm.c | 40 +++++++++++++++------------------------- 1 file changed, 15 insertions(+), 25 deletions(-) commit 2d317f117b54f6734a45749e87b31ec4ab175288 Author: Ruediger Meier Date: Mon May 19 12:57:59 2014 +0200 fsck.cramfs: refactor option -x/--extract We want to clean it up to compile it later per default (not only if defined INCLUDE_FS_TESTS). - Rename option --destination to --extract. - DIR argument is now optional because we want to keep the use case "test uncompression without writing files" ... but we don't want it always. - Remove shortopt -x because shortopts with optional args are evil. Changing the cmd interface is no compatibility issue here because all affected options errored out per default in past. Signed-off-by: Ruediger Meier disk-utils/fsck.cramfs.c | 31 +++++++++++++++++-------------- tests/ts/cramfs/fsck-endianness | 5 +---- 2 files changed, 18 insertions(+), 18 deletions(-) commit 4b8f83361b08e3a383d2534c1fedf95734d4baa2 Author: Stephan Müller Date: Thu May 15 14:12:54 2014 +0200 mount: fix tiny typo in man page adjust command to use /dev/loop3 as described in text Signed-off-by: Stephan Mueller sys-utils/mount.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0a8dacfe86c2b59adb5fea2b9326a629fefc7986 Author: Karel Zak Date: Mon May 19 10:59:54 2014 +0200 agetty: update man page Signed-off-by: Karel Zak term-utils/agetty.8 | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) commit 62a49dde58885ea3dcfdcd88ff3b80b452afb44d Author: Ruediger Meier Date: Mon May 19 01:32:41 2014 +0200 tests: fix fsck.cramfs for systems with certain page sizes Signed-off-by: Ruediger Meier tests/ts/cramfs/fsck-endianness | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5cd50ebc96fa73525f89203b4d1e853831dd41cd Author: Ruediger Meier Date: Sat May 17 15:43:30 2014 +0200 fsck.cramfs: add option --blocksize .. similar to mkfs.cramfs Signed-off-by: Ruediger Meier disk-utils/fsck.cramfs.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) commit 38141baff61647bcf64f21e78ccecc3953be98a6 Author: Ruediger Meier Date: Sun May 18 23:31:28 2014 +0200 fsck.cramfs: rename variable page_size to blksize ... similar to mkfs.cramfs.c Signed-off-by: Ruediger Meier disk-utils/fsck.cramfs.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) commit b7a7520692213cde3349e867b0caed4ab10e8cec Author: Ruediger Meier Date: Sat May 17 14:58:30 2014 +0200 fsck.cramfs: ifdef unused outbuffer and page_size Signed-off-by: Ruediger Meier disk-utils/fsck.cramfs.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) commit f991dbd31f409f6bec8f2b84065f820936b6b4cb Author: Ruediger Meier Date: Mon May 19 00:43:53 2014 +0200 fsck.cramfs: allow smaller superblock sizes We are already fine with checking for different endianess. Now we also succeed if systems's page size does not match. Note that page_size is only really used if INCLUDE_FS_TESTS is defined, see followups. Signed-off-by: Ruediger Meier disk-utils/fsck.cramfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit fa264ba5847f82f5eb89628594e1af56f576b0c3 Author: Ruediger Meier Date: Sat May 17 12:55:27 2014 +0200 tests, fix cramfs for systems with certain page sizes This is only a partial fix to get comparable image md5sums. fsck.cramfs still fails if system page size > 4096 Signed-off-by: Ruediger Meier tests/ts/cramfs/fsck-endianness | 3 ++- tests/ts/cramfs/mkfs-endianness | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) commit 584c07449ca47c44f89957b1636d6bb2a295ef69 Author: Benjamin Robin Date: Sun May 18 02:48:14 2014 +0200 agetty: Update help usage function Signed-off-by: Benjamin Robin term-utils/agetty.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit 6c77c7fac22405fc4c4b5e745564061a5f5a0004 Author: Benjamin Robin Date: Sun May 18 02:47:42 2014 +0200 agetty: Fix implementation of option --nonewline. The flag F_NONL was never set. Signed-off-by: Benjamin Robin term-utils/agetty.c | 3 +++ 1 file changed, 3 insertions(+) commit 1efded63dfe85d62bcd8f0ff29ea6b62aa5cac74 Merge: 95efcd5 cf6784d Author: Karel Zak Date: Fri May 16 14:30:05 2014 +0200 Merge branch 'tests-mount' of https://github.com/rudimeier/util-linux * 'tests-mount' of https://github.com/rudimeier/util-linux: tests: use ts_mount for cramfs tests: ts_mount knows which fs is expected tests: ts_mount validates error message tests, add function ts_mount commit 95efcd51d9f049ef24dd2ac7cef56814a673101c Merge: 56c8f8a 8930be5 Author: Karel Zak Date: Fri May 16 14:27:11 2014 +0200 Merge branch 'tests-check-prog' of https://github.com/rudimeier/util-linux * 'tests-check-prog' of https://github.com/rudimeier/util-linux: tests: check for mkfs.ext{2,3,4} tests: consolidate some checks for commands tests: add function ts_check_prog commit 56c8f8af4ce4d042ac8ff9d585dd389b2122e5b5 Author: Karel Zak Date: Fri May 16 14:14:02 2014 +0200 lslogins: add FAILED-LOGIN to pretty output Signed-off-by: Karel Zak login-utils/lslogins.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 512abd56946224bbc588af4b5161b573462983e7 Author: Karel Zak Date: Fri May 16 14:04:54 2014 +0200 lslogins: sync man page and usage() Signed-off-by: Karel Zak login-utils/lslogins.1 | 65 ++++++++++++++++++---------------- login-utils/lslogins.c | 95 ++++++++++++++++++++++++-------------------------- 2 files changed, 81 insertions(+), 79 deletions(-) commit 10c74524e56ba0d3862edf33e883029b25554d3a Author: Karel Zak Date: Fri May 16 12:35:46 2014 +0200 lslogins: improve pretty output * use Yes/No * print all available information (columns) * cleanup code Signed-off-by: Karel Zak login-utils/lslogins.c | 72 ++++++++++++++++++++++++++++++-------------------- 1 file changed, 44 insertions(+), 28 deletions(-) commit cf6784deeb092e44ca732e3d77dfa06745f69aa9 Author: Ruediger Meier Date: Thu May 15 17:01:00 2014 +0200 tests: use ts_mount for cramfs Signed-off-by: Ruediger Meier tests/ts/cramfs/doubles | 2 +- tests/ts/cramfs/mkfs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit d2cc2ba722d5fd0775855bf6ae977bb66a31c09c Author: Ruediger Meier Date: Thu May 15 16:56:18 2014 +0200 tests: ts_mount knows which fs is expected Signed-off-by: Ruediger Meier tests/functions.sh | 4 +++- tests/ts/minix/mkfs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) commit a23c435ea263f26b07a2274116253a31aa802a1e Author: Ruediger Meier Date: Thu May 15 16:27:28 2014 +0200 tests: ts_mount validates error message Skip only if mount reports a non-empty fs which is not available in /proc/filesystems. Signed-off-by: Ruediger Meier tests/functions.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) commit 2f9549470754a958a8151e000ee881f84015634c Author: Ruediger Meier Date: Thu May 15 13:20:31 2014 +0200 tests, add function ts_mount We want to generalize mounts similar to how we do it already in minix/mkfs. Currently most of our other checks just fail if "fs not supported". Note that the new function checks a bit stronger than before in minix/mkfs. It respects mount's return value and stderr goes to $TS_OUTPUT too. It's a bit ugly that we write to $TS_OUTPUT from inside of the function. But if the caller would do it then we couldn't ts_skip and the whole function would be pointless. Signed-off-by: Ruediger Meier tests/functions.sh | 16 ++++++++++++++++ tests/ts/minix/mkfs | 3 +-- 2 files changed, 17 insertions(+), 2 deletions(-) commit 3e5cba73f1e1a7a1b4abfa10be832cda00c64b1f Author: Karel Zak Date: Fri May 16 11:41:18 2014 +0200 lslogins: NLS for all messages Signed-off-by: Karel Zak login-utils/lslogins.c | 55 +++++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 27 deletions(-) commit 8b5e227978c186ea07617f8691e8832482be7fac Author: Karel Zak Date: Fri May 16 11:31:00 2014 +0200 lslogins: conding style changes Signed-off-by: Karel Zak login-utils/lslogins.c | 683 ++++++++++++++++++++++++------------------------- 1 file changed, 340 insertions(+), 343 deletions(-) commit 68657ea2e7dd0998f933183b14714d461d2d261e Author: Karel Zak Date: Fri May 16 11:14:32 2014 +0200 lslogins: improve supplementary groups code, add SUPP-GIDS * don't build list, but directly create a string * don't mix IDs and group names on output * add SUPP-GIDS to print only IDs Signed-off-by: Karel Zak login-utils/lslogins.c | 153 ++++++++++++++++++------------------------------- 1 file changed, 55 insertions(+), 98 deletions(-) commit 07a4046f9524422960dfb14db4115924d18f97b1 Author: Karel Zak Date: Thu May 15 14:10:50 2014 +0200 lslogins: align to right 0|1 columns Signed-off-by: Karel Zak login-utils/lslogins.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit a94baf36dc0cbe1a8bfcd69db6bd5c778931580e Author: Karel Zak Date: Thu May 15 14:01:51 2014 +0200 lslogins: cleanup status[] usage Signed-off-by: Karel Zak login-utils/lslogins.c | 67 +++++++++++++++++++------------------------------- 1 file changed, 25 insertions(+), 42 deletions(-) commit 5424d2a225091641cdced95487dad65f5ee0bb81 Author: Karel Zak Date: Thu May 15 13:35:08 2014 +0200 lslogins: cleanup fill_table() * check xasprintf() return code is unnecessary * just check all scols_line_set_data() return codes on one place Signed-off-by: Karel Zak login-utils/lslogins.c | 98 +++++++++++++++++++------------------------------- 1 file changed, 36 insertions(+), 62 deletions(-) commit 3a016a536ba3bca8b99606895e895f284cab8bc3 Author: Ondrej Oprala Date: Wed Apr 30 15:59:01 2014 +0200 lslogins: mention --time-format in usage Signed-off-by: Ondrej Oprala login-utils/lslogins.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 32badc34667f1c6c2d745de9a696f3396b6cd255 Author: Ondrej Oprala Date: Wed Apr 30 15:52:50 2014 +0200 lslogins: fix option exclusivity Signed-off-by: Ondrej Oprala login-utils/lslogins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c20ffb8f69577453dcc0a07d33d671f3bcc08e71 Author: Ondrej Oprala Date: Wed Apr 30 15:46:50 2014 +0200 lslogins: add option --time-format Signed-off-by: Ondrej Oprala login-utils/lslogins.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) commit 969ee9e3ff676ce120640d7a8ebfe79c1092ef97 Author: Ondrej Oprala Date: Wed Apr 30 14:46:47 2014 +0200 lslogins: comment-in an expensive realloc Signed-off-by: Ondrej Oprala login-utils/lslogins.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 4ea7848b507ceb39ca761d2f0380e96df9c2b1e0 Author: Ondrej Oprala Date: Wed Apr 30 14:42:51 2014 +0200 lslogins: add option --iso Signed-off-by: Ondrej Oprala login-utils/lslogins.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) commit 384965928a995492de0085b35d197a549d5b868c Author: Ondrej Oprala Date: Wed Apr 30 14:25:54 2014 +0200 lslogins: add support for multiple time formats Signed-off-by: Ondrej Oprala login-utils/lslogins.c | 108 +++++++++++++++++++++++++++++++++---------------- 1 file changed, 74 insertions(+), 34 deletions(-) commit c77108b86787cb99b110c3ebabd746052101410a Author: Ondrej Oprala Date: Tue Apr 29 13:40:32 2014 +0200 lslogins: pretty printing and extended -l,-g login-utils/lslogins.1 | 28 ++++---- login-utils/lslogins.c | 187 +++++++++++++++++++++++++++++++++++-------------- 2 files changed, 147 insertions(+), 68 deletions(-) commit bd09da48ad38c0e5df6e6c8eb1615c856ddda30f Author: Ondrej Oprala Date: Mon Apr 28 12:33:11 2014 +0200 lslogins: also add readutmp.c lib/readutmp.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) commit f1728a4cbdc25833f812369ab32a6d986913a4a0 Author: Ondrej Oprala Date: Mon Apr 28 12:18:18 2014 +0200 lslogins: add readtump.h header include/readutmp.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) commit c6cf4d1c46624c22deecd67ce15d877268f2193f Author: Ondrej Oprala Date: Wed Apr 23 12:46:56 2014 +0200 lslogins: make it work Signed-off-by: Ondrej Oprala login-utils/lslogins.c | 614 +++++++++++++++++++++++++++---------------------- 1 file changed, 344 insertions(+), 270 deletions(-) commit 1ebfc60a0fecb67a4ea282f9bde9f5bc28eb1b8b Author: Ondrej Oprala Date: Wed Apr 23 09:33:25 2014 +0200 lslogins: use thread-safe functions Signed-off-by: Ondrej Oprala login-utils/lslogins.c | 70 +++++++++++++++++++++++++++++++------------------- 1 file changed, 43 insertions(+), 27 deletions(-) commit dd7760a8c108d8d538b4fb1ca7a46f44d719ca3d Author: Ondrej Oprala Date: Tue Apr 22 15:38:27 2014 +0200 lslogins: store users in a tree Signed-off-by: Ondrej Oprala login-utils/lslogins.c | 360 ++++++++++++++++++++++++++----------------------- 1 file changed, 190 insertions(+), 170 deletions(-) commit 29cc2a55686f7182ae16e949d6d2a2b2b44c8536 Author: Ondrej Oprala Date: Mon Apr 7 18:24:19 2014 +0200 lslogins: add functionality Signed-off-by: Ondrej Oprala .gitignore | 1 + include/Makemodule.am | 1 + lib/Makemodule.am | 3 +- login-utils/Makemodule.am | 26 +- login-utils/login.c | 2 +- login-utils/logindefs.c | 18 +- login-utils/logindefs.h | 2 +- login-utils/lslogins.1 | 3 + login-utils/lslogins.c | 923 ++++++++++++++++++++++++++++++++++++++++++---- 9 files changed, 891 insertions(+), 88 deletions(-) commit 78dd74508931a2990a20f973854e0749505fdea0 Author: Ondrej Oprala Date: Tue Apr 8 13:26:33 2014 +0200 login: extract get_hushlogin_status Signed-off-by: Ondrej Oprala login-utils/login.c | 118 ---------------------------------------------- login-utils/logindefs.c | 122 ++++++++++++++++++++++++++++++++++++++++++++++++ login-utils/logindefs.h | 2 + 3 files changed, 124 insertions(+), 118 deletions(-) commit 914e20a00a7d7236feed9be4444be9deb0b59399 Author: Ondrej Oprala Date: Tue Apr 8 10:51:02 2014 +0200 lslogins: move to login-utils Signed-off-by: Ondrej Oprala login-utils/Makemodule.am | 13 ++ login-utils/lslogins.1 | 118 ++++++++++++++ login-utils/lslogins.c | 383 ++++++++++++++++++++++++++++++++++++++++++++++ sys-utils/Makemodule.am | 10 -- sys-utils/lslogins.1 | 118 -------------- sys-utils/lslogins.c | 383 ---------------------------------------------- 6 files changed, 514 insertions(+), 511 deletions(-) commit ab1cfad5b72e33ef3a6c3dd73da8dd9e4df304fb Author: Ondrej Oprala Date: Fri Apr 4 17:58:06 2014 +0200 lslogins(1): skeleton and argparsing for a new utility Signed-off-by: Ondrej Oprala configure.ac | 5 + sys-utils/Makemodule.am | 10 ++ sys-utils/lslogins.1 | 118 +++++++++++++++ sys-utils/lslogins.c | 383 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 516 insertions(+) commit 8930be5a223667775364ee2b95d68d5a08355bbb Author: Ruediger Meier Date: Wed May 14 23:54:23 2014 +0200 tests: check for mkfs.ext{2,3,4} Signed-off-by: Ruediger Meier tests/ts/eject/umount | 1 + tests/ts/fsck/ismounted | 1 + tests/ts/libmount/context | 2 ++ tests/ts/libmount/context-py | 2 ++ tests/ts/libmount/context-utab | 1 + tests/ts/libmount/context-utab-py | 1 + tests/ts/libmount/tabfiles-tags | 1 + tests/ts/libmount/tabfiles-tags-py | 1 + tests/ts/mount/devname | 1 + tests/ts/mount/fstab-devname | 1 + tests/ts/mount/fstab-devname2label | 1 + tests/ts/mount/fstab-devname2uuid | 1 + tests/ts/mount/fstab-label | 1 + tests/ts/mount/fstab-label2devname | 1 + tests/ts/mount/fstab-label2uuid | 1 + tests/ts/mount/fstab-symlink | 1 + tests/ts/mount/fstab-uuid | 1 + tests/ts/mount/fstab-uuid2devname | 1 + tests/ts/mount/fstab-uuid2label | 1 + tests/ts/mount/label | 1 + tests/ts/mount/regfile | 1 + tests/ts/mount/remount | 1 + tests/ts/mount/rlimit | 1 + tests/ts/mount/shared-subtree | 1 + tests/ts/mount/umount-alltargets | 1 + tests/ts/mount/umount-recursive | 1 + tests/ts/mount/uuid | 1 + 27 files changed, 29 insertions(+) commit 12826d4c20358a2e096b0df8e34dfb0fa88c5b21 Author: Ruediger Meier Date: Thu May 15 11:24:59 2014 +0200 tests: consolidate some checks for commands Use ts_check_prog for mdadm, readelf, file, ntpdate, bc (mdadm was not always checked so far). There are some positive side-effects. We are using always $PATH now instead of randomly hardcoded /usr/bin, /sbin, etc. If we ever want to change this again, we should do this generically in ts_init. Signed-off-by: Ruediger Meier tests/ts/blkid/md-raid0-whole | 8 ++++---- tests/ts/blkid/md-raid1-part | 7 ++++--- tests/ts/blkid/md-raid1-whole | 8 ++++---- tests/ts/build-sys/config | 4 ++-- tests/ts/fdisk/align-512-4K-md | 7 ++++--- tests/ts/hwclock/systohc | 4 +--- tests/ts/ipcs/limits | 2 +- tests/ts/ipcs/limits2 | 3 +-- 8 files changed, 21 insertions(+), 22 deletions(-) commit d1962aaec688626220b5a4b8272c2cbe019478cb Author: Ruediger Meier Date: Wed May 14 23:53:52 2014 +0200 tests: add function ts_check_prog Signed-off-by: Ruediger Meier tests/functions.sh | 5 +++++ 1 file changed, 5 insertions(+) commit 37bc9a51c8aed637fb5243f6852da39d85cb98f9 Merge: 481f7f4 04a176e Author: Karel Zak Date: Wed May 14 14:15:58 2014 +0200 Merge branch 'travis-root-checks-v2' of https://github.com/rudimeier/util-linux * 'travis-root-checks-v2' of https://github.com/rudimeier/util-linux: travis-ci: enable root checks travis-ci: minor cleanup and speedup tests: introduce TS_CMD_UUIDGEN (never use installed one) tests, don't write TS_DEVICE to stdout anymore tests: ts_scsi_debug_init must not run in a subshell tests: cleanup ts_scsi_debug_init tests: some more tests need loop support tests: ts_device_init requires loop support tests: use ts_check_losetup in losetup test tests: add function ts_check_losetup tests: ts_device_init remove useless error handling commit 481f7f4e2ad0532c0cbc30064c601bb42634ba74 Author: Karel Zak Date: Wed May 14 14:05:54 2014 +0200 tests: add .BE hexdump test results (from s390) Signed-off-by: Karel Zak tests/expected/hexdump/format-strings-2b_dec.BE | 41 ++++++++++++++++++++++ tests/expected/hexdump/format-strings-2b_hex.BE | 41 ++++++++++++++++++++++ tests/expected/hexdump/format-strings-2b_octal.BE | 41 ++++++++++++++++++++++ .../hexdump/format-strings-empty-format.BE | 1 + tests/expected/hexdump/highlighting-1b_octal-2.BE | 41 ++++++++++++++++++++++ tests/expected/hexdump/highlighting-1b_octal-4.BE | 41 ++++++++++++++++++++++ tests/expected/hexdump/highlighting-1b_octal-5.BE | 41 ++++++++++++++++++++++ tests/expected/hexdump/highlighting-1b_octal-7.BE | 41 ++++++++++++++++++++++ tests/expected/hexdump/highlighting-1b_octal-8.BE | 41 ++++++++++++++++++++++ tests/expected/hexdump/highlighting-1b_octal-9.BE | 41 ++++++++++++++++++++++ tests/expected/hexdump/highlighting-2b_dec-1.BE | 41 ++++++++++++++++++++++ tests/expected/hexdump/highlighting-2b_dec-2.BE | 41 ++++++++++++++++++++++ tests/expected/hexdump/highlighting-2b_dec-3.BE | 41 ++++++++++++++++++++++ tests/expected/hexdump/highlighting-2b_dec-4.BE | 41 ++++++++++++++++++++++ tests/expected/hexdump/highlighting-2b_dec-5.BE | 41 ++++++++++++++++++++++ tests/expected/hexdump/highlighting-2b_dec-8.BE | 41 ++++++++++++++++++++++ tests/expected/hexdump/highlighting-4b_dec-1.BE | 21 +++++++++++ tests/expected/hexdump/highlighting-4b_dec-2.BE | 21 +++++++++++ tests/expected/hexdump/highlighting-4b_dec-3.BE | 2 ++ tests/expected/hexdump/highlighting-4b_dec-4.BE | 2 ++ tests/expected/hexdump/highlighting-4b_dec-6.BE | 2 ++ tests/expected/hexdump/highlighting-4b_dec-7.BE | 2 ++ tests/expected/hexdump/highlighting-canon-1.BE | 41 ++++++++++++++++++++++ 23 files changed, 707 insertions(+) commit bb04c0773ff939f3d0cf802abaad67c14f16250a Merge: 85794fb 6cae66e Author: Karel Zak Date: Wed May 14 13:19:37 2014 +0200 Merge branch 'tests-known' of https://github.com/rudimeier/util-linux * 'tests-known' of https://github.com/rudimeier/util-linux: tests, script/race is known to fail tests: script/race would work with variable loop count tests: ipcs/limits2 is known to fail tests: fix hexdump for big endian tests, add missing output for hexdump tests: fix hexdump, add ts_finalize tests: fix "KNOWN FAILED" for subtests commit 85794fb0de61f77cae5e714964ab91689df02549 Author: Karel Zak Date: Wed May 14 12:53:24 2014 +0200 losetup: fix -f on systems without /dev/loop-control Reported-by: Ruediger Meier Signed-off-by: Karel Zak lib/loopdev.c | 49 +++++++++++++++++++++++++++++++++++-------------- 1 file changed, 35 insertions(+), 14 deletions(-) commit 6cae66ea4524246cbb4db6b7bad1ef7b0a2676d2 Author: Ruediger Meier Date: Tue May 13 15:19:35 2014 +0200 tests, script/race is known to fail Signed-off-by: Ruediger Meier tests/ts/script/race | 4 ++++ 1 file changed, 4 insertions(+) commit fcbc4db886752d822561149b820195ee666ca875 Author: Ruediger Meier Date: Tue May 13 15:13:12 2014 +0200 tests: script/race would work with variable loop count Signed-off-by: Ruediger Meier tests/expected/script/race | 2 +- tests/ts/script/race | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) commit 857cc2244b482ca8acb27cb1fc5c531e0aa25dfd Author: Ruediger Meier Date: Tue May 13 12:10:17 2014 +0200 tests: ipcs/limits2 is known to fail See github issue #51, comment 2 https://github.com/karelzak/util-linux/issues/51 Signed-off-by: Ruediger Meier tests/ts/ipcs/limits2 | 5 +++++ 1 file changed, 5 insertions(+) commit 659203f2d85c347a6859d5c31416554d01c04399 Author: Ruediger Meier Date: Tue May 13 13:19:22 2014 +0200 tests: fix hexdump for big endian For now endianess dependent subtests have undefined output on BE systems until sombody re-checks this and provides expected output files with .BE suffix. Signed-off-by: Ruediger Meier tests/ts/hexdump/format-strings | 8 ++++++++ tests/ts/hexdump/highlighting | 25 ++++++++++++++++++++++++- 2 files changed, 32 insertions(+), 1 deletion(-) commit 04a176eacd6ea206ab8948494b60652ec32dd37d Author: Ruediger Meier Date: Mon May 12 13:50:25 2014 +0200 travis-ci: enable root checks Signed-off-by: Ruediger Meier .travis.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) commit 1ecee3d5567739497abed4cb3ffc0ed97906e0dc Author: Ruediger Meier Date: Sun May 11 06:49:02 2014 +0200 travis-ci: minor cleanup and speedup Signed-off-by: Ruediger Meier .travis.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) commit 0eb90ba26480b8f64e1ce7f0643de2906bc19204 Author: Ruediger Meier Date: Sun May 11 23:58:53 2014 +0200 tests: introduce TS_CMD_UUIDGEN (never use installed one) Signed-off-by: Ruediger Meier tests/commands.sh | 1 + tests/ts/libmount/context | 4 +++- tests/ts/libmount/context-py | 3 ++- tests/ts/libmount/context-utab | 3 ++- tests/ts/libmount/context-utab-py | 3 ++- 5 files changed, 10 insertions(+), 4 deletions(-) commit 07d9ed0a4065e9d3c2c3b8d406844f6f06a7fdc4 Author: Ruediger Meier Date: Tue May 13 17:17:24 2014 +0200 tests, don't write TS_DEVICE to stdout anymore tests/functions.sh | 1 - 1 file changed, 1 deletion(-) commit f45df374ffc311220bd395da985b121eccfb4045 Author: Ruediger Meier Date: Sun May 11 08:50:28 2014 +0200 tests: ts_scsi_debug_init must not run in a subshell ts_skip and ts_die won't work from subshell. Now we simply use TS_DEVICE which is globally set in that function. I've made sure that we never change TS_DEVICE variable after we've got it. So we could use it again for cleanup on exit in ts_{finalize,die,skip} functions. Signed-off-by: Ruediger Meier tests/ts/blkid/md-raid1-part | 17 +++++++------ tests/ts/eject/umount | 39 +++++++++++++++-------------- tests/ts/fdisk/align-512-4K | 9 ++++--- tests/ts/fdisk/align-512-4K-63 | 9 ++++--- tests/ts/fdisk/align-512-4K-md | 11 ++++---- tests/ts/fdisk/align-512-512-topology | 10 ++++---- tests/ts/libmount/context | 9 ++++--- tests/ts/libmount/context-py | 9 ++++--- tests/ts/libmount/context-utab | 9 ++++--- tests/ts/libmount/context-utab-py | 9 ++++--- tests/ts/libmount/tabfiles-tags | 15 +++++------ tests/ts/libmount/tabfiles-tags-py | 15 +++++------ tests/ts/losetup/losetup | 5 ++-- tests/ts/mount/umount-alltargets | 29 ++++++++++----------- tests/ts/mount/umount-recursive | 21 ++++++++-------- tests/ts/partx/partx | 47 ++++++++++++++++++----------------- tests/ts/wipefs/wipefs | 13 +++++----- 17 files changed, 146 insertions(+), 130 deletions(-) commit dd761f7924747f5bd716699f80bf4c36a1dfed8e Author: Ruediger Meier Date: Sun May 11 22:48:16 2014 +0200 tests: cleanup ts_scsi_debug_init Sort out global and local vars. Now we set TS_DEVICE globally to be use later. Skip really quiet if modprobe fails. Signed-off-by: Ruediger Meier tests/functions.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) commit 296656464f52fcc02f84aa4de4d753dd33416d2b Author: Ruediger Meier Date: Sun May 11 22:47:22 2014 +0200 tests: some more tests need loop support Signed-off-by: Ruediger Meier tests/ts/cramfs/doubles | 1 + tests/ts/mount/regfile | 1 + 2 files changed, 2 insertions(+) commit a5b45f2f34da5ee3d90309b339f5162e589be821 Author: Ruediger Meier Date: Mon May 12 12:45:03 2014 +0200 tests: ts_device_init requires loop support Signed-off-by: Ruediger Meier tests/ts/blkid/md-raid0-whole | 1 + tests/ts/blkid/md-raid1-whole | 1 + tests/ts/cramfs/mkfs | 2 +- tests/ts/fdisk/align-512-512 | 1 + tests/ts/fsck/ismounted | 1 + tests/ts/minix/fsck | 1 + tests/ts/minix/mkfs | 1 + tests/ts/mount/devname | 1 + tests/ts/mount/fstab-devname | 1 + tests/ts/mount/fstab-devname2label | 1 + tests/ts/mount/fstab-devname2uuid | 1 + tests/ts/mount/fstab-label | 1 + tests/ts/mount/fstab-label2devname | 1 + tests/ts/mount/fstab-label2uuid | 1 + tests/ts/mount/fstab-symlink | 1 + tests/ts/mount/fstab-uuid | 1 + tests/ts/mount/fstab-uuid2devname | 1 + tests/ts/mount/fstab-uuid2label | 1 + tests/ts/mount/label | 1 + tests/ts/mount/remount | 1 + tests/ts/mount/rlimit | 1 + tests/ts/mount/shared-subtree | 1 + tests/ts/mount/uuid | 1 + tests/ts/swapon/devname | 1 + tests/ts/swapon/fixpgsz | 1 + tests/ts/swapon/fixsig | 1 + tests/ts/swapon/label | 1 + tests/ts/swapon/uuid | 1 + 28 files changed, 28 insertions(+), 1 deletion(-) commit 8fd00abd4a74b6e15d90b69007bd78c0658b7b03 Author: Ruediger Meier Date: Mon May 12 12:42:07 2014 +0200 tests: use ts_check_losetup in losetup test In losetup test we have to handle the special case that ts_check_losetup requires a working losetup binary. Signed-off-by: Ruediger Meier tests/ts/losetup/losetup | 9 +++++++++ 1 file changed, 9 insertions(+) commit 5ec15aefbbfc19f708aba9dbe0f15a217786a954 Author: Ruediger Meier Date: Mon May 12 02:45:10 2014 +0200 tests: add function ts_check_losetup Unfortunately losetup -f does not return an error nowadays. Signed-off-by: Ruediger Meier tests/functions.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit 0981bedde6beac4b3420862dae30c2f60aa4ccfe Author: Ruediger Meier Date: Tue May 13 13:36:08 2014 +0200 tests, add missing output for hexdump One file was missing and one was too much. Signed-off-by: Ruediger Meier tests/expected/hexdump/highlighting | 0 tests/expected/hexdump/highlighting-2b_dec-8 | 41 ++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) commit 800f4e27752cfeac64b7e442acc28236e2053d98 Author: Ruediger Meier Date: Mon May 12 23:16:25 2014 +0200 tests: fix hexdump, add ts_finalize Signed-off-by: Ruediger Meier tests/ts/hexdump/highlighting | 2 ++ 1 file changed, 2 insertions(+) commit 733094a8510133a8ea72d52d5b8b3732b843b5fe Author: Ruediger Meier Date: Mon May 12 22:56:57 2014 +0200 tests: fix "KNOWN FAILED" for subtests It didn't worked for tests with subtests. Here we consolidate both cases which fixes the issue by the way. This is basically a rewrite of 7641ccec. Signed-off-by: Ruediger Meier tests/functions.sh | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) commit 0f283438bfdf7b6e6e916b63a2c317d938b1463a Author: Karel Zak Date: Tue May 13 15:07:08 2014 +0200 agetty: use the "best" interface for \4 and \6 The issue file escape sequences \4 and \6 prints the host IP when no interface is specified. That's useless on some virtual machines where gethostname()+getaddrinfo() returns 127.0.0.1. The seems better to print IP of the "best" interface (UP, RUNNING, non-LOOPBACK) and use gethostname() as painful fallback only. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1090935 Signed-off-by: Karel Zak term-utils/agetty.8 | 9 ++--- term-utils/agetty.c | 100 ++++++++++++++++++++++++++++++++-------------------- 2 files changed, 67 insertions(+), 42 deletions(-) commit 9e147794ca344e2e8151fd742662cbd2977459be Author: Karel Zak Date: Tue May 13 13:26:50 2014 +0200 lib/colors: add to the man page hint about $HOME stuff Signed-off-by: Karel Zak lib/terminal-colors.d.5 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) commit c6b351394223c2f8fd30ead67b167d76f9a956a4 Author: Karel Zak Date: Tue May 13 12:28:48 2014 +0200 agetty: fix odd check for chardev/tty References: https://bugzilla.redhat.com/show_bug.cgi?id=1069902 Signed-off-by: Karel Zak term-utils/agetty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 538c18569e8487fe6e4c1db99925ad7536929797 Author: Karel Zak Date: Mon May 12 10:27:53 2014 +0200 cfdisk: update man page COLORS section Signed-off-by: Karel Zak disk-utils/cfdisk.8 | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) commit 496c979a09899fac38b82e4b8d10bc4700407157 Author: Karel Zak Date: Mon May 12 10:22:09 2014 +0200 fdisk: support colors customization Signed-off-by: Karel Zak disk-utils/fdisk-menu.c | 2 +- disk-utils/fdisk.8 | 27 +++++++++++++++++++-------- disk-utils/fdisk.c | 8 ++++---- 3 files changed, 24 insertions(+), 13 deletions(-) commit 052e512a641f99ce86eba902627bed5b876a3850 Author: Karel Zak Date: Mon May 12 10:03:41 2014 +0200 hexdump: add --color to the man page Signed-off-by: Karel Zak text-utils/hexdump.1 | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) commit f4bc7f96a6ff6239e89334e5b887227eb9f4d9c2 Author: Karel Zak Date: Mon May 12 09:53:39 2014 +0200 dmesg: support colors customization Signed-off-by: Karel Zak sys-utils/dmesg.1 | 44 ++++++++++++++++++++++++++-------- sys-utils/dmesg.c | 71 ++++++++++++++++++++++++++++++++++++------------------- 2 files changed, 81 insertions(+), 34 deletions(-) commit bb3c59dcb3c02ad68c72dd7d360e171c72493bf7 Author: Karel Zak Date: Mon May 12 09:51:01 2014 +0200 lib/colors: update man page Signed-off-by: Karel Zak lib/terminal-colors.d.5 | 151 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 140 insertions(+), 11 deletions(-) commit 58ce71e63e0ea807a6fbb2a0e7328f666845fdc0 Author: Karel Zak Date: Mon May 5 16:32:58 2014 +0200 hexdump: use new colors API Signed-off-by: Karel Zak text-utils/hexdump-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3eb482d027bf797ba0eba1a770498018c4ec1c1c Author: Karel Zak Date: Mon May 5 16:32:14 2014 +0200 libsmartcols: use new colors API Signed-off-by: Karel Zak libsmartcols/src/cell.c | 6 +++--- libsmartcols/src/column.c | 6 +++--- libsmartcols/src/line.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) commit 7a4704d82644adb1fa3c5ec7c1eba162ee860d08 Author: Karel Zak Date: Mon May 5 16:22:43 2014 +0200 lib/colors: support schemes customization * parse terminal-colors.d/*.scheme files, expected format is * supported color sequences: - color name (e.g. "red") - dir_colors compatible xx;yy (e.g. 01;31) where the sequence may contains control chars like \e \a ..etc. * scheme is parsed on demand Signed-off-by: Karel Zak include/colors.h | 19 ++- lib/colors.c | 502 ++++++++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 432 insertions(+), 89 deletions(-) commit e66a662726c6254e9529dd55f88c1e95d6f762a5 Author: Karel Zak Date: Wed Apr 30 14:51:46 2014 +0200 lib/colors: allow to temporary disable colors Signed-off-by: Karel Zak disk-utils/cfdisk.c | 2 +- include/colors.h | 6 +++ lib/colors.c | 105 +++++++++++++++++++++++++++++++++++++--------------- 3 files changed, 82 insertions(+), 31 deletions(-) commit 570b32100f67538c5dbcf43035904a7899277ea3 Author: Karel Zak Date: Wed Apr 30 12:59:28 2014 +0200 lib/colors: add support for @term and /home/kzak Signed-off-by: Karel Zak include/pathnames.h | 4 +- lib/colors.c | 299 ++++++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 270 insertions(+), 33 deletions(-) commit 3e55659feb74adfd4bbefe1c985e5e5af5c7a9f3 Author: Karel Zak Date: Tue May 13 11:34:30 2014 +0200 losetup: return EXIT_FAILURE on unsuccessful -f Reported-by: Ruediger Meier Signed-off-by: Karel Zak sys-utils/losetup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit b9c7390948c7850db2bee82ad64624930962cc14 Author: Werner Fink Date: Thu May 8 12:09:25 2014 +0200 agetty: beside virtual consoles support xvc and hvc device lines as well For this approach do not use the ioctl TIOCMGET anymore as this is for real serial lines only. But switch over to use the ioctl KDGKBMODE as this is unique to the virtual console lines only. Signed-off-by: Werner Fink login-utils/sulogin.c | 17 ++++++++++++----- term-utils/agetty.c | 23 +++++++++++------------ 2 files changed, 23 insertions(+), 17 deletions(-) commit f2bcda5183e22c8d7a477504a264669109da6c7e Author: Werner Fink Date: Thu May 8 12:09:24 2014 +0200 agetty: better support of the special system consoles on S390 That is that there are several consoles, the /dev/ttyS0 which is type of ibm3215 and a dumb terminal, then there is the device /dev/3270/tty1 which can handle ANSI color escape sequences and is a ibm327x terminal, and the /dev/ttyS1 which is a vt220 terminal. The macro is_speed() in agetty.c allows to distinguish between the terminal line (/dev)3270/tty1 and the speed options on the command line used in /run/systemd/generator/getty.target.wants/serial-getty@3270-tty1.service which is a symbolic link to /usr/lib/systemd/system/serial-getty@.service Signed-off-by: Werner Fink login-utils/sulogin.c | 8 +++++++- term-utils/agetty.c | 15 ++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) commit 624b204d7bdebdc5cac17d17830c397722c6dfea Author: Werner Fink Date: Thu May 8 12:09:23 2014 +0200 sulogin: find a suitable console device Enable sulogin to find a suitable console device even if the first line in /proc/consoles does not have any major and minor number. Signed-off-by: Werner Fink login-utils/sulogin-consoles.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit bb280f79f188f910c41e97fd5fa8889ae8b76d62 Author: Werner Fink Date: Thu May 8 12:09:22 2014 +0200 agetty: avoid that agetty nor sulogin are fooled by a running plymouth The nowadays used plymouth locks the devices used for the system console which causes that agetty as well as sulogin can not modify the termios settings of e.g. the serial devices of the systenm console. Signed-off-by: Werner Fink login-utils/sulogin.c | 51 ++++++++++++++++++++++++++++++++++- term-utils/agetty.c | 75 ++++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 118 insertions(+), 8 deletions(-) commit a08fa9ab575b3080b50aae904c7b8fc215ed2429 Author: Karel Zak Date: Tue May 13 09:58:58 2014 +0200 cfdisk: fix compiler warning [-Wsign-compare] Signed-off-by: Karel Zak disk-utils/cfdisk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 293eef71eaf92adca160fa2be18c92240c586f58 Author: Karel Zak Date: Tue May 13 09:55:10 2014 +0200 Revert "blkid: remove unused variable" This reverts commit 0fd4b8132587a264f1e0df46eec7c12bba68c752. misc-utils/blkid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 73548d6e6021d8e9ce101c52ca7a997d787e54bc Author: Karel Zak Date: Tue May 13 09:52:42 2014 +0200 libfdisk: fix %ju -> %zu Signed-off-by: Karel Zak libfdisk/src/table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b5eb509709de3e720c155ae55c7aef2271f217ac Author: Ruediger Meier Date: Mon May 12 01:43:03 2014 +0200 tests: ts_device_init remove useless error handling Don't know why we should deinit the empty string. This patch prepares further refactoring or error handling. Signed-off-by: Ruediger Meier tests/functions.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) commit 3393c136a2f77e24c20a782965049f077874bb38 Author: Sami Kerola Date: Sun May 11 20:26:49 2014 +0100 setterm: convert remaining magic values to symbolic references Signed-off-by: Sami Kerola Signed-off-by: Karel Zak term-utils/setterm.c | 67 ++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 47 insertions(+), 20 deletions(-) commit 010f219d5f684b3d359deb6ec46ac4018908a654 Author: Sami Kerola Date: Sun May 11 20:26:48 2014 +0100 setterm: convert various constant number definitions to enums The enum strings are visible when using debugger. Signed-off-by: Sami Kerola term-utils/setterm.c | 46 ++++++++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 20 deletions(-) commit 6ed37604fe93da95aa3c91df9af0e157c11659e4 Author: Karel Zak Date: Mon May 12 13:53:10 2014 +0200 setterm: cleanup printf() usage Signed-off-by: Karel Zak term-utils/setterm.c | 82 +++++++++++++++------------------------------------- 1 file changed, 24 insertions(+), 58 deletions(-) commit 45656c9fe1a5302701e566e1c028805194f94c91 Author: Sami Kerola Date: Sun May 11 20:26:46 2014 +0100 setterm: remove unused code Signed-off-by: Sami Kerola term-utils/setterm.c | 71 +++------------------------------------------------- 1 file changed, 3 insertions(+), 68 deletions(-) commit 42e296b59dd018836d172cad395a8938438241c3 Author: Sami Kerola Date: Sun May 11 20:26:45 2014 +0100 wall: replace magic number by named value Signed-off-by: Sami Kerola Signed-off-by: Karel Zak term-utils/wall.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) commit afbdd44fe3f01d33d7a22099ca806a18b14eea85 Author: Sami Kerola Date: Sun May 11 20:26:44 2014 +0100 term-utils: avoid error message string length couting errors Remove various magic numbers with either a string lenght count, or a symbolic variable that is recognized by gdb. [kzak@redhat.com: - use snprintf() everywhere, - check snprintf() return code rather than mess up the code with strlens] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak term-utils/ttymsg.c | 66 ++++++++++++++++++++++++++--------------------------- 1 file changed, 32 insertions(+), 34 deletions(-) commit 89dda6786882d37701b24fb430466b6af71c3f50 Author: Sami Kerola Date: Sun May 11 20:26:43 2014 +0100 build-sys: remove unnecessary void casts Signed-off-by: Sami Kerola misc-utils/logger.c | 2 +- term-utils/ttymsg.c | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) commit 4d7d1af6745f79cdf591bf45d74a8cd9f4a65a6c Author: Sami Kerola Date: Sun May 11 20:26:42 2014 +0100 logger: check numeric priority and facility input values Earlier use of unknown facility or priority number was accepted, and resulted in unexpected result. For example when looking journalctl --priority=7.8 was converted to priotity 0 and facility 1. Signed-off-by: Sami Kerola misc-utils/logger.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) commit 047e2888a318ccad5f636edb6692cbdede80d14d Author: Sami Kerola Date: Sun May 11 20:26:41 2014 +0100 logger: fail when io vector number exceeds maximum Earlier version silently failed without logging anything. $ logger --journald=/etc/services ; echo $? 1 Signed-off-by: Sami Kerola misc-utils/logger.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit 0fd4b8132587a264f1e0df46eec7c12bba68c752 Author: Sami Kerola Date: Sun May 11 20:26:40 2014 +0100 blkid: remove unused variable Signed-off-by: Sami Kerola misc-utils/blkid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 198556b76caadc90286db2f489fbfafffc4bb3cb Author: Sami Kerola Date: Sun May 11 20:26:39 2014 +0100 cytune: remove from util-linux Assumption is there are not many who need this tool. Whom ever they might be the recommendation is to use the command from old util-linux release. Second reason to removal is difficulty to test hardware specific command when none of the active project members does not seem to have such. Basically the command has reached dead end what comes to maintainability of it. Signed-off-by: Sami Kerola .gitignore | 1 - bash-completion/Makemodule.am | 4 - bash-completion/cytune | 41 -- configure.ac | 9 - sys-utils/Makemodule.am | 7 - sys-utils/cyclades.h | 16 - sys-utils/cytune.8 | 194 --------- sys-utils/cytune.c | 461 --------------------- tests/expected/build-sys/config-all | 1 - tests/expected/build-sys/config-all-devel | 1 - tests/expected/build-sys/config-all-non-nls | 1 - tests/expected/build-sys/config-audit | 1 - tests/expected/build-sys/config-chfnsh-libuser | 1 - tests/expected/build-sys/config-chfnsh-no-password | 1 - tests/expected/build-sys/config-chfnsh-pam | 1 - tests/expected/build-sys/config-core | 1 - tests/expected/build-sys/config-devel | 1 - tests/expected/build-sys/config-devel-new-mount | 1 - tests/expected/build-sys/config-devel-non-docs | 1 - tests/expected/build-sys/config-non-libblkid | 1 - tests/expected/build-sys/config-non-libmount | 1 - tests/expected/build-sys/config-non-libs | 1 - tests/expected/build-sys/config-non-libuuid | 1 - tests/expected/build-sys/config-non-nls | 1 - tests/expected/build-sys/config-selinux | 1 - tests/expected/build-sys/config-slang | 1 - tests/expected/build-sys/config-static | 1 - 27 files changed, 752 deletions(-) commit 1e29f37dde7f15183837a1542958946f9716a1fc Author: Sami Kerola Date: Sun May 11 20:26:38 2014 +0100 tests: check /proc availability, and go-around if it is incomplete Unavailability of /proc is fatal for kill, and continuing with the test in that case does not make sense as it will only mean false positive errors. Where /proc//status file(s) does not exist the check will perform opportunistic sleep with assumption the test_sigreceive will be ready to be killed if it has some time to init. [kzak@redhat.com: - remove dependence on gawk, just use shell - fix typo in "test /proc"] CC: Ruediger Meier Reference: https://travis-ci.org/rudimeier/util-linux/jobs/24561058 Signed-off-by: Sami Kerola Signed-off-by: Karel Zak tests/ts/kill/kill_functions.sh | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) commit 8e3ac29e8b7a8cc0f5ae475911d0b3d5b32e2a8e Merge: 6e69f1e 9b240fd Author: Karel Zak Date: Mon May 12 12:32:33 2014 +0200 Merge branch 'tests-features' of https://github.com/rudimeier/util-linux * 'tests-features' of https://github.com/rudimeier/util-linux: tests: style Makefile and make output tests: allow to add or override test suite options tests: add exit case "KNOWN FAILED" tests: fix var names tests: allow test options to be overridden by env tests: call ts_init_env as early as possible commit 9b240fd03add3189b4b831224f3c12658eb904a3 Author: Ruediger Meier Date: Sat May 10 17:23:22 2014 +0200 tests: style Makefile and make output We break long lines and make output sill looks nice with and without V=1. As a side effect we can now run make TS_COMMAND="true" to do nothing but building all check_PROGRAMS. Signed-off-by: Ruediger Meier tests/Makemodule.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 8bb87440daf54f2835196ef3cbf94549d3c9933a Author: Ruediger Meier Date: Sat May 10 17:14:45 2014 +0200 tests: allow to add or override test suite options Now we can do something like this make check TS_OPTS="--fake --parallel=32" Note we still always set --parallel but the last one wins. Signed-off-by: Ruediger Meier tests/Makemodule.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 7641ccec603a5aaca7fad465bf558ed78e4c31a0 Author: Ruediger Meier Date: Sat May 10 03:57:26 2014 +0200 tests: add exit case "KNOWN FAILED" Now we can mark tests as known to be broken without bothering users with exit failure. In the build log this "KNOWN FAILED" may be interpreted as TODO ;) The main advantage of "known-fail" instead of just skipping is that we will still find the test diff. Signed-off-by: Ruediger Meier tests/functions.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) commit 6e69f1ee0f3ee12bf544d0598b57af1fcff24a56 Author: Ruediger Meier Date: Thu May 8 19:01:03 2014 +0200 last: avoid leading "-" before "no logout" This affects option --time-format=notime. Signed-off-by: Ruediger Meier login-utils/last.c | 5 ++++- tests/expected/last/last | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) commit c08863ff72554b5449a371d1808e4e8fc1bb61de Author: Ruediger Meier Date: Sat May 10 07:04:11 2014 +0200 tests: fix var names Translate "." and "-" to "_". We assume that nobody will add completely stupid test file names. Signed-off-by: Ruediger Meier tests/functions.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit eac40eb009fe818040c8e3fc4af216bef58e15a5 Author: Ruediger Meier Date: Sat May 10 02:00:53 2014 +0200 tests: allow test options to be overridden by env Specially for automated builds the user may want to have some fine granulated influence like export TS_OPT_libmount_verbose="yes" export TS_OPT_ipcs_fake="yes" export TS_OPT_ipcs_limits2_fake="no" if then export TS_OPT_hexdump_fake="yes" fi make check Even for interactive developers this could be useful for example to debug just one particuar test while having a regular run with stress: TS_OPT_script_verbose="yes" \ TS_OPT_script_memcheck="yes" \ ../tests/run.sh --parallel=256 --srcdir=.. --builddir=. --nonroot Signed-off-by: Ruediger Meier tests/functions.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) commit d9a9ff09b80b4dcbdd266c7a7830d61491da674a Author: Ruediger Meier Date: Sat May 10 04:51:22 2014 +0200 tests: call ts_init_env as early as possible Soon we want to use some env vars within ts_has_option(). That's why we move some lines to make this possible. Signed-off-by: Ruediger Meier tests/functions.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) commit 4fcbfaa81d2831acbefe11fcdaed3eaa931475fc Author: Ruediger Meier Date: Thu May 8 18:48:21 2014 +0200 last: minor cleanup if statements Signed-off-by: Ruediger Meier login-utils/last.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit ce0aefbd0da77a63d94a4581893e7bb2f494a122 Author: Ruediger Meier Date: Thu May 8 17:58:37 2014 +0200 tests: add test case for last -time-format=full Signed-off-by: Ruediger Meier tests/expected/last/last | 19 ++++++++++++++++++- tests/ts/last/last | 5 ++++- 2 files changed, 22 insertions(+), 2 deletions(-) commit f16d5044e1f5c2dec5809b6e88b6bae083f8e142 Author: Ruediger Meier Date: Thu May 8 17:45:31 2014 +0200 last: --time-format=full should do the same like -F For no reason "full" did something else than "iso" or -F as you see here: $ ./last -f ../tests/ts/last/wtmp.LE --time-format=full | grep -A2 "no logout" torvalds linux hobby Mon Aug 26 02:57:08 1991 gone - no logout reboot system boot system-name Wed Aug 28 20:00:00 2013 still running reboot system boot system-name Wed Aug 28 18:00:00 2013 - Wed Aug 28 19:00:00 2013 (01:00) $ ./last -f ../tests/ts/last/wtmp.LE --time-format=iso | grep -A2 "no logout" torvalds linux hobby 1991-08-26T02:57:08+0200 gone - no logout reboot system boot system-name 2013-08-28T20:00:00+0200 still running reboot system boot system-name 2013-08-28T18:00:00+0200 - 2013-08-28T19:00:00+0200 (01:00) $ ./last -f ../tests/ts/last/wtmp.LE -F | grep -A2 "no logout" torvalds linux hobby Mon Aug 26 02:57:08 1991 gone - no logout reboot system boot system-name Wed Aug 28 20:00:00 2013 still running reboot system boot system-name Wed Aug 28 18:00:00 2013 - Wed Aug 28 19:00:00 2013 (01:00) Also note the useless leading space before "gone" The only thing which matters is fmt->out width when printing these strings like "still running". Now ctl->fulltime flag is unsused and removed. Signed-off-by: Ruediger Meier login-utils/last.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) commit d3108db19e256511fe45786b0f2eac5e2d9d901d Author: Ruediger Meier Date: Wed May 7 14:40:05 2014 +0200 last: fix uninitialized length length was unset when using "last --time-format=iso" Signed-off-by: Ruediger Meier login-utils/last.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit c60329b33f859726a8549475f03d68ae2dce76fb Author: Karel Zak Date: Wed May 7 11:48:53 2014 +0200 libsmartcols: (docs) reorder functions in version section Signed-off-by: Karel Zak libsmartcols/docs/libsmartcols-sections.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit acb5f9b56e14db9b684e245bfdf647522c9a57b4 Author: Sami Kerola Date: Sun May 4 16:39:38 2014 +0100 column: inform user when multibyte conversion error occurs The column(1) read input until conversion error, and used incomplete input when outputing, that made at least me to wonder where the rest disappeared without explanation. IMHO it is better to fail immediately rather than do only half of the task. Signed-off-by: Sami Kerola tests/expected/column/invalid-multibyte | 1 + tests/ts/column/invalid-multibyte | 30 ++++++++++++++++++++++++++++++ text-utils/column.c | 8 +++++++- 3 files changed, 38 insertions(+), 1 deletion(-) commit c571e61969ec1e38b9aa84a1871c7e2266123ad4 Merge: 2c5484f 48f9e0b Author: Karel Zak Date: Wed May 7 09:21:52 2014 +0200 Merge branch 'kill-tests' of https://github.com/rudimeier/util-linux commit 2c5484f7b200ff6ecb444b2bef4830c772064257 Author: Karel Zak Date: Tue May 6 20:27:10 2014 +0200 lib/boottime: add a new file Signed-off-by: Karel Zak lib/boottime.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) commit 48f9e0b258a3f20a82f2b976885b5ee22b8e7460 Author: Ruediger Meier Date: Tue May 6 19:16:53 2014 +0200 tests: fix kill problems There were several failures (missing tmp files, missing pids) on travis build farm which I couldn't track down completely. Here we fix some possible issues: - mktemp -u is unsafe, maybe even in practice if there is a bad random generator - make sure that mktemp does not give us pure integer filnames which would not work for "kill by-name" - avoid using trap, could be that it removed tmp files on wrong signals Signed-off-by: Ruediger Meier tests/ts/kill/all_processes | 7 ++++--- tests/ts/kill/name_to_number | 7 ++++--- tests/ts/kill/options | 6 +++--- tests/ts/kill/print_pid | 6 +++--- 4 files changed, 14 insertions(+), 12 deletions(-) commit 8d4d36e287790f8b121d06dc200ec52337a143b5 Author: Ruediger Meier Date: Tue May 6 18:48:35 2014 +0200 tests: kill_functions.sh needs gawk (skip if sourced) Signed-off-by: Ruediger Meier tests/ts/kill/kill_functions.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 5d7bdfd653f6bafc1f672f1372dce5c0479ccf39 Author: Karel Zak Date: Tue May 6 16:38:53 2014 +0200 include/boottime: add a new file Signed-off-by: Karel Zak include/boottime.h | 9 +++++++++ 1 file changed, 9 insertions(+) commit 08ca3e26a8feb0353a960b6b6d20ccb2755db8af Author: Karel Zak Date: Tue May 6 13:16:05 2014 +0200 lib/timeutils: remove get_boot_time from libcommon clock_gettime() needs -lrt, so let's keep this stuff outside libcommon.la Reported-by: Ruediger Meier Signed-off-by: Karel Zak include/Makemodule.am | 1 + include/timeutils.h | 1 - lib/timeutils.c | 26 -------------------------- login-utils/Makemodule.am | 4 ++-- login-utils/last.c | 1 + sys-utils/Makemodule.am | 2 +- sys-utils/dmesg.c | 1 + 7 files changed, 6 insertions(+), 30 deletions(-) commit f55b4b45126b657fe02f5f0d3d7fde740e6a6247 Author: Karel Zak Date: Tue May 6 12:51:42 2014 +0200 hwclock: fix typo Reported-by: Stanislav Brabec Signed-off-by: Karel Zak sys-utils/hwclock.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) commit db8fc5f37728810bdd5b865ac420c31714e35def Author: Stanislav Brabec Date: Mon May 5 20:49:49 2014 +0200 hwclock: Check drift value in /etc/adjtime Due to bug in older versions of hwclock, /etc/adjtime can contain excessive drift value (up to many years per day). Prevent it from applying. Signed-off-by: Stanislav Brabec sys-utils/hwclock.c | 4 ++++ 1 file changed, 4 insertions(+) commit f196fd1a5f8fff63635fd88b5a0f0bbc96978df2 Author: Stanislav Brabec Date: Mon May 5 20:49:29 2014 +0200 hwclock: Prevent excessive drift values Failure of CMOS battery can cause writing of excessive drift values (up to many years per day). This causes excessive hwclock adjustment next time, which may lead to overflow in calculate_adjustment() (and hang before 4a44a54b). Prevent this situation, check drift for limits and reset drift to zero instead. Steps to reproduce: mv /etc/adjtime /etc/adjtime.backup rm /etc/adjtime hwclock --set --date 2001-01-01\ 01:00:00 changing of /etc/adjtime. mv /etc/adjtime /etc/adjtime.saved hwclock --set --date 2001-01-02\ 01:00:01 mv /etc/adjtime.saved /etc/adjtime echo "======= The /etc/adjtime has a \"correct\" look:" cat /etc/adjtime hwclock --debug --systohc --utc echo "======= The /etc/adjtime now has deeply failed drift value:" cat /etc/adjtime mv /etc/adjtime /etc/adjtime.saved hwclock --set --date 2015-01-01\ 01:00:00 mv /etc/adjtime.saved /etc/adjtime hwclock --debug --adjust echo "======= And the last /etc/adjtime:" cat /etc/adjtime mv /etc/adjtime.backup /etc/adjtime hwclock --systohc --utc Signed-off-by: Stanislav Brabec sys-utils/hwclock.c | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) commit 802cb7db7147cc0a79647d2c45833d12b73c7b8a Author: Bjarni Ingi Gislason Date: Sat May 3 02:32:36 2014 +0000 chsh: Improve the typesetting of the manual Protect a full stop (.), that begins or ends a string, with \& Change '-' to '\-', if it indicates an option Signed-off-by: Bjarni Ingi Gislason login-utils/chsh.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit b5fff5211b3cee057f46b6e45394365484b26dc9 Author: Bjarni Ingi Gislason Date: Sat May 3 02:32:35 2014 +0000 chfn: Improve the typesetting of the manual Change comma (,) to a period (.) as it is the control character Use macro RB instead of the reverse one (BR) Add missing [ in front of an (optional) option Protect a full stop (.), that begins or ends a string, with \& Change '-' to '\-', if it indicates an option Signed-off-by: Bjarni Ingi Gislason login-utils/chfn.1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 4f712efe894f10c6df7617294fc62222cd1fc82d Author: Bjarni Ingi Gislason Date: Fri May 2 02:37:41 2014 +0000 libuuid: (uuid.3) Improve the typesetting of the manual Protect a full stop (.), that begins or ends a string, with \& Signed-off-by: Bjarni Ingi Gislason libuuid/man/uuid.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit da9389566123b310ab1ee2c02062952566631cef Author: Bjarni Ingi Gislason Date: Fri May 2 02:37:40 2014 +0000 libuuid: (uuid_unparse.3) Improve the typesetting of the manual Change '\-' (minus) to '-' (code "hyphen-minus", rendered with the glyph 'hyphen' in troff), if it is a part of a compound word. Use \e to print the escape character, instead of \\, as \e is not interpreted in copy mode Protect a full stop (.), that begins or ends a string, with \& Inhibit right adjusting for the section "SEE ALSO" with ".na/.ad", or use '.ad l' for the entire manual Signed-off-by: Bjarni Ingi Gislason libuuid/man/uuid_unparse.3 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit c5280309c4f5010fc5a1dc3e13be97e871da7f65 Author: Bjarni Ingi Gislason Date: Fri May 2 02:37:39 2014 +0000 libuuid: (man/uuid_time.3) Improve the typesetting of the manual Protect a full stop (.), that begins or ends a string, with \& Inhibit right adjusting for the section "SEE ALSO" with ".na/.ad", or use '.ad l' for the entire manual Signed-off-by: Bjarni Ingi Gislason libuuid/man/uuid_time.3 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 7a8c8e7efd54bd9c3ef24ca04efdea65ea7ad659 Author: Bjarni Ingi Gislason Date: Fri May 2 02:37:38 2014 +0000 libuuid: (uuid_parse.3) Improve the typesetting of the manual Use \e for the printable escape character instead of \\ Protect a full stop (.), that begins or ends a string, with \& Inhibit right adjusting for the section "SEE ALSO" with ".na/.ad", or use '.ad l' for the entire manual Signed-off-by: Bjarni Ingi Gislason libuuid/man/uuid_parse.3 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 377c30b4ead5f317a6a0fa69fd794259b5b0c7a8 Author: Bjarni Ingi Gislason Date: Fri May 2 02:37:37 2014 +0000 libuuid: (uuid_is_null.3) Improve the typesetting of the manual Protect a full stop (.), that begins or ends a string, with \& Inhibit right adjusting for the section "SEE ALSO" with ".na/.ad", or use '.ad l' for the entire manual Signed-off-by: Bjarni Ingi Gislason libuuid/man/uuid_is_null.3 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit ba0738ea7e901c297ad10107dd1e2e9a2378f8af Author: Bjarni Ingi Gislason Date: Fri May 2 02:37:36 2014 +0000 libuuid: (uuid_generate) Improve the typesetting of the manual Change '-' to '\-', if it means a minus Protect a full stop (.), that begins or ends a string, with \& Signed-off-by: Bjarni Ingi Gislason libuuid/man/uuid_generate.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit e12e2bac5152525e2aaff075ebecbb3f07ce9b4b Author: Bjarni Ingi Gislason Date: Fri May 2 02:37:35 2014 +0000 libuuid: (uuid_copy.3) Improve the typesetting of the manual Protect a full stop (.), that begins or ends a string, with \& Inhibit right adjusting for the section "SEE ALSO" with ".na/.ad", or use '.ad l' for the entire manual Signed-off-by: Bjarni Ingi Gislason libuuid/man/uuid_copy.3 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 0d3aa3b259da9c53d05211eb40d2378580bfa9b7 Author: Bjarni Ingi Gislason Date: Fri May 2 02:37:34 2014 +0000 libuuid: (uuid_compare.3) Improve the typesetting of the manual Protect a full stop (.), that begins or ends a string, with \& Inhibit right adjusting for the section "SEE ALSO" with ".na/.ad", or use '.ad l' for the entire manual Signed-off-by: Bjarni Ingi Gislason libuuid/man/uuid_compare.3 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit c1991c296de6f7d5ecd2ce97de6ef577ade0ccbc Author: Bjarni Ingi Gislason Date: Fri May 2 02:37:33 2014 +0000 libuuid: (uuid_clear.3) Improve the typesetting of the manual Protect a full stop (.), that begins or ends a string, with \& Inhibit right adjusting for the section "SEE ALSO" with ".na/.ad", or use '.ad l' for the entire manual Signed-off-by: Bjarni Ingi Gislason libuuid/man/uuid_clear.3 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 2574500f31d2229ac7106429f428e22104a67cd4 Author: Bjarni Ingi Gislason Date: Wed Apr 30 02:05:00 2014 +0000 lib/terminal-colors.d.5: Improve the typesetting of the manual Remove '\&' in front of a full stop (.), when it does not start or end a string Adjust space between sentences to two space characters (or begin each sentence on a new line). Signed-off-by: Bjarni Ingi Gislason lib/terminal-colors.d.5 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) commit c6f285fcb3601df9dfc2b9086c11f1ace9e6b9e0 Author: Bjarni Ingi Gislason Date: Wed Apr 30 02:04:59 2014 +0000 libblkid/libblkid.3: Improve the typsetting of the manual Correct space between sentences to two space characters (or begin each sentence on a new line). Signed-off-by: Bjarni Ingi Gislason libblkid/libblkid.3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit cc89383b3207f14671ad4266bb945347d5c1b609 Author: Andy Lutomirski Date: Wed Apr 30 22:10:13 2014 -0700 setpriv: Fix --selinux-label This commit: commit 05cef8eafbf169a8da1d2831f5ed3d5b1b81aaad Author: Sami Kerola Date: Sat Apr 13 20:54:59 2013 +0100 setpriv: check writing to a file descriptor was successful broke --selinux-label. It checks whether fsyncing /proc/self/attr/exec succeeds, and it doesn't, because fsync isn't supported on that file. I have stealthily improved the error message as part of this fix. Signed-off-by: Andy Lutomirski sys-utils/setpriv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit aa06617f6ef8dceff939bdd233fa7df382344ecf Author: Benno Schulenberg Date: Wed Apr 30 10:38:12 2014 +0200 textual: remove square brackets from around three dots Also improve some option descriptions here and there. Signed-off-by: Benno Schulenberg disk-utils/sfdisk.c | 6 +++--- misc-utils/kill.c | 2 +- sys-utils/cytune.8 | 8 ++++---- sys-utils/cytune.c | 12 ++++++------ sys-utils/ipcrm.c | 8 ++++---- sys-utils/losetup.c | 10 +++++----- text-utils/hexdump.1 | 2 +- 7 files changed, 24 insertions(+), 24 deletions(-) commit 83eda7782c35474688c74fccc28717ba95918a9e Author: Benno Schulenberg Date: Tue Apr 29 17:33:04 2014 +0200 docs: grammarize the usage howto Signed-off-by: Benno Schulenberg Documentation/howto-usage-function.txt | 158 ++++++++++++++++----------------- 1 file changed, 78 insertions(+), 80 deletions(-) commit 2d745ee6e61a161fda76f0a74e1b12d7de8b3505 Author: Benno Schulenberg Date: Tue Apr 29 15:42:23 2014 +0200 textual: slice up and standardize the usage text of ionice Done for ease of translation and maintenance. Also improve the clarity of some of the descriptions, and of one error message. Signed-off-by: Benno Schulenberg schedutils/ionice.c | 54 ++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) commit b6973e5d238e948965ecdd47ee3bc79db2509d75 Author: Benno Schulenberg Date: Tue Apr 29 11:36:22 2014 +0200 ionice: add a missing error message Signed-off-by: Benno Schulenberg schedutils/ionice.c | 1 + 1 file changed, 1 insertion(+) commit 0de963ce413ce37088c453620a7b01182611b611 Author: Benno Schulenberg Date: Mon Apr 28 23:12:41 2014 +0200 ipcs: do not gettextize wordless strings Also tweak a few parts of the usage message. Signed-off-by: Benno Schulenberg sys-utils/ipcs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 82b219f7061483d451e372534c85906296bc779b Author: Benno Schulenberg Date: Mon Apr 28 18:15:00 2014 +0200 include/c: do not gettextize a wordless string Signed-off-by: Benno Schulenberg include/c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 51dfd171cd6a4e65148a74b119e09859be1df407 Author: Benno Schulenberg Date: Mon Apr 28 18:10:38 2014 +0200 lib/colors: change an include to a local one Signed-off-by: Benno Schulenberg lib/colors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 459e95f39199c47d11776151f6b4f15537fa1bfb Author: Benno Schulenberg Date: Mon Apr 28 18:08:42 2014 +0200 include/carefulputc: remove a duplicate include Also tweak a comment. Signed-off-by: Benno Schulenberg include/carefulputc.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit 68411ba260c55d527b8e702daeeff02c2f2a27d7 Author: Benno Schulenberg Date: Mon Apr 28 17:52:42 2014 +0200 include/c: remove a duplicate include Also tweak some comments. Signed-off-by: Benno Schulenberg include/c.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) commit 1b4d2a4a4aa7df52033d293f26cd4fa79f95578d Author: Masatake YAMATO Date: Sun Apr 27 14:18:41 2014 +0900 lsblk: add -O option to show all available columns Simple command line for gathering information as many as possible is useful when understanding a system, especially when trouble shooting. This patch introduces -O option which enables all available columns. [kzak@redhat.com: - define collisions between options, - define columns when parse argv[]] Signed-off-by: Masatake YAMATO Signed-off-by: Karel Zak misc-utils/lsblk.8 | 3 +++ misc-utils/lsblk.c | 13 ++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) commit d12d063b4a70a71e4517f70253738e5acdf34613 Author: Karel Zak Date: Tue May 6 10:28:26 2014 +0200 dmesg: add missing include Signed-off-by: Karel Zak sys-utils/dmesg.c | 1 + 1 file changed, 1 insertion(+) commit 140b0061723ef22f870732be4b47a13b92bdb49b Author: Karel Zak Date: Tue May 6 10:21:24 2014 +0200 libsmartcols: check recount_widths() return value Reported-by: Sami Kerola Signed-off-by: Karel Zak libsmartcols/src/table_print.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit dc64469f4f821831b4c7c4413f85829a3eb32f13 Author: Sami Kerola Date: Sat Apr 26 18:30:06 2014 +0100 lib/pager: use names when referring to standard file descriptors Signed-off-by: Sami Kerola lib/pager.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) commit 06264d6341fb747f506bf7ed4e7fa060b1821999 Author: Sami Kerola Date: Sat Apr 26 17:50:46 2014 +0100 lib/timeutils: fix memory leak Signed-off-by: Sami Kerola lib/timeutils.c | 1 + 1 file changed, 1 insertion(+) commit 24f83f7392a1e90e7db8567a675fdcd8f2e3e623 Author: Sami Kerola Date: Sat Apr 26 00:50:30 2014 +0100 swapon, swapheader, mkswap: move swap signature to header Both swapon and mkswap need to know what is valid device signature, so share the value. [kzak@redhat.com: - use SWAP_SIGNATURE_SZ properly in write_signature()] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak disk-utils/mkswap.c | 4 ++-- include/swapheader.h | 2 ++ sys-utils/swapon.c | 3 --- 3 files changed, 4 insertions(+), 5 deletions(-) commit eb397d19e447e723ea293ecdcd4441fa8fe017f2 Author: Sami Kerola Date: Sat Apr 26 00:40:28 2014 +0100 swapon: swaps with legacy version label are not supported Reviewed-by: Benno Schulenberg Signed-off-by: Sami Kerola sys-utils/swapon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit d38b55375f7fceda03544c355e4b5350100029db Author: Sami Kerola Date: Fri Apr 25 22:08:23 2014 +0100 include/swapheader.h: ensure type sizes Use consistently the same type sizes as in libblkid and kernel. Signed-off-by: Sami Kerola include/swapheader.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) commit 506b4999916dae071a4368f137f807ae4f178a6e Author: Sami Kerola Date: Fri Apr 25 22:05:33 2014 +0100 mkswap: remove legacy swap structure If software archeolgists want to know how the old, and unused, swap header looked they can dig it from the revision history. [kzak@redhat.com: - use sizeof() for SWAP_HEADER_SIZE] Reference: 4c85aa3a4c26f2a2c33bf16960b548d5bbd5b4bf Signed-off-by: Sami Kerola Signed-off-by: Karel Zak disk-utils/mkswap.c | 3 +-- include/swapheader.h | 12 ++---------- 2 files changed, 3 insertions(+), 12 deletions(-) commit 8a101b1447ce3f5c0286c5ebea452920b38133d3 Author: Sami Kerola Date: Fri Apr 25 21:37:58 2014 +0100 mkswap, swaplabel: move version number to header Corrently only the swap version 1 is supported, which is a magic value so move it to header. Signed-off-by: Sami Kerola disk-utils/mkswap.c | 10 +++++----- disk-utils/swaplabel.c | 4 ++-- include/swapheader.h | 1 + sys-utils/swapon.c | 10 ++++------ 4 files changed, 12 insertions(+), 13 deletions(-) commit ff1aaf99663595c614fb706e4cf7d8382b38e940 Author: Sami Kerola Date: Fri Apr 25 21:36:58 2014 +0100 include/c.h: add macro to print definitions as string Signed-off-by: Sami Kerola include/c.h | 9 +++++++++ 1 file changed, 9 insertions(+) commit 0e5218acd9ee73b0042489addf202a9b3cf799ed Author: Sami Kerola Date: Wed Apr 23 23:32:11 2014 +0100 last: fix is_phantom() detection The /proc//loginuid is not always available, and when so a running session should not be determined to be gone. This is a regression from commit mentioned in reference. Sessions that have started before previous system boot, and did not log out meanwhile, will be marked as gone. It is fair to say that these sessions are most likely result of a wtmp corruption. Reference: 404fa3f93c00c7e130f5a0ec963b2dc6a3743986 Signed-off-by: Sami Kerola login-utils/last.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) commit 929f939e6aa49952881d44706e4249ca7d644578 Author: Sami Kerola Date: Wed Apr 23 22:59:29 2014 +0100 dmesg: move get_boot_time() to lib/timeutils In future the last(1) will use get_boot_time() as well. Signed-off-by: Sami Kerola include/timeutils.h | 1 + lib/timeutils.c | 29 +++++++++++++++++++++++++++++ sys-utils/dmesg.c | 27 --------------------------- 3 files changed, 30 insertions(+), 27 deletions(-) commit edd2af005cdd10ab97ea2e4d006399d3dd861e47 Author: Karel Zak Date: Tue Apr 29 10:37:26 2014 +0200 uuidd: remove timeout from systemd service file It seems that SAP does not like the timeout, for performance is better to keep the daemon permanently running. This is no problem because uuidd is used only on systems with very unusual requirements to UUID. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1092039 Signed-off-by: Karel Zak misc-utils/uuidd.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7a1c980c68db5a6f85478c5a0ca21d25c67287e9 Author: Karel Zak Date: Mon Apr 28 12:01:37 2014 +0200 tests: add kill_functions.sh to avoid duplicate code Signed-off-by: Karel Zak tests/ts/kill/all_processes | 20 +++++--------------- tests/ts/kill/kill_functions.sh | 22 ++++++++++++++++++++++ tests/ts/kill/name_to_number | 23 ++++++----------------- tests/ts/kill/options | 22 +++++----------------- tests/ts/kill/print_pid | 21 +++++---------------- 5 files changed, 43 insertions(+), 65 deletions(-) commit dade4ff7aee724848c39a51d4dad4ac3a3e2c83b Merge: 4593e07 1786a9a Author: Karel Zak Date: Mon Apr 28 11:10:40 2014 +0200 Merge branch 'kill-tests-v4' of git://github.com/kerolasa/lelux-utiliteetit * 'kill-tests-v4' of git://github.com/kerolasa/lelux-utiliteetit: lib/procutils: notice setuid() process ownership changes lib/procutils: reset errno before strtol() call kill: add --verbose option to display what is killed tests: check kill all user processes tests: check kill print pid option tests: check various ways to specify kill signal tests: check kill is converting signals names correctly tests: add signal receiver program kill: remove unnecessary indirection kill: make options --pid and --queue mutually exclusive commit 1786a9ac2b32d2259d765f54563657a2116eb792 Author: Sami Kerola Date: Sun Apr 20 10:36:05 2014 +0100 lib/procutils: notice setuid() process ownership changes Earlier the owner of a process was determined by owner of the /proc//stat file. When changes user ID privileges with setuid() the stat file ownership is not updated, that resulted kill(1) to consider such processes where running using same uid as the present process. Signed-off-by: Sami Kerola lib/procutils.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit 5889fbe592457afa51da684df9337f1588469ffa Author: Sami Kerola Date: Tue Apr 15 11:54:21 2014 +0100 lib/procutils: reset errno before strtol() call When going through /proc the last entry made readdir() to alter errno, which made the strtol() to think something went wrong, resulting kill(1) tests to fail when running in --parallel mode. Signed-off-by: Sami Kerola lib/procutils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit d1fd774289b821b28676a5f7ad6536aba15d6fc8 Author: Sami Kerola Date: Tue Apr 15 11:40:33 2014 +0100 kill: add --verbose option to display what is killed Signed-off-by: Sami Kerola misc-utils/kill.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) commit 2556c387aa073c0165bbfe323bf6a42141430518 Author: Sami Kerola Date: Sat Apr 12 00:59:31 2014 +0100 tests: check kill all user processes CC: Bernhard Voelker Signed-off-by: Sami Kerola tests/commands.sh | 2 +- tests/expected/kill/all_processes | 5 +++ tests/ts/kill/all_processes | 66 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+), 1 deletion(-) commit 2d8aa0b7045b78133d0b86676b4107d6da123609 Author: Sami Kerola Date: Sat Apr 12 00:33:55 2014 +0100 tests: check kill print pid option CC: Bernhard Voelker Signed-off-by: Sami Kerola tests/expected/kill/print_pid | 1 + tests/ts/kill/print_pid | 69 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) commit 76bf54b8a44a56041b998c1d144e8f31af84660f Author: Sami Kerola Date: Wed Apr 9 21:43:56 2014 +0100 tests: check various ways to specify kill signal CC: Bernhard Voelker Signed-off-by: Sami Kerola tests/expected/kill/options | 1 + tests/ts/kill/options | 77 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) commit d39182c1e0a043a55832939d3a5ae0055cdc818f Author: Sami Kerola Date: Wed Apr 9 21:13:51 2014 +0100 tests: check kill is converting signals names correctly CC: Bernhard Voelker Signed-off-by: Sami Kerola tests/commands.sh | 1 + tests/expected/kill/name_to_number | 1 + tests/ts/kill/name_to_number | 74 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+) commit 6b93dcbee173409133bcb1b1ddf15fe6063acb4a Author: Sami Kerola Date: Tue Apr 8 22:36:30 2014 +0100 tests: add signal receiver program Target to kill with a check that will be written later. CC: Bernhard Voelker Signed-off-by: Sami Kerola tests/commands.sh | 1 + tests/helpers/Makemodule.am | 4 + tests/helpers/test_sigreceive.c | 175 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 180 insertions(+) commit 3665b07cd8b7edf8c85d9b739ed1b496932de851 Author: Sami Kerola Date: Mon Apr 7 22:41:00 2014 +0100 kill: remove unnecessary indirection Signed-off-by: Sami Kerola misc-utils/kill.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) commit fe6b5e321f9e35d28ca0fa518ccaafbd9f641ee1 Author: Sami Kerola Date: Mon Apr 7 22:32:44 2014 +0100 kill: make options --pid and --queue mutually exclusive Signed-off-by: Sami Kerola misc-utils/kill.c | 6 ++++++ 1 file changed, 6 insertions(+) commit 4593e07513a846b66b9ea1eeceaad0646d41a2e6 Author: Karel Zak Date: Fri Apr 25 10:07:24 2014 +0200 mount: note that -c unused for mount. in man page Addresses: https://github.com/karelzak/util-linux/issues/70 Signed-off-by: Karel Zak sys-utils/mount.8 | 15 +++++++++++---- sys-utils/umount.8 | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) commit 24ed07818403f2ce52f9116a749036d58b91ca81 Author: Karel Zak Date: Thu Apr 24 13:42:54 2014 +0200 wipefs: don't erase nested partition tables by default It's possible the partition contains a partition table (BSD, or hybrid boot images). It could be unexpected for users that the lost all (or another) partitions when work with non-whole disk device. Let's require --force. For example: # wipefs --all /dev/sdb erases all including partition table, but on hybrid disk where the first partition starts at first sector (so partition table is within the first partition): # wipefs --all /dev/sdb1 /dev/sdb1: ignore nested "dos" partition table on non-whole disk device wipefs: Use the --force option to force erase. asks for --force. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1077310 Signed-off-by: Karel Zak misc-utils/wipefs.8 | 5 +++++ misc-utils/wipefs.c | 14 +++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) commit c425353570b3f8b429790ff8bbb959348eead233 Author: Karel Zak Date: Wed Apr 23 15:28:09 2014 +0200 docs: update TODO Signed-off-by: Karel Zak Documentation/TODO | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit bc56d837dd5094e559107507a58da07a2ff083c5 Author: Karel Zak Date: Wed Apr 23 12:34:48 2014 +0200 tests: update Py parse mountinfo test Signed-off-by: Karel Zak tests/expected/libmount/tabfiles-py-parse-mountinfo | 11 +++++++++++ 1 file changed, 11 insertions(+) commit e9c202cb4abe01c1444e54143d1638ce7eb5fe74 Author: Karel Zak Date: Wed Apr 23 12:34:24 2014 +0200 tests: rely on ts_init_py only Signed-off-by: Karel Zak tests/ts/libmount/tabfiles-py | 2 -- 1 file changed, 2 deletions(-) commit 816f5ccd127773d68390f88b4ee1b80c93d18009 Author: Karel Zak Date: Wed Apr 23 12:21:29 2014 +0200 tests: update fdisk sun test Signed-off-by: Karel Zak tests/expected/fdisk/sunlabel | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 885717c63e41e079b48f5e88d77fc1904c7ae83a Author: Karel Zak Date: Wed Apr 23 11:09:44 2014 +0200 Revert "dmesg: don't use brow/yellow in output" It will be better to support colors customization than use ugly blue color. BTW, for example git-log uses brow/yellow too by default. This reverts commit 0b6fbc25990d9498956e06bfcf699fca094e24a9. sys-utils/dmesg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 63ed346eca967c794428eeaab8af52b715f65cfd Author: Karel Zak Date: Wed Apr 23 09:27:13 2014 +0200 tests: add fdisk 'f' command MBR test Signed-off-by: Karel Zak tests/expected/fdisk/mbr-sort | 77 +++++++++++++++++++++++++++++++++++++++++ tests/ts/fdisk/mbr-sort | 79 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 156 insertions(+) commit c1156d85649c00f380a3189458ab779079ac5f25 Author: Karel Zak Date: Tue Apr 22 21:11:03 2014 +0200 libfdisk: (dos) improve logical partition reorder command - use qsort to sort by EBR offsets - sort by EBR data partition start sectors Signed-off-by: Karel Zak libfdisk/src/dos.c | 69 +++++++++++++++++++++++++++++------------------------- 1 file changed, 37 insertions(+), 32 deletions(-) commit 6c64adeeb6bf53dd376c24dfbd72c4e2f3ade420 Author: Karel Zak Date: Tue Apr 22 14:54:44 2014 +0200 libfdisk: (mbr) fix logical chain termination Signed-off-by: Karel Zak libfdisk/src/dos.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) commit bd1485a66f358edab070df41e0864ca39b301526 Merge: 46b1161 dadc509 Author: Karel Zak Date: Tue Apr 22 13:11:23 2014 +0200 Merge branch 'test-fdisk' of https://github.com/rudimeier/util-linux commit 46b11619a1410ab00c886d9ed1fb2f6dd6028adb Author: Bjarni Ingi Gislason Date: Mon Apr 21 00:30:27 2014 +0000 swaplabel: Improve the typesetting of the manual Change macro 'IR' to 'I' if it has only one (italic) argument Remove space at end of lines Signed-off-by: Bjarni Ingi Gislason disk-utils/swaplabel.8 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 2ad6d4fefe04fa376ad4d199a4d29a1aa854f034 Author: Bjarni Ingi Gislason Date: Mon Apr 21 00:30:26 2014 +0000 sfdisk: Improve the typesetting of the manual FIXME Units KB, MB, GB, etc. are ambiguous (not necessarily used here) Prefixes kilo, mega, giga, etc. are ambiguous with the unit byte (ditto) Change ' \- ' to ' \(en ' (an en-dash), if it is a dash (pause, separation) Change ' - ' to ' \(en ' (an en-dash), if it is a dash (pause, separation) Change '\-' to '-' (code "hyphen-minus", rendered with the glyph hyphen in troff), if it is a part of a compound name. A minus is not used in words. People using UTF-8 and copy-and-paste can(?) (may?) use "info", "man --ascii" or the command "man" should have an option to display the '-' ("hyphen-minus") in names of options with the code (character name) "hyphen-minus" (u002D) instead of "u2010" (code (character) name "hyphen"). Change '-' to '\-', if it indicates an option Protect a full stop (.), that begins or ends a string, with \& Correct space between sentences to two space characters (or begin each sentence on a new line). Change '--' to '\-\-', if it indicates an option Add \~ (no-break space) around '|' (means "or") Change ' -- ' to ' \(en ' (an en-dash), if it is a dash (pause, separation) Signed-off-by: Bjarni Ingi Gislason disk-utils/sfdisk.8 | 102 +++++++++++++++++++++++++++------------------------- 1 file changed, 54 insertions(+), 48 deletions(-) commit 930f40e31904c8d97302e8c924e43251137fcfb3 Author: Bjarni Ingi Gislason Date: Mon Apr 21 00:30:25 2014 +0000 raw: Improve the typesetting of the manual Remove space at end of lines Change '-' to '\-', if it indicates an option Signed-off-by: Bjarni Ingi Gislason disk-utils/raw.8 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit b4261b5eda918f817c4cd1ebac890eae99f7af5e Author: Bjarni Ingi Gislason Date: Mon Apr 21 00:30:24 2014 +0000 partx: Improve the typesetting of the manual Add a space character around '|' (means "or") Add "(hyphen-minus)" after "\-" to show character name for input Change '\-\-' to '\en', when it is used as a dash (pause, separation) Add a comma before "or" in a series of words (3 or more) Change '-' to '\(en' (an en-dash), if it means a range Protect a full stop (.), that begins or ends a string, with \& Change '--' to '\-\-', if it indicates an option Change '-' to '\-', if it indicates an option Change '-' to '\-', if means a minus Signed-off-by: Bjarni Ingi Gislason disk-utils/partx.8 | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) commit dadc5099861660e08886cdb1582bf3842418f79c Author: Ruediger Meier Date: Fri Apr 18 18:01:26 2014 +0200 tests: fdisk added a partitions order message (8b60872e) Signed-off-by: Ruediger Meier tests/expected/fdisk/bsd | 4 ++++ tests/expected/fdisk/mbr-dos-mode | 4 ++++ tests/expected/fdisk/mbr-nondos-mode | 6 ++++++ 3 files changed, 14 insertions(+) commit 9348ef251102eefdf9e352616393778f0950720f Author: Karel Zak Date: Fri Apr 18 14:00:39 2014 +0200 libfdisk: (gpt) implement 'fix order' commnad Signed-off-by: Karel Zak libfdisk/src/gpt.c | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) commit dd7ba604631ce57f194f56dfb71414e42d914a21 Author: Karel Zak Date: Fri Apr 18 13:26:08 2014 +0200 libfdisk: add partitions reorder operation to label API Signed-off-by: Karel Zak disk-utils/fdisk-menu.c | 8 ++++---- libfdisk/src/dos.c | 3 ++- libfdisk/src/fdiskP.h | 4 +++- libfdisk/src/label.c | 18 ++++++++++++++++++ libfdisk/src/libfdisk.h | 3 ++- 5 files changed, 29 insertions(+), 7 deletions(-) commit 4a9414413629a7815d99266c832b624ebd7441b6 Author: Karel Zak Date: Fri Apr 18 13:12:24 2014 +0200 nsenter: add + to getopt_long() Signed-off-by: Karel Zak sys-utils/nsenter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a9a4af90306c64e6b30f32189b7c719025fb797f Author: Karel Zak Date: Fri Apr 18 13:12:13 2014 +0200 unshare: add + to getopt_long() Signed-off-by: Karel Zak sys-utils/unshare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1fd4f609ee65be0f376ed28322fc3593026d39e4 Author: Lukas Czerner Date: Wed Apr 2 13:31:05 2014 +0200 fallocate: add FALLOC_FL_ZERO_RANGE support Recent Linux kernel supports FALLOC_FL_ZERO_RANGE in fallocate(2). This patch adds FALLOC_FL_ZERO_RANGE support to fallocate utility, by introducing a new option -z|--zero-range. Signed-off-by: Lukas Czerner sys-utils/fallocate.1 | 14 ++++++++++++++ sys-utils/fallocate.c | 25 +++++++++++++++++++------ 2 files changed, 33 insertions(+), 6 deletions(-) commit 83cc932d7412cb9d23bf9f06a9a54c8566e1a788 Author: Dongsu Park Date: Thu Feb 27 11:35:07 2014 +0100 fallocate: introduce an option -c to support COLLAPSE_RANGE Introduce a new option -c (or --collapse-range) to support a new flag FALLOC_FL_COLLAPSE_RANGE for fallocate(2). It will nullify a particular range [offset, offset+len] by shifting extents beyond the range to the beginning of the hole. Cc: Lukas Czerner Cc: Namjae Jeon Cc: Ashish Sangwan Signed-off-by: Dongsu Park sys-utils/fallocate.1 | 7 +++++++ sys-utils/fallocate.c | 45 ++++++++++++++++++++++++++++----------------- 2 files changed, 35 insertions(+), 17 deletions(-) commit 2dc0c6283b41a8331de13092c7287a3cb7160a0a Author: Karel Zak Date: Fri Apr 18 12:01:59 2014 +0200 libsmartcols: fix buffer usage Signed-off-by: Karel Zak libsmartcols/src/table_print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 8a2c2dab26ce500832ce3d426f1be57d7e1e370f Author: Karel Zak Date: Fri Apr 18 12:01:42 2014 +0200 libblkid: make new_partition() more robust Signed-off-by: Karel Zak libblkid/src/partitions/partitions.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit a60087aa32cbfd1f3df6b76166bccab851a50802 Author: Karel Zak Date: Fri Apr 18 11:48:53 2014 +0200 libfdisk: fix logical partition reorder command Reported-by: Olaf Hering Signed-off-by: Karel Zak libfdisk/src/dos.c | 149 ++++++++++++++++++++++++++++++++++------------------- 1 file changed, 95 insertions(+), 54 deletions(-) commit 8b60872ec01c185b003826adabe3aa4f52c44ad0 Author: Karel Zak Date: Wed Apr 16 12:51:08 2014 +0200 libfdisk: add generic function to check partitions order Signed-off-by: Karel Zak disk-utils/fdisk.c | 6 ++++++ libfdisk/src/libfdisk.h | 1 + libfdisk/src/table.c | 23 +++++++++++++++++++++++ 3 files changed, 30 insertions(+) commit ee75308c3182045dedc7f26dc4348a7c1e7619ac Author: Karel Zak Date: Tue Apr 15 15:25:45 2014 +0200 libsmartcols: don't colorize tree ascii art Signed-off-by: Karel Zak libsmartcols/src/table_print.c | 48 +++++++++++++++++++++++++++++++++++------- 1 file changed, 40 insertions(+), 8 deletions(-) commit 0c33fcbf23c98381e45f9120eb6d0cb97ec52fb6 Author: Karel Zak Date: Tue Apr 15 15:25:18 2014 +0200 lib/mbalign: report also size in bytes Signed-off-by: Karel Zak include/mbsalign.h | 1 + lib/mbsalign.c | 40 ++++++++++++++++++++++++++++++---------- 2 files changed, 31 insertions(+), 10 deletions(-) commit 47329bbcf9c74a91c15f57798c406338f5cea3bf Author: Karel Zak Date: Tue Apr 15 14:23:34 2014 +0200 libsmartcols: don't mix width (in cells) and size (in bytes) Signed-off-by: Karel Zak libsmartcols/src/table_print.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) commit d6303e28eca14b01a5f13545084fa0693e67e352 Author: Karel Zak Date: Tue Apr 15 13:59:46 2014 +0200 libsmartcols: resuse buffer for encoded data Signed-off-by: Karel Zak libsmartcols/src/table_print.c | 39 ++++++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) commit c426f70fd4ad97b0d73263893f0ae98174dd1458 Author: Karel Zak Date: Tue Apr 15 13:58:34 2014 +0200 lib/mbsalign: split mbs_safe_encode() Signed-off-by: Karel Zak include/mbsalign.h | 3 +++ lib/mbsalign.c | 45 +++++++++++++++++++++++++++++++++------------ 2 files changed, 36 insertions(+), 12 deletions(-) commit a61618987ab2d7bb5e1954871dc574dbee89a92b Author: Karel Zak Date: Tue Apr 15 13:09:20 2014 +0200 libblkid: fix return codes from PART_ENTRY_* probing The partitions prober does two step: 1) probe the assigned device for partition table 2) probe whole-disk device for partition table if the assigned device is a partition (this generates PART_ENTRY_* results for blkid -p -o udev)) The step 2) is optional and the return code from this probing should not override success (rc=0) from the step 1) -- except situations when the step 2) ends with I/O error or when the step 1) found nothing, but 2) was successful. Signed-off-by: Karel Zak libblkid/src/partitions/partitions.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) commit ae0abae2835af6b5532ee7e48d5fd8a4792c4b1a Author: Karel Zak Date: Mon Apr 14 16:59:44 2014 +0200 libsmartcols: fix padding Signed-off-by: Karel Zak libsmartcols/src/table_print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b233dcb6ffa9a880882d58f85162ff97cede050f Author: Karel Zak Date: Mon Apr 14 16:41:20 2014 +0200 libsmartcols: use buffer struct in table_print.c * consolidate code in table_print.c * make the code easy to extend * use return codes everywhere Signed-off-by: Karel Zak libsmartcols/src/table_print.c | 318 +++++++++++++++++++++++++++-------------- 1 file changed, 208 insertions(+), 110 deletions(-) commit b32fc3bb32c68101e4abc8db49233f9dc36ac5c9 Author: Ondrej Oprala Date: Tue Apr 8 09:48:49 2014 +0200 delpart: minor man page improvements Signed-off-by: Ondrej Oprala disk-utils/delpart.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit df0a8e7a786563c8bcbf0cecb67615dd14cb1627 Author: Ondrej Oprala Date: Tue Apr 8 09:48:48 2014 +0200 cfdisk: minor man page improvements Signed-off-by: Ondrej Oprala disk-utils/cfdisk.8 | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) commit d2d5466d77213c4f3151cdcece1ad594738483bf Author: Ondrej Oprala Date: Tue Apr 8 09:48:47 2014 +0200 addpart: minor man page improvements Signed-off-by: Ondrej Oprala disk-utils/addpart.8 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 46e0dd136f2da02a6782cae9e1ad32db6bac7a5b Author: Ondrej Oprala Date: Tue Apr 8 09:48:46 2014 +0200 vipw: minor man page improvements Signed-off-by: Ondrej Oprala login-utils/vipw.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit fd2e45b78e4fc2c4e0018e661560b57b5efd3b9c Author: Ondrej Oprala Date: Tue Apr 8 09:48:45 2014 +0200 nologin: minor man page improvements Signed-off-by: Ondrej Oprala login-utils/nologin.8 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 38e3e66f700c8eea4f3058e04cc362a62263b696 Author: Ondrej Oprala Date: Tue Apr 8 09:48:44 2014 +0200 utmpdump: minor man page improvements Signed-off-by: Ondrej Oprala login-utils/utmpdump.1 | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) commit 20400eb4a644a86350b62afc2cfae54d2a42db1f Author: Ondrej Oprala Date: Tue Apr 8 09:48:43 2014 +0200 sulogin: minor man page improvements Signed-off-by: Ondrej Oprala login-utils/sulogin.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2b5e13351f872f0bd3fdd6a0a89b982a1d3430d0 Author: Ondrej Oprala Date: Tue Apr 8 09:48:42 2014 +0200 su: fix minor typos in the man page Signed-off-by: Ondrej Oprala login-utils/su.1 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) commit 96b65fb3ce940feb7b644c930d9f9fd8c2e9e8ec Author: Ondrej Oprala Date: Tue Apr 8 09:48:41 2014 +0200 runuser: fix minor typos in the man page Signed-off-by: Ondrej Oprala login-utils/runuser.1 | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) commit 9fb4d0138a31a0f2bde687ed204ffd2348389986 Author: Ondrej Oprala Date: Tue Apr 8 09:48:40 2014 +0200 last: fix minor typos in the man page Signed-off-by: Ondrej Oprala login-utils/last.1 | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) commit 4baab7dfd36523ede61159c02744b5cf78928da0 Author: Karel Zak Date: Mon Apr 14 13:44:23 2014 +0200 libsmartcols: improve line and cell separators Signed-off-by: Karel Zak libsmartcols/src/libsmartcols.h.in | 4 ++-- libsmartcols/src/table.c | 30 ++++++++++++++++++------------ libsmartcols/src/test.c | 5 ++--- 3 files changed, 22 insertions(+), 17 deletions(-) commit 873eb9105acd21d0fad4d46872fade8e0e8d9e9c Merge: 004ff2d d1b4d14 Author: Karel Zak Date: Mon Apr 14 13:24:24 2014 +0200 Merge branch 'scols' of git://github.com/ooprala/util-linux commit d1b4d14f4da1a6ac10f0d038c20bd80185b99bdc Author: Ondrej Oprala Date: Wed Apr 9 16:58:28 2014 +0200 libsmartcols: add separator getters/setters Signed-off-by: Ondrej Oprala libsmartcols/docs/libsmartcols-sections.txt | 4 ++ libsmartcols/src/libsmartcols.h.in | 5 ++ libsmartcols/src/libsmartcols.sym | 4 ++ libsmartcols/src/smartcolsP.h | 3 + libsmartcols/src/table.c | 91 +++++++++++++++++++++++++++++ libsmartcols/src/table_print.c | 16 ++--- libsmartcols/src/test.c | 11 +++- 7 files changed, 125 insertions(+), 9 deletions(-) commit 004ff2d6964ea68c0e11f82aa1fe09af00568924 Author: Karel Zak Date: Thu Apr 10 09:58:36 2014 +0200 fstrim: add hint to man page Signed-off-by: Karel Zak sys-utils/fstrim.8 | 9 +++++++++ 1 file changed, 9 insertions(+) commit a39461d355c365ff15875a4d0ad27e73cf717c59 Author: Karel Zak Date: Thu Apr 10 09:38:17 2014 +0200 fstrim: daily -> weekly in systemd timer * add link to fstrimg man page * less aggressive frequency Signed-off-by: Karel Zak sys-utils/fstrim.timer | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 81ed13edf8e8edb1feb1b4782d4805b0cd4e6774 Author: Karel Zak Date: Wed Apr 9 14:27:26 2014 +0200 Revert "build-sys: gettexts 0.18 -> 0.18.2 due to MKDIR_P" This reverts commit 0576dbd3ea114dc35b797ad7216f1ed5814e7c6b. There is two possible ways: 1/ autotools complains that gettext 0.18 uses deprecated macro 2/ users complain that 0.18.2 is too new and they cannot rebuild We care about users and project contributors, so let's live for the next util-linux release with the old stupid gettext 0.18. Signed-off-by: Karel Zak configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ebff016a19b655ff8c087c3cbe42cb8061cc8f97 Author: Karel Zak Date: Wed Apr 9 12:23:30 2014 +0200 build-sys: consolidate systemd support * systemd (since v209) uses only one library (when compiled without --enable-compat-libs) * all systemd build-sys stuff is merged into HAVE_SYSTEMD (automake) and HAVE_LIBSYSTEMD (C macro) now * all is controlled by --with-systemd, default is to automatically check for systemd libs * no more --enable-socket-activation and --enable-journald Signed-off-by: Karel Zak configure.ac | 52 ++++++++++++++++++++++++------------------------ misc-utils/Makemodule.am | 12 +++++------ misc-utils/logger.c | 14 ++++++------- misc-utils/uuidd.c | 10 +++++----- sys-utils/Makemodule.am | 2 +- 5 files changed, 45 insertions(+), 45 deletions(-) commit 4856a7bc017170cad8191cd4486e0d052ae1e134 Author: Karel Zak Date: Tue Apr 8 19:19:14 2014 +0200 build-sys: fix fstrim systemd stuff Signed-off-by: Karel Zak sys-utils/Makemodule.am | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit d9554c97e8407de309bbd7b4cd8a56b9b0d6c485 Author: Karel Zak Date: Tue Apr 8 12:13:02 2014 +0200 libsmartcols: rewrite test code to tree(1)-like util Signed-off-by: Karel Zak lib/strutils.c | 2 +- libsmartcols/src/test.c | 304 ++++++++++++++++++++++++++++++------------------ 2 files changed, 191 insertions(+), 115 deletions(-) commit 11fe0448a0ea059d361d0f650b37c970704c6819 Author: Karel Zak Date: Tue Apr 8 10:14:12 2014 +0200 libfdisk: (dos) make EBR parser more robust Signed-off-by: Karel Zak libfdisk/src/dos.c | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) commit e2310281c74bfaae4d3618ddd5d0568c494eda6a Author: Karel Zak Date: Mon Apr 7 14:07:49 2014 +0200 libsmartcols: improve docs Signed-off-by: Karel Zak libsmartcols/docs/libsmartcols-docs.xml | 2 ++ libsmartcols/src/cell.c | 6 ++++-- libsmartcols/src/column.c | 2 +- libsmartcols/src/init.c | 2 ++ libsmartcols/src/libsmartcols.h.in | 5 +++++ libsmartcols/src/line.c | 7 +++++-- libsmartcols/src/table.c | 8 ++++---- libsmartcols/src/table_print.c | 12 ++++++++++-- 8 files changed, 33 insertions(+), 11 deletions(-) commit 4418714f471c9ce5a0054d2c7c51cd6d7ab85fef Author: Karel Zak Date: Mon Apr 7 13:43:50 2014 +0200 libsmartcols: add debug and version functions Signed-off-by: Karel Zak libsmartcols/docs/libsmartcols-sections.txt | 14 ++++++- libsmartcols/src/Makemodule.am | 4 +- libsmartcols/src/init.c | 41 +++++++++++++++++++ libsmartcols/src/libsmartcols.h.in | 7 ++++ libsmartcols/src/libsmartcols.sym | 3 ++ libsmartcols/src/smartcolsP.h | 14 +++++++ libsmartcols/src/table.c | 3 +- libsmartcols/src/test.c | 2 + libsmartcols/src/version.c | 62 +++++++++++++++++++++++++++++ 9 files changed, 146 insertions(+), 4 deletions(-) commit 8d0ce083b1302da87c6c794f0bd565dda37adcd4 Author: Karel Zak Date: Mon Apr 7 13:27:24 2014 +0200 libblkid: remove private function from docs Signed-off-by: Karel Zak libblkid/src/probe.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) commit 1024dd6acbaec11aee7ed360c6502cfb89d97ffa Author: Karel Zak Date: Mon Apr 7 13:26:56 2014 +0200 build-sys: fix .h.in usage in libblkid and libmount Signed-off-by: Karel Zak libblkid/src/Makemodule.am | 2 +- libmount/src/Makemodule.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 95bf26fd68ec7f0b2dde1f022dc79d04d1a6e620 Author: Anton Blanchard Date: Mon Apr 7 09:18:13 2014 +1000 setarch: Fix ppc64le architectures setarch currently fails on ppc64le because it tries to use big endian architecture names. Fix it. Signed-off-by: Anton Blanchard sys-utils/setarch.c | 6 ++++++ 1 file changed, 6 insertions(+) commit 8356d27d66e2957f0cc094e86bb56df1e3e8cef5 Author: Jonathan Liu Date: Sat Apr 5 00:08:01 2014 +1100 umount: fix typo in usage Signed-off-by: Jonathan Liu sys-utils/umount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 877cd8944beda33102dd1a288f51c07b4bbf9278 Author: Thomas Bächler Date: Thu Apr 3 23:41:51 2014 +0200 fstrim: add systemd units This adds a timer and a service for systemd that runs fstrim -a once a day. The Persistent=true option used will only work on systemd 212 or newer. sys-utils/.gitignore | 1 + sys-utils/Makemodule.am | 6 ++++++ sys-utils/fstrim.service.in | 6 ++++++ sys-utils/fstrim.timer | 10 ++++++++++ 4 files changed, 23 insertions(+) commit 3aca66a54d70bc30cf5b9d526880ec5a554dc1f2 Author: Ondrej Oprala Date: Thu Apr 3 18:08:21 2014 +0200 login: fix minor typos in the man page Signed-off-by: Ondrej Oprala login-utils/login.1 | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) commit 969797549882ffb7f958dc0b037978824fe85a9c Author: Bjarni Ingi Gislason Date: Thu Apr 3 02:29:48 2014 +0000 mkswap: Some minor typographical corrections to the manual -- changed to \(en (an en-dash) if it is a dash (pause, separation) - changed to \- if it indicates an option A full stop (.), that begins or ends a string, protected with \& Space between sentences corrected to two word spaces -- changed to \-\- if it indicates an option Signed-off-by: Karel Zak disk-utils/mkswap.8 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit 2f52fc4febf134b6c2d41cf8bf5a5c5afe4fbb80 Author: Bjarni Ingi Gislason Date: Thu Apr 3 02:28:27 2014 +0000 mkfs.minix: Some typographical changes in the manual - between numbers changed to \(en if it is a range Signed-off-by: Karel Zak disk-utils/mkfs.minix.8 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 10c70f0507629840b47e6688dbb6dabb2d5f9e1f Author: Bjarni Ingi Gislason Date: Thu Apr 3 02:25:58 2014 +0000 mkfs.cramfs: Some typographical corrections to the manual The unit "MB" is ambigous. Use "MiB" if "M" does not mean 10^6. Otherwise add "(M = 10^6)" after it. Changes: Unpaddable space (\ ) added between a number and an unit. A nuber and a unit are not one word. Is "16MB" written "sixteenmegabytes"? Signed-off-by: Karel Zak disk-utils/mkfs.cramfs.8 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit cdd710a1e3544ba19a5d355066b0e4ab25e70047 Author: Bjarni Ingi Gislason Date: Thu Apr 3 02:23:04 2014 +0000 mkfs.bfs: One typographical correction to the manual - between numbers changed to \(en (an en-dash) Signed-off-by: Karel Zak disk-utils/mkfs.bfs.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 920d44f5fd8e280c363292f3b9b8cc1b7fb4c6cf Author: Bjarni Ingi Gislason Date: Wed Apr 2 23:42:06 2014 +0000 mkfs: Some typographical changes to the manual - changed to \- if it means an option A full stop (.), that begins or ends a string, protected with \& No line adjustment used for section "SEE ALSO" (.na/.ad) Signed-off-by: Karel Zak disk-utils/mkfs.8 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 98cd16d369b6c1f47fc1593b42f2c517e5bdddb7 Author: Bjarni Ingi Gislason Date: Wed Apr 2 23:37:26 2014 +0000 isosize: A few typographical changes to the manual A full stop (.), that begins or ends a string, protected with \& A space between a number and an unit changed to an unpaddable space "\ " Signed-off-by: Karel Zak disk-utils/isosize.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 897776a0d265e21341ab9a2863d399903b585c48 Author: Bjarni Ingi Gislason Date: Wed Apr 2 23:35:29 2014 +0000 fsck.minix: A few typographical corrections to the manual - between numbers changed to \(en if it means a range A full stop (.), that begins or ends a string, protected with \& Signed-off-by: Karel Zak disk-utils/fsck.minix.8 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit dbaa5fda4bb31c7db5654e70672869efc2ca98dd Author: Bjarni Ingi Gislason Date: Wed Apr 2 23:30:12 2014 +0000 fsck: Some typographical corrections to the manual The word "kilobytes" is ambiguous. Change it to "kibibytes" if kilo does not mean 1000. Otherwise add "(1000 B)" after it. A string, that begins or ends with a full stop (.), protected with \& - changed to \- if it shows an option -- change to \(en if it means a dash (pause, separation) Space between sentences is two word spaces in *roff. Thus it is better to begin each sentence on a new line when the file contains formatting commands --- changed to \(en if it means a dash (pause, separation) Punctuation separated from a word with a space, if it is an argument to a macro like "BR" (two font styles used alternately) Adjusting inhibited for the section "SEE ALSO" with ".na/.ad" Signed-off-by: Karel Zak disk-utils/fsck.8 | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) commit dce8463c561991a2ed2d76c7153ce81baf1fa335 Author: Bjarni Ingi Gislason Date: Wed Apr 2 23:25:08 2014 +0000 fdformat: Some minor change to the manual \- changed to - (code "hyphen-minus", rendered with the glyph hyphen in troff) if it is a part of a compound name. A minus is not used in words. People using UTF-8 and copy-and-pase can(?) (may?) use "info", "man --ascii" or the command "man" should have an option to display the - in names of options with the code (character name) "hyphen-minus" (u002D) instead of "u2010" (code (character) name "hyphen") Signed-off-by: Karel Zak disk-utils/fdformat.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 023dcba0f08127196334867287bfa32879f1a049 Author: Bjarni Ingi Gislason Date: Wed Apr 2 23:23:32 2014 +0000 blockdev: Some minor corrections to the manual Macro, that alternately changes the input between two font styles, changed to the macro for one font style change, if there is only one argument Text string, that begins or ends with a full stop (.) protected with \& -- changed to \-\- if it is an option - changed to \(en if it is a dash (pause, seperation) Signed-off-by: Karel Zak disk-utils/blockdev.8 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) commit 0d05f1619d70b693b40a26e9e0a7a8d5d5d9ea8b Author: Bjarni Ingi Gislason Date: Tue Apr 1 17:26:40 2014 +0000 mount.8: Some typographical and prefix corrections to the manual I forgot to add the patch to the attachment. Additional changes to "Changes:" " \(em " changed to " \(en ", as the em-dash with a word space on each side is to long (troff) ".na/.ad" is not used but .nf/.fi for a long command line and it is split into two lines Word "illegal" is changed to "invalid" Word "hyphen-separated" is changed to '"hyphen-minus"-separated' as the meaning is the code and not the glyph (on the command line) (beware of UTF-8) -- Bjarni I. Gislason sys-utils/mount.8 | 394 +++++++++++++++++++++++++++--------------------------- 1 file changed, 199 insertions(+), 195 deletions(-) commit b6bdccc710642b43694ec49e563cdfc0e9cd81fa Author: Karel Zak Date: Mon Apr 7 12:09:11 2014 +0200 mount: apply "nofail" to MNT_ERR_NOSOURCE libmount error fstab: UUID=nonexist /mnt/nonexist1 ext4 nofail 0 1 # mount -av mount: can't find UUID=nonexist .. this is bug of course. Reported-by: Patrick McLean Signed-off-by: Karel Zak libmount/src/context.c | 5 +++++ sys-utils/mount.c | 2 ++ 2 files changed, 7 insertions(+) commit 0ce2fe873817a75494afe1d78bf85e74ca4cd8ab Author: Karel Zak Date: Mon Apr 7 11:59:30 2014 +0200 umount: more robust success message for --all Signed-off-by: Karel Zak sys-utils/umount.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 8ab82185eed76bc20694a197fe10c5f9fb795b80 Author: Karel Zak Date: Mon Apr 7 11:53:05 2014 +0200 mount: fix --all and nofail return code Now the "nofail" affects warnings warning messages only. That's wrong and regression (against original non-libmount version). The nofail has to control return code too. Reported-by: Patrick McLean Signed-off-by: Karel Zak sys-utils/mount.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit e0d4675789499b5955aa05ef9abc2926b30ba4ba Author: Karel Zak Date: Mon Apr 7 11:29:09 2014 +0200 kill: fix bug in --all semantic Introduces by 2ab6683f59cd3371b1c3ac8b5c248d5104ed4d41. Signed-off-by: Karel Zak misc-utils/kill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 10ab72e7a19a7c827f890d7bf47eb862c04e48b8 Author: Karel Zak Date: Mon Apr 7 11:22:12 2014 +0200 kill: make kill-by-name more obvious in man page Signed-off-by: Karel Zak misc-utils/kill.1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 6853d664a021520697419e47a60ba61a36985eee Author: Karel Zak Date: Mon Apr 7 11:12:14 2014 +0200 kill: add copyrights, etc. Signed-off-by: Karel Zak misc-utils/kill.1 | 15 +++++++++++---- misc-utils/kill.c | 2 ++ 2 files changed, 13 insertions(+), 4 deletions(-) commit a01f4d4323d5ca17c4d9773cbb7abd22d701e276 Author: Karel Zak Date: Mon Apr 7 11:07:00 2014 +0200 kill: return 64 on partial success Return 64 (aka SOME_OK) when more than process specified and the operation success only for subset of the processes. # kill -s 0 firefox mutt xxx; echo $? kill: cannot find process "xxx" 64 We already use this concept for chcpu(8) or mount(8). Signed-off-by: Karel Zak misc-utils/kill.1 | 16 ++++++++++++++- misc-utils/kill.c | 60 ++++++++++++++++++++++++++++++++++--------------------- 2 files changed, 52 insertions(+), 24 deletions(-) commit d1f7edbe82b5cc1ce250d0743b93315ec4b4c9ef Author: Karel Zak Date: Mon Apr 7 10:35:30 2014 +0200 kill: tiny change in man page Signed-off-by: Karel Zak misc-utils/kill.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e497557f58bfc151e7688163c6b6585b428f2c92 Author: Karel Zak Date: Mon Apr 7 10:17:23 2014 +0200 kill: coding style, simplify code Signed-off-by: Karel Zak misc-utils/kill.c | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) commit 6ca933136fb092d7d4d635218524585e13bcfacb Author: Karel Zak Date: Mon Apr 7 10:10:43 2014 +0200 kill: rename printsig() to print_signal_name() Signed-off-by: Karel Zak misc-utils/kill.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit dba96eedb8d91f277ea11f9d2871dfcc06b5a745 Author: Karel Zak Date: Mon Apr 7 10:05:14 2014 +0200 docs: add pid alis to deprecated.txt Signed-off-by: Karel Zak Documentation/deprecated.txt | 7 +++++++ 1 file changed, 7 insertions(+) commit abc7d9bfdfd649366c5c68c096acb61779d27e44 Author: Karel Zak Date: Mon Apr 7 10:03:50 2014 +0200 kill: rename printsignals() to print_all_signalsprint_all_signals() Signed-off-by: Karel Zak misc-utils/kill.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit dff74debed7442821cdeeb2aa4b3bfc298c96c4c Author: Karel Zak Date: Mon Apr 7 09:59:51 2014 +0200 kill: reorder functions to make it more readable Signed-off-by: Karel Zak misc-utils/kill.c | 394 +++++++++++++++++++++++++++--------------------------- 1 file changed, 195 insertions(+), 199 deletions(-) commit f9de39eebda9cb12c90f08da40c3b5043f97808b Merge: 9c7955d 9e8dffd Author: Karel Zak Date: Mon Apr 7 09:37:34 2014 +0200 Merge branch 'kill' of git://github.com/kerolasa/lelux-utiliteetit * 'kill' of git://github.com/kerolasa/lelux-utiliteetit: kill: move sigqueue inputs to control struct kill: add parse_arguments() function kill: tell what is wrong rather than output usage() kill: use control structure to pass user input to functions kill: deprecat invocation as 'pid' command name kill: make usage() not to return kill: move magic numbers in beginning of the file kill: flip all comparions to be in smaller - greater order kill: fix coding style commit 9c7955dabebe2a8ffa868191657b57d6161ccfdd Author: Karel Zak Date: Fri Apr 4 16:02:35 2014 +0200 libfdisk: make qsort_r() optional The function is no critical for fdisk functionality. The SUN label verification will check for less issues. All the verification code is optional ('v' fdisk command). Signed-off-by: Karel Zak configure.ac | 1 + libfdisk/src/sun.c | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) commit c7832fb8f122f08b10bc6712f1062295a239bd06 Author: Dave Reisner Date: Wed Apr 2 10:41:30 2014 -0400 switch_root: verify initramfs by f_type, not devno As of linux 3.14, the initramfs device will have both major and minor 0, causing our paranoia check to fail. Make this version agnostic by checking the filesystem type, rather than a device number. Signed-off-by: Dave Reisner sys-utils/switch_root.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) commit c8302069314f5cc5b3d28517adad1f905577aea1 Author: Karel Zak Date: Fri Apr 4 13:53:50 2014 +0200 libsmartcols: add missing COPYING file Signed-off-by: Karel Zak libsmartcols/COPYING | 8 ++++++++ 1 file changed, 8 insertions(+) commit 71dbc865f83389cd4b05d6cf90373a85fa6ce879 Author: Karel Zak Date: Fri Apr 4 13:51:47 2014 +0200 libsmartcols: fix test Signed-off-by: Karel Zak libsmartcols/src/test.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) commit 2a49c0165d1e53b94eaaf587a8524b61e343898a Author: Karel Zak Date: Fri Apr 4 11:25:08 2014 +0200 build-sys: small fixes to libsmartcols Signed-off-by: Karel Zak configure.ac | 3 +-- libsmartcols/src/Makemodule.am | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) commit 0925a9dd6cd65feb8cb2d4d66551363f4af161e9 Author: Karel Zak Date: Thu Apr 3 16:09:57 2014 +0200 libsmartcols: clean up flags usage * rename flags functions to scols_table_enable_* * rename *_no_foo() functions to _nofoo() * output formats are mutually exclusive, so don't use flags there * don't assume symbols in scols_new_table(), use scols_table_set_symbols() Signed-off-by: Karel Zak disk-utils/cfdisk.c | 5 +- disk-utils/partx.c | 8 +- libfdisk/src/table.c | 2 +- libsmartcols/docs/libsmartcols-sections.txt | 15 +-- libsmartcols/src/column.c | 4 +- libsmartcols/src/libsmartcols.h.in | 23 ++-- libsmartcols/src/libsmartcols.sym | 17 ++- libsmartcols/src/smartcolsP.h | 22 +-- libsmartcols/src/table.c | 199 +++++++++++++--------------- libsmartcols/src/table_print.c | 10 +- misc-utils/findmnt.c | 10 +- misc-utils/lsblk.c | 10 +- misc-utils/lslocks.c | 6 +- sys-utils/losetup.c | 6 +- sys-utils/lscpu.c | 2 +- sys-utils/prlimit.c | 6 +- sys-utils/swapon.c | 6 +- sys-utils/wdctl.c | 6 +- 18 files changed, 172 insertions(+), 185 deletions(-) commit 7fa74cb098d57a6d770e19ba361c01382c9e924c Author: Karel Zak Date: Thu Apr 3 12:43:36 2014 +0200 fdisk: print table header as bold Signed-off-by: Karel Zak disk-utils/fdisk.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) commit 5fd7160e831b15424b49b1b4073b0aa44b6bdfc6 Author: Karel Zak Date: Thu Apr 3 12:28:53 2014 +0200 libfdisk: fix freesapce detection for nested partitions Signed-off-by: Karel Zak libfdisk/src/table.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) commit c743bf744a0e2bb1aa13eb0890d109aa8a012f5c Author: Karel Zak Date: Thu Apr 3 11:58:48 2014 +0200 cfdisk: clean up scols usage Signed-off-by: Karel Zak disk-utils/cfdisk.c | 36 +++++++++++++++++++++++++++++------- libfdisk/src/table.c | 7 +++++-- 2 files changed, 34 insertions(+), 9 deletions(-) commit 7bae0563b8397a61bd1cc542decf686a1893b9b2 Author: Karel Zak Date: Thu Apr 3 11:09:07 2014 +0200 libfdisk: clean up scols usage Signed-off-by: Karel Zak libfdisk/src/table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 98f87c507dc38d1478bb5486c73f66e6cc7a3cf0 Author: Karel Zak Date: Thu Apr 3 11:00:02 2014 +0200 wdctl: clean up scols usage Signed-off-by: Karel Zak sys-utils/wdctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit e516634844464b5854b0f7ef182de1d66ab40947 Author: Karel Zak Date: Thu Apr 3 10:57:05 2014 +0200 swapon: clean up scols usage Signed-off-by: Karel Zak sys-utils/swapon.c | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) commit 05186e79ffd8a1b3368065e18ed0ed77badc5c09 Author: Karel Zak Date: Thu Apr 3 10:53:03 2014 +0200 prlimit: clean up scols usage Signed-off-by: Karel Zak sys-utils/prlimit.c | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) commit e7213e34f3ead13e06bfc13b0854999faf9708ae Author: Karel Zak Date: Thu Apr 3 10:48:09 2014 +0200 lscpu: clean up scols usage Signed-off-by: Karel Zak sys-utils/lscpu.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) commit 145766440ad10c08dc6e751e2b9fa738e9ef39fd Author: Karel Zak Date: Thu Apr 3 10:41:04 2014 +0200 losetup: tiny change to usage() Signed-off-by: Karel Zak sys-utils/losetup.8 | 5 +++-- sys-utils/losetup.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) commit 48f1f38b7382231639f98fc7c670f679bd9f95af Author: Karel Zak Date: Thu Apr 3 10:32:19 2014 +0200 losetup: clean up scols usage Signed-off-by: Karel Zak sys-utils/losetup.c | 126 ++++++++++++++++++++++++---------------------------- 1 file changed, 58 insertions(+), 68 deletions(-) commit 1424fe8c86b376ce1f908aae79f2e48639de115a Author: Karel Zak Date: Wed Apr 2 14:05:10 2014 +0200 libsmartcols: init symbols when necessary Signed-off-by: Karel Zak libsmartcols/src/table.c | 6 ++++-- libsmartcols/src/table_print.c | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) commit 5c5941df7408b08ee0177fc599092b77cfc4cbed Author: Karel Zak Date: Wed Apr 2 13:58:18 2014 +0200 lsblk: remove unnecessary code Signed-off-by: Karel Zak misc-utils/lsblk.c | 1 - 1 file changed, 1 deletion(-) commit dc36586085d05bd60c6fd3dc2279b842294a5d13 Author: Karel Zak Date: Wed Apr 2 13:56:00 2014 +0200 libsmartcols: clean up flags Signed-off-by: Karel Zak libsmartcols/src/libsmartcols.h.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit bb6e822ad24ba7b817539b7006f1622b33ca1cf8 Author: Karel Zak Date: Wed Apr 2 13:52:08 2014 +0200 lsblk: clean up data preparation Signed-off-by: Karel Zak misc-utils/lsblk.c | 209 ++++++++++++++++++++--------------------------------- 1 file changed, 77 insertions(+), 132 deletions(-) commit 85c9ca5adf2a30f9666f456e33e03755e266d05b Author: Karel Zak Date: Fri Mar 28 13:00:21 2014 +0100 findmnt: cleanup flags Let's use one flags variable for everything. Signed-off-by: Karel Zak misc-utils/findmnt.c | 71 +++++++++++++++++++++++++--------------------------- 1 file changed, 34 insertions(+), 37 deletions(-) commit 3b80b3703500d94485a03393e825e77ef59b4b77 Author: Karel Zak Date: Fri Mar 28 12:44:55 2014 +0100 partx: cleanup libsmartcols usage * more carefully set data * care about return codes Signed-off-by: Karel Zak disk-utils/partx.c | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) commit 92e0d69c7377b24eadc347451b80e8b59ffe0cb9 Author: Karel Zak Date: Fri Mar 28 12:25:58 2014 +0100 libsmartcols: always deallocate in scols_reset_cell() Signed-off-by: Karel Zak libsmartcols/src/cell.c | 20 ++++++++------------ libsmartcols/src/smartcolsP.h | 2 -- 2 files changed, 8 insertions(+), 14 deletions(-) commit 10a628c8b3ff182843f3d05ce916abf21cb8d355 Author: Ondrej Oprala Date: Thu Mar 27 17:46:06 2014 +0100 lib/tt.c: Goodbye! Signed-off-by: Ondrej Oprala Documentation/TODO | 5 +- include/Makemodule.am | 1 - include/tt.h | 115 --- lib/Makemodule.am | 6 - lib/tt.c | 992 ------------------------ tests/expected/build-sys/config-all-devel | 1 - tests/expected/build-sys/config-devel-new-mount | 1 - tests/run.sh | 2 +- 8 files changed, 3 insertions(+), 1120 deletions(-) commit fe7af530a9a7a96264e5ea1d6cd58b3ad599dc13 Author: Ondrej Oprala Date: Thu Mar 27 17:40:01 2014 +0100 wdctl: use libsmartcols Signed-off-by: Ondrej Oprala sys-utils/Makemodule.am | 3 ++- sys-utils/wdctl.c | 52 ++++++++++++++++++++++++++++--------------------- 2 files changed, 32 insertions(+), 23 deletions(-) commit 248a7f70dd9c1cac7f6a3128a1a2cb1f0c551309 Author: Ondrej Oprala Date: Thu Mar 27 17:29:13 2014 +0100 swapon: use libsmartcols Signed-off-by: Ondrej Oprala sys-utils/Makemodule.am | 4 ++-- sys-utils/swapon.c | 53 ++++++++++++++++++++++++++++--------------------- 2 files changed, 32 insertions(+), 25 deletions(-) commit 226d76e6673bcfc733b6afa30fb6dd069f5923bc Author: Ondrej Oprala Date: Thu Mar 27 17:19:11 2014 +0100 prlimit: use libsmartcols Signed-off-by: Ondrej Oprala sys-utils/Makemodule.am | 3 ++- sys-utils/prlimit.c | 55 ++++++++++++++++++++++++++++--------------------- 2 files changed, 33 insertions(+), 25 deletions(-) commit 83db4eb2c297bfb127ae0bb5df0e00c84ee79fd4 Author: Ondrej Oprala Date: Thu Mar 27 17:06:52 2014 +0100 lscpu: use libsmartcols Signed-off-by: Ondrej Oprala sys-utils/Makemodule.am | 3 ++- sys-utils/lscpu.c | 25 ++++++++++++++++--------- 2 files changed, 18 insertions(+), 10 deletions(-) commit 7e86cd5470fb0d4b5b405c54df9fe411d4afc702 Author: Ondrej Oprala Date: Thu Mar 27 16:59:16 2014 +0100 losetup: use libsmartcols Signed-off-by: Ondrej Oprala sys-utils/Makemodule.am | 5 +-- sys-utils/losetup.c | 82 +++++++++++++++++++++++++++---------------------- 2 files changed, 49 insertions(+), 38 deletions(-) commit ba1bf7164fa716cded78f7b263897d3d21d56d36 Author: Ondrej Oprala Date: Thu Mar 27 16:43:03 2014 +0100 lslocks: use libsmartcols Signed-off-by: Ondrej Oprala misc-utils/Makemodule.am | 4 ++-- misc-utils/lslocks.c | 61 +++++++++++++++++++++++++++--------------------- 2 files changed, 36 insertions(+), 29 deletions(-) commit 9bd4e5c0bde3a879ca2b6722cd1581f03f94603b Author: Ondrej Oprala Date: Thu Mar 27 16:29:13 2014 +0100 lsblk: use libsmartcols Signed-off-by: Ondrej Oprala misc-utils/Makemodule.am | 4 +- misc-utils/lsblk.c | 212 +++++++++++++++++++++++++---------------------- 2 files changed, 116 insertions(+), 100 deletions(-) commit 218a3a9463d69a779a97850405d2b529ebdeb30f Author: Ondrej Oprala Date: Thu Mar 27 16:09:57 2014 +0100 findmnt: use libsmartcols Signed-off-by: Ondrej Oprala misc-utils/Makemodule.am | 4 +- misc-utils/findmnt.c | 177 ++++++++++++++++++++++++++--------------------- 2 files changed, 99 insertions(+), 82 deletions(-) commit 016aa0ac943c040b3797ef89f0ed7a65a9e402b0 Author: Ondrej Oprala Date: Thu Mar 27 15:18:20 2014 +0100 partx: use libsmartcols Signed-off-by: Ondrej Oprala disk-utils/Makemodule.am | 4 +-- disk-utils/partx.c | 68 +++++++++++++++++++++++++++--------------------- 2 files changed, 41 insertions(+), 31 deletions(-) commit baa3b270ecf795cd851e15eae33d5d1ed8277868 Author: Ondrej Oprala Date: Thu Mar 27 14:58:51 2014 +0100 Use libsmartcols in libfdisk and cfdisk Signed-off-by: Ondrej Oprala Makefile.am | 2 +- configure.ac | 3 ++- disk-utils/Makemodule.am | 5 +++++ disk-utils/cfdisk.c | 49 +++++++++++++++++++++++++++------------------- libfdisk/src/Makemodule.am | 10 ++++++++++ libfdisk/src/bsd.c | 17 ++++++++-------- libfdisk/src/dos.c | 21 ++++++++++---------- libfdisk/src/fdiskP.h | 4 ++-- libfdisk/src/gpt.c | 15 +++++++------- libfdisk/src/sgi.c | 18 +++++++++-------- libfdisk/src/sun.c | 18 +++++++++-------- libfdisk/src/table.c | 24 ++++++++++++----------- 12 files changed, 110 insertions(+), 76 deletions(-) commit ce44112b1081545b689cfd91eeb131d04233b87a Author: Ondrej Oprala Date: Thu Mar 27 14:20:59 2014 +0100 libsmartcols: include stdio Signed-off-by: Ondrej Oprala libsmartcols/src/cell.c | 2 +- libsmartcols/src/column.c | 2 +- libsmartcols/src/iter.c | 2 +- libsmartcols/src/libsmartcols.h.in | 1 + libsmartcols/src/line.c | 2 +- libsmartcols/src/symbols.c | 2 +- libsmartcols/src/table.c | 2 +- libsmartcols/src/table_print.c | 2 +- libsmartcols/src/test.c | 2 +- 9 files changed, 9 insertions(+), 8 deletions(-) commit c0070f8187dd09671317b1462d99311ac582bc90 Author: Ondrej Oprala Date: Thu Mar 27 14:04:58 2014 +0100 libsmartcols: add scols_table_is_empty() Signed-off-by: Ondrej Oprala libsmartcols/docs/libsmartcols-sections.txt | 1 + libsmartcols/src/libsmartcols.h.in | 1 + libsmartcols/src/libsmartcols.sym | 1 + libsmartcols/src/table.c | 11 +++++++++++ 4 files changed, 14 insertions(+) commit 6e792bb6c073167e6e2e9fa9c5a544d766ffb86e Author: Ondrej Oprala Date: Thu Mar 27 13:19:01 2014 +0100 libsmartcols: fix a usage example Signed-off-by: Ondrej Oprala libsmartcols/src/table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 1d90bcb1a82cea0c994425cb12e2df436107168c Author: Ondrej Oprala Date: Tue Mar 25 15:09:09 2014 +0100 libsmartcols: documentation Signed-off-by: Ondrej Oprala configure.ac | 2 + libsmartcols/Makemodule.am | 6 +- libsmartcols/docs/.gitignore | 18 +++ libsmartcols/docs/Makefile.am | 93 ++++++++++++++ libsmartcols/docs/libsmartcols-docs.xml | 50 +++++++ libsmartcols/docs/libsmartcols-sections.txt | 124 ++++++++++++++++++ libsmartcols/docs/version.xml.in | 1 + libsmartcols/src/cell.c | 67 +++++++++- libsmartcols/src/column.c | 106 +++++++++++++-- libsmartcols/src/libsmartcols.h.in | 41 +++++- libsmartcols/src/line.c | 148 ++++++++++++++++++++- libsmartcols/src/symbols.c | 56 +++++++- libsmartcols/src/table.c | 193 ++++++++++++++++++++++++---- libsmartcols/src/table_print.c | 14 +- 14 files changed, 865 insertions(+), 54 deletions(-) commit b72b824d06a03785494f026196241aa119e63c15 Author: Ondrej Oprala Date: Tue Mar 25 10:24:13 2014 +0100 libsmartcols: move some code around Signed-off-by: Ondrej Oprala libsmartcols/src/libsmartcols.h.in | 2 +- libsmartcols/src/table.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) commit 8b992cb5719e7632dd8bc904cb5bfb3720207739 Author: Ondrej Oprala Date: Mon Mar 24 16:44:33 2014 +0100 libsmartcols: revert the column flags API Signed-off-by: Ondrej Oprala libsmartcols/src/column.c | 119 +++++++------------------------------ libsmartcols/src/libsmartcols.h.in | 20 +++++-- libsmartcols/src/libsmartcols.sym | 7 +-- libsmartcols/src/smartcolsP.h | 7 +-- libsmartcols/src/table.c | 7 ++- libsmartcols/src/test.c | 11 ++-- 6 files changed, 51 insertions(+), 120 deletions(-) commit 35958d0c61cff969506a4ab1a15e1e28c7a60f77 Author: Ondrej Oprala Date: Mon Mar 24 13:40:05 2014 +0100 libsmartcols: colors may now be specified as human-readable strings Signed-off-by: Ondrej Oprala libsmartcols/src/cell.c | 7 +++++++ libsmartcols/src/column.c | 7 +++++++ libsmartcols/src/line.c | 7 +++++++ libsmartcols/src/test.c | 2 +- 4 files changed, 22 insertions(+), 1 deletion(-) commit 8a38a8d31edc23db15eb031193df14da66dcdaff Author: Ondrej Oprala Date: Fri Mar 21 12:37:52 2014 +0100 libsmartcols: separate flags, add getters/setters Signed-off-by: Ondrej Oprala libsmartcols/src/column.c | 184 ++++++++++++++++++++++++--- libsmartcols/src/libsmartcols.h.in | 57 +++++---- libsmartcols/src/libsmartcols.sym | 27 +++- libsmartcols/src/smartcolsP.h | 18 ++- libsmartcols/src/table.c | 253 +++++++++++++++++++++++++++++++++---- libsmartcols/src/table_print.c | 38 +++--- libsmartcols/src/test.c | 29 +++-- 7 files changed, 498 insertions(+), 108 deletions(-) commit 9fd9b99f4f55e1bbc6a4d921f7caa2898c5beda8 Author: Ondrej Oprala Date: Thu Mar 20 14:07:46 2014 +0100 libsmartcols: add missing copyright notifications Signed-off-by: Ondrej Oprala libsmartcols/src/iter.c | 1 + libsmartcols/src/line.c | 1 + libsmartcols/src/symbols.c | 8 ++++++++ libsmartcols/src/table.c | 1 + 4 files changed, 11 insertions(+) commit bc8cb33a726d0de60f22fd96fe38adf303bf54b0 Author: Ondrej Oprala Date: Thu Mar 20 14:03:43 2014 +0100 libsmartcols: fill the symbol version file Signed-off-by: Ondrej Oprala libsmartcols/src/libsmartcols.sym | 74 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) commit 7e8fe029417a6cc8d391100af6e94086d0a56a36 Author: Karel Zak Date: Wed Mar 19 18:01:16 2014 +0100 libsmartcols: allow to read lines as tree Signed-off-by: Karel Zak libsmartcols/src/libsmartcols.h.in | 3 +++ libsmartcols/src/line.c | 26 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) commit 2a965b804ac754ef3c36f753af0ae988b4e79bb3 Author: Karel Zak Date: Wed Dec 18 10:22:32 2013 +0100 libsmartcols: add function to convert table to string Note that open_memstream() is POSIX-1.2008, so it's possible than not all libc have already implemented this function. Signed-off-by: Karel Zak configure.ac | 1 + libsmartcols/src/libsmartcols.h.in | 1 + libsmartcols/src/table_print.c | 25 +++++++++++++++++++++++++ 3 files changed, 27 insertions(+) commit b28e8864630cc546dd8ca1ff6e135c191fdb34ea Author: Karel Zak Date: Wed Mar 19 17:25:31 2014 +0100 libsmartcols: remove unnecessary code Signed-off-by: Karel Zak libsmartcols/src/smartcolsP.h | 1 - libsmartcols/src/table.c | 1 - libsmartcols/src/table_print.c | 21 +++++++-------------- 3 files changed, 7 insertions(+), 16 deletions(-) commit e906be066ec378843e81a22ad49e92c3e412b928 Author: Karel Zak Date: Wed Mar 19 17:20:57 2014 +0100 libsmartcols: add reduce term width functionality Signed-off-by: Karel Zak libsmartcols/src/libsmartcols.h.in | 1 + libsmartcols/src/smartcolsP.h | 1 + libsmartcols/src/table.c | 10 ++++++++++ libsmartcols/src/table_print.c | 1 + 4 files changed, 13 insertions(+) commit 62d2e2e5389daf4120c945300e89705a91d93ff5 Author: Karel Zak Date: Wed Mar 19 17:10:50 2014 +0100 libsmartcols: add SCOLS_FL_MAX Signed-off-by: Karel Zak libsmartcols/src/libsmartcols.h.in | 11 ++++++----- libsmartcols/src/table_print.c | 18 +++++++++++++++--- libsmartcols/src/test.c | 5 ++++- 3 files changed, 25 insertions(+), 9 deletions(-) commit 571441e29198db3c90ec93f44663c77dfcbab002 Author: Karel Zak Date: Wed Mar 19 16:58:15 2014 +0100 libsmartcols: support alternative streams Signed-off-by: Karel Zak libsmartcols/src/libsmartcols.h.in | 3 +++ libsmartcols/src/smartcolsP.h | 1 + libsmartcols/src/table.c | 17 +++++++++++++++++ libsmartcols/src/table_print.c | 36 ++++++++++++++++++------------------ 4 files changed, 39 insertions(+), 18 deletions(-) commit 3a29e909f7862855d814b76c9e369403cf21242f Author: Ondrej Oprala Date: Wed Mar 19 16:48:22 2014 +0100 libsmartcols: add test [kzak@redhat.com: - refresh according to previous API changes] Signed-off-by: Karel Zak libsmartcols/src/Makemodule.am | 12 ++++ libsmartcols/src/test.c | 155 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 167 insertions(+) commit 3e542c765412904331fddb722b52fcdf31997d44 Author: Karel Zak Date: Wed Mar 19 16:33:09 2014 +0100 libsmartcols: add table code Signed-off-by: Karel Zak libsmartcols/src/Makemodule.am | 3 + libsmartcols/src/libsmartcols.h.in | 72 ++++- libsmartcols/src/table.c | 507 ++++++++++++++++++++++++++++++++ libsmartcols/src/table_print.c | 577 +++++++++++++++++++++++++++++++++++++ 4 files changed, 1157 insertions(+), 2 deletions(-) commit c638c57ac3af8b819ef7b71804d585c3e9cf549c Author: Karel Zak Date: Wed Mar 19 16:29:39 2014 +0100 libsmartcols: add table struct, cleanup refcounting Signed-off-by: Karel Zak libsmartcols/src/cell.c | 24 ++++++- libsmartcols/src/line.c | 142 +++++++++++++++++++++++++++++++++--------- libsmartcols/src/smartcolsP.h | 49 +++++++++++++-- libsmartcols/src/symbols.c | 36 +++++++---- 4 files changed, 205 insertions(+), 46 deletions(-) commit 78a3b0af301b219c501f2c45d4bdcd65aed7f7a6 Author: Karel Zak Date: Wed Mar 19 13:25:45 2014 +0100 include/carefulputc: cleanup and add fputs_{quoted,nonblank}() Signed-off-by: Karel Zak include/carefulputc.h | 45 ++++++++++++++++++++++++++++++++++++++++++--- login-utils/last.c | 2 +- term-utils/wall.c | 2 +- term-utils/write.c | 2 +- 4 files changed, 45 insertions(+), 6 deletions(-) commit 74bd28ad6eadd0d51fb8da5003332eb3255f88eb Author: Karel Zak Date: Tue Mar 18 12:39:54 2014 +0100 libsmartcols: add lines Co-Author: Ondrej Oprala Signed-off-by: Karel Zak libsmartcols/src/cell.c | 13 +++ libsmartcols/src/column.c | 11 +-- libsmartcols/src/libsmartcols.h.in | 4 +- libsmartcols/src/line.c | 170 +++++++++++++++++++++++++++++++++++++ libsmartcols/src/smartcolsP.h | 18 ++++ 5 files changed, 207 insertions(+), 9 deletions(-) commit 1577b2592e2e31e52ed5d8cbed8fe90868891f8f Author: Karel Zak Date: Tue Mar 18 11:22:39 2014 +0100 libsmartcols: add columns Signed-off-by: Karel Zak libsmartcols/src/Makemodule.am | 1 + libsmartcols/src/cell.c | 12 +++ libsmartcols/src/column.c | 156 +++++++++++++++++++++++++++++++++++++ libsmartcols/src/libsmartcols.h.in | 14 ++++ libsmartcols/src/smartcolsP.h | 23 ++++++ misc-utils/wipefs.c | 2 +- 6 files changed, 207 insertions(+), 1 deletion(-) commit 6d1072696ce3e4ae9dc8b4a37805fb00bfc1d4e1 Author: Ondrej Oprala Date: Mon Mar 17 13:00:52 2014 +0100 libsmartcols: add cells [kzak@redhat.com: - remove copy, free -- all have to be handled by lines] Signed-off-by: Karel Zak libsmartcols/src/Makemodule.am | 1 + libsmartcols/src/cell.c | 70 ++++++++++++++++++++++++++++++++++++++ libsmartcols/src/libsmartcols.h.in | 7 ++++ libsmartcols/src/smartcolsP.h | 8 +++++ 4 files changed, 86 insertions(+) commit b36992fb2a44a49c21a608a18cd7da9ceef349c7 Author: Ondrej Oprala Date: Mon Mar 17 12:19:48 2014 +0100 libsmartcols: add symbols [kzak@redhat.com: - split scols_new_symbols() to regular getters functions] Signed-off-by: Karel Zak libsmartcols/src/Makemodule.am | 1 + libsmartcols/src/libsmartcols.h.in | 9 ++++ libsmartcols/src/smartcolsP.h | 9 ++++ libsmartcols/src/symbols.c | 103 +++++++++++++++++++++++++++++++++++++ 4 files changed, 122 insertions(+) commit 0b0ab9ff96f078e2d952206093c554849741dffa Author: Ondrej Oprala Date: Mon Mar 17 11:46:17 2014 +0100 libsmartcols: add iterator Signed-off-by: Karel Zak libsmartcols/src/Makemodule.am | 1 + libsmartcols/src/iter.c | 73 ++++++++++++++++++++++++++++++++++++++ libsmartcols/src/libsmartcols.h.in | 14 ++++++++ libsmartcols/src/smartcolsP.h | 9 +++++ 4 files changed, 97 insertions(+) commit 1a4d989e220677124ba24617d38cda533ae1340f Author: Ondrej Oprala Date: Mon Mar 17 10:51:56 2014 +0100 libsmartcols: add basic files Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak Makefile.am | 7 +++-- configure.ac | 25 ++++++++++++++++++ libsmartcols/Makemodule.am | 14 ++++++++++ libsmartcols/smartcols.pc.in | 10 +++++++ libsmartcols/src/.gitignore | 1 + libsmartcols/src/Makemodule.am | 53 ++++++++++++++++++++++++++++++++++++++ libsmartcols/src/libsmartcols.h.in | 27 +++++++++++++++++++ libsmartcols/src/libsmartcols.sym | 9 +++++++ libsmartcols/src/smartcolsP.h | 27 +++++++++++++++++++ 9 files changed, 171 insertions(+), 2 deletions(-) commit 94b559e08ee37f9597db4b64a1143e2325d949f4 Author: Ruediger Meier Date: Fri Mar 21 12:31:39 2014 +0100 mount: update mount.8 about barrier mount options defaults This patch comes originally from Jan Kara and updates the default behaviour of the kernel which has been changed some years ago. See kernel docs Documentation/filesystems/ext3.txt Documentation/filesystems/ext4.txt sys-utils/mount.8 | 37 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 21 deletions(-) commit 412791a995890d3576906d86a39bbee6246eb01e Author: Karel Zak Date: Tue Apr 1 14:39:13 2014 +0200 libfdisk: remove fdisk_colon() It was unnecessary overkill to have colorized "foo:" prefix in fdisk output. Signed-off-by: Karel Zak disk-utils/fdisk.c | 54 +++++++++++-------------------------------------- libfdisk/src/ask.c | 13 ------------ libfdisk/src/bsd.c | 36 ++++++++++++++++----------------- libfdisk/src/gpt.c | 10 ++++----- libfdisk/src/libfdisk.h | 3 +-- libfdisk/src/sgi.c | 4 ++-- libfdisk/src/sun.c | 6 +++--- 7 files changed, 41 insertions(+), 85 deletions(-) commit 0b6fbc25990d9498956e06bfcf699fca094e24a9 Author: Karel Zak Date: Tue Apr 1 14:32:38 2014 +0200 dmesg: don't use brow/yellow in output The color used for subsystem prefix is useless on while background. Let's use blue. Signed-off-by: Karel Zak sys-utils/dmesg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6b169092880b0b95409c7991cefa2c5ed02bd986 Merge: 8ff90ed a21f7ec Author: Karel Zak Date: Tue Apr 1 11:45:19 2014 +0200 Merge branch 'fix-script-timing' of https://github.com/theonewolf/util-linux * 'fix-script-timing' of https://github.com/theonewolf/util-linux: scriptreplay: no need to skip first time value or last bytes fixes #58 script: time from end of read() call partially fixes #58 commit 8ff90edfc201bd1dabb87b6d7a1d5cc8e9af13e2 Merge: b6a8cc0 b9396cb Author: Karel Zak Date: Tue Apr 1 11:40:18 2014 +0200 Merge branch 'travis' of https://github.com/rudimeier/util-linux * 'travis' of https://github.com/rudimeier/util-linux: travis-ci: enable more features and update gettext tests: getting paraller_jobs more robust commit b6a8cc0130a8a246a1d242defd9c04ef30ce8656 Merge: 5b575d4 5bdc375 Author: Karel Zak Date: Tue Apr 1 11:37:06 2014 +0200 Merge branch 'pg-manual-page-long-options' of https://github.com/jaalto/util-linux * 'pg-manual-page-long-options' of https://github.com/jaalto/util-linux: pg.1: Move (plus) options near (minus) option at the beginning pg.1: Add -h, --help, -V, --version commit 9e8dffd5cd29f03029b1ac99eecb129532ca5c0f Author: Sami Kerola Date: Sun Mar 9 15:16:14 2014 -0500 kill: move sigqueue inputs to control struct Use of global variables is messy. The earlier implementation also assumed queue argument never to be textual, such as 'HUP', which now works as one might expect. Signed-off-by: Sami Kerola misc-utils/kill.c | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) commit fd393d2a02b67c7c33efa331f338867f8086199f Author: Sami Kerola Date: Sun Mar 9 14:46:27 2014 -0500 kill: add parse_arguments() function Long main() is difficult to read, so moving argument parsing to separate function should make sense. Signed-off-by: Sami Kerola misc-utils/kill.c | 113 +++++++++++++++++++++++++++++------------------------- 1 file changed, 60 insertions(+), 53 deletions(-) commit d40c87b0a41ec7e4b01f8282ac6cfc808010b067 Author: Sami Kerola Date: Sun Mar 9 14:31:47 2014 -0500 kill: tell what is wrong rather than output usage() Getting usage as error message is not specific enough. As a user I want to know what is wrong, and if it is unclear after error message how to recover then I run command with --help. Signed-off-by: Sami Kerola misc-utils/kill.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) commit 2ab6683f59cd3371b1c3ac8b5c248d5104ed4d41 Author: Sami Kerola Date: Sun Mar 9 14:04:48 2014 -0500 kill: use control structure to pass user input to functions This should make it easier to understand how the program works. Signed-off-by: Sami Kerola misc-utils/kill.c | 109 +++++++++++++++++++++++++++++------------------------- 1 file changed, 59 insertions(+), 50 deletions(-) commit c5b057b3422504a671ee588fa66574ae876521f1 Author: Sami Kerola Date: Sun Mar 9 12:45:35 2014 -0500 kill: deprecat invocation as 'pid' command name Enabling options by renaming command is both unexpected and undocumented. This magic is now deprecated and with remark of removal of this functionality in future. Signed-off-by: Sami Kerola misc-utils/kill.1 | 5 +++++ misc-utils/kill.c | 2 ++ 2 files changed, 7 insertions(+) commit c840c5023cb66fda34ba236c29dc333344300b9e Author: Sami Kerola Date: Sun Mar 9 12:17:44 2014 -0500 kill: make usage() not to return And change the function argument to be an output stream. Earlier the --help option made kill exit with none-zero value, that is now corrected. CC: Benno Schulenberg Signed-off-by: Sami Kerola misc-utils/kill.c | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) commit 6e1bffa886cb72c561f8fb14399042dafd45d1f7 Author: Sami Kerola Date: Sun Mar 9 12:02:52 2014 -0500 kill: move magic numbers in beginning of the file Signed-off-by: Sami Kerola misc-utils/kill.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) commit 80af5fb046646c93cd3f50cacc8c6db8bbc0755e Author: Sami Kerola Date: Sun Mar 9 11:45:53 2014 -0500 kill: flip all comparions to be in smaller - greater order This makes code more readable. Signed-off-by: Sami Kerola misc-utils/kill.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit d4ea8636ad392c7a643e8e5e710fdd56361eb7cf Author: Sami Kerola Date: Sun Mar 9 11:15:28 2014 -0500 kill: fix coding style The kill was deprecated at the time lot of other tools got style unification. Now when deprecation is lifted it is time to get kill cleaner. This commit does not modify code, only various spacing issues, removal of unecessary braces, and such are dealt. Signed-off-by: Sami Kerola misc-utils/kill.c | 536 ++++++++++++++++++++++++++---------------------------- 1 file changed, 259 insertions(+), 277 deletions(-) commit b9396cbe902f799ae16ab3863ac3d1f4dd84ab4d Author: Ruediger Meier Date: Fri Mar 28 16:33:25 2014 +0100 travis-ci: enable more features and update gettext Signed-off-by: Ruediger Meier .travis.yml | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) commit 6163259cbd8a53a3af381fbf3822e6505704696e Author: Ruediger Meier Date: Fri Mar 28 15:48:41 2014 +0100 tests: getting paraller_jobs more robust This patch fixes several issues: 1. lscpu may not exist on all systems. 2. Option -b is not always available but we can skip it because it's the documented default for -p. 3. Some old lscpu versions print --help output to stdout in case of error. So in case 2. it would count all the help lines as CPUs, which could be really bad on slow single core machines. Signed-off-by: Ruediger Meier tests/run.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) commit 5b575d4381591d2744aafb957e149e88739921d2 Author: Karel Zak Date: Fri Mar 28 15:07:17 2014 +0100 libblkid: fix partitions probing * PART_ENTRY_* stuff is optional and should not overwrite previous probing result in partitions_probe() * missing minix parental partition is not error * blkid_probe_is_vfat() usage has to be more robust Signed-off-by: Karel Zak libblkid/src/partitions/dos.c | 2 +- libblkid/src/partitions/minix.c | 2 +- libblkid/src/partitions/partitions.c | 6 ++++-- libblkid/src/superblocks/vfat.c | 6 +++++- 4 files changed, 11 insertions(+), 5 deletions(-) commit cbe9202781c6dc6977cf417614ad371a7d08fb77 Author: Ondrej Oprala Date: Thu Mar 27 12:40:48 2014 +0100 libmount: silence some docs warnings Signed-off-by: Ondrej Oprala libmount/src/tab.c | 2 +- libmount/src/version.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit b430d630d3653c4b116d912ecfbfeac449a13d85 Merge: 742b128 765e6dc Author: Karel Zak Date: Fri Mar 28 11:10:09 2014 +0100 Merge branch 'fix-ppc-tests' of https://github.com/rudimeier/util-linux * 'fix-ppc-tests' of https://github.com/rudimeier/util-linux: tests: fix last for bigendian tests: fix utmpdump/ipv6tobin for bigendian tests: fix utmpdump/to-binary for bigendian tests: fix utmpdump/ipv6totxt for bigendian tests: fix utmpdump/to-text for bigendian tests: swaplabel needs to respect pagesize commit 742b128523eb8757c7a60e53bcf9c8c178c3175c Merge: 32ebf7e d9f0a6b Author: Karel Zak Date: Fri Mar 28 10:51:17 2014 +0100 Merge branch 'fix-ipcs-q-fallback' of https://github.com/rudimeier/util-linux * 'fix-ipcs-q-fallback' of https://github.com/rudimeier/util-linux: travis-ci: abort if make check fails ipcs: fix memleak in ipc_*_get_info functions ipcs: fix ipc_sem_get_info fallback case ipcs: fix ipc_shm_get_info fallback case ipcs: fix ipc_msg_get_info fallback case tests: add basic test case for ipcs -m -i n tests: add basic test case for ipcs -s -i n tests: add basic test case for ipcs -q -i n tests: quote generated arguments for ipcrm ipcs: cleanup jumplabel stlyes commit 32ebf7e04ed440cb2566c91c3616d6a635771017 Merge: c48508c 0517fbf Author: Karel Zak Date: Fri Mar 28 10:41:44 2014 +0100 Merge branch 'fix-lscpu-cache' of https://github.com/rudimeier/util-linux * 'fix-lscpu-cache' of https://github.com/rudimeier/util-linux: tests: cleanup, remove unused lscpu output tests: add lscpu dump for ppc cpu with no cache size lscpu: cleanup, use _PATH_SYS_CPU/NODE lscpu: don't abort if cache size is unknown commit c48508c2faa356c48c26d7d0070a6f20ae4ba9a0 Author: Karel Zak Date: Fri Mar 28 10:36:05 2014 +0100 findfs: add ability to work with PART{UUID,LABEL}= too Signed-off-by: Karel Zak misc-utils/findfs.8 | 51 +++++++++++++++++++++++++++++++++++++++------------ misc-utils/findfs.c | 17 +++++------------ 2 files changed, 44 insertions(+), 24 deletions(-) commit 0517fbf357285126984dd03921b49afce729ede8 Author: Ruediger Meier Date: Thu Mar 27 11:31:16 2014 +0100 tests: cleanup, remove unused lscpu output All these files are not used since a292bbde or 0d86c70a. Signed-off-by: Ruediger Meier tests/expected/lscpu/lscpu-i386-amdshanghai | 29 - tests/expected/lscpu/lscpu-i386-dellpe700 | 17 - tests/expected/lscpu/lscpu-i386-intels5000phb | 28 - tests/expected/lscpu/lscpu-i386-xenpara | 19 - tests/expected/lscpu/lscpu-ia64-512cpus | 654 --------------------- tests/expected/lscpu/lscpu-ia64-hpmatterhorn | 29 - tests/expected/lscpu/lscpu-ia64-hprx1620 | 21 - tests/expected/lscpu/lscpu-ia64-pg0 | 37 -- tests/expected/lscpu/lscpu-sparc64-UltraSparc-T1 | 38 -- .../expected/lscpu/lscpu-x86_64-dell_poweredge1950 | 23 - .../expected/lscpu/lscpu-x86_64-dell_poweredgeR610 | 40 -- tests/expected/lscpu/lscpu-x86_64-dellr710 | 40 -- tests/expected/lscpu/lscpu-x86_64-el5xen | 30 - tests/expected/lscpu/lscpu-x86_64-hpdl585 | 42 -- tests/expected/lscpu/lscpu-x86_64-ibme326m | 23 - tests/expected/lscpu/lscpu-x86_64-necem14 | 22 - tests/expected/lscpu/lscpu-x86_64-xenfull | 22 - 17 files changed, 1114 deletions(-) commit 50a3a60490ba9780253f2963274f707e8958eadd Author: Ruediger Meier Date: Thu Mar 27 11:19:37 2014 +0100 tests: add lscpu dump for ppc cpu with no cache size Taken from qemu-system-ppc (qemu 1.7) machine with installed debian 7.4 wheezy, kernel 3.2.0-4-powerpc. Signed-off-by: Ruediger Meier tests/expected/lscpu/lscpu-ppc-qemu | 15 +++++++++++++++ tests/ts/lscpu/dumps/ppc-qemu.tar.gz | Bin 0 -> 2014 bytes 2 files changed, 15 insertions(+) commit 1d56b55ea187704b2501125b50b8fd95d756d067 Author: Ruediger Meier Date: Thu Mar 27 09:18:32 2014 +0100 lscpu: cleanup, use _PATH_SYS_CPU/NODE This make most lines shorter than 80 chars again (tab-witdh 4). Signed-off-by: Ruediger Meier sys-utils/lscpu.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) commit 10d927ab3ba442084283db670364045bca61dbb8 Author: Ruediger Meier Date: Wed Mar 26 22:18:17 2014 +0100 lscpu: don't abort if cache size is unknown There are systems where the size file does not exist. Most badly even lscpu -p would abort allthough it does not use the size: $ lscpu -p lscpu: error: cannot open /sys/devices/system/cpu/cpu0/cache/index0/size: No such file or directory This patch does not abort in this case and prints "unknown size" in human-readable case. For examle on this qemu pcc test machine: $ lscpu Architecture: ppc CPU op-mode(s): 32-bit Byte Order: Big Endian CPU(s): 1 On-line CPU(s) list: 0 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 1 Model: Power Macintosh BogoMIPS: 33.25 L1d cache: unknown size L1i cache: unknown size Signed-off-by: Ruediger Meier sys-utils/lscpu.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) commit 753d9bb2ecf778034125cc06d4a386457b0867d1 Author: Sami Kerola Date: Sun Mar 9 15:30:14 2014 -0500 findfs: use symbolic exit values, and tell about them in manual [[kzak@redhat.com: - move return codes to findfs.c] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/findfs.8 | 30 ++++++++++++++++++++++++++---- misc-utils/findfs.c | 18 ++++++++++++------ 2 files changed, 38 insertions(+), 10 deletions(-) commit f7bac5731bf559216aa2f0e8be1d7f477e7cf41a Author: Sami Kerola Date: Sat Mar 8 15:43:30 2014 -0600 mcookie: add --max-size option Just in case someone wants to add entropy from device with invocation demonstrated below. $ mcookie --file /dev/urandom --max-size 64k [kzak@redhat.com: - use all-io.h] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/mcookie.1 | 15 +++++++++++++++ misc-utils/mcookie.c | 32 +++++++++++++++++++++++++++----- 2 files changed, 42 insertions(+), 5 deletions(-) commit 46ae163a8e5dc8457f8e2828eb53db8e610af275 Author: Sami Kerola Date: Sat Mar 8 15:43:29 2014 -0600 mcookie: use control structure, and fix usage() Signed-off-by: Sami Kerola misc-utils/mcookie.c | 94 +++++++++++++++++++++++++++------------------------- 1 file changed, 49 insertions(+), 45 deletions(-) commit a3030b8ad36fc34208514df604f9ea9744b765b7 Author: Sami Kerola Date: Sat Mar 8 15:43:28 2014 -0600 mcookie: use same variable type consistently Signed-off-by: Sami Kerola misc-utils/mcookie.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit cdf0c32596f76a6729c3bd54c1bd2b45d3fe8304 Author: Sami Kerola Date: Sat Mar 8 15:43:27 2014 -0600 mcookie: allow --file option be defined multiple times Earlier only the last option argument took effect. Signed-off-by: Sami Kerola misc-utils/mcookie.c | 73 +++++++++++++++++++++++++++++++--------------------- 1 file changed, 44 insertions(+), 29 deletions(-) commit 0720d60cc1b39c6ba2900b1aa61cbc98feba711a Author: Sami Kerola Date: Sat Mar 8 15:43:26 2014 -0600 mcookie: use lib/randutils The mcookie should reuse existing code, and there is definitely no need to prefer /dev/random for this utility. See reference for explanation about later statement. References: http://www.2uo.de/myths-about-urandom/ Signed-off-by: Sami Kerola include/randutils.h | 1 + lib/randutils.c | 22 +++++++++++++++++++ misc-utils/Makemodule.am | 1 + misc-utils/mcookie.1 | 45 +++++++++++++++----------------------- misc-utils/mcookie.c | 57 +++++++++--------------------------------------- 5 files changed, 51 insertions(+), 75 deletions(-) commit caf1ba11a367ad702fb774653daf9ebdcca49d7b Author: Karel Zak Date: Mon Mar 24 11:26:21 2014 +0100 flock: use nfs4 fallback on EBADF too The kernel regression (probably v3.4, commit 55725513) introduces a new errno for O_RDONLY on NFS. Now it returns EBADF rather than EIO. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1078618 Signed-off-by: Karel Zak sys-utils/flock.c | 1 + 1 file changed, 1 insertion(+) commit 765e6dc3d30a11f5eda9f6ca5b032c606cdfade4 Author: Ruediger Meier Date: Sun Mar 23 16:38:31 2014 +0100 tests: fix last for bigendian Signed-off-by: Ruediger Meier tests/ts/last/ipv6 | 17 ++++++++++++----- tests/ts/last/ipv6-input | Bin 768 -> 0 bytes tests/ts/last/ipv6-input.BE | Bin 0 -> 768 bytes tests/ts/last/ipv6-input.LE | Bin 0 -> 768 bytes tests/ts/last/last | 31 +++++++++++++++++++------------ tests/ts/last/wtmp | Bin 7296 -> 0 bytes tests/ts/last/wtmp.BE | Bin 0 -> 7296 bytes tests/ts/last/wtmp.LE | Bin 0 -> 7296 bytes 8 files changed, 31 insertions(+), 17 deletions(-) commit 9c721310657de9573a22a8acad3926d47f83deaf Merge: 32be26a 03f2226 Author: Karel Zak Date: Fri Mar 21 15:21:16 2014 +0100 Merge branch 'fix-compile-color-cfdisk' of https://github.com/theonewolf/util-linux * 'fix-compile-color-cfdisk' of https://github.com/theonewolf/util-linux: cfdisk: fix compile-time error fixes #59 commit 32be26a07633cfe62bcc35f9bb038f3202305cc5 Merge: b5ce1c5 f0fb84a Author: Karel Zak Date: Fri Mar 21 15:11:25 2014 +0100 Merge branch 'cfdisk-fix-typo' of https://github.com/rudimeier/util-linux * 'cfdisk-fix-typo' of https://github.com/rudimeier/util-linux: cfdisk: fix typo (undeclared variable since b1f58330) commit b5ce1c5642172168572f0df1db7ed23e7261b0db Merge: e146ae4 2808550 Author: Karel Zak Date: Fri Mar 21 15:02:29 2014 +0100 Merge branch 'master' of https://github.com/rudimeier/util-linux * 'master' of https://github.com/rudimeier/util-linux: tests: try hard to create swaplabel's test image build-sys: libmount/python/__init__.py is always a dist file tests: return error if failures file not usable tests: write tests/failures to build- instead of srcdir commit e146ae4edb52b0559cbb42717338665c6395b56f Author: Karel Zak Date: Fri Mar 21 14:04:59 2014 +0100 libfdisk: properly implement read-only mode Don't use fallback to read-only mode in fdisk_context_assign_device(), it's application responsibility open the device in the right mode. The commands fdisk and cfdisk check (and report) read-only mode now. Reported-by: Maciej Małecki Signed-off-by: Karel Zak disk-utils/cfdisk.c | 21 +++++++++++++++++++-- disk-utils/fdisk-menu.c | 4 ++++ disk-utils/fdisk.c | 10 ++++++++-- libfdisk/src/context.c | 15 ++++++++++----- libfdisk/src/fdiskP.h | 3 ++- libfdisk/src/label.c | 3 +-- libfdisk/src/libfdisk.h | 1 + 7 files changed, 45 insertions(+), 12 deletions(-) commit d71bd2f0d6cb2f537fd75537746d1a64170d78aa Author: Karel Zak Date: Fri Mar 21 13:33:37 2014 +0100 libfdisk: clean up debug output Signed-off-by: Karel Zak libfdisk/src/alignment.c | 32 ++++++++++++++++---------------- libfdisk/src/ask.c | 27 ++++++++++++++++----------- libfdisk/src/context.c | 31 +++++++++++++++---------------- libfdisk/src/fdiskP.h | 15 +++++++-------- libfdisk/src/label.c | 18 +++++++++--------- libfdisk/src/partition.c | 15 ++++++++------- libfdisk/src/parttype.c | 10 +++++----- libfdisk/src/table.c | 27 ++++++++++++++------------- libfdisk/src/utils.c | 6 +++--- 9 files changed, 93 insertions(+), 88 deletions(-) commit 881410671f24fc7910cfcec66f37abb94008bbfd Author: Karel Zak Date: Fri Mar 21 12:35:21 2014 +0100 libfdisk: use new debug functions Signed-off-by: Karel Zak disk-utils/cfdisk.c | 58 ++++++++++++++++++++++++------------------------ disk-utils/fdisk-menu.c | 30 ++++++++++++------------- disk-utils/fdisk.c | 18 +++++++-------- libfdisk/src/alignment.c | 32 +++++++++++++------------- libfdisk/src/ask.c | 22 +++++++++--------- libfdisk/src/bsd.c | 6 ++--- libfdisk/src/context.c | 28 +++++++++++------------ libfdisk/src/dos.c | 54 ++++++++++++++++++++++---------------------- libfdisk/src/fdiskP.h | 40 +++++---------------------------- libfdisk/src/gpt.c | 38 +++++++++++++++---------------- libfdisk/src/label.c | 20 ++++++++--------- libfdisk/src/partition.c | 14 ++++++------ libfdisk/src/parttype.c | 10 ++++----- libfdisk/src/sgi.c | 10 ++++----- libfdisk/src/table.c | 26 +++++++++++----------- libfdisk/src/utils.c | 6 ++--- 16 files changed, 190 insertions(+), 222 deletions(-) commit c62a6311ee95556bdaf12106a6a1f8c353322ccd Author: Karel Zak Date: Fri Mar 21 12:34:50 2014 +0100 libblkid: use new debug functions Signed-off-by: Karel Zak libblkid/src/blkidP.h | 22 +---------- libblkid/src/cache.c | 12 +++--- libblkid/src/config.c | 12 +++--- libblkid/src/dev.c | 4 +- libblkid/src/devname.c | 36 ++++++++--------- libblkid/src/devno.c | 10 ++--- libblkid/src/evaluate.c | 22 +++++------ libblkid/src/init.c | 2 +- libblkid/src/partitions/bsd.c | 8 ++-- libblkid/src/partitions/dos.c | 6 +-- libblkid/src/partitions/gpt.c | 16 ++++---- libblkid/src/partitions/mac.c | 2 +- libblkid/src/partitions/minix.c | 2 +- libblkid/src/partitions/partitions.c | 42 ++++++++++---------- libblkid/src/partitions/sgi.c | 2 +- libblkid/src/partitions/solaris_x86.c | 4 +- libblkid/src/partitions/sun.c | 4 +- libblkid/src/partitions/unixware.c | 2 +- libblkid/src/probe.c | 70 +++++++++++++++++----------------- libblkid/src/read.c | 28 +++++++------- libblkid/src/resolve.c | 4 +- libblkid/src/save.c | 22 +++++------ libblkid/src/superblocks/ext.c | 2 +- libblkid/src/superblocks/minix.c | 2 +- libblkid/src/superblocks/nilfs.c | 2 +- libblkid/src/superblocks/ntfs.c | 2 +- libblkid/src/superblocks/superblocks.c | 18 ++++----- libblkid/src/superblocks/swap.c | 4 +- libblkid/src/superblocks/vfat.c | 4 +- libblkid/src/tag.c | 14 +++---- libblkid/src/topology/dm.c | 6 +-- libblkid/src/topology/lvm.c | 6 +-- libblkid/src/topology/topology.c | 10 ++--- libblkid/src/verify.c | 12 +++--- 34 files changed, 196 insertions(+), 218 deletions(-) commit 83a783320b987a0ab9790ea5fad2eb2f77baaf3b Author: Karel Zak Date: Fri Mar 21 12:34:39 2014 +0100 libmount: use new debug functions Signed-off-by: Karel Zak libmount/src/cache.c | 27 ++++++------ libmount/src/context.c | 98 +++++++++++++++++++++--------------------- libmount/src/context_loopdev.c | 32 +++++++------- libmount/src/context_mount.c | 62 +++++++++++++------------- libmount/src/context_umount.c | 76 ++++++++++++++++---------------- libmount/src/fs.c | 16 +++---- libmount/src/init.c | 4 +- libmount/src/lock.c | 30 ++++++------- libmount/src/mountP.h | 59 +++---------------------- libmount/src/optstr.c | 20 ++++----- libmount/src/tab.c | 64 +++++++++++++-------------- libmount/src/tab_diff.c | 12 +++--- libmount/src/tab_parse.c | 48 ++++++++++----------- libmount/src/tab_update.c | 56 ++++++++++++------------ libmount/src/utils.c | 30 ++++++------- libmount/src/version.c | 5 ++- 16 files changed, 291 insertions(+), 348 deletions(-) commit e7b49879ad6ddb6a03f122916e5bcf7a1833deb2 Author: Karel Zak Date: Fri Mar 21 12:04:12 2014 +0100 include/debug: add another debug macros Signed-off-by: Karel Zak include/debug.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) commit d282c88df5cef3978546d9b6ce894d18421d9615 Author: Karel Zak Date: Fri Mar 21 11:21:56 2014 +0100 include/debug: fix coding style Signed-off-by: Karel Zak include/debug.h | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) commit 9a7769141a71fdccae518e74ac5657c19c78b653 Merge: 0576dbd 274228f Author: Karel Zak Date: Fri Mar 21 10:59:58 2014 +0100 Merge branch 'common_debug' of https://github.com/ooprala/util-linux * 'common_debug' of https://github.com/ooprala/util-linux: clean up redundant macros and defines libfdisk: use include/debug.h libblkid: use include/debug.h libmount: further debug.h integration libcommon: don't mention lib versions in debug macros libcommon: define more debugging macros libmount: use macros from include/debug.h libcommon: add common debugging routines commit 0576dbd3ea114dc35b797ad7216f1ed5814e7c6b Author: Karel Zak Date: Fri Mar 21 10:30:22 2014 +0100 build-sys: gettexts 0.18 -> 0.18.2 due to MKDIR_P The autopoint is designed to not use the latest installed bug fix release, if you specify AM_GNU_GETTEXT_VERSION([0.18]) in your configure.ac then it really uses 0.18, rather than also installed 0.18.2 or 0.18.3. It means that bug fix update has no any effect. Oh... The AM_PROG_MKDIR_P is deprecated for years, unfortunately still used in 0.18 gettext m4 stuff. This problem should be fixed in 0.18.2 where is the correct AC_PROG_MKDIR_P macro. If you do not have gettext 0.18.2 (or 0.18.3) then update. Signed-off-by: Karel Zak configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 621047fa81a61b7f918d3757f63d6c2caf1c75b2 Merge: 37f4060 d754315 Author: Karel Zak Date: Fri Mar 21 09:19:01 2014 +0100 Merge branch 'fix-unshare-defines' of https://github.com/rudimeier/util-linux * 'fix-unshare-defines' of https://github.com/rudimeier/util-linux: unshare: include libmount.h to provide missing MS_* defines commit 37f4060225df0591ab8e1dd676dbc8115d900d4f Author: Hannes Reinecke Date: Thu Mar 20 11:03:50 2014 +0100 blkid: convert superblocks to new calling convention With the previous patch the scanning functions were modified to return a differentiated return code. To correctly abort scanning when an I/O error occurs we need to differentiate between 'error' (= -1) and 'not found' (= 1) in the probe functions. This patch updates all superblock scanning functions to the new calling convention. Signed-off-by: Hannes Reinecke Signed-off-by: Karel Zak libblkid/src/partitions/aix.c | 10 +++--- libblkid/src/partitions/bsd.c | 28 +++++++++------ libblkid/src/partitions/dos.c | 40 ++++++++++++--------- libblkid/src/partitions/gpt.c | 30 +++++++++++----- libblkid/src/partitions/mac.c | 25 ++++++++----- libblkid/src/partitions/minix.c | 17 +++++---- libblkid/src/partitions/sgi.c | 15 ++++---- libblkid/src/partitions/solaris_x86.c | 15 ++++---- libblkid/src/partitions/sun.c | 17 +++++---- libblkid/src/partitions/ultrix.c | 15 ++++---- libblkid/src/partitions/unixware.c | 15 ++++---- libblkid/src/superblocks/adaptec_raid.c | 18 +++++----- libblkid/src/superblocks/bcache.c | 10 +++--- libblkid/src/superblocks/befs.c | 34 +++++++++--------- libblkid/src/superblocks/btrfs.c | 2 +- libblkid/src/superblocks/cramfs.c | 2 +- libblkid/src/superblocks/ddf_raid.c | 19 +++++----- libblkid/src/superblocks/drbd.c | 8 ++--- libblkid/src/superblocks/drbdproxy_datalog.c | 2 +- libblkid/src/superblocks/exfat.c | 6 ++-- libblkid/src/superblocks/ext.c | 30 ++++++++-------- libblkid/src/superblocks/f2fs.c | 2 +- libblkid/src/superblocks/gfs.c | 8 ++--- libblkid/src/superblocks/hfs.c | 12 +++---- libblkid/src/superblocks/highpoint_raid.c | 12 +++---- libblkid/src/superblocks/hpfs.c | 8 ++--- libblkid/src/superblocks/iso9660.c | 4 +-- libblkid/src/superblocks/isw_raid.c | 13 +++---- libblkid/src/superblocks/jfs.c | 2 +- libblkid/src/superblocks/jmicron_raid.c | 13 +++---- libblkid/src/superblocks/linux_raid.c | 53 ++++++++++++++++------------ libblkid/src/superblocks/lsi_raid.c | 10 +++--- libblkid/src/superblocks/luks.c | 2 +- libblkid/src/superblocks/lvm.c | 6 ++-- libblkid/src/superblocks/minix.c | 18 +++++----- libblkid/src/superblocks/netware.c | 2 +- libblkid/src/superblocks/nilfs.c | 4 +-- libblkid/src/superblocks/ntfs.c | 6 ++-- libblkid/src/superblocks/nvidia_raid.c | 12 +++---- libblkid/src/superblocks/ocfs.c | 8 ++--- libblkid/src/superblocks/promise_raid.c | 10 +++--- libblkid/src/superblocks/reiserfs.c | 8 ++--- libblkid/src/superblocks/romfs.c | 2 +- libblkid/src/superblocks/silicon_raid.c | 10 +++--- libblkid/src/superblocks/squashfs.c | 2 +- libblkid/src/superblocks/swap.c | 24 ++++++------- libblkid/src/superblocks/sysv.c | 8 ++--- libblkid/src/superblocks/ubifs.c | 2 +- libblkid/src/superblocks/udf.c | 16 ++++----- libblkid/src/superblocks/ufs.c | 4 +-- libblkid/src/superblocks/vfat.c | 16 +++++---- libblkid/src/superblocks/via_raid.c | 6 ++-- libblkid/src/superblocks/vmfs.c | 4 +-- libblkid/src/superblocks/vxfs.c | 2 +- libblkid/src/superblocks/xfs.c | 6 ++-- libblkid/src/superblocks/zfs.c | 6 ++-- 56 files changed, 376 insertions(+), 303 deletions(-) commit 296d96e20e565e497e9510e6ac9b71e0a0ca447d Author: Hannes Reinecke Date: Thu Mar 20 11:03:49 2014 +0100 blkid: stop scanning on I/O error Whenever we fail to read from a device it's pointless to continue with probing; we should be failing immediately. Otherwise the system will continue logging I/O errors. This patch updates the probe functions to return the negative error number on error and BLKID_PROBE_NONE if not found. [kzak@redhat.com: - fix s/return errno/return -errno/] Signed-off-by: Hannes Reinecke Signed-off-by: Karel Zak libblkid/src/blkidP.h | 3 +++ libblkid/src/partitions/partitions.c | 44 ++++++++++++++++++---------------- libblkid/src/probe.c | 30 +++++++++++++++++++---- libblkid/src/superblocks/superblocks.c | 35 ++++++++++++++++++--------- 4 files changed, 76 insertions(+), 36 deletions(-) commit a21f7ec91d4566a5b54ff598baaec05d55527cf5 Author: Wolfgang Richter Date: Wed Mar 19 22:47:11 2014 -0400 scriptreplay: no need to skip first time value or last bytes fixes #58 term-utils/scriptreplay.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit b0d6b85720f6176837afef60ca5c199d5a391c82 Author: Wolfgang Richter Date: Wed Mar 19 22:45:48 2014 -0400 script: time from end of read() call partially fixes #58 term-utils/script.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 03f2226e8bba4fedec4e667502174d285a78f5da Author: Wolfgang Richter Date: Wed Mar 19 22:42:40 2014 -0400 cfdisk: fix compile-time error fixes #59 + For compile to work also needs pull request #56 applied disk-utils/cfdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d754315c54af9cb8222e0a04ed5b2b4b927ed176 Author: Ruediger Meier Date: Mon Mar 17 11:48:47 2014 +0100 unshare: include libmount.h to provide missing MS_* defines Since 6728ca10 we are using MS_PRIVATE and MS_REC which are not defined in some systems's sys/mount.h. Signed-off-by: Ruediger Meier sys-utils/Makemodule.am | 1 + sys-utils/unshare.c | 3 +++ 2 files changed, 4 insertions(+) commit aa8a1f5197cbe8cdf487f8d1e1c30690b52c4490 Author: Ruediger Meier Date: Sat Mar 15 04:59:25 2014 +0000 tests: fix utmpdump/ipv6tobin for bigendian Signed-off-by: Ruediger Meier tests/expected/utmpdump/ipv6tobin | Bin 768 -> 8 bytes tests/ts/utmpdump/ipv6tobin | 8 +++++++- 2 files changed, 7 insertions(+), 1 deletion(-) commit 151602435616bd879ce5617189fa7a438f0d0e6d Author: Ruediger Meier Date: Sat Mar 15 03:02:26 2014 +0000 tests: fix utmpdump/to-binary for bigendian Signed-off-by: Ruediger Meier tests/expected/utmpdump/to-binary | Bin 3840 -> 8 bytes tests/ts/utmpdump/to-binary | 8 +++++++- 2 files changed, 7 insertions(+), 1 deletion(-) commit c52dbd6cde3d9cb376be40e9cb3f9702bb1aa8fb Author: Ruediger Meier Date: Sat Mar 15 02:30:36 2014 +0000 tests: fix utmpdump/ipv6totxt for bigendian Signed-off-by: Ruediger Meier tests/ts/utmpdump/ipv6bin | Bin 768 -> 0 bytes tests/ts/utmpdump/ipv6bin.BE | Bin 0 -> 768 bytes tests/ts/utmpdump/ipv6bin.LE | Bin 0 -> 768 bytes tests/ts/utmpdump/ipv6totxt | 4 +++- 4 files changed, 3 insertions(+), 1 deletion(-) commit 885575cacff0c50acde326b9a362099453820b64 Author: Ruediger Meier Date: Sat Mar 15 02:20:41 2014 +0000 tests: fix utmpdump/to-text for bigendian Signed-off-by: Ruediger Meier tests/ts/utmpdump/binary | Bin 3840 -> 0 bytes tests/ts/utmpdump/binary.BE | Bin 0 -> 3840 bytes tests/ts/utmpdump/binary.LE | Bin 0 -> 3840 bytes tests/ts/utmpdump/to-text | 4 +++- 4 files changed, 3 insertions(+), 1 deletion(-) commit d61bff4e2bab2d594e9b3e1071634b610b4ce7e0 Author: Ruediger Meier Date: Sat Mar 15 00:57:47 2014 +0100 tests: swaplabel needs to respect pagesize Signed-off-by: Ruediger Meier tests/expected/misc/swaplabel | 4 ++-- tests/ts/misc/swaplabel | 18 +++++++++++++----- 2 files changed, 15 insertions(+), 7 deletions(-) commit f0fb84ab360bd30a9a131efd477543a54beb499d Author: Ruediger Meier Date: Fri Mar 14 13:00:01 2014 +0100 cfdisk: fix typo (undeclared variable since b1f58330) Signed-off-by: Ruediger Meier disk-utils/cfdisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 280855019f13e21c5e804f1cd8673a2d96066fb8 Author: Ruediger Meier Date: Thu Mar 13 16:42:49 2014 +0100 tests: try hard to create swaplabel's test image Signed-off-by: Ruediger Meier tests/ts/misc/swaplabel | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) commit d9f0a6b09191cbe2a0973b2071b746aa0ce55397 Author: Ruediger Meier Date: Thu Mar 13 12:05:10 2014 +0100 travis-ci: abort if make check fails make check should work now on current travis build image. Signed-off-by: Ruediger Meier .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3d5fcdb19acfa3f8b2ade005af4f7762e309f88f Author: Ruediger Meier Date: Thu Mar 13 09:20:50 2014 +0100 ipcs: fix memleak in ipc_*_get_info functions In case of error (maxid < 0) we do not enter following for loop. It will return 0 and free the structs afterwards because i is still 0. Signed-off-by: Ruediger Meier sys-utils/ipcutils.c | 6 ------ 1 file changed, 6 deletions(-) commit 5078a0d31d17d95abef980ab719ffc5e5a7ba863 Author: Ruediger Meier Date: Thu Mar 13 09:07:44 2014 +0100 ipcs: fix ipc_sem_get_info fallback case "ipcs -s -i n" (case id >= 0) was broken since v2.22-254-g1e2418a if /sys is not usable. See also comments for commit "ipcs: fix ipc_msg_get_info fallback case". Signed-off-by: Ruediger Meier sys-utils/ipcutils.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) commit b507e426dff3759fe20c6a07cce388a739666c43 Author: Ruediger Meier Date: Wed Mar 12 22:46:15 2014 +0100 ipcs: fix ipc_shm_get_info fallback case "ipcs -m -i n" (case id >= 0) was broken since v2.22-251-g61e14b4 if /sys is not usable. See also comments for commit "ipcs: fix ipc_msg_get_info fallback case". Signed-off-by: Ruediger Meier sys-utils/ipcutils.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) commit 08e7d10bd8a7894a6f83396bad337396b7191de7 Author: Ruediger Meier Date: Wed Mar 12 14:53:20 2014 +0100 ipcs: fix ipc_msg_get_info fallback case "ipcs -q" (case id < 0) was broken since v2.22-256-g35118df if /sys is not usable. The main issue was that the use of msqid argument did not cleanly distinguished between "queue identifier" and "index of kernel's internal array". Also now the fallback case and the regular case behave more equally regarding it's return value (introducing another counter j). Note that the case id >= 0 now performs a slower lookup. This could be avoided but then we would better handle both case differently like it was before the above mentioned cleanup commit. Signed-off-by: Ruediger Meier sys-utils/ipcutils.c | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) commit a400c2ad0e99f7e2274fa3faae4a2ab57a8ac6a4 Author: Ruediger Meier Date: Thu Mar 13 15:08:13 2014 +0100 build-sys: libmount/python/__init__.py is always a dist file "make dist" and "make distcheck" should work after a bare ./configure to give us a full featured tar ball. Signed-off-by: Ruediger Meier libmount/python/Makemodule.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit ddd2570f6091c0e8edf9274a311a6f468e8c025d Author: Ruediger Meier Date: Thu Mar 13 17:40:16 2014 +0100 tests: return error if failures file not usable In past this could happen when doing make distcheck. Signed-off-by: Ruediger Meier tests/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 51f9b431c0d0cea32e94ef033d02155966e75bc7 Author: Ruediger Meier Date: Thu Mar 13 14:35:59 2014 +0100 tests: write tests/failures to build- instead of srcdir All other test output goes to builddir too and moreover "make distcheck" complains about writing to it's read-only srcdir. Signed-off-by: Ruediger Meier tests/run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 422f93bfbb5df358fad3fedfe9eb0247cbf3cb14 Author: Karel Zak Date: Thu Mar 13 12:41:03 2014 +0100 include/closestream: don't wipe errno on EPIPE ... the code in close_stdout() is sensitive to EPIPE, so wipe errno is close_stream() is probably bad idea. Signed-off-by: Karel Zak include/closestream.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 97c3278925794be6636f803c8bfbdf8bff71aa91 Author: Karel Zak Date: Thu Mar 13 12:39:09 2014 +0100 dmesg: don't report EPIPE Signed-off-by: Karel Zak sys-utils/dmesg.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit 274228fecc76877224501177b46c19d9715a6ada Author: Ondrej Oprala Date: Thu Mar 13 11:53:31 2014 +0100 clean up redundant macros and defines Signed-off-by: Ondrej Oprala include/debug.h | 8 -------- libblkid/src/blkidP.h | 9 --------- libblkid/src/init.c | 2 +- libfdisk/src/fdiskP.h | 10 ---------- libfdisk/src/init.c | 2 +- libmount/src/init.c | 2 +- libmount/src/mountP.h | 10 ---------- libmount/src/test.c | 2 +- 8 files changed, 4 insertions(+), 41 deletions(-) commit 2618b9cc1f433dd67e9ad717f8313126859f0455 Author: Ondrej Oprala Date: Thu Mar 13 11:10:20 2014 +0100 libfdisk: use include/debug.h Signed-off-by: Ondrej Oprala libfdisk/src/fdiskP.h | 22 +++++++++++----------- libfdisk/src/init.c | 18 ++---------------- 2 files changed, 13 insertions(+), 27 deletions(-) commit ed64028665fd4803351d92846e061b858da2d5bf Author: Ondrej Oprala Date: Thu Mar 13 11:04:20 2014 +0100 libblkid: use include/debug.h Signed-off-by: Ondrej Oprala libblkid/src/blkidP.h | 16 +++++++++------- libblkid/src/init.c | 16 ++-------------- 2 files changed, 11 insertions(+), 21 deletions(-) commit 01086b80b689911ffc26519e451b2f81678e24fb Author: Karel Zak Date: Thu Mar 13 11:08:01 2014 +0100 libfdisk: (gpt) use entry attributes as bitmap * care about endianess * don't use by compiler packed struct with bit array for GPT attributes, it's more robust use it as bitmap stored in uint64_t. Signed-off-by: Karel Zak libfdisk/src/gpt.c | 199 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 113 insertions(+), 86 deletions(-) commit 4e11f7a5d237185815bae5115b44c9c7a275cbe5 Author: Ruediger Meier Date: Wed Mar 12 20:49:57 2014 +0100 tests: add basic test case for ipcs -m -i n Signed-off-by: Ruediger Meier tests/expected/ipcs/mk-rm-shm | 2 ++ tests/ts/ipcs/mk-rm-shm | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) commit 5645b74313b88511a02b8b29b50c746865162f84 Author: Ruediger Meier Date: Wed Mar 12 20:42:29 2014 +0100 tests: add basic test case for ipcs -s -i n Signed-off-by: Ruediger Meier tests/expected/ipcs/mk-rm-sem | 2 ++ tests/ts/ipcs/mk-rm-sem | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) commit 8db370dcfeada2414dfd574a20036daf30f06ea6 Author: Ruediger Meier Date: Thu Mar 13 09:57:19 2014 +0100 tests: add basic test case for ipcs -q -i n Signed-off-by: Ruediger Meier tests/expected/ipcs/mk-rm-msg | 1 + tests/ts/ipcs/mk-rm-msg | 2 ++ 2 files changed, 3 insertions(+) commit 3a5f2d2ba2bfef6ce70da98a9eba06f2b57f4fb6 Author: Ruediger Meier Date: Wed Mar 12 20:03:06 2014 +0100 tests: quote generated arguments for ipcrm In case that awk fails to parse out the right id the next ipc command will give us a clear error message instead of telling us to use correct syntax. Signed-off-by: Ruediger Meier tests/ts/ipcs/mk-rm-msg | 4 ++-- tests/ts/ipcs/mk-rm-sem | 4 ++-- tests/ts/ipcs/mk-rm-shm | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) commit d73658219925fb5a8ef55e6408ba3ea5c4688a58 Author: Ondrej Oprala Date: Thu Mar 13 10:53:16 2014 +0100 libmount: further debug.h integration Signed-off-by: Ondrej Oprala libmount/src/init.c | 16 ++-------------- libmount/src/mountP.h | 5 ++++- 2 files changed, 6 insertions(+), 15 deletions(-) commit b681c25834a7c29c0f82dce553c2775199dfb51f Author: Ondrej Oprala Date: Thu Mar 13 10:42:11 2014 +0100 libcommon: don't mention lib versions in debug macros Signed-off-by: Ondrej Oprala include/debug.h | 3 --- 1 file changed, 3 deletions(-) commit 9bcacde12f3973000a038771541337571a3d1a3d Author: Ruediger Meier Date: Thu Mar 13 09:28:40 2014 +0100 ipcs: cleanup jumplabel stlyes Signed-off-by: Ruediger Meier sys-utils/ipcutils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit cb3fa84753893c84ff5cb727edb5bdf4eb3757a3 Author: Ondrej Oprala Date: Wed Mar 12 15:40:40 2014 +0100 libcommon: define more debugging macros Signed-off-by: Ondrej Oprala include/debug.h | 7 +++++++ 1 file changed, 7 insertions(+) commit 88e3d03eb835250e8cfbc46a4dc99f2d90fd9c49 Author: Karel Zak Date: Wed Mar 12 15:09:02 2014 +0100 libblkid: convert GPT attributes to host endianess Signed-off-by: Karel Zak libblkid/src/partitions/gpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit cedd8e5f6259ce8a552de97a2ed2987739daf5ad Author: Ondrej Oprala Date: Wed Mar 12 14:37:58 2014 +0100 libmount: use macros from include/debug.h Signed-off-by: Ondrej Oprala libmount/src/mountP.h | 11 ++++------- libmount/src/test.c | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) commit db08389d874ddf42714a49097a2505f1bf311d9e Author: Ondrej Oprala Date: Tue Mar 11 11:27:13 2014 +0100 libcommon: add common debugging routines Signed-off-by: Ondrej Oprala include/Makemodule.am | 1 + include/debug.h | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) commit 5a1b4999f7f9d152654b4af56f73804ce9407844 Author: Karel Zak Date: Wed Mar 12 13:52:01 2014 +0100 libfdisk: update GPT partition types Signed-off-by: Karel Zak libfdisk/src/gpt.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) commit b9fa9ed4b3d3de424f0d3a350f6b7235505bb693 Author: Karel Zak Date: Wed Mar 12 12:25:23 2014 +0100 mount: update XFS mount.8 allocsize= Reported-by: Satoru Takeuchi Signed-off-by: Karel Zak sys-utils/mount.8 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 27aadd8bf68ca166cb4f83aa3ed72d69f1bfba2e Author: Benno Schulenberg Date: Thu Feb 13 21:36:43 2014 +0100 libfdisk: avoid two compiler warnings about wrong print formats Signed-off-by: Benno Schulenberg libfdisk/src/dos.c | 2 +- libfdisk/src/gpt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit a97b307a035be1ada353314a695bfd34cd9d9a46 Author: Sami Kerola Date: Sat Mar 8 11:01:56 2014 -0600 docs: add a new command boilerplate code Having howtos is good, having an working code that can be used as-is to kickstart a write of a new command is better. Signed-off-by: Sami Kerola Documentation/boilerplate.c | 100 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) commit cc93d115deecf75d79959391922feb07a7b8e4c4 Author: Sami Kerola Date: Sat Mar 8 11:01:55 2014 -0600 build-sys: sort gitignore files Use 'LC_ALL=C sort -fu' order for all lists. Signed-off-by: Sami Kerola .gitignore | 67 ++++++++++++++++++++++----------------------- libblkid/docs/.gitignore | 16 +++++------ libblkid/samples/.gitignore | 4 +-- libmount/docs/.gitignore | 16 +++++------ po/.gitignore | 24 ++++++++-------- sys-utils/.gitignore | 8 +++--- 6 files changed, 67 insertions(+), 68 deletions(-) commit 59ac7e76c6088803210bcc06f55e51b2e687befd Author: Sami Kerola Date: Sat Mar 8 11:01:54 2014 -0600 tests: check swaplabel, and perform more swapon boundary tests Signed-off-by: Sami Kerola tests/commands.sh | 1 + tests/expected/misc/swaplabel | 6 ++++++ tests/ts/misc/swaplabel | 44 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) commit 793a05f8405e12ff2aa19811e2dd3bfa55e33b91 Author: Sami Kerola Date: Sat Mar 8 11:01:53 2014 -0600 mkswap: remove unnecessary usage output The usage output changes too often making unnecessarily expected output in test unstable. Besides in this case the usage ouput does not even help user, because invalid swap target size error cannot be fixed by specificing an option. Signed-off-by: Sami Kerola disk-utils/mkswap.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) commit 62b07018c165b8c26ca548c31fd362b8f8c810de Author: Karel Zak Date: Wed Mar 12 11:02:15 2014 +0100 tests: cleanup fallocate Signed-off-by: Karel Zak tests/ts/misc/fallocate | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit 2d12322958a6320da0cdfd4e529f837e5d691bf8 Merge: c1a5428 fd25dcf Author: Karel Zak Date: Wed Mar 12 10:55:47 2014 +0100 Merge branch 'master' of https://github.com/rudimeier/util-linux * 'master' of https://github.com/rudimeier/util-linux: tests, skip fallocate for unsupported filesystems commit c1a54286677e8fe0d44337e3acfacc3585c78a6e Author: Karel Zak Date: Wed Mar 12 09:27:10 2014 +0100 lib/colors: care about colors only on tty() Signed-off-by: Karel Zak lib/colors.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit f948a1474ff41762c0e213bdb502b11fc56ef1d9 Author: Karel Zak Date: Wed Mar 12 09:11:36 2014 +0100 libblkid: improve comment Signed-off-by: Karel Zak libblkid/src/partitions/partitions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit fd25dcf456001557ffa02ad5f98edc8cf903df91 Author: Ruediger Meier Date: Tue Mar 11 15:53:19 2014 +0100 tests, skip fallocate for unsupported filesystems tests/ts/misc/fallocate | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) commit 1f54c9f607b53a9f3c4a34eb67216c6ea375296b Author: Karel Zak Date: Tue Mar 11 13:00:41 2014 +0100 tests: refresh fdisk outputs Signed-off-by: Karel Zak tests/expected/blkid/md-raid0-whole | 20 ++++++--------- tests/expected/blkid/md-raid1-part | 20 ++++++--------- tests/expected/blkid/md-raid1-whole | 20 ++++++--------- tests/expected/fdisk/align-512-4K | 40 ++++++++++++----------------- tests/expected/fdisk/align-512-4K-63 | 40 ++++++++++++----------------- tests/expected/fdisk/align-512-4K-md | 40 ++++++++++++----------------- tests/expected/fdisk/align-512-512 | 37 ++++++++++++-------------- tests/expected/fdisk/align-512-512-topology | 40 ++++++++++++----------------- 8 files changed, 107 insertions(+), 150 deletions(-) commit 5296523d6b3c90947c4ed5f0038728bcba388c49 Author: Karel Zak Date: Tue Mar 11 12:59:42 2014 +0100 lib/strutils: fix parse_size() return code Signed-off-by: Karel Zak lib/strutils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit f9b7d7a60f46706def6d159def342c0288d919e4 Author: Karel Zak Date: Tue Mar 11 12:35:44 2014 +0100 tests: update fdisk MBR and SUN tests Signed-off-by: Karel Zak tests/expected/fdisk/mbr-dos-mode | 66 +++++++++++++-------------- tests/expected/fdisk/mbr-nondos-mode | 88 +++++++++++++++++------------------- tests/expected/fdisk/sunlabel | 22 ++++----- 3 files changed, 83 insertions(+), 93 deletions(-) commit 41050b7e23c3780c7f02aacfe4f0bfaf6d94f81f Author: Karel Zak Date: Tue Mar 11 12:33:30 2014 +0100 libfdisk: (bsd) fix output Signed-off-by: Karel Zak libfdisk/src/bsd.c | 4 +++- tests/expected/fdisk/bsd | 30 ++++++++++++++---------------- 2 files changed, 17 insertions(+), 17 deletions(-) commit ad9fe47e751a73a55aeb25ae895544e03e900aa9 Author: Karel Zak Date: Tue Mar 11 12:22:35 2014 +0100 cfdisk: follow terminal-colors.d Signed-off-by: Karel Zak disk-utils/cfdisk.c | 2 +- tests/expected/fdisk/gpt | 106 +++++++++++++++++++++++------------------------ 2 files changed, 54 insertions(+), 54 deletions(-) commit 8d6ec09abaab37b6facc22829ca26b589b4c6fde Author: Karel Zak Date: Tue Mar 11 12:16:14 2014 +0100 libfdisk: follow requested size rather than use all available space Signed-off-by: Karel Zak libfdisk/src/gpt.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) commit 2d49d0b65ff46c7f850f903f6568ee3c5463c636 Author: Karel Zak Date: Tue Mar 11 11:51:38 2014 +0100 lib/colors: fix colors test Signed-off-by: Karel Zak lib/colors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 210bb49268bb27fc8e2cf0f0f9302eb8bf416a51 Author: Karel Zak Date: Tue Mar 11 11:49:52 2014 +0100 cfdisk: fix colors initialization Signed-off-by: Karel Zak disk-utils/cfdisk.8 | 11 +++++++++++ disk-utils/cfdisk.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) commit 4ffbedba0e9ed4459dc9e2754b9120085e7d1c8b Author: Karel Zak Date: Tue Mar 11 11:40:00 2014 +0100 fdisk: add note about colors to the man page Signed-off-by: Karel Zak disk-utils/fdisk.8 | 10 ++++++++++ 1 file changed, 10 insertions(+) commit f1512be8a5d732e809f5ad80edf3a83a8877fc6c Author: Karel Zak Date: Mon Mar 10 14:44:50 2014 +0100 cfdisk: fix slang usage Signed-off-by: Karel Zak configure.ac | 14 +++++++++++++- disk-utils/cfdisk.c | 22 +++++++++++++++++----- 2 files changed, 30 insertions(+), 6 deletions(-) commit 4ddd86d5d96f75b8b5191add9b1eaeebb9a548bd Author: Karel Zak Date: Mon Mar 10 14:15:36 2014 +0100 build-sys: ove fdisks to disk-utils Signed-off-by: Karel Zak Makefile.am | 1 - disk-utils/Makemodule.am | 73 ++ disk-utils/cfdisk.8 | 145 +++ disk-utils/cfdisk.c | 1842 ++++++++++++++++++++++++++ disk-utils/fdisk-menu.c | 880 +++++++++++++ disk-utils/fdisk.8 | 272 ++++ disk-utils/fdisk.c | 943 ++++++++++++++ disk-utils/fdisk.h | 36 + disk-utils/sfdisk.8 | 650 ++++++++++ disk-utils/sfdisk.c | 3230 ++++++++++++++++++++++++++++++++++++++++++++++ fdisks/Makemodule.am | 77 -- fdisks/cfdisk.8 | 145 --- fdisks/cfdisk.c | 1842 -------------------------- fdisks/fdisk-menu.c | 880 ------------- fdisks/fdisk.8 | 272 ---- fdisks/fdisk.c | 943 -------------- fdisks/fdisk.h | 36 - fdisks/sfdisk.8 | 650 ---------- fdisks/sfdisk.c | 3230 ---------------------------------------------- 19 files changed, 8071 insertions(+), 8076 deletions(-) commit d6b3ba417b043b76d651fa7e05f6209f12f5135b Author: Karel Zak Date: Mon Mar 10 13:55:43 2014 +0100 fdisk: merge fdisk-ask.c to fdisk.c Signed-off-by: Karel Zak fdisks/Makemodule.am | 1 - fdisks/fdisk-ask.c | 372 --------------------------------------------------- fdisks/fdisk.c | 361 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 361 insertions(+), 373 deletions(-) commit 4b1cc035d702a6704ee7499327eebccb031898dd Author: Karel Zak Date: Mon Mar 10 13:36:22 2014 +0100 sfdisk: merge partname.c Signed-off-by: Karel Zak fdisks/Makemodule.am | 5 +---- fdisks/partname.c | 48 ------------------------------------------------ fdisks/partname.h | 8 -------- fdisks/sfdisk.c | 45 ++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 45 insertions(+), 61 deletions(-) commit 0eeeec330065758df7468d5119853a233dbfdd06 Author: Karel Zak Date: Mon Mar 10 13:21:39 2014 +0100 cfdisk: refresh man page Signed-off-by: Karel Zak fdisks/cfdisk.8 | 413 ++++++++------------------------------------------------ 1 file changed, 54 insertions(+), 359 deletions(-) commit b230117970b332138493932c7f4a3da70118c807 Author: Karel Zak Date: Mon Mar 10 11:57:26 2014 +0100 cfdisk: update table index when out of range Signed-off-by: Karel Zak fdisks/cfdisk.c | 3 +++ 1 file changed, 3 insertions(+) commit ef97e92ba5d038a77dbb53fcaa646de140d0eb20 Author: Karel Zak Date: Fri Mar 7 13:54:17 2014 +0100 libfdisk: (sun) add info about whole-disk partition Signed-off-by: Karel Zak libfdisk/src/sun.c | 2 ++ 1 file changed, 2 insertions(+) commit 33867d3b6fd9575c26eb6cc4b4dd8ff78cacef26 Author: Karel Zak Date: Fri Mar 7 13:44:31 2014 +0100 cfdisk: fix header Signed-off-by: Karel Zak fdisks/cfdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7e241236fc00408e6f76d0e0560e0b89e74e140c Author: Karel Zak Date: Fri Mar 7 13:44:12 2014 +0100 libfdisk: (sgi) cleanup, add infor about whole-disk partition Signed-off-by: Karel Zak libfdisk/src/sgi.c | 46 +++------------------------------------------- 1 file changed, 3 insertions(+), 43 deletions(-) commit c1c58b492fed457c81f6c5aab5689b40c8b1ec6f Author: Karel Zak Date: Fri Mar 7 13:43:39 2014 +0100 libfdisk: don't count special whole-disk partitions Signed-off-by: Karel Zak libfdisk/src/fdiskP.h | 1 + libfdisk/src/table.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) commit 889421798eae93eeed3f802d18a98a2fc4b8ac52 Author: Karel Zak Date: Fri Mar 7 13:14:51 2014 +0100 cfdisk: coding style, comments, etc. Signed-off-by: Karel Zak fdisks/cfdisk.c | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) commit 3b411726b78469cf3ee05858bb62f0fc06e5fae2 Author: Karel Zak Date: Fri Mar 7 13:01:22 2014 +0100 cfdisk: cleanup, rename menuitem struct Signed-off-by: Karel Zak fdisks/cfdisk.c | 76 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 37 insertions(+), 39 deletions(-) commit 04915c3f4cdaab3d7e429a4f9deab9131a169f0a Author: Karel Zak Date: Thu Feb 27 13:28:40 2014 +0100 cfdisk: add usage() and some basic main() stuff Signed-off-by: Karel Zak fdisks/cfdisk.c | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 51 insertions(+), 4 deletions(-) commit f019ce1fa4c013449758f896312b281a710bd8bb Author: Karel Zak Date: Thu Feb 27 13:05:19 2014 +0100 cfdisk:add page down/up Signed-off-by: Karel Zak fdisks/cfdisk.c | 70 ++++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 52 insertions(+), 18 deletions(-) commit a6f691268c3d9e54caa28824c67eb96005d78c68 Author: Karel Zak Date: Thu Feb 27 12:24:50 2014 +0100 cfdisk: support partitions list longer than screen LINES Signed-off-by: Karel Zak fdisks/cfdisk.c | 77 ++++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 63 insertions(+), 14 deletions(-) commit 7b1ffbc438ff9df0817e0d864e6ae56835997de1 Author: Karel Zak Date: Wed Feb 26 14:49:13 2014 +0100 cfdisk: improve write dialog Signed-off-by: Karel Zak fdisks/cfdisk.c | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) commit 314a0dd8fc3f15ee9be86c7307326e8799a45a50 Author: Karel Zak Date: Wed Feb 26 14:22:04 2014 +0100 cfdisk: add help screen Signed-off-by: Karel Zak fdisks/cfdisk.c | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 2 deletions(-) commit 6d6d9c1a51c9cf2197768fd238d0fa9feee224f8 Author: Karel Zak Date: Wed Feb 26 13:58:31 2014 +0100 cfdisk: improve add parttype UI Signed-off-by: Karel Zak fdisks/cfdisk.c | 47 +++++++++++++++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 16 deletions(-) commit 6fed9601fc5d0f45f45f949b2b5668faafd00be3 Author: Karel Zak Date: Wed Feb 26 13:02:30 2014 +0100 cfdisk: add parttype dialog Signed-off-by: Karel Zak fdisks/cfdisk.c | 182 ++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 151 insertions(+), 31 deletions(-) commit c400e535aabee35aeb9297db5bbc5f4a76fe8f8c Author: Karel Zak Date: Wed Feb 26 13:02:02 2014 +0100 fdisk: remove unnecessary code Signed-off-by: Karel Zak fdisks/fdisk.c | 2 -- 1 file changed, 2 deletions(-) commit 63128bbfdccebd82c0e16567ac691c18c503a62f Author: Karel Zak Date: Tue Feb 25 13:22:26 2014 +0100 cfdisk: consolidate menu descriptions Signed-off-by: Karel Zak fdisks/cfdisk.c | 79 +++++++++++++++++++++++++++------------------------------ 1 file changed, 37 insertions(+), 42 deletions(-) commit ed8a13e6eee2017f06bb16f9140e09264d553d56 Author: Karel Zak Date: Tue Feb 25 13:05:09 2014 +0100 cfdisk: menu actions refactoring Signed-off-by: Karel Zak fdisks/cfdisk.c | 247 +++++++++++++++++++++++++++----------------------------- 1 file changed, 117 insertions(+), 130 deletions(-) commit 7aa0d52963cf19039504e44b5a867098d847d179 Author: Karel Zak Date: Tue Feb 25 12:47:22 2014 +0100 cfdisk: add create lebel UI Signed-off-by: Karel Zak fdisks/cfdisk.c | 130 ++++++++++++++++++++++++++++++++++++++++-------- libfdisk/src/context.c | 5 ++ libfdisk/src/libfdisk.h | 1 + 3 files changed, 114 insertions(+), 22 deletions(-) commit ac27ea5c28f6b99e75f66576ebce9873c6d1918b Author: Karel Zak Date: Mon Feb 24 14:27:49 2014 +0100 cfdisk: consolidate menu move code Signed-off-by: Karel Zak fdisks/cfdisk.c | 78 +++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 54 insertions(+), 24 deletions(-) commit 8a7261140f013d26ef4a8ff4f197381bc6d348d0 Author: Karel Zak Date: Mon Feb 24 13:57:08 2014 +0100 cfdisk: supports also vertical menus Signed-off-by: Karel Zak fdisks/cfdisk.c | 99 +++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 83 insertions(+), 16 deletions(-) commit d051ea93b3dcc1229ce0ac2d4f13d1470d5e9094 Author: Karel Zak Date: Tue Feb 4 23:53:03 2014 +0100 cfdisk: reorder abstract PT according to output Signed-off-by: Karel Zak fdisks/cfdisk.c | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) commit e11040bdfc31e2f8754ad503809f313a914c7752 Author: Karel Zak Date: Tue Feb 4 23:52:17 2014 +0100 lib/tt: keep track about output order Signed-off-by: Karel Zak include/tt.h | 5 ++++- lib/tt.c | 21 ++++++++++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) commit 9a66e1e76fbde53ecf0e7684e5a942d96f4c9780 Author: Karel Zak Date: Tue Feb 4 23:34:54 2014 +0100 lib/tt: add tt_line_get_userdata() Signed-off-by: Karel Zak include/tt.h | 1 + lib/tt.c | 5 +++++ misc-utils/findmnt.c | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) commit 5139eca74a4b71fe95ae76599d35bf5275fa045f Author: Karel Zak Date: Tue Feb 4 23:09:26 2014 +0100 libfdisk: add dump functions, make freespace code generic Signed-off-by: Karel Zak fdisks/cfdisk.c | 4 +- libfdisk/src/libfdisk.h | 3 + libfdisk/src/partition.c | 24 +++++++ libfdisk/src/table.c | 177 +++++++++++++++++++++++++++++++---------------- 4 files changed, 147 insertions(+), 61 deletions(-) commit 1b92d076baf0c0f698c493040a9d505e5e0cd267 Author: Karel Zak Date: Tue Feb 4 23:09:02 2014 +0100 libfdisk: (dos) consolidate partition end-offset code Signed-off-by: Karel Zak libfdisk/src/dos.c | 61 +++++++++++++++++++++++++++++------------------------- 1 file changed, 33 insertions(+), 28 deletions(-) commit e77313a67d5e37000e49c3acbf947733a5dc4f08 Author: Karel Zak Date: Tue Feb 4 21:09:55 2014 +0100 libfdisk: (dos) fix ext_index usage Signed-off-by: Karel Zak libfdisk/src/dos.c | 21 +++++++++++++-------- libfdisk/src/table.c | 8 +++++--- 2 files changed, 18 insertions(+), 11 deletions(-) commit 8903f7dfc94e6305600ca0fcc879503956592c97 Author: Karel Zak Date: Tue Feb 4 20:51:30 2014 +0100 cfdisk: improve tree output Signed-off-by: Karel Zak fdisks/cfdisk.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) commit bd5e829198a61b0c2a9ef990ea6d017a7e7c8aef Author: Karel Zak Date: Tue Feb 4 20:50:02 2014 +0100 libfdisk: remove label specific get_freespace - it seems we can use improved nested<->container relationship rather than implement DOS specific function Signed-off-by: Karel Zak libfdisk/src/dos.c | 9 ++-- libfdisk/src/fdiskP.h | 6 +-- libfdisk/src/libfdisk.h | 2 +- libfdisk/src/partition.c | 14 +++---- libfdisk/src/table.c | 106 ++++++++++++++++++++--------------------------- 5 files changed, 60 insertions(+), 77 deletions(-) commit bcddbe96882b88d53b6bc0495e7322c0820a5122 Author: Karel Zak Date: Mon Feb 3 18:06:07 2014 +0100 libfdisk: (dos) fix log.partition delete - deallocate sector buffer and deincrement part_max when delete last logical partition - zap obsolete EBR on begin of the extended partition when no logical partition defined Signed-off-by: Karel Zak libfdisk/src/dos.c | 70 +++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 54 insertions(+), 16 deletions(-) commit aa423fd39eabdcc2e315997018eece3cd0c41951 Author: Karel Zak Date: Mon Feb 3 18:05:57 2014 +0100 libfdisk: again improve freespace code Signed-off-by: Karel Zak libfdisk/src/table.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 45333e9d7144a2f149ac0dd2407135f4b52f55c2 Author: Karel Zak Date: Mon Feb 3 14:40:35 2014 +0100 cfdisk: use tree-mode for extended, colorize freesapce Signed-off-by: Karel Zak fdisks/cfdisk.c | 63 +++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 52 insertions(+), 11 deletions(-) commit 036439315f4c29748fddd10c33d6cc4868dd9352 Author: Karel Zak Date: Mon Feb 3 14:40:27 2014 +0100 libfdisk: improve freesapce detection Signed-off-by: Karel Zak libfdisk/src/dos.c | 5 ++++ libfdisk/src/fdiskP.h | 11 ++----- libfdisk/src/libfdisk.h | 3 +- libfdisk/src/partition.c | 12 ++++++-- libfdisk/src/table.c | 76 ++++++++++++++++++++++++++++++++++++++++-------- 5 files changed, 83 insertions(+), 24 deletions(-) commit a3e37fa7af93622e2217b7f020f41104b005b848 Author: Karel Zak Date: Mon Feb 3 12:23:18 2014 +0100 libfdisk: don't ask for pri/log if wanted start within extended partition Signed-off-by: Karel Zak libfdisk/src/dos.c | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) commit 872d23897c5a6e5bba99791ceeffe8122caf89b2 Author: Karel Zak Date: Mon Feb 3 12:22:31 2014 +0100 cfdisk: follow default end if possible Signed-off-by: Karel Zak fdisks/cfdisk.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) commit e5c93999e664a5c534b047de3ea6fb8030958dd3 Author: Karel Zak Date: Mon Feb 3 12:19:38 2014 +0100 libfdisk: add table sort function, use it in get_freespace Signed-off-by: Karel Zak libfdisk/src/libfdisk.h | 12 ++++++++++ libfdisk/src/partition.c | 12 ++++++++++ libfdisk/src/table.c | 61 +++++++++++++++++++++++++++++++++++++----------- 3 files changed, 71 insertions(+), 14 deletions(-) commit 6736192af40373f56534d8cb47998555c0a5f5fe Author: Karel Zak Date: Mon Feb 3 12:18:57 2014 +0100 include/list: add void data to the sort cmp function Signed-off-by: Karel Zak include/list.h | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) commit d80921acdf0c077a49c2eca38f3dc88d3cd76ee3 Author: Karel Zak Date: Fri Jan 31 10:35:53 2014 +0100 cfdisk: use real partno Signed-off-by: Karel Zak fdisks/cfdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 91ba41ca29c3c3ec031bc812f9e01b3450b147d2 Author: Karel Zak Date: Fri Jan 31 10:31:08 2014 +0100 cfdisk: support S, and long hint messages Signed-off-by: Karel Zak fdisks/cfdisk.c | 43 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 9 deletions(-) commit 6c6750db34b3177178bedb07494e76a59ba1fea8 Author: Karel Zak Date: Thu Jan 30 15:07:46 2014 +0100 lib/strutils: support dec.points in parse_size() Signed-off-by: Karel Zak lib/strutils.c | 45 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) commit 3643958f481f9d4530bf96ab0c80ec23480827f0 Author: Karel Zak Date: Thu Jan 30 12:56:01 2014 +0100 lib/strutils: use proper return codes in parse_size() Signed-off-by: Karel Zak lib/strutils.c | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) commit 2cec7949947aa6d48112ea4f0928e6698174f342 Author: Karel Zak Date: Thu Jan 30 12:21:11 2014 +0100 libfdisk: rewrite freespace code * use separate function to get free space * allow to use label-specific get_freespace() function (this is necessary for MBR extended partitions mess) Signed-off-by: Karel Zak fdisks/cfdisk.c | 10 ++-- fdisks/fdisk.c | 2 +- libfdisk/src/context.c | 22 ------- libfdisk/src/fdiskP.h | 10 +++- libfdisk/src/libfdisk.h | 6 +- libfdisk/src/table.c | 149 ++++++++++++++++++++++++++++++++++++------------ 6 files changed, 131 insertions(+), 68 deletions(-) commit b1f583304fe3c015cee25407dc493d47bc2ea9fd Author: Karel Zak Date: Wed Jan 29 14:22:12 2014 +0100 cfdisk: add UI for linfdisk menus, ask for size Signed-off-by: Karel Zak fdisks/cfdisk.c | 317 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 308 insertions(+), 9 deletions(-) commit 5f3504f8c0c39c8165c81686e7b66171c6415767 Author: Karel Zak Date: Wed Jan 29 14:21:30 2014 +0100 fdisk: use ASKTYPE_MENU Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) commit 81c29a73d9eb85e76b3b65b07096cd3011d66629 Author: Karel Zak Date: Wed Jan 29 14:20:40 2014 +0100 linfdisk: align free space Signed-off-by: Karel Zak libfdisk/src/table.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) commit 1240f549d89febba87130381b38c1d5c2718a098 Author: Karel Zak Date: Wed Jan 29 14:20:11 2014 +0100 libfdisk: (gpt) initialize last_lba, cleanup pa->{start,size} usage Signed-off-by: Karel Zak libfdisk/src/gpt.c | 89 ++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 69 insertions(+), 20 deletions(-) commit ef7b2f1c88fcce5363302e43efd44a33bae6e734 Author: Karel Zak Date: Wed Jan 29 14:19:05 2014 +0100 libfdisk: initialize last_lba Signed-off-by: Karel Zak libfdisk/src/alignment.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 732aefdf26f14de402de87ce74db6354b30eba9d Author: Karel Zak Date: Wed Jan 29 14:17:41 2014 +0100 libfdisk: add fdisk_partition_*_follow_default() Signed-off-by: Karel Zak libfdisk/src/partition.c | 53 +++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 48 insertions(+), 5 deletions(-) commit 20f878fee3ff40d0678e3cddfda06788c5ea87c9 Author: Karel Zak Date: Wed Jan 29 14:15:30 2014 +0100 libfdisk: add ASKTYPE_MENU and context last_lba Signed-off-by: Karel Zak libfdisk/src/ask.c | 130 ++++++++++++++++++++++++++++++++++++++++++++++++ libfdisk/src/dos.c | 61 +++++++++++++---------- libfdisk/src/fdiskP.h | 15 ++++++ libfdisk/src/libfdisk.h | 19 ++++++- 4 files changed, 197 insertions(+), 28 deletions(-) commit 1b1f66e477f229fe9f3d4b5f9d8484ca50db02f2 Author: Karel Zak Date: Wed Jan 29 14:09:54 2014 +0100 lib/mbalign: add mbs_safe_width() from tt.c Signed-off-by: Karel Zak include/mbsalign.h | 11 ++++- lib/mbsalign.c | 137 ++++++++++++++++++++++++++++++++++++++++++++++++++++- lib/tt.c | 135 ---------------------------------------------------- 3 files changed, 145 insertions(+), 138 deletions(-) commit 849968b9ba621a3c2e8913256bcad00d5a830a91 Author: Karel Zak Date: Mon Jan 27 17:31:24 2014 +0100 fdisk: fix 'p'rint error on empty PT Signed-off-by: Karel Zak fdisks/fdisk.c | 3 ++- libfdisk/src/table.c | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) commit 83fa0f8036599de5d8976e3ad849792470e5800b Author: Karel Zak Date: Wed Jan 22 14:22:35 2014 +0100 cfdisk: improve info line and menu updates Signed-off-by: Karel Zak fdisks/cfdisk.c | 126 +++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 101 insertions(+), 25 deletions(-) commit 1af8003bd8cd45781abdfa86e8c9999f530ab518 Author: Karel Zak Date: Wed Jan 22 13:05:19 2014 +0100 cfdisk: improve info line, add Delete action Signed-off-by: Karel Zak fdisks/cfdisk.c | 90 +++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 78 insertions(+), 12 deletions(-) commit 00b4f26a5def0abca5ffa6ab30d11597447e1710 Author: Karel Zak Date: Wed Jan 22 11:53:34 2014 +0100 cfdisk: update menu according to the current partition Signed-off-by: Karel Zak fdisks/cfdisk.c | 40 +++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) commit 28b6a23caecc14623dd94a4b3adae07e1867b6c4 Author: Karel Zak Date: Wed Jan 22 11:52:50 2014 +0100 libfdisk: add fdisk_table_get_partition() Signed-off-by: Karel Zak libfdisk/src/libfdisk.h | 5 +++++ libfdisk/src/table.c | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) commit 8460875df9e262422e616aabb30c568e4f7eef01 Author: Karel Zak Date: Wed Jan 22 11:10:54 2014 +0100 cfdisk: add menu action functions Signed-off-by: Karel Zak fdisks/cfdisk.c | 77 ++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 65 insertions(+), 12 deletions(-) commit 8c3a5a440f71ccdbf69ec7ed4f2bb087e858c83f Author: Karel Zak Date: Thu Jan 9 14:49:45 2014 +0100 cfdisk: basic UI stuff fdisks/Makemodule.am | 9 +- fdisks/cfdisk.c | 3221 ++++++++------------------------------------------ 2 files changed, 531 insertions(+), 2699 deletions(-) commit 2e6c3a53f9fb5d8bbebe88951f3e0ddefb5ca429 Author: Karel Zak Date: Thu Jan 9 14:48:49 2014 +0100 include/xalloc: add xvasprintf() Signed-off-by: Karel Zak include/xalloc.h | 8 ++++++++ 1 file changed, 8 insertions(+) commit 04406c0d0cccdc85521531091e0e18e8cd876c72 Author: Karel Zak Date: Mon Jan 6 08:32:20 2014 +0100 libfdisk: add fdisk_table_get_nents() Signed-off-by: Karel Zak libfdisk/src/fdiskP.h | 1 + libfdisk/src/libfdisk.h | 9 +++++++-- libfdisk/src/table.c | 14 ++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) commit 9f7fdeaf0e4d26b6758c19db0ab2429def826b0d Author: Karel Zak Date: Thu Dec 19 13:58:46 2013 +0100 libfdisk: tiny clean up in fdisk_table_to_string() Signed-off-by: Karel Zak libfdisk/src/table.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) commit d0059a249142c6d3d747ce0483651afe9900995d Author: Karel Zak Date: Thu Dec 19 13:25:51 2013 +0100 libfdisk: clean up cylinder column Signed-off-by: Karel Zak libfdisk/src/bsd.c | 8 +++++--- libfdisk/src/dos.c | 1 + libfdisk/src/gpt.c | 1 + libfdisk/src/label.c | 11 +++++++++-- libfdisk/src/sgi.c | 1 + libfdisk/src/sun.c | 1 + libfdisk/src/table.c | 9 ++------- 7 files changed, 20 insertions(+), 12 deletions(-) commit 9f670072f42d7e0e8403385defc69e93b636cb93 Author: Karel Zak Date: Wed Dec 18 10:38:43 2013 +0100 libfdisk: remove tt stuff from API The include/tt.h has to be used only internally by the library (for example to convert fdisk_table to string). The fdisk_ask API should not be more used for complex tasks like print partition table. The application has to use fdisk_get_table() and fdisk_table_to_string() or something else. Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 4 ---- fdisks/fdisk-menu.c | 8 ++------ fdisks/fdisk.c | 20 +++++++++++++++++++- fdisks/fdisk.h | 1 + libfdisk/src/ask.c | 28 ---------------------------- libfdisk/src/fdiskP.h | 7 +------ libfdisk/src/libfdisk.h | 1 - 7 files changed, 23 insertions(+), 46 deletions(-) commit 6c89f750d28d2c554b4bebb8d617f4202d36bbb6 Author: Karel Zak Date: Wed Dec 18 10:28:55 2013 +0100 libfdisk: use fdisk_table to generate output * add generic fdisk_iter iterator * use fdisk_table to convert partition table to human readable output * clean up partition.c API (don't use reference to fdisk_context in fdisk_partition struct) * extern table.c API to use fdisk_iter iterator * remove old fdisk_list_partitions() Signed-off-by: Karel Zak libfdisk/src/Makemodule.am | 1 + libfdisk/src/bsd.c | 4 +- libfdisk/src/dos.c | 89 +----------------- libfdisk/src/fdiskP.h | 32 ++++++- libfdisk/src/gpt.c | 4 +- libfdisk/src/iter.c | 73 ++++++++++++++ libfdisk/src/label.c | 167 +------------------------------- libfdisk/src/libfdisk.h | 28 +++++- libfdisk/src/partition.c | 45 +++++---- libfdisk/src/sgi.c | 14 ++- libfdisk/src/sun.c | 4 +- libfdisk/src/table.c | 230 ++++++++++++++++++++++++++++++++++++++++++++- 12 files changed, 401 insertions(+), 290 deletions(-) commit ed494c8d50d912ee7aa3cfdfc9876540d15994da Author: Karel Zak Date: Wed Dec 18 10:22:32 2013 +0100 include/tt: add function to convert table to string Note that open_memstream() is POSIX-1.2008, so it's possible than not all libc have already implemented this function. Signed-off-by: Karel Zak include/tt.h | 1 + lib/tt.c | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) commit 187de51c8a1b334b58b9062c25255bee3e1a30c7 Author: Karel Zak Date: Mon Dec 16 13:59:48 2013 +0100 libfdisk: move partition stuff to partition.c Signed-off-by: Karel Zak libfdisk/src/label.c | 95 ---------------------------------------------- libfdisk/src/partition.c | 98 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+), 95 deletions(-) commit b48cdebcb45f75ff20cdab68f706de803532ceaf Author: Karel Zak Date: Fri Dec 13 19:56:21 2013 +0100 libfdisk: add table container Signed-off-by: Karel Zak libfdisk/src/Makemodule.am | 1 + libfdisk/src/fdiskP.h | 57 +++++++++-------- libfdisk/src/libfdisk.h | 10 +++ libfdisk/src/table.c | 149 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 193 insertions(+), 24 deletions(-) commit d6cfa8b3270bdd866d99259f5d815de80557a3e7 Author: Karel Zak Date: Fri Dec 13 19:26:29 2013 +0100 libfdisk: add reference counting to fdisk_partition Signed-off-by: Karel Zak fdisks/fdisk.c | 2 +- libfdisk/src/fdiskP.h | 1 + libfdisk/src/label.c | 2 +- libfdisk/src/libfdisk.h | 3 ++- libfdisk/src/partition.c | 28 ++++++++++++++++++++++------ 5 files changed, 27 insertions(+), 9 deletions(-) commit 1de9fddbe5325c8bf00210b2f963ae086fc11bdb Author: Karel Zak Date: Thu Dec 12 17:22:52 2013 +0100 libfdisk: add support to list free space Signed-off-by: Karel Zak libfdisk/src/context.c | 22 ++++++++++ libfdisk/src/fdiskP.h | 5 ++- libfdisk/src/label.c | 105 ++++++++++++++++++++++++++++++++++++----------- libfdisk/src/libfdisk.h | 5 +++ libfdisk/src/partition.c | 9 +++- 5 files changed, 120 insertions(+), 26 deletions(-) commit 77d6a70ac40aaaf693eb9c71d01ebac41218e9b3 Author: Karel Zak Date: Fri Nov 29 21:55:53 2013 +0100 libfdisk: use partition template Signed-off-by: Karel Zak libfdisk/src/bsd.c | 139 +++++++++++++----------- libfdisk/src/dos.c | 185 ++++++++++++++++++------------- libfdisk/src/fdiskP.h | 12 ++- libfdisk/src/gpt.c | 142 ++++++++++++++---------- libfdisk/src/label.c | 37 ++++--- libfdisk/src/libfdisk.h | 6 +- libfdisk/src/partition.c | 55 ++++++++-- libfdisk/src/sgi.c | 140 +++++++++++++----------- libfdisk/src/sun.c | 276 +++++++++++++++++++++++++++-------------------- 9 files changed, 591 insertions(+), 401 deletions(-) commit 851515216f0a6b2692a3228c59d78a756a72e665 Author: Karel Zak Date: Thu Nov 28 12:56:12 2013 +0100 libfdisk: remove fdisk_get_partition_type() Let's use more generic: fdisk_get_partition() fdisk_partition_get_parttype() rather than fdisk_get_partition_type(). The patch also improves fdisk_get_partition() semantic to allocate a new partition struct if the argument is NULL. Signed-off-by: Karel Zak fdisks/fdisk.c | 50 ++++++++++++++++++++++++++---------------------- libfdisk/src/label.c | 43 +++++++++++++---------------------------- libfdisk/src/libfdisk.h | 3 +-- libfdisk/src/partition.c | 1 + 4 files changed, 42 insertions(+), 55 deletions(-) commit 27d4d07292fff6f89f12ab8d186d703372b83a40 Author: Karel Zak Date: Thu Nov 28 12:17:45 2013 +0100 libfdisk: (sun) remove get_partition_type() Signed-off-by: Karel Zak libfdisk/src/sun.c | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-) commit 5d660fa488793abed5dd3cc908dc12eec641088b Author: Karel Zak Date: Thu Nov 28 12:13:31 2013 +0100 libfdisk: (sgi) remove get_partition_type() Signed-off-by: Karel Zak libfdisk/src/sgi.c | 75 +++++++++++++++++++++++++++--------------------------- 1 file changed, 37 insertions(+), 38 deletions(-) commit 7f01ec7aad068f209c3fb6a92cf3a249ff1320bc Author: Karel Zak Date: Thu Nov 28 12:06:50 2013 +0100 libfdisk: (dos) remove get_partition_type() Signed-off-by: Karel Zak libfdisk/src/dos.c | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) commit a699b27de4ccbd096e167555d0209105b571f09a Author: Karel Zak Date: Thu Nov 28 12:01:59 2013 +0100 libfdisk: (bsd) remove get_partition_type() Signed-off-by: Karel Zak libfdisk/src/bsd.c | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) commit 7f539277e842029ad56fb2424e234e0051a46606 Author: Karel Zak Date: Thu Nov 28 11:52:52 2013 +0100 libfdisk: (gpt) remove get_partition_type() Signed-off-by: Karel Zak libfdisk/src/gpt.c | 49 +++++++++++++++++-------------------------------- 1 file changed, 17 insertions(+), 32 deletions(-) commit 0a2aedf0e27cb5ba07bb4bd6f3d5ccb0dcaf8210 Author: Karel Zak Date: Thu Nov 28 11:00:18 2013 +0100 libfdisk: (sun) use new list() and get_part() API Signed-off-by: Karel Zak libfdisk/src/sgi.c | 1 - libfdisk/src/sun.c | 115 +++++++++++++++++++++++++---------------------------- 2 files changed, 55 insertions(+), 61 deletions(-) commit d787618b976bbebbcaddb2bf0e64704d9c1b0951 Author: Karel Zak Date: Wed Nov 27 16:49:13 2013 +0100 libfdisk: (sgi) use new list() and get_part() API Signed-off-by: Karel Zak libfdisk/src/sgi.c | 103 ++++++++++++++++++++++------------------------------- 1 file changed, 43 insertions(+), 60 deletions(-) commit 262002ee6f553f17bc8dd9fff749fcf1d4c6db6e Author: Karel Zak Date: Wed Nov 27 14:34:05 2013 +0100 libfdisk: (dos) use new list() and get_part() API Signed-off-by: Karel Zak libfdisk/src/dos.c | 179 +++++++++++++++++++---------------------------------- 1 file changed, 65 insertions(+), 114 deletions(-) commit d6faa8e00d76bf54ee4c267354f940e7d11a1a99 Author: Karel Zak Date: Wed Nov 27 14:33:01 2013 +0100 libfdisk: add new list() columns, cleanup Signed-off-by: Karel Zak libfdisk/src/bsd.c | 2 -- libfdisk/src/fdiskP.h | 13 +++++++++++-- libfdisk/src/gpt.c | 12 +++++++----- libfdisk/src/label.c | 24 +++++++++++++++++------- libfdisk/src/libfdisk.h | 19 ++++++++++++++----- libfdisk/src/partition.c | 18 ++++++++++++++++++ 6 files changed, 67 insertions(+), 21 deletions(-) commit d48419f3a9d196841923f431b41c9aa96458512e Author: Karel Zak Date: Tue Nov 26 15:32:31 2013 +0100 libfdisk: (bsd) use new get_part() API Signed-off-by: Karel Zak libfdisk/src/bsd.c | 145 ++++++++++++++++++++++------------------------------- 1 file changed, 60 insertions(+), 85 deletions(-) commit 82ebc7dea76ab631125c558bf7442ca9b055eeb1 Author: Karel Zak Date: Tue Nov 26 15:28:03 2013 +0100 libfdisk: improve conversion to string Signed-off-by: Karel Zak libfdisk/src/fdiskP.h | 11 +++++++++++ libfdisk/src/label.c | 7 +++++-- libfdisk/src/libfdisk.h | 5 ++++- libfdisk/src/partition.c | 34 +++++++++++++++++++++++++++------- 4 files changed, 47 insertions(+), 10 deletions(-) commit 8c0a7f9136ea54d955daee4151004c4476d86f73 Author: Karel Zak Date: Tue Nov 26 13:29:23 2013 +0100 libfdisk: add struct fdisk_partition Signed-off-by: Karel Zak libfdisk/src/Makemodule.am | 1 + libfdisk/src/ask.c | 9 +- libfdisk/src/bsd.c | 20 ++-- libfdisk/src/dos.c | 18 ++-- libfdisk/src/fdiskP.h | 33 ++++-- libfdisk/src/gpt.c | 118 +++++++--------------- libfdisk/src/label.c | 110 +++++++++----------- libfdisk/src/libfdisk.h | 36 +++++-- libfdisk/src/partition.c | 245 +++++++++++++++++++++++++++++++++++++++++++++ libfdisk/src/sgi.c | 19 ++-- libfdisk/src/sun.c | 18 ++-- 11 files changed, 410 insertions(+), 217 deletions(-) commit 735822963753884202a3a020121c9289752b8306 Author: Karel Zak Date: Fri Nov 22 14:06:44 2013 +0100 lib/tt: add reduce term width functionality Signed-off-by: Karel Zak include/tt.h | 2 ++ lib/tt.c | 13 +++++++++++++ 2 files changed, 15 insertions(+) commit b839bd4fa19b86989e74c4493ca51eb1721caea4 Author: Karel Zak Date: Fri Nov 22 13:53:29 2013 +0100 lib/tt: add TT_FL_MAX to fill screen Signed-off-by: Karel Zak include/tt.h | 15 +++++++++------ lib/tt.c | 34 ++++++++++++++++++++++++++++++++-- 2 files changed, 41 insertions(+), 8 deletions(-) commit 575a1de03a38bdcc9c9697041633732ea34f1021 Author: Karel Zak Date: Fri Nov 22 13:31:15 2013 +0100 lib/tt: add tb_get_nlines() Signed-off-by: Karel Zak include/tt.h | 2 ++ lib/tt.c | 13 +++++++++++++ 2 files changed, 15 insertions(+) commit 0cd73f41e863006a0efc80fcf755d17e1158cd12 Author: Karel Zak Date: Fri Nov 22 11:34:12 2013 +0100 lib/tt: don't hardcode stdout as output Signed-off-by: Karel Zak include/tt.h | 2 ++ lib/tt.c | 34 +++++++++++++++++++++------------- 2 files changed, 23 insertions(+), 13 deletions(-) commit 6941952e8d33bba66ee37deb3539448f71899414 Author: Karel Zak Date: Fri Nov 22 10:21:54 2013 +0100 libfdisk: (gpt) use fdisk_column Signed-off-by: Karel Zak libfdisk/src/gpt.c | 204 ++++++++++++++++++++++++++++------------------------- 1 file changed, 106 insertions(+), 98 deletions(-) commit 8152753d586902638f272a6b0638f5077b6038a5 Author: Karel Zak Date: Fri Nov 22 10:20:15 2013 +0100 libfdisk: implement generic functions for FDISK_COL_ stuff Signed-off-by: Karel Zak libfdisk/src/label.c | 164 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 163 insertions(+), 1 deletion(-) commit 21a44c9b847acb13f86d7d86797ee1a1e4f5ded7 Author: Karel Zak Date: Fri Nov 22 10:08:37 2013 +0100 libfdisk: extend API definition to list info about partitions This change adds a struct fdisk_column to provide generic description for information about partitions. The struct is used for tt tables as well as lists of possible columns for specified label driver. We use the same concept in all applications linked with tt.c (lsblk, findmnt, partx, ...) where is possible to dynamically change columns, order of the columns etc. Now it will be possible to do the same with fdisk. And it's also possible to use FDISK_COL_* Ids to address data, for example: fdisk_partition_get_data(cxt, FDISK_COL_SIZE, 1, &data); returns a string with human readable size ({MGT}) of the second partition. Signed-off-by: Karel Zak libfdisk/src/fdiskP.h | 22 ++++++++++++++++++++++ libfdisk/src/libfdisk.h | 16 ++++++++++++++++ 2 files changed, 38 insertions(+) commit 11fd5edb9d59f25f549b98101a4ff69442ae0e4f Author: Karel Zak Date: Fri Nov 22 10:07:36 2013 +0100 include/tt: add tt_is_empty() Signed-off-by: Karel Zak include/tt.h | 5 +++++ 1 file changed, 5 insertions(+) commit 873e7a59d7be7db56573eef271d23867e3dfa47b Author: Karel Zak Date: Tue Mar 11 11:22:07 2014 +0100 ipcs: fix size_t overflow Addresses: https://github.com/karelzak/util-linux/issues/51 Signed-off-by: Karel Zak sys-utils/ipcs.c | 2 +- sys-utils/ipcutils.c | 8 ++++---- sys-utils/ipcutils.h | 3 ++- 3 files changed, 7 insertions(+), 6 deletions(-) commit 329b0ee753f29fab348a189749e1d2f268e90286 Author: Karel Zak Date: Tue Mar 11 10:38:15 2014 +0100 lib/colors: support .enable too Signed-off-by: Karel Zak lib/colors.c | 28 ++++++++++++++++------------ lib/terminal-colors.d.5 | 28 ++++++++++++++++++++++------ 2 files changed, 38 insertions(+), 18 deletions(-) commit 60ec67ff4e82cf22d37fb6850256839d53cfedce Author: Karel Zak Date: Tue Mar 11 10:05:32 2014 +0100 lib/colors: add info to man pages, add terminal-colors.d.5 Co-Author: Ondrej Oprala Signed-off-by: Karel Zak lib/Makemodule.am | 2 ++ lib/terminal-colors.d.5 | 25 +++++++++++++++++++++++++ misc-utils/cal.1 | 11 +++++++++++ sys-utils/dmesg.1 | 11 +++++++++++ text-utils/hexdump.1 | 11 +++++++++++ 5 files changed, 60 insertions(+) commit d0c9ddc3cc18f0f374a0d13516dacbda2e3a1a0c Author: Ondrej Oprala Date: Thu Jan 23 13:03:45 2014 +0100 lib/colors: check for /etc/terminal-colors.d/[util].disable [kzak@redhat.com: - move paths to pathnames.h, - use static path buffer] Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak fdisks/fdisk.c | 4 ++-- include/colors.h | 5 +++-- include/pathnames.h | 3 +++ lib/colors.c | 29 +++++++++++++++++++++++++---- misc-utils/cal.c | 4 ++-- sys-utils/dmesg.c | 4 ++-- text-utils/hexdump.c | 4 ++-- 7 files changed, 39 insertions(+), 14 deletions(-) commit 2f791546395cb43f3f93de6c095c812c7cd5237f Author: Sami Kerola Date: Sun Feb 16 15:22:56 2014 +0000 tests: check commands needed for running a test exist Signed-off-by: Sami Kerola Signed-off-by: Karel Zak tests/functions.sh | 9 +++++++-- tests/ts/bitops/swapbytes | 2 ++ tests/ts/blkid/low-probe | 4 +--- tests/ts/blkid/lowprobe-pt | 4 +--- tests/ts/blkid/md-raid0-whole | 4 ++++ tests/ts/blkid/md-raid1-part | 4 ++++ tests/ts/blkid/md-raid1-whole | 4 ++++ tests/ts/cal/1m | 2 ++ tests/ts/cal/1mw | 2 ++ tests/ts/cal/3m | 2 ++ tests/ts/cal/3mw | 2 ++ tests/ts/cal/bigyear | 2 ++ tests/ts/cal/bigyearw | 2 ++ tests/ts/cal/color | 2 ++ tests/ts/cal/colorw | 2 ++ tests/ts/cal/sep1752 | 2 ++ tests/ts/cal/sep1752w | 2 ++ tests/ts/cal/weekarg | 2 ++ tests/ts/cal/weeknum | 4 +++- tests/ts/cal/year | 2 ++ tests/ts/cal/yearw | 2 ++ tests/ts/col/multibyte | 2 ++ tests/ts/colrm/rm2-2 | 2 ++ tests/ts/column/fillrow | 2 ++ tests/ts/column/multi-file | 4 +++- tests/ts/column/separator_table | 2 ++ tests/ts/cramfs/doubles | 5 +++++ tests/ts/cramfs/fsck-endianness | 4 ++++ tests/ts/cramfs/mkfs | 6 ++++++ tests/ts/cramfs/mkfs-endianness | 3 +++ tests/ts/dmesg/console-levels | 2 ++ tests/ts/dmesg/decode | 2 ++ tests/ts/dmesg/delta | 2 ++ tests/ts/dmesg/facilities | 2 ++ tests/ts/eject/umount | 8 ++++++-- tests/ts/fdisk/align-512-4K | 3 +++ tests/ts/fdisk/align-512-4K-63 | 3 +++ tests/ts/fdisk/align-512-4K-md | 3 +++ tests/ts/fdisk/align-512-512 | 3 +++ tests/ts/fdisk/align-512-512-topology | 3 +++ tests/ts/fdisk/bsd | 4 +++- tests/ts/fdisk/gpt | 4 +++- tests/ts/fdisk/id | 2 ++ tests/ts/fdisk/mbr-dos-mode | 2 ++ tests/ts/fdisk/mbr-nondos-mode | 6 ++++-- tests/ts/fdisk/oddinput | 2 ++ tests/ts/fdisk/sunlabel | 2 ++ tests/ts/fsck/ismounted | 4 ++++ tests/ts/hexdump/format-strings | 2 +- tests/ts/hwclock/systohc | 3 +++ tests/ts/ipcs/headers | 2 ++ tests/ts/ipcs/limits | 3 +++ tests/ts/ipcs/limits2 | 3 +++ tests/ts/ipcs/mk-rm-msg | 4 ++++ tests/ts/ipcs/mk-rm-sem | 4 ++++ tests/ts/ipcs/mk-rm-shm | 4 ++++ tests/ts/isosize/print-size | 2 ++ tests/ts/last/ipv6 | 2 +- tests/ts/last/last | 2 +- tests/ts/libmount/context | 7 ++++++- tests/ts/libmount/context-py | 6 ++++++ tests/ts/libmount/context-utab | 4 ++++ tests/ts/libmount/context-utab-py | 5 +++++ tests/ts/login/islocal | 2 ++ tests/ts/login/logindefs | 2 ++ tests/ts/look/separator | 2 ++ tests/ts/losetup/losetup | 3 +++ tests/ts/lscpu/lscpu | 4 +++- tests/ts/minix/fsck | 5 +++-- tests/ts/minix/mkfs | 5 +++-- tests/ts/misc/fallocate | 2 ++ tests/ts/misc/getopt | 2 ++ tests/ts/misc/ionice | 2 ++ tests/ts/misc/line | 4 +--- tests/ts/misc/mcookie | 2 ++ tests/ts/misc/rev | 2 ++ tests/ts/misc/setarch | 2 ++ tests/ts/misc/setsid | 2 ++ tests/ts/misc/ul | 2 ++ tests/ts/misc/whereis | 2 ++ tests/ts/more/regexp | 2 ++ tests/ts/more/squeeze | 2 ++ tests/ts/mount/devname | 4 ++++ tests/ts/mount/fstab-broken | 5 +++++ tests/ts/mount/fstab-devname | 4 ++++ tests/ts/mount/fstab-devname2label | 4 ++++ tests/ts/mount/fstab-devname2uuid | 4 ++++ tests/ts/mount/fstab-label | 4 ++++ tests/ts/mount/fstab-label2devname | 4 ++++ tests/ts/mount/fstab-label2uuid | 4 ++++ tests/ts/mount/fstab-none | 5 +++++ tests/ts/mount/fstab-symlink | 4 ++++ tests/ts/mount/fstab-uuid | 4 ++++ tests/ts/mount/fstab-uuid2devname | 4 ++++ tests/ts/mount/fstab-uuid2label | 4 ++++ tests/ts/mount/label | 4 ++++ tests/ts/mount/move | 5 +++++ tests/ts/mount/noncanonical | 3 +++ tests/ts/mount/paths | 3 +++ tests/ts/mount/regfile | 4 ++++ tests/ts/mount/remount | 4 ++++ tests/ts/mount/rlimit | 4 ++++ tests/ts/mount/shared-subtree | 5 +++++ tests/ts/mount/special | 3 +++ tests/ts/mount/umount-alltargets | 5 +++++ tests/ts/mount/umount-recursive | 5 +++++ tests/ts/mount/uuid | 4 ++++ tests/ts/namei/logic | 2 ++ tests/ts/partx/partx | 7 +++++-- tests/ts/schedutils/cpuset | 2 ++ tests/ts/script/race | 2 ++ tests/ts/swapon/devname | 5 +++++ tests/ts/swapon/fixpgsz | 5 +++++ tests/ts/swapon/fixsig | 5 +++++ tests/ts/swapon/label | 5 +++++ tests/ts/swapon/uuid | 5 +++++ tests/ts/tailf/simple | 2 ++ tests/ts/utmpdump/ipv6tobin | 2 ++ tests/ts/utmpdump/ipv6totxt | 2 ++ tests/ts/utmpdump/to-binary | 2 ++ tests/ts/utmpdump/to-text | 2 ++ tests/ts/wipefs/wipefs | 2 ++ 122 files changed, 373 insertions(+), 30 deletions(-) commit 22c3c4f936f74d19e72657620b4f99a36bac555f Author: Sami Kerola Date: Sun Feb 16 15:22:55 2014 +0000 tools: make config-gen to require build target argument When argument is not supplied help user by telling what arguments can be used. Signed-off-by: Sami Kerola tools/config-gen | 9 +++++++++ 1 file changed, 9 insertions(+) commit 5a2fd9329ed090795ded44e9d90b0c393b3d01c7 Author: Karel Zak Date: Fri Mar 7 11:14:46 2014 +0100 lsblk: add PARTFLAGS column Signed-off-by: Karel Zak misc-utils/lsblk.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) commit df019e9be7587e3b966a5b1a8490a4a17e9191f4 Author: Karel Zak Date: Thu Mar 6 13:09:16 2014 +0100 libmount: add statfs_magic.h Signed-off-by: Karel Zak include/Makemodule.am | 3 +- include/statfs_magic.h | 88 +++++++++++++++++++++++++++++ libmount/src/utils.c | 148 ++++++++++++++++++++++++------------------------- 3 files changed, 164 insertions(+), 75 deletions(-) commit 65acdc8734535b7ad59363bfd4d54542c8451f23 Author: Karel Zak Date: Wed Mar 5 13:19:19 2014 +0100 build-sys: remove deprecated-mount/ Signed-off-by: Karel Zak Makefile.am | 1 - configure.ac | 11 - mount-deprecated/Makemodule.am | 70 - mount-deprecated/devname.c | 14 - mount-deprecated/devname.h | 6 - mount-deprecated/fsprobe.c | 141 -- mount-deprecated/fsprobe.h | 27 - mount-deprecated/fstab.c | 988 ---------- mount-deprecated/fstab.h | 39 - mount-deprecated/getusername.c | 14 - mount-deprecated/getusername.h | 1 - mount-deprecated/mount.8 | 2849 ----------------------------- mount-deprecated/mount.c | 2625 -------------------------- mount-deprecated/mount_constants.h | 73 - mount-deprecated/mount_mntent.c | 165 -- mount-deprecated/mount_mntent.h | 28 - mount-deprecated/sundries.c | 286 --- mount-deprecated/sundries.h | 54 - mount-deprecated/umount.8 | 179 -- mount-deprecated/umount.c | 867 --------- tests/expected/build-sys/config-old-mount | 100 - tests/ts/mount/shared-subtree | 32 +- tools/config-gen.d/old-mount.conf | 3 - 23 files changed, 13 insertions(+), 8560 deletions(-) commit 4a44a54b3caf77923f0e3f1d5bdf5eda6ef07f62 Author: Chris MacGregor Date: Thu Feb 27 10:40:59 2014 -0800 hwclock: fix possible hang and other set_hardware_clock_exact() issues In sys-utils/hwclock.c, set_hardware_clock_exact() has some problems when the process gets pre-empted (for more than 100ms) before reaching the time for which it waits: 1. The "continue" statement causes execution to skip the final tdiff assignment at the end of the do...while loop, leading to the while condition using the wrong value of tdiff, and thus always exiting the loop once newhwtime != sethwtime (e.g., after 1 second). This masks bug # 2, below. 2. The previously-existing bug is that because it starts over waiting for the desired time whenever two successive calls to gettimeofday() return values > 100ms apart, the loop will never terminate unless the process holds the CPU (without losing it for more than 100ms) for at least 500ms. This can happen on a heavily loaded machine or on a virtual machine (or on a heavily loaded virtual machine). This has been observed to occur, preventing a machine from completing the shutdown or reboot process due to a "hwclock --systohc" call in a shutdown script. The new implementation presented in this patch takes a somewhat different approach, intended to accomplish the same goals: It computes the desired target system time (at which the requested hardware clock time will be applied to the hardware clock), and waits for that time to arrive. If it misses the time (such as due to being pre-empted for too long), it recalculates the target time, and increases the tolerance (how late it can be relative to the target time, and still be "close enough". Thus, if all is well, the time will be set *very* precisely. On a machine where the hwclock process is repeatedly pre-empted, it will set the time as precisely as is possible under the conditions present on that particular machine. In any case, it will always terminate eventually (and pretty quickly); it will never hang forever. [kzak@redhat.com: - tiny coding style changes] Signed-off-by: Chris MacGregor Signed-off-by: Karel Zak sys-utils/hwclock.c | 170 ++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 131 insertions(+), 39 deletions(-) commit 260412b19f8ca4994bf0a02d4fae1dfbe50d8e2a Author: Bernhard Voelker Date: Wed Mar 5 11:55:34 2014 +0100 libmount: define BTRFS_TEST_MAGIC if missing * libmount/src/utils.c (BTRFS_TEST_MAGIC): Conditionally add define which is used since commit v2.24-243-g6a52473. Signed-off-by: Bernhard Voelker libmount/src/utils.c | 3 +++ 1 file changed, 3 insertions(+) commit 9a7d05fedbda336270c589dfb61aba3bbb86e853 Author: Karel Zak Date: Wed Mar 5 11:23:16 2014 +0100 chcpu: cleanup stdout/stderr usage Signed-off-by: Karel Zak sys-utils/chcpu.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) commit 48fc00c1c70f3dbbd8ad6ef423bbba27dd3efb69 Author: Karel Zak Date: Wed Mar 5 11:06:59 2014 +0100 chcpu: cleanup return codes The code currently always return EXIT_SUCCESS, that's strange. It seems better to return 0 on success, 1 on complete failure and 64 on partial success. Signed-off-by: Karel Zak sys-utils/chcpu.8 | 14 ++++++++++ sys-utils/chcpu.c | 82 ++++++++++++++++++++++++++++++++++++++++--------------- 2 files changed, 74 insertions(+), 22 deletions(-) commit dbf7043ea1d090d283cfd36280bb14189d8e35b1 Author: Karel Zak Date: Wed Mar 5 10:20:10 2014 +0100 build-sys: don't connect _DEPENDENCIES and _LIBADD The _DEPENDENCIES has to be used for dependencies on another in-tree files, but _LIBADD is to specify additional libs (including external libs). Reported-by: oleid Signed-off-by: Karel Zak libblkid/src/Makemodule.am | 11 +++++------ libfdisk/src/Makemodule.am | 6 +++--- libmount/src/Makemodule.am | 3 ++- 3 files changed, 10 insertions(+), 10 deletions(-) commit 013efbfad4648095e09ef1944c89277acf839671 Merge: 01cc21f dac87e4 Author: Karel Zak Date: Wed Mar 5 09:25:43 2014 +0100 Merge branch 'master' of https://github.com/rudimeier/util-linux * 'master' of https://github.com/rudimeier/util-linux: travis-ci: import travis yaml controller commit 01cc21f5b6f17edd56b6e928fbb2144884a8eea5 Author: Benno Schulenberg Date: Fri Feb 21 18:22:33 2014 +0100 docs: fix two command representations in the man page of more The previous-file command is not :P but :p, and the back-to-where command is not an acute accent but an apostrophe. Also condense some of the descriptions and remove some useless comments. Signed-off-by: Benno Schulenberg text-utils/more.1 | 38 ++++++++++++++------------------------ 1 file changed, 14 insertions(+), 24 deletions(-) commit 4b670c01dff7e5106d924a1267c23961b6926b6f Author: Sami Kerola Date: Fri Feb 21 19:25:30 2014 +0000 logger: allow user to send structured journald messages This feature is hopefully mostly used to give MESSAGE_ID labels for messages coming from scripts, making search of messages easy. The logger(1) manual page update should give enough information how to use --journald option. [kzak@redhat.com: - add missing #ifdefs - use xalloc.h] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak bash-completion/logger | 4 +-- configure.ac | 16 +++++++++++ misc-utils/Makemodule.am | 4 +++ misc-utils/logger.1 | 29 +++++++++++++++++++- misc-utils/logger.c | 71 ++++++++++++++++++++++++++++++++++++++++++++++-- 5 files changed, 119 insertions(+), 5 deletions(-) commit 3bf7ede9971bfafc53b1cba8154fc33dfc9f24b9 Author: Ondrej Oprala Date: Fri Feb 21 15:34:45 2014 +0100 hexdump: color unit may now be longer than the corresponding format unit Signed-off-by: Ondrej Oprala tests/expected/hexdump/highlighting-1b_octal-6 | 42 +++++++++++++++++++++++++- tests/expected/hexdump/highlighting-2b_dec-3 | 42 +++++++++++++++++++++++++- tests/ts/hexdump/highlighting | 10 ++++-- text-utils/hexdump-parse.c | 16 +++++++++- text-utils/hexdump.1 | 3 +- 5 files changed, 106 insertions(+), 7 deletions(-) commit 6f7234f68aca50ebbdc89fae0b107215edafb04a Author: Stewart Smith Date: Tue Mar 4 15:39:41 2014 +1100 lscpu: read_hypervisor_dmi: only fallback to memory scan on x86/x86_64 As the comment in the code says, this method is really only valid on x86 and x86_64, so add a #ifdef for those architectures around that code block. This was causing "Program lscpu tried to access /dev/mem between f0000->100000." warnings on some ppc64 machines. Signed-off-by: Stewart Smith sys-utils/lscpu-dmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit c0cf4ae9b05a88dfbace18dd05d23fb0b2d19dab Author: Stewart Smith Date: Tue Mar 4 15:27:27 2014 +1100 lscpu: don't assume filesystem supports d_type when searching for NUMA nodes Not all file systems support the d_type field and simply checking for d_type == DT_DIR in is_node_dirent would cause the test suite to fail if run on (for example) XFS. The simple fix is to check for DT_DIR or DT_UNKNOWN in is_node_dirent. Signed-off-by: Stewart Smith sys-utils/lscpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7ad19a3feb8fc9009b69b379c5c98220d2e34e76 Author: Karel Zak Date: Tue Mar 4 11:45:44 2014 +0100 switch_root: make dirent d_type usage more robust Signed-off-by: Karel Zak sys-utils/switch_root.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) commit ea7f012b7c4f74de3e352baeba4fde2b8f11d9b7 Author: Karel Zak Date: Tue Mar 4 11:30:03 2014 +0100 lib/sysfs: make dirent d_type usage more robust Signed-off-by: Karel Zak lib/sysfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit a7c60528f91e62d24ea5c69042f31c5975a599c1 Author: Karel Zak Date: Tue Mar 4 11:27:46 2014 +0100 partx: make dirent d_type usage more robust Signed-off-by: Karel Zak disk-utils/partx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 870c616d604a8a8665240dccd6691fcd5038fb43 Author: Karel Zak Date: Mon Mar 3 12:10:08 2014 +0100 libmount: cgroup magic already defined Signed-off-by: Karel Zak libmount/src/utils.c | 3 --- 1 file changed, 3 deletions(-) commit 6a52473ecd877227f6f7da2b95da0b51593ffec1 Author: Karel Zak Date: Mon Mar 3 10:36:15 2014 +0100 umount: don't use mountinfo if possible The umount(8) always parses /proc/self/mountinfo to get fstype and to merge kernel mount options with userspace mount options from /run/mount/utab. This behavior is overkill in many cases and it's pretty expensive as kernel has to always compose *whole* mountinfo. This performance disadvantage is visible for crazy use-cases with huge number of mountpoints and frequently called umount(8). It seems that we can bypass /proc/self/mountinfo by statfs() to get filesystem type (statfs.f_type magic) and analyze /run/mount/utab before we parse mountinfo. This optimization is not used when: * umount(8) executed by non-root (as user= in utab is expected) * umount --lazy / --force (target is probably unreachable NFS, then use statfs() is pretty bad idea) * target is not a directory (e.g. umount /dev/sda1) * there is (deprecated) writeable mtab Reported-by: Al Viro Signed-off-by: Karel Zak libmount/src/context.c | 15 ++++-- libmount/src/context_umount.c | 85 +++++++++++++++++++++++++++++++++- libmount/src/mountP.h | 8 ++++ libmount/src/tab_parse.c | 62 ++++++++++++++----------- libmount/src/utils.c | 103 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 242 insertions(+), 31 deletions(-) commit 53e227cc8d46c4b6fc705ac6608460a8a8156436 Author: Karel Zak Date: Thu Feb 27 13:34:36 2014 +0100 docs: refresh TODO Signed-off-by: Karel Zak Documentation/TODO | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) commit dac87e44a289cec5139d32366f7a2f68c5278a98 Author: Ruediger Meier Date: Wed Feb 26 17:08:41 2014 +0100 travis-ci: import travis yaml controller .travis.yml is used for automatic builds on travis build farm (https://travis-ci.org/) if the travis service hook is enabled for the repo on github. This inital yaml controller will run 2 different compilers (gcc, clang). The test suite currently fails, that's why we don't abort yet. .travis.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) commit 5fdd35070ceb79589d52fa247d1b359bd2bdc471 Author: Sami Kerola Date: Fri Feb 21 10:17:11 2014 +0000 more: fix double free crash Commit b9579f1f44b46c9f12f1e01b01c02d82ae1cf728 moved fclose() to checkf(), but missed removing file closure in magic(). Ironically the cause of regression is in previous commit message. Signed-off-by: Sami Kerola text-utils/more.c | 1 - 1 file changed, 1 deletion(-) commit 4368e3e68736b518388e8cd24754dbc0f7e6685b Author: Karel Zak Date: Fri Feb 21 13:39:14 2014 +0100 script: clean up files usage * don't initialize timingfd (to stderr) when -t not specified * care about timingfd dooutput() rather in main() * make timingdf gloval like fscript FILE * close all in done() * close irrelevant things in subshell and input processes Reported-by: Sami Kerola Signed-off-by: Karel Zak term-utils/script.c | 68 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 40 insertions(+), 28 deletions(-) commit 5d0ce5e84fcf545caef142b0e4e25d001e1e8373 Author: Jesper Dahl Nyerup Date: Tue Feb 18 20:48:45 2014 +0100 script: Also flush writes to timing file. If both -f and -t are given, flush the timing fd on each write, similar to the behavior on the script fd. This allows playback of still-running sessions, and reduces the risk of ending up with empty timing files when script(1) exits abnormally. Signed-off-by: Jesper Dahl Nyerup term-utils/script.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 2b6759df0c24a16ad5ddb855f0b453dd086a3747 Author: Karel Zak Date: Fri Feb 21 12:27:58 2014 +0100 findmnt: add --bytes to print sizes in bytes Signed-off-by: Karel Zak misc-utils/findmnt.8 | 3 +++ misc-utils/findmnt.c | 20 ++++++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) commit 4459245fa320b37bf433b7ddd3b206249ee54381 Author: Karel Zak Date: Fri Feb 21 12:04:18 2014 +0100 mkfs: mark this wrapper as DEPRECATED Theodore Ts'o: I'll add that I've never been convinced that the mkfs front end is all that useful. It's probably better for people to explicitly run /sbin/mkfs.xfs, /sbin/mkfs.ext4, etc.., so you don't have to worry about which options get passed down to the file system specific mkfs program, and which ones are interpreted by /sbin/mkfs --- and I don't believe /sbin/mkfs adds enough (err, any?) value that using "/sbin/mkfs -t xxx" vs "/sbin/mkfs.xxx" makes any sense whatsoever. ... and I absolutely agree. Reported-by: Theodore Ts'o Signed-off-by: Karel Zak Documentation/deprecated.txt | 3 +++ disk-utils/mkfs.8 | 2 ++ 2 files changed, 5 insertions(+) commit 4c5a6f3d3927c83a782e4e567fee0b6d66813dc4 Author: Benno Schulenberg Date: Sun Feb 9 11:26:49 2014 +0100 more: improve formatting and wording of man page and help text Also, slice up the usage text for ease of translation. Reported-by: Phillip Susi Signed-off-by: Benno Schulenberg text-utils/more.1 | 38 ++++++++++++++++++++------------------ text-utils/more.c | 31 +++++++++++++++---------------- 2 files changed, 35 insertions(+), 34 deletions(-) commit 6c373810f5b1d32824371e9dff6ee5a006388f98 Author: Karel Zak Date: Thu Feb 20 16:59:11 2014 +0100 libmount: FS id and parent ID could be zero It seems that linux 3.14 is able to produce things like: 19 0 8:3 / / rw,relatime - ext4 /dev/sda3 rw,data=ordered ^ Reported-by: Mantas Mikulėnas Signed-off-by: Karel Zak libmount/src/tab.c | 12 ++++-------- misc-utils/findmnt.c | 5 +++-- 2 files changed, 7 insertions(+), 10 deletions(-) commit 4b01c5a1421df51d340df995a6ec5e132c074d1a Author: Karel Zak Date: Wed Feb 19 14:26:52 2014 +0100 fallocate: fix missing sentinel for is_nul() Signed-off-by: Karel Zak sys-utils/fallocate.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) commit 53e6896ab884947311496d974c5a900aae3631a3 Author: Karel Zak Date: Wed Feb 19 13:27:56 2014 +0100 libblkid: add extra checks to XFS prober The current code rely on XFS magic string only. It seems too fragile. Signed-off-by: Karel Zak libblkid/src/superblocks/xfs.c | 158 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 142 insertions(+), 16 deletions(-) commit c4172cc3bb1702b7d4fc929877990753f3252a99 Author: Karel Zak Date: Wed Feb 19 10:48:16 2014 +0100 fallocate: code optimalizations Based on Pádraig Brady review: * use is_nul() from coreutils rather then memcmp() * always call skip_hole() (SEEK_DATA) * fix possible overflows Signed-off-by: Karel Zak sys-utils/fallocate.c | 47 +++++++++++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 18 deletions(-) commit c12eff4ce05b2236d9479ffd14c5ae4006caeaf6 Author: Karel Zak Date: Tue Feb 18 13:01:52 2014 +0100 fallocate: use POSIX_FADV_DONTNEED to discard cached data The patch discard cached data in 1MiB (or bigger) steps. Thanks to Pádraig Brady. Signed-off-by: Karel Zak sys-utils/fallocate.c | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) commit db5f00bc880200e5fc83257db7ea6b06853708c5 Author: Karel Zak Date: Tue Feb 18 11:11:56 2014 +0100 fallocate: use SEEK_DATA on already sparse files It's more efficient to skip already known holes by SEEK_DATA (seek to the next area with data). Thanks to Pádraig Brady. Signed-off-by: Karel Zak sys-utils/fallocate.c | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) commit 9b1b6ed187d769a1ced4bb9c0693f8e5374e5eba Author: Karel Zak Date: Mon Feb 17 15:34:08 2014 +0100 fallocate: fix man page synopsis Signed-off-by: Karel Zak sys-utils/fallocate.1 | 2 ++ 1 file changed, 2 insertions(+) commit 6855da75f399bf33b52704fae2ced0d721aef631 Author: Karel Zak Date: Mon Feb 17 15:07:41 2014 +0100 build-sys: enable parallel tests for make check Signed-off-by: Karel Zak tests/Makemodule.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 40e6f7a06355cba0305e987ca6536b212e0718cf Author: Sami Kerola Date: Sun Feb 16 23:54:15 2014 +0000 tests: make tests to run parallel Unarguably this change makes test output to be more messy, but when I compare run time tells with clear numbers parallel is quicker. For me the quickness is important factor. Running test suite always after a change is preferrably quick, and if something is indicated to be broken it is ok to spend time in drilling down what happen. $ time ./tests/run.sh --parallel=5 [...] real 1m48.037s Same without parallelization. $ time ./tests/run.sh real 3m16.687s The default is changed to be parallel, where job count is same as number of CPUs. [kzak@redhat.com: - propagate --parallel into function.sh - don't use extra title for non-parallel execution - disable by default] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak tests/functions.sh | 34 +++++++++++++++++++++++++++------- tests/run.sh | 41 ++++++++++++++++++++++++++++------------- 2 files changed, 55 insertions(+), 20 deletions(-) commit 67ef06d71d503a5f0cd1fe8d4dccc31adc5d2831 Author: Karel Zak Date: Mon Feb 17 14:34:31 2014 +0100 tests: fdisk now prints SGI system partitions too Signed-off-by: Karel Zak tests/expected/blkid/lowprobe-pt-sgi | 2 ++ 1 file changed, 2 insertions(+) commit 65bb09be76083c9c0f5fb91ea5ff498c95b1baa2 Author: Karel Zak Date: Mon Feb 17 14:32:22 2014 +0100 tests: update libmount tabdiff tests Signed-off-by: Karel Zak tests/expected/libmount/tabdiff-mount | 1 + tests/expected/libmount/tabdiff-move | 1 + tests/expected/libmount/tabdiff-remount | 1 + tests/expected/libmount/tabdiff-umount | 1 + 4 files changed, 4 insertions(+) commit 093407a5850b7d2f0113917d4abc113388b0d76b Author: Karel Zak Date: Mon Feb 17 14:30:03 2014 +0100 tests: update ionice test Signed-off-by: Karel Zak tests/expected/misc/ionice | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit be091dee667ba01eef77159120a7f6b6267e89d1 Author: Sami Kerola Date: Sun Feb 16 23:54:22 2014 +0000 isosize: make --divisor to require argument Silly bug, only the short option -d allowed divisor argument. Signed-off-by: Sami Kerola disk-utils/isosize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e55db6a86241a1a65d849b08fb2be2fa1dcf11b8 Author: Sami Kerola Date: Sun Feb 16 23:54:21 2014 +0000 tests: add isosize --sectors and --divisor tests Signed-off-by: Sami Kerola tests/expected/isosize/print-size | 1 - tests/expected/isosize/print-size-default_output | 1 + tests/expected/isosize/print-size-divisor_output | 1 + tests/expected/isosize/print-size-sector_output | 1 + tests/ts/isosize/print-size | 13 ++++++++++++- 5 files changed, 15 insertions(+), 2 deletions(-) commit 799e58424559a944dd998bc49e206a9805395ee4 Author: Sami Kerola Date: Sun Feb 16 23:54:20 2014 +0000 isosize: move file name printing after error determination Earlier the filename printing was buffered, and exit at error made output to appear in front of prompt. Output below demonstrates the brokenness. prompt> isosize /etc / isosize: /etc: might not be an ISO filesystem isosize: read error on /etc: Is a directory /etc: prompt> Signed-off-by: Sami Kerola disk-utils/isosize.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) commit fce72f96d0911a7578e27430e11b857bb1b0aecf Author: Sami Kerola Date: Sun Feb 16 23:54:19 2014 +0000 swaplabel: wrong version number in check $ swaplabel /dev/sda2 swaplabel: /dev/sda2: unsupported swap version '1' The mkswap does not allow any other version, so swaplabel(8) must be wrong. Reference: https://github.com/karelzak/util-linux/blob/master/disk-utils/mkswap.c#L520 Signed-off-by: Sami Kerola disk-utils/swaplabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 272f2ea49f969c658fe7fe5d57e68eb4ee9eb306 Author: Sami Kerola Date: Sun Feb 16 23:54:18 2014 +0000 tests: align last.1 with recent phantom detection None existing account is not still-logged-in but gone mysteriously, assuming wtmp logout markup is missing. Signed-off-by: Sami Kerola tests/expected/last/last | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) commit 100af0035ec4ec26a8e521ea44c4a2b8bc99f681 Author: Sami Kerola Date: Sun Feb 16 23:54:17 2014 +0000 docs: make hexdump.1 color specification easier to understand Fix also spacing, input line lenghts, and troff table for data that is a table. Signed-off-by: Sami Kerola text-utils/hexdump.1 | 72 ++++++++++++++++++++++++++-------------------------- 1 file changed, 36 insertions(+), 36 deletions(-) commit 052a6cf285d315d68ea120387533340c8f28a6c8 Author: Sami Kerola Date: Sun Feb 16 23:54:16 2014 +0000 tools: add usage information to checkconfig.sh Signed-off-by: Sami Kerola tools/checkconfig.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) commit e130ce53ce87f39f4bee3288d106c681e82dbb86 Author: Sami Kerola Date: Sun Feb 16 23:54:14 2014 +0000 tests: avoid executing dirname(1) command Bash parameter expansion does the same thing. Signed-off-by: Sami Kerola tests/functions.sh | 2 +- tests/run.sh | 2 +- tests/ts/bitops/swapbytes | 2 +- tests/ts/blkid/low-probe | 2 +- tests/ts/blkid/lowprobe-pt | 2 +- tests/ts/blkid/md-raid0-whole | 2 +- tests/ts/blkid/md-raid1-part | 2 +- tests/ts/blkid/md-raid1-whole | 2 +- tests/ts/build-sys/config | 2 +- tests/ts/cal/1m | 2 +- tests/ts/cal/1mw | 2 +- tests/ts/cal/3m | 2 +- tests/ts/cal/3mw | 2 +- tests/ts/cal/bigyear | 2 +- tests/ts/cal/bigyearw | 2 +- tests/ts/cal/color | 2 +- tests/ts/cal/colorw | 2 +- tests/ts/cal/sep1752 | 2 +- tests/ts/cal/sep1752w | 2 +- tests/ts/cal/weekarg | 2 +- tests/ts/cal/weeknum | 2 +- tests/ts/cal/year | 2 +- tests/ts/cal/yearw | 2 +- tests/ts/col/multibyte | 2 +- tests/ts/colrm/rm2-2 | 2 +- tests/ts/column/fillrow | 2 +- tests/ts/column/multi-file | 2 +- tests/ts/column/separator_table | 2 +- tests/ts/cramfs/doubles | 2 +- tests/ts/cramfs/fsck-endianness | 2 +- tests/ts/cramfs/mkfs | 2 +- tests/ts/cramfs/mkfs-endianness | 2 +- tests/ts/dmesg/console-levels | 2 +- tests/ts/dmesg/decode | 2 +- tests/ts/dmesg/delta | 2 +- tests/ts/dmesg/facilities | 2 +- tests/ts/eject/umount | 2 +- tests/ts/fdisk/align-512-4K | 2 +- tests/ts/fdisk/align-512-4K-63 | 2 +- tests/ts/fdisk/align-512-4K-md | 2 +- tests/ts/fdisk/align-512-512 | 2 +- tests/ts/fdisk/align-512-512-topology | 2 +- tests/ts/fdisk/bsd | 2 +- tests/ts/fdisk/gpt | 2 +- tests/ts/fdisk/id | 2 +- tests/ts/fdisk/mbr-dos-mode | 2 +- tests/ts/fdisk/mbr-nondos-mode | 2 +- tests/ts/fdisk/oddinput | 2 +- tests/ts/fdisk/sunlabel | 2 +- tests/ts/fsck/ismounted | 2 +- tests/ts/hexdump/format-strings | 2 +- tests/ts/hexdump/highlighting | 2 +- tests/ts/hwclock/systohc | 2 +- tests/ts/ipcs/headers | 2 +- tests/ts/ipcs/limits | 2 +- tests/ts/ipcs/limits2 | 2 +- tests/ts/ipcs/mk-rm-msg | 2 +- tests/ts/ipcs/mk-rm-sem | 2 +- tests/ts/ipcs/mk-rm-shm | 2 +- tests/ts/isosize/print-size | 2 +- tests/ts/last/ipv6 | 2 +- tests/ts/last/last | 2 +- tests/ts/libmount/context | 2 +- tests/ts/libmount/context-py | 2 +- tests/ts/libmount/context-utab | 2 +- tests/ts/libmount/context-utab-py | 2 +- tests/ts/libmount/lock | 2 +- tests/ts/libmount/optstr | 2 +- tests/ts/libmount/tabdiff | 2 +- tests/ts/libmount/tabfiles | 2 +- tests/ts/libmount/tabfiles-py | 2 +- tests/ts/libmount/tabfiles-tags | 2 +- tests/ts/libmount/tabfiles-tags-py | 2 +- tests/ts/libmount/update | 2 +- tests/ts/libmount/update-py | 2 +- tests/ts/libmount/utils | 2 +- tests/ts/login/islocal | 2 +- tests/ts/login/logindefs | 2 +- tests/ts/look/separator | 2 +- tests/ts/losetup/losetup | 2 +- tests/ts/lscpu/lscpu | 2 +- tests/ts/md5/md5 | 2 +- tests/ts/minix/fsck | 2 +- tests/ts/minix/mkfs | 2 +- tests/ts/misc/fallocate | 2 +- tests/ts/misc/getopt | 2 +- tests/ts/misc/ionice | 2 +- tests/ts/misc/line | 2 +- tests/ts/misc/mcookie | 2 +- tests/ts/misc/rev | 2 +- tests/ts/misc/setarch | 2 +- tests/ts/misc/setsid | 2 +- tests/ts/misc/strtosize | 2 +- tests/ts/misc/ul | 2 +- tests/ts/misc/whereis | 2 +- tests/ts/more/regexp | 2 +- tests/ts/more/squeeze | 2 +- tests/ts/mount/devname | 2 +- tests/ts/mount/fstab-broken | 2 +- tests/ts/mount/fstab-devname | 2 +- tests/ts/mount/fstab-devname2label | 2 +- tests/ts/mount/fstab-devname2uuid | 2 +- tests/ts/mount/fstab-label | 2 +- tests/ts/mount/fstab-label2devname | 2 +- tests/ts/mount/fstab-label2uuid | 2 +- tests/ts/mount/fstab-none | 2 +- tests/ts/mount/fstab-symlink | 2 +- tests/ts/mount/fstab-uuid | 2 +- tests/ts/mount/fstab-uuid2devname | 2 +- tests/ts/mount/fstab-uuid2label | 2 +- tests/ts/mount/label | 2 +- tests/ts/mount/move | 2 +- tests/ts/mount/noncanonical | 2 +- tests/ts/mount/paths | 2 +- tests/ts/mount/regfile | 2 +- tests/ts/mount/remount | 2 +- tests/ts/mount/rlimit | 2 +- tests/ts/mount/shared-subtree | 2 +- tests/ts/mount/special | 2 +- tests/ts/mount/umount-alltargets | 2 +- tests/ts/mount/umount-recursive | 2 +- tests/ts/mount/uuid | 2 +- tests/ts/namei/logic | 2 +- tests/ts/partx/partx | 2 +- tests/ts/paths/built-in | 2 +- tests/ts/schedutils/cpuset | 2 +- tests/ts/script/race | 2 +- tests/ts/swapon/devname | 2 +- tests/ts/swapon/fixpgsz | 2 +- tests/ts/swapon/fixsig | 2 +- tests/ts/swapon/label | 2 +- tests/ts/swapon/uuid | 2 +- tests/ts/tailf/simple | 2 +- tests/ts/utmpdump/ipv6tobin | 2 +- tests/ts/utmpdump/ipv6totxt | 2 +- tests/ts/utmpdump/to-binary | 2 +- tests/ts/utmpdump/to-text | 2 +- tests/ts/wipefs/wipefs | 2 +- 138 files changed, 138 insertions(+), 138 deletions(-) commit 67958a167d3d51003bbbf86e45cfc02f8488344a Author: Karel Zak Date: Mon Feb 17 13:40:03 2014 +0100 tests: fix trailing spaces in cal(1) stuff Reported-by: Mike Frysinger Signed-off-by: Karel Zak tests/expected/cal/bigyear | 345 +++++++++++++++++++++---------------------- tests/expected/cal/bigyearw | 351 ++++++++++++++++++++++---------------------- tests/expected/cal/weekarg | 84 +++++------ 3 files changed, 391 insertions(+), 389 deletions(-) commit 2e358a901f0a20fe9abe68f9ce6ce3efa87836dd Author: Thomas Bächler Date: Sun Feb 16 14:58:06 2014 +0100 libmount: initialize *root to NULL in mnt_table_get_root_fs mnt_table_get_root_fs only works when *root is set to NULL. This is not only undocumented, but also unintuitive. Fix it by initializing *root inside mnt_table_get_root_fs. Signed-off-by: Karel Zak libmount/src/tab.c | 2 ++ 1 file changed, 2 insertions(+) commit 270ab78a0c84a0d580d3dfa257813abbba385687 Author: Karel Zak Date: Mon Feb 17 13:22:30 2014 +0100 su: don't use kill(0, ...) when propagate signal The current code uses kill(0, caught_signal) after regular signal cleanup and before exit (all just to make shells happy). Unfortunately, kill(0, ...) is a bad idea. It seems better to use kill(getpid(), ...) otherwise we kill our parent process too. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1063887 Signed-off-by: Karel Zak login-utils/su-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5980048edd296797afbdc8b7e973ec0a779a3351 Author: Karel Zak Date: Mon Feb 17 13:17:47 2014 +0100 libmount: make the mountinfo parser more robust ... sorry, the previous change to the parser was too stupid. Signed-off-by: Karel Zak libmount/src/tab_parse.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) commit c6f462ffacc64fd605f1860972907803db318f5f Author: Karel Zak Date: Mon Feb 17 13:12:23 2014 +0100 libmount: accept (deleted) path suffix in mountinfo file Addresses: debian bug #711183 Signed-off-by: Karel Zak libmount/src/tab_parse.c | 10 ++++++++++ tests/expected/libmount/tabfiles-parse-mountinfo | 11 +++++++++++ tests/ts/libmount/files/mountinfo | 1 + 3 files changed, 22 insertions(+) commit bd2ff3d2d952d75a6707846831623455647a9a8d Author: Masatake YAMATO Date: Thu Jan 30 23:52:38 2014 +0900 ionice: add the way to specify the target processes with pgid and uid ioprio_get and ioprio_set system call accept not only process ID but also process group ID(pgid) and user ID(uid) to specify the target process(es). However, ionice command accepts only process ID. With this patch a user can specify the target processes with pgid(-P option) and uid(-u option). [kzak@redhat.com: - tiny cleanup in usage()] Signed-off-by: Masatake YAMATO Signed-off-by: Karel Zak schedutils/ionice.1 | 26 ++++++++++++++++++++ schedutils/ionice.c | 70 ++++++++++++++++++++++++++++++++++++----------------- 2 files changed, 74 insertions(+), 22 deletions(-) commit d6cecc3fbab62e5ccd850a41273b6ced24bb29d2 Author: Karel Zak Date: Mon Feb 17 10:55:56 2014 +0100 fallocate: improve --dig-holes * don't use --length to specify hole size, always use stat.st_blksize * use --offset and --length to specify offset within the file (like another fallocate operations) Signed-off-by: Karel Zak sys-utils/fallocate.1 | 13 +++--- sys-utils/fallocate.c | 126 ++++++++++++++++++++++++++++---------------------- 2 files changed, 77 insertions(+), 62 deletions(-) commit 782c290c5c1dd74f28c21ccd93a3b83445143dcf Author: Karel Zak Date: Fri Feb 14 14:37:51 2014 +0100 fallocate: add --verbose, clean up usage() Signed-off-by: Karel Zak bash-completion/fallocate | 2 +- sys-utils/fallocate.1 | 2 ++ sys-utils/fallocate.c | 41 +++++++++++++++++++++++++++++------------ 3 files changed, 32 insertions(+), 13 deletions(-) commit 24b2a479fd5ba138e9b836fa2115939eb3b59dfe Author: Rodrigo Campos Date: Sun Jan 26 15:06:50 2014 +0000 fallocate: Add "--dig-holes" option This option tries to detect chunk of '\0's and punch a hole, making the file sparse in-place. [kzak@redhat.com: - fix coding style, use xalloc.h and err.h] Signed-off-by: Rodrigo Campos Signed-off-by: Karel Zak bash-completion/fallocate | 2 +- sys-utils/fallocate.1 | 19 ++++++++- sys-utils/fallocate.c | 99 ++++++++++++++++++++++++++++++++++++----------- 3 files changed, 95 insertions(+), 25 deletions(-) commit bcd9315d4ba62a225028c47b0423e390e19381f6 Author: Rodrigo Campos Date: Sat Jan 25 19:17:27 2014 +0000 fallocate: Hide #ifdef tricks to call fallocate in a function Future patches will add more calls to fallocate(), so it will be useful to have all these tricks inside a function. The error message when fallocate is not supported is slightly changed: the file name is not printed as a prefix because is not available in the context of the function. Also, to only print one of the two possible errors (as happens when using directly exit()), an else clause was added. Signed-off-by: Rodrigo Campos sys-utils/fallocate.c | 43 ++++++++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 15 deletions(-) commit a8d10d1c9d13f3a5366b7ece635c02e356965c2d Author: Rodrigo Campos Date: Sat Jan 25 19:17:26 2014 +0000 fallocate: Clarify that space can also be deallocated The functionality is already there, with --punch-hole, but the text was for the preallocation case only. Signed-off-by: Rodrigo Campos sys-utils/fallocate.1 | 11 ++++++----- sys-utils/fallocate.c | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) commit 7f1d48363823f7da47ca56f84eb4b2155c5ed36b Author: Jesper Dahl Nyerup Date: Mon Feb 10 11:53:18 2014 +0100 scriptreplay: Add --maxdelay option. This option caps the delay between updates, to avoid long pauses in transcript playback. Signed-off-by: Jesper Dahl Nyerup Signed-off-by: Karel Zak term-utils/scriptreplay.1 | 6 ++++++ term-utils/scriptreplay.c | 18 ++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) commit 0c6dc4b99f7d56535deae5b3522ddf358547a0a3 Author: Sami Kerola Date: Sun Feb 9 17:20:29 2014 +0000 cal: remove unnecessary static variables Not in use since commit 95f4adde867492563167b11ba94dba67f93809aa. Signed-off-by: Sami Kerola misc-utils/cal.c | 19 ------------------- 1 file changed, 19 deletions(-) commit e8f348035488124fe7dd36110813765bcc26d76d Author: Phillip Susi Date: Sat Feb 8 13:22:10 2014 -0500 renice: correct max priority in renice man page The man page stated that the PRIO_MAX is 20. While this is correct, the header definition is wrong and the max value is actually 19. [kzak@redhat.com: - remove PRIO_MAX from man page, kernel syscalls use hardcoded numbers for the priority limits] Signed-off-by: Phillip Susi Signed-off-by: Karel Zak sys-utils/renice.1 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) commit c12e0662335e1da4d1b413f22e83d3f538fa2377 Author: Phillip Susi Date: Sat Feb 8 11:44:02 2014 -0500 mount: remove obsolete and confusing statement from mount.8 The wording was confusing and suidperl has gone the way of the dodo, and really didn't need mentionting in mount.8. Signed-off-by: Phillip Susi sys-utils/mount.8 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit b5ab5bec7392a1b5de271ce6299ef9e355187652 Author: Phillip Susi Date: Fri Feb 7 17:01:20 2014 -0500 fix mkfs --verbose and man page mkfs did not actually accept the long form --verbose option. Also the man page seemed to indicate that version/verbose/help options were passed to the filesystem specific utility when this is not the case. Signed-off-by: Phillip Susi disk-utils/mkfs.8 | 7 +------ disk-utils/mkfs.c | 1 + 2 files changed, 2 insertions(+), 6 deletions(-) commit b2d97db8c80eacab2e028cd4840064f063410b2b Author: Benno Schulenberg Date: Sun Jan 26 22:32:15 2014 +0100 hwclock: internationalizing the message of the used interface In addition, do it in a single sentence instead of in two fragments. Signed-off-by: Benno Schulenberg sys-utils/hwclock-cmos.c | 2 +- sys-utils/hwclock-kd.c | 2 +- sys-utils/hwclock-rtc.c | 2 +- sys-utils/hwclock.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) commit ad1d426aea74da1081412b9a07a180a17819ee60 Author: Ville Skyttä Date: Sat Jan 25 14:23:49 2014 +0200 getopt.1: The usual doc dir is /usr/share/doc, not .../docs Signed-off-by: Ville Skyttä misc-utils/getopt.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d359c62ce9bbbb687158f86f8cc18cc51aed38c9 Author: Andy Lutomirski Date: Fri Jan 24 12:02:59 2014 -0800 setpriv: Fix --apparmor-profile There were two bugs. First, trying to access /proc/self/attr/exec with O_CREAT | O_EXCL has no chance of working. Second, it turns out that the correct command to send is "exec", not "changeprofile". Of course, there was no way to know this until: commit 3eea57c26e49a5add4c053a031cc2a1977b7c48e Author: John Johansen Date: Wed Feb 27 03:44:40 2013 -0800 apparmor: fix setprocattr arg processing for onexec Signed-off-by: Andy Lutomirski sys-utils/setpriv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 404fa3f93c00c7e130f5a0ec963b2dc6a3743986 Author: Sami Kerola Date: Tue Jan 21 22:05:05 2014 +0000 last: make session gone determination more robust Earlier determination that used kill with signal zero to pid was prone to false positive reports, due reuse of pid space and unrelated processes. New function is_phantom() tries do a little bit better job, but fails to be perfect. It seems linking to gether utmp session start time or terminal id with /proc// information is not as simple as one might hope. Reported-by: Karel Zak Signed-off-by: Sami Kerola login-utils/last.c | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) commit 098ab0778f5a46ab4519c8404fd4ba8ec137368b Author: Ondrej Oprala Date: Tue Jan 21 17:13:56 2014 +0100 hexdump: add highlighting support [kzak@redhat.com: - fix coding style, - use xalloc in all code, - fix strtol usage] Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak tests/expected/hexdump/highlighting | 0 tests/expected/hexdump/highlighting-1b_char-1 | 41 +++++ tests/expected/hexdump/highlighting-1b_char-2 | 41 +++++ tests/expected/hexdump/highlighting-1b_char-3 | 41 +++++ tests/expected/hexdump/highlighting-1b_octal-1 | 41 +++++ tests/expected/hexdump/highlighting-1b_octal-2 | 41 +++++ tests/expected/hexdump/highlighting-1b_octal-3 | 41 +++++ tests/expected/hexdump/highlighting-1b_octal-4 | 41 +++++ tests/expected/hexdump/highlighting-1b_octal-5 | 41 +++++ tests/expected/hexdump/highlighting-1b_octal-6 | 1 + tests/expected/hexdump/highlighting-1b_octal-7 | 41 +++++ tests/expected/hexdump/highlighting-1b_octal-8 | 41 +++++ tests/expected/hexdump/highlighting-1b_octal-9 | 41 +++++ tests/expected/hexdump/highlighting-2b_dec-1 | 41 +++++ tests/expected/hexdump/highlighting-2b_dec-2 | 41 +++++ tests/expected/hexdump/highlighting-2b_dec-3 | 1 + tests/expected/hexdump/highlighting-2b_dec-4 | 41 +++++ tests/expected/hexdump/highlighting-2b_dec-5 | 41 +++++ tests/expected/hexdump/highlighting-2b_dec-6 | 1 + tests/expected/hexdump/highlighting-2b_dec-7 | 1 + tests/expected/hexdump/highlighting-4b_dec-1 | 21 +++ tests/expected/hexdump/highlighting-4b_dec-2 | 21 +++ tests/expected/hexdump/highlighting-4b_dec-3 | 2 + tests/expected/hexdump/highlighting-4b_dec-4 | 2 + tests/expected/hexdump/highlighting-4b_dec-5 | 1 + tests/expected/hexdump/highlighting-4b_dec-6 | 2 + tests/expected/hexdump/highlighting-4b_dec-7 | 2 + tests/expected/hexdump/highlighting-canon-1 | 41 +++++ tests/expected/hexdump/highlighting-canon-2 | 41 +++++ tests/ts/hexdump/highlighting | 235 +++++++++++++++++++++++++ text-utils/hexdump-display.c | 70 ++++++++ text-utils/hexdump-parse.c | 140 +++++++++++++++ text-utils/hexdump.1 | 38 ++++ text-utils/hexdump.c | 23 ++- text-utils/hexdump.h | 11 ++ 35 files changed, 1268 insertions(+), 1 deletion(-) commit 68f7b572bac36d4d1777e34e5b7a1107255b1e34 Author: Karel Zak Date: Mon Feb 10 14:50:12 2014 +0100 lib/color: add colorscheme parser include/colors.h | 1 + lib/colors.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 48 insertions(+), 2 deletions(-) commit 5c6be570767091ff7843c90ffb2fb470e0876c03 Merge: 4686ba1 b422f5f Author: Karel Zak Date: Mon Feb 10 11:07:01 2014 +0100 Merge branch 'master' of https://github.com/micha137/util-linux commit 4686ba17a8239d9a840a901abf780c4ea02ea1f9 Author: Michael Marineau Date: Tue Jan 14 13:19:50 2014 -0800 lsblk: add PARTTYPE tag To stay in sync with blkid add PARTTYPE as an available output column. misc-utils/lsblk.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) commit c367cda936f301b3d116a587356594b038de6d04 Author: Sami Kerola Date: Wed Jan 15 20:15:53 2014 +0000 tests: automatic whitespace trimming broke earlier commit Setting in .gitconfig to do 'git apply --whitespace=fix' automatically turned automation against user. Frankencommit: 4d2f0d08f67707b6d44d4a45fb6e21876c02c731 Signed-off-by: Sami Kerola commit d64dde93a27824575591a727ccc6a341e016c69d Author: Sami Kerola Date: Wed Jan 15 20:15:52 2014 +0000 tests: cal(1) is year is limited to signed 32 bit value Signed-off-by: Sami Kerola tests/expected/cal/bigyear | 357 +++++++++++++++++++++----------------------- tests/expected/cal/bigyearw | 355 ++++++++++++++++++++++--------------------- tests/ts/cal/bigyear | 6 +- tests/ts/cal/bigyearw | 6 +- 4 files changed, 355 insertions(+), 369 deletions(-) commit 4a7424a5ef35f119dfabc95abf80e97eb74ed5f9 Author: Sami Kerola Date: Wed Jan 15 20:15:51 2014 +0000 cal: limit year to 32 bit value This is done to keep things simple, when considering tests, for both 64 and 32 bit architectures. Setting the upper limit of a year value to to 2^31-1 (2147483646) should be enough for anyone. Reported-by: Mike Frysinger Reference: http://www.spinics.net/lists/util-linux-ng/msg08662.html Signed-off-by: Sami Kerola misc-utils/cal.c | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) commit c7a96884eb10997286233527fcd4dcaa64d72853 Author: Karel Zak Date: Thu Feb 6 16:42:26 2014 +0100 fsck: don't return error if fsck. does not exist The error message is expected for "really wanted" set of filesystems (extN, ..), otherwise it does not make sense for filesystems like btrfs or xfs. Reported-by: Tom Gundersen Signed-off-by: Karel Zak disk-utils/fsck.c | 74 +++++++++++++++++++++++++++++++------------------------ 1 file changed, 42 insertions(+), 32 deletions(-) commit 99d7e174119e8717efae0f0fec5f7dec14492fb3 Author: Karel Zak Date: Thu Feb 6 14:14:50 2014 +0100 nsenter: fix set{gid,uid} order,drop supplementary groups .. always, always setgid() before setuid()! Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1061751 Signed-off-by: Karel Zak sys-utils/nsenter.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit 3938c08cd56a7c83ea387073c1404d0e864c9fa3 Author: Karel Zak Date: Thu Feb 6 11:48:40 2014 +0100 dmesg: -w output not line-buffered when writing to e.g. a pipe, output from dmesg -w can come many minutes late due to buffering. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1060925 Signed-off-by: Karel Zak sys-utils/dmesg.c | 2 ++ 1 file changed, 2 insertions(+) commit 663bf040611240d164f2464b4d892ecd2b02fa6f Author: Karel Zak Date: Fri Jan 24 13:58:40 2014 +0100 losetup: wait for udev On system with /dev/lop-control the udevd creates /dev/loopN nodes. It seems better to wait a moment after unsuccessful open(/dev/loopN) and try it to open again. The problem is pretty visible on systems where udevd also modifies permission for loopN devices, then open() fails with EACCES when losetup executed by non-root user (but user who is in "disk" group). Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1045432 Signed-off-by: Karel Zak include/loopdev.h | 1 + lib/loopdev.c | 23 ++++++++++++++++++----- 2 files changed, 19 insertions(+), 5 deletions(-) commit a5bd7939961aaa6e39f3b298e556063cfd97d75a Author: Karel Zak Date: Fri Jan 24 13:04:14 2014 +0100 include/c.h: prefer nanosleep() over usleep() Let's use nanosleep() although if usleep() exists. The nanosleep function does no interact with signals and other timers. The patch introduces xusleep() as replacement to libc (or our fallback) usleep(). Yes, we don't want to use struct timespec + nanosleep() everywhere in code as nano-time resolution is useless for us. The patch also enlarges delays in some busy wait loops. It seems enough to try read/write 4x per second. Signed-off-by: Karel Zak include/all-io.h | 8 +++++--- include/c.h | 17 ++++++++++++----- libmount/src/lock.c | 4 ++-- login-utils/sulogin.c | 4 ++-- sys-utils/hwclock-kd.c | 2 +- sys-utils/rtcwake.c | 2 +- term-utils/agetty.c | 2 +- text-utils/tailf.c | 2 +- 8 files changed, 25 insertions(+), 16 deletions(-) commit 3523ca7da47b10088a396595580de8b27f3a7082 Author: Wieland Hoffmann Date: Thu Jan 16 01:06:32 2014 +0100 flock: Change the 'exit status' man page section to make more sense Signed-off-by: Wieland Hoffmann sys-utils/flock.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 081dc33b46d1c58f767202920dbdc13039c09565 Author: Karel Zak Date: Mon Jan 20 12:07:35 2014 +0100 wipefs: call BLKRRPART when erase partition table It's better to be smart than make things inconsistent (without BLKRRPART kernel still uses the erased PT and udev-db still contains obsolete information). Signed-off-by: Karel Zak misc-utils/wipefs.8 | 3 +++ misc-utils/wipefs.c | 41 +++++++++++++++++++++++++++++++++-------- 2 files changed, 36 insertions(+), 8 deletions(-) commit e3c69a7d7824cf1cb8fce3228b20499641878e75 Author: Karel Zak Date: Mon Jan 20 10:51:00 2014 +0100 libblkid: detect alone PMBR wipefs(8) has to also erase PMBR, not GPR header only, otherwise the device could be still interpreted as a device with a partition table. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1054186 Signed-off-by: Karel Zak libblkid/src/partitions/gpt.c | 44 ++++++++++++++++++++++++++++++++++-- libblkid/src/partitions/partitions.c | 1 + libblkid/src/partitions/partitions.h | 1 + 3 files changed, 44 insertions(+), 2 deletions(-) commit 4a2332edd9de308902d631933dbc2d93491f9c45 Author: Karel Zak Date: Fri Jan 17 15:00:55 2014 +0100 tests: update build-sys tests Signed-off-by: Karel Zak tests/expected/build-sys/config-all | 2 +- tests/expected/build-sys/config-all-non-nls | 2 +- tests/expected/build-sys/config-audit | 2 +- tests/expected/build-sys/config-chfnsh-libuser | 2 +- tests/expected/build-sys/config-chfnsh-no-password | 2 +- tests/expected/build-sys/config-chfnsh-pam | 2 +- tests/expected/build-sys/config-core | 2 +- tests/expected/build-sys/config-devel | 2 +- tests/expected/build-sys/config-devel-non-docs | 2 +- tests/expected/build-sys/config-non-libblkid | 1 - tests/expected/build-sys/config-non-libmount | 1 - tests/expected/build-sys/config-non-libs | 1 - tests/expected/build-sys/config-non-libuuid | 2 +- tests/expected/build-sys/config-non-nls | 2 +- tests/expected/build-sys/config-old-mount | 2 +- tests/expected/build-sys/config-selinux | 2 +- tests/expected/build-sys/config-slang | 2 +- tests/expected/build-sys/config-static | 2 +- 18 files changed, 15 insertions(+), 18 deletions(-) commit 7b040214b55f353726032569c8948c5c6765cf68 Author: Karel Zak Date: Fri Jan 17 14:34:53 2014 +0100 build-sys: fstrim depends on libmount Signed-off-by: Karel Zak configure.ac | 6 ++++++ sys-utils/Makemodule.am | 14 ++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) commit a0b42dc3696247de5c1da09b78be55908c7f9d86 Author: Karel Zak Date: Fri Jan 17 14:33:31 2014 +0100 mkswap: fix compiler warning [-Wunused-variable] Signed-off-by: Karel Zak disk-utils/mkswap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit c93c20304ce544d2f8200540ccf25e08900b2e9d Author: Karel Zak Date: Thu Jan 16 16:38:30 2014 +0100 libblkid: no more probe for btrfs backup superblock * Linux kernel cares about the first superblock only * backup superblock are FS specific stuff and there is no reason to care about it in generic tools * the problem with broken btrfs utils has been already fixed (it was possible to use the utils on filesystem with erased primary superblok without any warning message). Signed-off-by: Karel Zak libblkid/src/blkid.h.in | 1 - libblkid/src/blkidP.h | 3 --- libblkid/src/probe.c | 10 ++-------- libblkid/src/superblocks/btrfs.c | 7 ------- 4 files changed, 2 insertions(+), 19 deletions(-) commit 90faf9eb07e0b67745ab25c1ab3521631cca2f97 Author: Karel Zak Date: Thu Jan 16 16:33:16 2014 +0100 wipefs: add comments to code misc-utils/wipefs.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) commit c6fca22e3a4dde709f4b12875b69761536a2891d Author: Karel Zak Date: Thu Jan 16 14:44:37 2014 +0100 script: use all-io.h to make the code more robust Signed-off-by: Karel Zak term-utils/script.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) commit 968e632cdbd2e5bb5d462a73a2c3b26293d42890 Author: Karel Zak Date: Thu Jan 16 13:18:24 2014 +0100 script: fix inconsistent -q, use poll() rather then O_NONBLOCK - don't suppress "Script done" message in typescript file by -q (note that -q has no effect to "Script started" message) - simplify the code by poll() Signed-off-by: Karel Zak term-utils/script.c | 42 +++++++++++++++++------------------------- 1 file changed, 17 insertions(+), 25 deletions(-) commit 38374be4c857bfe2129d278e81fe4ed505ef0077 Author: Karel Zak Date: Thu Jan 16 12:22:13 2014 +0100 script: don't wait for empty descriptors if child is dead The current code waits for empty file master and slave descriptors, but it makes sense only if there is child process that cares (read) about data in the descriptors. Signed-off-by: Karel Zak term-utils/script.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) commit b422f5fe8735d46f0e357dee6a863b3ac34f64e1 Author: Michael Bunk Date: Wed Jan 15 17:38:37 2014 +0100 ionice: Fix output for case ioclass==0 output "none" instead of "unknown" schedutils/ionice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c62f164cf15c23b7bdc03e59707c1d609b472c50 Author: Karel Zak Date: Wed Jan 15 10:52:47 2014 +0100 partx: use blkid_partlist_get_partition_by_partno() Signed-off-by: Karel Zak disk-utils/partx.c | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) commit a3ebe0eca3350ec42533ea54eeb8d6c53ae27eae Author: Karel Zak Date: Wed Jan 15 10:52:16 2014 +0100 libblkid: add blkid_partlist_get_partition_by_partno() Signed-off-by: Karel Zak libblkid/docs/libblkid-sections.txt | 1 + libblkid/src/blkid.h.in | 2 ++ libblkid/src/blkid.sym | 7 +++++++ libblkid/src/partitions/partitions.c | 30 ++++++++++++++++++++++++++++++ 4 files changed, 40 insertions(+) commit a6d85ee0a10468d49fab90e7f7dde0ada11ebede Author: Karel Zak Date: Tue Jan 14 18:02:06 2014 +0100 lib/sysfs: fix scanf format string [coverity scan] Signed-off-by: Karel Zak lib/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ea97feab8d35d0597ba134a0049183e8ca9e048b Author: Karel Zak Date: Tue Jan 14 18:00:14 2014 +0100 libmount: fix scanf format string [coverity scan] Signed-off-by: Karel Zak libmount/src/tab_parse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit af5f87a678fc8b272cf1da57213e52b2f3a4e37c Author: Karel Zak Date: Tue Jan 14 17:56:47 2014 +0100 rename: fix mem leak [coverity scan] Signed-off-by: Karel Zak misc-utils/rename.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit cd70a4606a56cb1899dfba1fbe93e1aa69888de9 Author: Karel Zak Date: Tue Jan 14 17:53:22 2014 +0100 column: fix mem leak [coverity scan] Signed-off-by: Karel Zak text-utils/column.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit b9579f1f44b46c9f12f1e01b01c02d82ae1cf728 Author: Karel Zak Date: Tue Jan 14 17:49:34 2014 +0100 more: fix mem leak [coverity scan] ... the code is so soo ugly. Signed-off-by: Karel Zak text-utils/more.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit ecdec6d866c936bd234230df9cee54fc35b2d63c Author: Karel Zak Date: Tue Jan 14 17:34:08 2014 +0100 pylibmount: import directly from pylibmount in tests This change does not have any impact to in a standard way installed libmount impact. It's simplification for in-tree tests. Signed-off-by: Karel Zak libmount/python/test_mount_context.py | 4 +++- libmount/python/test_mount_tab.py | 4 +++- libmount/python/test_mount_tab_update.py | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) commit 34330d2bea7461a3d5570b2f991b7d27a949aa6e Author: Karel Zak Date: Tue Jan 14 14:57:44 2014 +0100 pylibmount: remove unncessary subdirectory Signed-off-by: Karel Zak libmount/python/Makemodule.am | 2 +- libmount/python/__init__.py | 2 ++ libmount/python/libmount/__init__.py | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) commit 14a04268b8837c685f7690dd126d2a765ae0de1b Author: Karel Zak Date: Tue Jan 14 13:58:38 2014 +0100 tests: update lscpu tests Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-x86_64-64cpu | 68 +++++++++++++++++---------------- 1 file changed, 35 insertions(+), 33 deletions(-) commit 39c758d140602e635b1943080834df41fa7c9ac1 Author: Karel Zak Date: Tue Jan 14 13:56:27 2014 +0100 lscpu: sort NUMA nodes to keep output human readable Signed-off-by: Karel Zak sys-utils/lscpu.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit 8e2f2befc9b3782abc459e002c2506902ddeff5d Author: Karel Zak Date: Tue Jan 14 10:17:16 2014 +0100 docs: add lslogins(1) to TODO Signed-off-by: Karel Zak Documentation/TODO | 11 +++++++++++ 1 file changed, 11 insertions(+) commit 3eb433df82622b4f7499eed6010dc2a3ffe5289d Author: Karel Zak Date: Tue Jan 14 09:51:02 2014 +0100 tests: add partx --update test Signed-off-by: Karel Zak tests/expected/partx/partx-update-one | 1 + tests/ts/partx/partx | 10 ++++++++++ 2 files changed, 11 insertions(+) commit 7256f4265b061682dc3c1015af069304977cfd26 Author: Karel Zak Date: Tue Jan 14 09:41:04 2014 +0100 tests: update partx sgi test Since commit 4253275490926cf533bfd0bc33279729e9ff427a the libblkid lists system partitions for SGI label. Signed-off-by: Karel Zak tests/expected/partx/partx-sgi | 2 ++ 1 file changed, 2 insertions(+) commit 84ac311212c06963d616b1b9a40644842f9adabd Author: Scott Moser Date: Mon Jan 13 15:32:49 2014 -0500 partx: fix --update ranges and out of order tables partx --update DEVICE NUMBER was broken in 2 cases: * if NUMBER != 1 * if the partition table was "out of order". Ie, where sda2 came after sda3. References: https://bugs.launchpad.net/ubuntu/+source/cloud-utils/+bug/1244662 Signed-off-by: Scott Moser Signed-off-by: Karel Zak disk-utils/partx.c | 75 ++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 50 insertions(+), 25 deletions(-) commit c0cbd9234445cb70e5d3c9168646bce5b54752e4 Author: Carlos Maiolino Date: Mon Jan 13 15:05:49 2014 +0100 mount: update man page ext3/4 mount options Add missing mount options to ext3 and ext4 filesystems. This also remove resize option information from the man page. Signed-off-by: Carlos Maiolino Signed-off-by: Karel Zak sys-utils/mount.8 | 42 +++++++++++++++++++++++++++++++----------- 1 file changed, 31 insertions(+), 11 deletions(-) commit bc5ddf0c0011d1ffc21e29cef9d07420013697b0 Author: Karel Zak Date: Mon Jan 13 14:53:18 2014 +0100 fallocate: prefer FALLOC_FL_* flags from libc headers Reported-by: Sami Kerola Signed-off-by: Karel Zak sys-utils/fallocate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 5f77ce6f32692b473ffcec4c6f63dbd38cd5eeda Author: Karel Zak Date: Mon Jan 13 14:30:51 2014 +0100 libblkid: (nilfs2) check also backup superblock * read also backup superblock * check which superblock is newer * set minimal device size to 1MiB Reported-by: Phillip Susi Signed-off-by: Karel Zak libblkid/src/superblocks/nilfs.c | 66 +++++++++++++++++++++++++--------------- 1 file changed, 42 insertions(+), 24 deletions(-) commit 1a38ad5c3271a59c7e51580242a2fbd3b0f16495 Author: Karel Zak Date: Tue Jan 7 17:41:42 2014 +0100 dmesg: fix --raw zero timestamp for kmsg Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1049438 Signed-off-by: Karel Zak sys-utils/dmesg.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) commit ea45d34c7c8e2c9017c3e0ee57c202928157a482 Author: Sami Kerola Date: Mon Jan 6 23:39:08 2014 +0000 uuidd: use pkg-config to find systemd-deamon support [kzak@redhat.com: - remove USE_SOCKET_ACTIVATION and use HAVE_* as we use for another libs] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak configure.ac | 13 +- misc-utils/Makemodule.am | 8 +- misc-utils/sd-daemon.c | 520 ----------------------------------------------- misc-utils/sd-daemon.h | 282 ------------------------- misc-utils/uuidd.c | 10 +- 5 files changed, 15 insertions(+), 818 deletions(-) commit 4da21e374e34350941d54f7b0fe33a06d92e9eaa Author: Lubomir Rintel Date: Fri Dec 27 22:14:48 2013 +0100 unshare: Add possibility to add mapping into root user in user namespace This makes it very convenient to use make use of privileged actions on CONFIG_USER_NS enabled kernels, without having to manually tinker with uid_map and gid_map to obtain required credentials (as those given upon unshare() vanish with call to execve() and lot of userspace checks for euid==0 anyway). Usage example: $ unshare --uts unshare: unshare failed: Operation not permitted $ unshare --user --uts [nfsnobody@odvarok ~]$ hostname swag hostname: you must be root to change the host name $ unshare -r --uts [root@odvarok util-linux]# hostname swag [root@odvarok util-linux]# [kzak@redhat.com: - move code to map_id() - use all-io.h - add paths to pathnames.h] Signed-off-by: Lubomir Rintel Signed-off-by: Karel Zak include/pathnames.h | 3 +++ sys-utils/unshare.1 | 8 ++++++++ sys-utils/unshare.c | 36 ++++++++++++++++++++++++++++++++++-- 3 files changed, 45 insertions(+), 2 deletions(-) commit cad44d02bd8ac0c36d50f53ac9f335520aa2e247 Author: Benno Schulenberg Date: Mon Jan 6 21:43:44 2014 +0100 cal: in man page improve grammar and wording of the reformation limitation Signed-off-by: Benno Schulenberg misc-utils/cal.1 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit e9074a167cb485fea91be2cb20f68e137b6d3246 Author: Karel Zak Date: Mon Jan 6 16:48:44 2014 +0100 lscpu: support discontinuous NUMA nodes lscpu fails to print proper NUMA node values in a system with discontinuous nodes. This patch adds support by creating a nodeidx array to map node numbers. Based on patch from Madhavan Srinivasan . Reported-by: Madhavan Srinivasan Signed-off-by: Karel Zak sys-utils/lscpu.c | 50 +++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 43 insertions(+), 7 deletions(-) commit dd3bc51a539ffdd5c6c6b7d0b20acd1f61bdd337 Author: Karel Zak Date: Mon Jan 6 16:48:13 2014 +0100 lib/path: add path_strdup() Signed-off-by: Karel Zak include/path.h | 2 ++ lib/path.c | 13 +++++++++++++ 2 files changed, 15 insertions(+) commit 5500c817425fb4ccbc4151f232872ff2380c6391 Author: Andrew Vagin Date: Fri Dec 27 17:45:57 2013 +0400 hexdump: convert a variable type according with fmt hexdump works uncorrectly on Rassberry Pi (raspbian wheezy): 0000000 3200000000 3400000000 3600000000 3800000000 a00000000 000000a The problem is that the %qx format is used for printing the (short int) variable. Here is the output from hexdump with this patch: 0000000 3231 3433 3635 3837 0a39 000000a Currently raspbian uses hexdump from bsdmainutils. bsdmainutils: /usr/bin/hexdump Signed-off-by: Andrew Vagin text-utils/hexdump-display.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 917c3733f8f200097f10f779d1756d2913f35ab8 Author: Andrew Vagin Date: Mon Jan 6 13:58:51 2014 +0100 hexdump: don't access hex after freeing it [kzak@redhat.com: - remove unnecessary code] Signed-off-by: Andrew Vagin Signed-off-by: Karel Zak text-utils/hexdump.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 2152af72894e95eb40aa2a1e5a5b3116cf7c659a Author: Karel Zak Date: Mon Jan 6 13:54:48 2014 +0100 hexdump: use xcalloc() Reported-by: Andrey Vagin Signed-off-by: Karel Zak text-utils/hexdump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 1987fdf5dcf8a70337464b0c405f0ae99f5ba043 Author: Mike Frysinger Date: Sun Dec 22 19:01:32 2013 -0500 tests: libmount: skip tabfiles-py when pylibmount is disabled The default configure disables python support, so this test fails by default. Add a simple check for module availability. Signed-off-by: Mike Frysinger tests/ts/libmount/tabfiles-py | 2 ++ 1 file changed, 2 insertions(+) commit afe80619520123cf2ad2445b748d69a2af4166d6 Author: Mike Frysinger Date: Sun Dec 22 18:20:29 2013 -0500 tests: last: skip when last is not enabled References: https://bugs.gentoo.org/489794 Signed-off-by: Mike Frysinger tests/ts/last/ipv6 | 2 ++ tests/ts/last/last | 2 ++ 2 files changed, 4 insertions(+) commit 2d4f3bfb7f9c7253ac22ff8ab64dd318034135c5 Author: Benno Schulenberg Date: Mon Jan 6 12:40:13 2014 +0100 cal: in man page admit that any week has just one Sunday Signed-off-by: Benno Schulenberg Signed-off-by: Karel Zak misc-utils/cal.1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit bc36e66a84adf322bc98f4e812484b7ab9dc6cf6 Author: Sami Kerola Date: Sun Dec 22 18:06:04 2013 +0000 cal: mention where Gregorian reformation happen in September 1752 In September 1752 the Gregorian reformation happen in Great Britain and Dominions (including what is now the USA). One could argue the cal(1) should consider locale when determining the reformation, but such is nearly impossible implement correctly. The dates when reformation happen are split by areas that cannot be expressed with current locales, for example the Netherlands is split to two and Germany three categories depending on where in the modern country one is. Secondly the track when reformation happen is lost for some countries, Lithuania or Japan are good examples of such. One of the worst for a programmer is Sweden. They got gradual calendar change which made Swedish calendar to be completely out of sync. Later the Swedish calendar jumped in 1753 to be in sync with everyone else. Notice that some countries, including Saudi Arabia, Ethiopia, Nepal, Iran and Afghanistan, still have not adopted the Gregorian calendar. Hence the output of the cal(1) cannot be considered to be correct for everyone. References: http://calendopedia.com/gregory.htm References: http://en.wikipedia.org/wiki/Gregorian_calendar#Gregorian_reform Reviewed-by: Benno Schulenberg Signed-off-by: Sami Kerola misc-utils/cal.1 | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) commit 5f68593d7a9a89e5a7960bdd87c739373aa988d6 Author: Karel Zak Date: Mon Jan 6 09:08:40 2014 +0100 losetup: remove warning for unsupported -e and -E Signed-off-by: Karel Zak sys-utils/losetup.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) commit 961d69f79973d60811c172caee6ce661f5d4cd31 Author: Karel Zak Date: Mon Jan 6 09:02:36 2014 +0100 losetup, mount: remove --pass-fd at all The option is unsupported since v2.23, let's cleanup man pages and code to remove it at all. Reported-by: "Dale R. Worley" Signed-off-by: Karel Zak sys-utils/losetup.8 | 2 -- sys-utils/losetup.c | 6 +----- sys-utils/mount.c | 8 ++------ 3 files changed, 3 insertions(+), 13 deletions(-) commit d640dd94213abc752fae24161a294adce0a12c1c Author: Ville Skyttä Date: Thu Dec 19 00:13:48 2013 +0200 man: Syntax and spelling fixes. Signed-off-by: Ville Skyttä login-utils/nologin.8 | 2 +- sys-utils/lscpu.1 | 2 +- sys-utils/mount.8 | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) commit e3e16717ec8c86f3f2710bb667c9e154aefa0bc9 Author: Benno Schulenberg Date: Mon Dec 16 22:41:56 2013 +0100 po: add '--no-wrap' to msgmerge, to not wrap long message lines This avoids unneeded churn during POT-file renewal and PO-file updates, as the PO files at the TP are made with '--no-wrap'. Signed-off-by: Benno Schulenberg Acked-by: Sami Kerola configure.ac | 2 +- po/Makevars | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) commit 31e93a55be6d292427f259de2e9b40bed0050a88 Author: Karel Zak Date: Thu Dec 12 11:41:07 2013 +0100 mount: add note about "noauto" to --all description References: https://bugzilla.redhat.com/show_bug.cgi?id=1039905 Signed-off-by: Karel Zak sys-utils/mount.8 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit a1ca32fb3862ccac7275d6b342805b6d99f20e39 Author: Lukas Czerner Date: Tue Dec 3 16:24:44 2013 +0100 libblkid: Identify extN file system properly Currently when trying to identify extN file system we're playing games with searching for kernel modules and parsing /proc/filesystem. All of this just because ext4 module can be used to mount ext3 and ext2 file systems on recent kernel and also because of ext4dev. However all of this is not necessary. Ext4 module which does support mounting ext2 and ext3 file system is able to recognize and mount ext2 and ext3 type so there is no need to disguise it and ext4dev should only be ever used for testing and not as fallback when other modules are missing (use -t instead). This also introduces a bug when in situation that we only have ext4 modules with ext2/ext3 support which is not loaded and we try to mount ext2 file system we will mount it incorrectly as ext4. This will not happen if the ext4 module is already loaded. With this patch we remove all the unnecessary checks and return the real type of the file system which is on the device. This fixes the issue. However on the kernel which was not compiled with EXT4_USE_FOR_EXT23 support one would have to provide file system type (-t) to be able to mount the file system with ext4 driver. Signed-off-by: Lukas Czerner Signed-off-by: Karel Zak libblkid/src/superblocks/ext.c | 183 +---------------------------------------- 1 file changed, 3 insertions(+), 180 deletions(-) commit d6bbe8044b21dca000fe49fdee4260c2e84d1df9 Author: Benno Schulenberg Date: Wed Dec 11 12:40:14 2013 +0100 textual: small inprovements to usage and man page of fstrim Signed-off-by: Benno Schulenberg sys-utils/fstrim.8 | 9 +++++---- sys-utils/fstrim.c | 8 ++++---- 2 files changed, 9 insertions(+), 8 deletions(-) commit e05a3400e79e8cba6aca8725fd53d2b9753f0cf3 Author: Karel Zak Date: Wed Dec 11 17:01:23 2013 +0100 fstrim: de-duplicate list of filesystems Reported-by: Pádraig Brady Signed-off-by: Karel Zak sys-utils/fstrim.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) commit bebdda30360f4341c8b87386898775cb246dbfe3 Author: Karel Zak Date: Wed Dec 11 17:01:15 2013 +0100 findmnt: add -U to de-deplicate filesystems Signed-off-by: Karel Zak misc-utils/findmnt.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) commit 51fffa7be05ea0b6375a83bd77ffae763f099e2c Author: Karel Zak Date: Wed Dec 11 16:59:57 2013 +0100 libmount: add mnt_table_uniq_fs() Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 1 + libmount/src/libmount.h.in | 9 ++ libmount/src/libmount.sym | 1 + libmount/src/tab.c | 161 ++++++++++++++++++++++++++++++++---- 4 files changed, 158 insertions(+), 14 deletions(-) commit b95c6e88b5d66df4ab73079c3534df52bf6c34a7 Author: Karel Zak Date: Wed Dec 11 14:47:06 2013 +0100 findmnt: cleanup usage() Signed-off-by: Karel Zak misc-utils/findmnt.c | 73 ++++++++++++++++++++++++---------------------------- 1 file changed, 34 insertions(+), 39 deletions(-) commit 36c370cbf1481aa8724dff8b7b7fec4a8ba9930b Author: Karel Zak Date: Tue Dec 10 15:49:49 2013 +0100 fstrim: add --all to discard all filesystem * read /proc/self/mountinfo to get filesystems * ignore net and pseudo filesystems * ignore unaccessible filesystems (over mounted by another FS) * read disk sysfs queue/discard_granularity to detect is discard support * call FITRIM ioctl * silently ignore EOPNOTSUPP (for example LUKS without discard) and ENOTTY (for example vfat) errors Signed-off-by: Karel Zak sys-utils/Makemodule.am | 3 +- sys-utils/fstrim.8 | 20 +++++ sys-utils/fstrim.c | 210 +++++++++++++++++++++++++++++++++++++++++------- 3 files changed, 202 insertions(+), 31 deletions(-) commit 84ceaf7a196b1c026b9ce91472e4b8c64af3727a Author: Karel Zak Date: Tue Dec 10 14:05:22 2013 +0100 libmount: add efivarfs to the list of pseudo filesystems Signed-off-by: Karel Zak libmount/src/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit a60fa93cb791c1c9691c252d4779390acfd8a406 Author: Karel Zak Date: Tue Dec 10 11:36:50 2013 +0100 fstrim: cleanup usage() Signed-off-by: Karel Zak sys-utils/fstrim.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit ab0e0fa7a45bccf8304edcb2a904f30a4f3a48b1 Author: Rik van Riel Date: Fri Dec 6 16:07:54 2013 -0500 taskset: fix PERMISSIONS section of taskset man page A user is always allowed to change the CPU affinity of his or her own processes. CAP_SYS_NICE is only required to change the affinity of another user's process. Signed-off-by: Rik van Riel Reported-by: Joe Mario schedutils/taskset.1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 95f4adde867492563167b11ba94dba67f93809aa Author: Sami Kerola Date: Sun Nov 10 18:23:40 2013 +0000 cal: use month contents structure for --year printing Signed-off-by: Sami Kerola misc-utils/cal.c | 229 +++++++++++-------------------------------------------- 1 file changed, 45 insertions(+), 184 deletions(-) commit f60117b53e2d537c3a30ada18c323c7ce44416c0 Author: Sami Kerola Date: Sun Nov 10 18:23:39 2013 +0000 cal: use month contents structure for --three printing Signed-off-by: Sami Kerola misc-utils/cal.c | 136 +++++++++++-------------------------------------------- 1 file changed, 26 insertions(+), 110 deletions(-) commit 852c8d211092430a8aac765af033fbb95c4f09d1 Author: Sami Kerola Date: Sun Nov 10 18:23:38 2013 +0000 cal: add month contents structure This changes determination of calendar month content completely, as well as outputing. Signed-off-by: Sami Kerola misc-utils/cal.c | 176 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 169 insertions(+), 7 deletions(-) commit efce94ec1c6b6f307920f9d9f05de7a4c18da9c9 Author: Sami Kerola Date: Sun Nov 10 18:23:37 2013 +0000 cal: determine how many header lines are needed at initialization Signed-off-by: Sami Kerola misc-utils/cal.c | 53 ++++++++++++++++++++++------------------------------- 1 file changed, 22 insertions(+), 31 deletions(-) commit 4d2f0d08f67707b6d44d4a45fb6e21876c02c731 Author: Sami Kerola Date: Sun Nov 10 18:23:36 2013 +0000 tests: cal: do not let --week= to adjust requested month The previous commit made --week= to have smaller weight value than a month supplied by user. The commit started to print the month that has more days at the week when a week is split to two months, and only one month output is requested. Signed-off-by: Sami Kerola tests/expected/cal/weekarg | 84 +++++++++++++++++++++++----------------------- 1 file changed, 42 insertions(+), 42 deletions(-) commit ffc563579853d7d6c316d63d090b4a1845d65b83 Author: Sami Kerola Date: Sun Nov 10 18:23:35 2013 +0000 cal: make user request to be part of read-only control struct Signed-off-by: Sami Kerola misc-utils/cal.c | 138 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 73 insertions(+), 65 deletions(-) commit dc37cc2912f0cd83e7c746e03f85f4efe6c19bcb Author: Sami Kerola Date: Sun Nov 10 18:23:34 2013 +0000 tests: cal: take account week numbers when determing month lenght The month header does not need to wrap if month width with week number allows printing to single line. Signed-off-by: Sami Kerola tests/expected/cal/bigyearw | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) commit 71ff238e49c88540295ae73dea83680617455709 Author: Sami Kerola Date: Sun Nov 10 18:23:33 2013 +0000 cal: determine output width at beginning of run and reuse result Signed-off-by: Sami Kerola misc-utils/cal.c | 85 +++++++++++++++++++++++++------------------------------- 1 file changed, 38 insertions(+), 47 deletions(-) commit 44df9bd4bffd7ccbb1934c7dcc6d84527dd43ce9 Author: Sami Kerola Date: Sun Nov 10 18:23:32 2013 +0000 cal: simplify ascii_weeknum() function Either the week is or isn't highlighted, there is no need to over complicate printing of that. Signed-off-by: Sami Kerola misc-utils/cal.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) commit ff90b006eb448d4182283f7cc25da674a6ac09f6 Author: Sami Kerola Date: Sun Nov 10 18:23:31 2013 +0000 cal: make day_in_week() use same variable names as other functions Signed-off-by: Sami Kerola misc-utils/cal.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) commit 0106c9e26ca781a344f230f2bf5132abccd98aeb Author: Sami Kerola Date: Sun Nov 10 18:23:30 2013 +0000 cal: add input variable names to function prototypes While prototypes such as 'function(int, int, char, int);' are legal they do not help when trying to understand how the function is expected to be used. Adding variable names gives at least a hint when looking the prototypes. Signed-off-by: Sami Kerola misc-utils/cal.c | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) commit 76c4bbcc6e2811026ee172cbd7a93f587fed2385 Author: Sami Kerola Date: Sun Nov 10 18:23:29 2013 +0000 cal: rename ascii_wnum() to ascii_weeknum() Week is not long word, so it does not need to be enshorted and made more difficult to understand. Signed-off-by: Sami Kerola misc-utils/cal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit b549058bd5ee5662eaddeaed7f9104c6381ddca9 Author: Sami Kerola Date: Sun Nov 10 18:23:28 2013 +0000 cal: use control structure for run time configuration Runtime configuration is set at the time of command line option parsing, and other initialization. Later the configuration is read-only. This should make code a little bit more understandable. Signed-off-by: Sami Kerola misc-utils/cal.c | 271 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 140 insertions(+), 131 deletions(-) commit 3822032da3b8431afb9ee2c0a66c210dd2223f8c Author: Karel Zak Date: Tue Dec 3 13:32:55 2013 +0100 script: script input redirection / eof handling echo "ps uf" | script does not work because script assume that stdin is terminal and it does not forward EOF to the pty. This patch: * make non-tty use-case more robust (don't call tty ioclts to non-tty file descriptors. * send EOF (CTL('D') control char) to the master channel when detected eof by read() on stdin * wait for empty master and slave file descriptors to be sure that we don't miss date for typescript. This is also necessary to be sure that slave channel (shell) is completely initialized otherwise EOF is ignored. Reported-by: Phillip Susi Signed-off-by: Karel Zak term-utils/script.c | 98 ++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 79 insertions(+), 19 deletions(-) commit 1f77e9c3ad0b41640a82f2aca6eff18c98483610 Author: Ondrej Oprala Date: Fri Nov 8 17:13:14 2013 +0100 hexdump: Create struct hexdump containing previously global variables. Signed-off-by: Ondrej Oprala text-utils/hexdump-display.c | 58 +++++++++++++++---------------- text-utils/hexdump-parse.c | 14 ++++---- text-utils/hexdump.c | 82 +++++++++++++++++++++----------------------- text-utils/hexdump.h | 25 ++++++++------ 4 files changed, 90 insertions(+), 89 deletions(-) commit 1be6ed6adea4ba45c478d4ff40469ed6b62ee090 Author: Ondrej Oprala Date: Fri Nov 8 17:13:13 2013 +0100 hexdump: add __attribute__ ((__noreturn__)) to bad*() functions Signed-off-by: Ondrej Oprala text-utils/hexdump-parse.c | 44 ++++++++++++++++++++------------------------ 1 file changed, 20 insertions(+), 24 deletions(-) commit bb8ae572ef37a248c3f1b134182152446241400b Author: Ondrej Oprala Date: Fri Nov 8 17:13:12 2013 +0100 hexdump: rename struct _fs to struct hexdump_fs and remove its typedef Signed-off-by: Ondrej Oprala text-utils/hexdump-display.c | 4 ++-- text-utils/hexdump-parse.c | 8 ++++---- text-utils/hexdump.c | 10 +++++----- text-utils/hexdump.h | 8 ++++---- 4 files changed, 15 insertions(+), 15 deletions(-) commit 046921da22a865addc7a6adb6abab85a3f230748 Author: Ondrej Oprala Date: Fri Nov 8 17:13:11 2013 +0100 hexdump: rename struct _fu to struct hexdump_fu and remove its typedef Signed-off-by: Ondrej Oprala text-utils/hexdump-display.c | 4 ++-- text-utils/hexdump-parse.c | 16 ++++++++-------- text-utils/hexdump.c | 4 ++-- text-utils/hexdump.h | 6 +++--- 4 files changed, 15 insertions(+), 15 deletions(-) commit 4c73d29c06a858d5cbbe314df570ac03695fae3f Author: Ondrej Oprala Date: Fri Nov 8 17:13:10 2013 +0100 hexdump: Rename struct _pr to struct hexdump_pr and remove it's typedef Signed-off-by: Ondrej Oprala text-utils/hexdump-conv.c | 4 ++-- text-utils/hexdump-display.c | 10 +++++----- text-utils/hexdump-parse.c | 12 +++++++----- text-utils/hexdump.c | 4 ++-- text-utils/hexdump.h | 8 ++++---- 5 files changed, 20 insertions(+), 18 deletions(-) commit 9f399910f256730d2e7f56b00b814c2da94a06f7 Author: Ondrej Oprala Date: Fri Nov 8 17:13:09 2013 +0100 hexdump: rename rewrite to rewrite_rules Signed-off-by: Ondrej Oprala text-utils/hexdump-parse.c | 2 +- text-utils/hexdump.c | 2 +- text-utils/hexdump.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 9fa53cebe40dd54184c7e00ab32ee6f5fb6839a6 Author: Ondrej Oprala Date: Fri Nov 8 17:13:08 2013 +0100 hexdump: rename add to add_fmt Signed-off-by: Ondrej Oprala text-utils/hexdump-parse.c | 4 ++-- text-utils/hexdump.c | 32 ++++++++++++++++---------------- text-utils/hexdump.h | 2 +- 3 files changed, 19 insertions(+), 19 deletions(-) commit d4646ea4b0e94ebb1309dedd679793ce78039d03 Author: Ondrej Oprala Date: Fri Nov 8 17:13:07 2013 +0100 hexdump: Merge hexsyntax.c into hexdump.c Signed-off-by: Ondrej Oprala text-utils/Makemodule.am | 1 - text-utils/hexdump.c | 117 +++++++++++++++++++++++++++++++++- text-utils/hexdump.h | 2 +- text-utils/hexsyntax.c | 160 ----------------------------------------------- 4 files changed, 117 insertions(+), 163 deletions(-) commit af324b1f72282ce4fa95546af0e865b46a10a457 Author: Ondrej Oprala Date: Fri Nov 8 17:13:06 2013 +0100 hexdump: add the prefix 'hexdump-' to {conv,display,parse}.c Signed-off-by: Ondrej Oprala text-utils/Makemodule.am | 6 +- text-utils/conv.c | 111 ---------- text-utils/display.c | 385 --------------------------------- text-utils/hexdump-conv.c | 111 ++++++++++ text-utils/hexdump-display.c | 385 +++++++++++++++++++++++++++++++++ text-utils/hexdump-parse.c | 494 +++++++++++++++++++++++++++++++++++++++++++ text-utils/parse.c | 494 ------------------------------------------- 7 files changed, 993 insertions(+), 993 deletions(-) commit f50473e7ca7354160c650850b497fc819cbea162 Author: Karel Zak Date: Mon Dec 2 13:42:01 2013 +0100 script: check that stdin is a terminal Signed-off-by: Karel Zak term-utils/script.c | 4 ++++ 1 file changed, 4 insertions(+) commit 43298be931d6e70f007f025b89b2ff84090be4c9 Author: Karel Zak Date: Mon Dec 2 12:21:47 2013 +0100 setterm: fix -dump man page info It seems that setterm -dump does not dump terminal attributes, but the man page says -dump includes the attributes. Let's fix the man page. Reported-by: Phillip Susi Signed-off-by: Karel Zak term-utils/setterm.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit fba8a535423e80da46e1823b28cd5a400d57d96f Author: Werner Fink Date: Fri Nov 29 16:44:25 2013 +0100 agetty: support the special terminal on first serial line on a S/390 which is due legacy reasons a block terminal of type 3270 or higher. Whereas the second serial line on a S/390(x) is a real character terminal which is compatible with VT220. Signed-off-by: Werner Fink term-utils/agetty.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) commit fb724eef6da94b3267b9dbcbd53fba04999eaa1f Author: Phillip Susi Date: Mon Nov 25 10:35:40 2013 -0500 mount man page cleanups Fowarding this patch submitted by Bjarni Ingi Gislason to deb bug #674595. sys-utils/mount.8 | 68 +++++++++++++++++++++++++++++++------------------------ 1 file changed, 39 insertions(+), 29 deletions(-) commit c4b8d43d1d838e8c98cf67667cd3193696413e15 Author: Phillip Susi Date: Mon Nov 25 10:23:26 2013 -0500 mount.8: fix grammar Switch "A unbindable" to "An unbindable" Reported-by: Regid Ichira Signed-off-by: Phillip Susi sys-utils/mount.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c8e5e6e7323642f7e6f12ee5f5231b0ec44c40ab Author: Dave Reisner Date: Thu Nov 21 12:25:27 2013 -0500 pylibmount: correctly import from pylibmount.so Without this, python is unable to find the module: $ python -c 'import libmount' Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.3/site-packages/libmount/__init__.py", line 1, in from pylibmount import * ImportError: No module named 'pylibmount' Signed-off-by: Dave Reisner libmount/python/libmount/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit cd80445017fcc845eebed534782c6e7f13ef8480 Author: Sami Kerola Date: Wed Nov 20 00:57:04 2013 +0000 namei: align missing files with rest of the print out This change should make namei output more readable when multiple arguments are supplied. The old: $ namei -l /usr/foo f: /usr/foo drwxr-xr-x root root / drwxr-xr-x root root usr foo - No such file or directory The new: $ namei -l /usr/foo f: /usr/foo drwxr-xr-x root root / drwxr-xr-x root root usr foo - No such file or directory Signed-off-by: Sami Kerola misc-utils/namei.c | 9 +++++++++ tests/expected/namei/logic | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) commit f614b73c0eb18b554e950df487f66ed6e13ca0fc Author: Sami Kerola Date: Wed Nov 20 00:57:03 2013 +0000 losetup, agetty: remove unnecessary if's before free() Reference: http://git.savannah.gnu.org/cgit/gnulib.git/tree/build-aux/useless-if-before-free Signed-off-by: Sami Kerola sys-utils/losetup.c | 6 ++---- term-utils/agetty.c | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) commit b37ab36eec4163d127f43ff72bad712fb8f02975 Author: Karel Zak Date: Wed Nov 27 22:04:10 2013 +0100 libfdisk: (dos) warn on type 0 This is old warning, but somehow lost during rewrite to libfdisk. Sorry. Signed-off-by: Karel Zak libfdisk/src/dos.c | 3 +++ 1 file changed, 3 insertions(+) commit 28a5bccc477b9c08df6a32daca501ac40bce0c4a Author: Karel Zak Date: Wed Nov 27 21:42:18 2013 +0100 libfdisk: (dos) fix free part counter Signed-off-by: Karel Zak libfdisk/src/dos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4253275490926cf533bfd0bc33279729e9ff427a Author: Karel Zak Date: Wed Nov 27 16:55:08 2013 +0100 libblkid: fix sgi PT parser to report system partitions ... to be compatible with Linux kernel. Signed-off-by: Karel Zak libblkid/src/partitions/sgi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 6d0ed4cb3801e072dc8a1597650354b71ced5918 Author: Karel Zak Date: Mon Nov 25 13:18:02 2013 +0100 fdisk: (gpt) more human readable info about free space Signed-off-by: Karel Zak libfdisk/src/gpt.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) commit d0a870c5b3f57309edd81021ca4c9174380cfb56 Author: Karel Zak Date: Mon Nov 25 12:00:55 2013 +0100 fdisk: don't care about partition type fdisk allows to overwrite existing partition if the partition has partition type set to zero (very unusual, but possible). This is incorrect because such partition is pretty valid (and Linux kernel does not care about the type at all). For example: Device Boot Start End Blocks Id System /dev/sdb1 2048 22527 10240 83 Linux /dev/sdb2 22528 227327 102400 0 Empty ^^^^^ ^^^^^^^^ Command (m for help): n Partition type: p primary (1 primary, 0 extended, 3 free) e extended Select (default p): Using default response p Partition number (3,4, default 3): First sector (22528-1228799, default 22528): ^^^^^^^ .. if user follows the default then the result are overlapping partitions: Device Boot Start End Blocks Id System /dev/sdb1 2048 22527 10240 83 Linux /dev/sdb2 22528 227327 102400 0 Empty /dev/sdb3 22528 1228799 603136 83 Linux ^^^^^ ... and if you call "mkfs /dev/sdb3" then you lost data on sdb2. Sad thing. Reported-by: Marc MERLIN Signed-off-by: Karel Zak libfdisk/src/dos.c | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) commit 488cc17a992089820fcb26733ffa7c5faf857691 Author: Karel Zak Date: Mon Nov 25 10:58:18 2013 +0100 fdisk: fix nasty coding style Signed-off-by: Karel Zak libfdisk/src/dos.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 38d663a6b30781609a8fdc0e02c0b4b76a2ed240 Author: Karel Zak Date: Tue Nov 19 18:30:40 2013 +0100 fdisk: fix usage(), -l [] Add square brackets, is optional for -l. Reported-by: Phillip Susi Signed-off-by: Karel Zak fdisks/fdisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit d41acf740ecbe0493139582d6833db4f2938cf5d Author: Karel Zak Date: Tue Nov 19 17:55:12 2013 +0100 umount: fix umount by tag for non-roots $ umount LABEL=foo currently does not work for non-root users as umount uses the LABEL= as a path in sanitize_path(). Signed-off-by: Karel Zak sys-utils/umount.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit c1178175e7adb35388a3e34495974d7f24f45d5d Author: Karel Zak Date: Tue Nov 19 17:52:56 2013 +0100 libblkid: fix memory leak in blkid_parse_tag_string() Signed-off-by: Karel Zak libblkid/src/tag.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) commit 6751f0627d9e2fddc63a50b003982ec4bbf0b197 Author: Karel Zak Date: Tue Nov 19 17:44:21 2013 +0100 mount: make NAME=value tags usable for non-root The libmount does not care if we set source or target, it's able to swap it, but the mount.c function sanitize_paths() does not work as expected if we set NAME=value as target. It means that $ mount LABEL=foo does not work for non-root users (since 51e3530cdcb1d4f3ab91ae953ebc5adcdc5f9239, v2.24). This patch also checks if source or target is specified more than once. Signed-off-by: Karel Zak sys-utils/mount.c | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) commit a53cc4e0cb30eb55e5ccbd376d1ea803aefa060d Author: Karel Zak Date: Tue Nov 19 17:41:28 2013 +0100 libmount: add mnt_tag_is_valid() Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 1 + libmount/src/libmount.h.in | 1 + libmount/src/libmount.sym | 4 ++++ libmount/src/utils.c | 17 +++++++++++++++++ 4 files changed, 23 insertions(+) commit 9fbf87830533117de5b63fe1de27809d5ead2289 Author: Phillip Susi Date: Mon Nov 18 14:15:50 2013 -0500 fsck: add ext4 to list of filesystems with progress bars in fsck man page Signed-off-by: Phillip Susi disk-utils/fsck.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2a7b920fd10fcdb15eac1f44320009c0e73b0ad9 Author: Phillip Susi Date: Mon Nov 18 14:00:17 2013 -0500 mount: fix man mount page type Slight grammatical error in the mount man page Signed-off-by: Phillip Susi sys-utils/mount.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit de81a77dea5dcadec068f00d34cf12a55ff9caf2 Author: Karel Zak Date: Tue Nov 19 14:42:22 2013 +0100 setpriv: simplify usage() Let's keep usage() simple and details in the man page. The current brief description in usage() seems confusing for some users. Signed-off-by: Karel Zak sys-utils/setpriv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 89a5263adc2e00abdd9149527abf21dac01f110b Merge: e41e151 247e259 Author: Karel Zak Date: Tue Nov 19 13:17:34 2013 +0100 Merge branch 'fixes' of https://github.com/rudimeier/util-linux * 'fixes' of https://github.com/rudimeier/util-linux: tests: fix fdisk GPT test commit e41e151427b0d7b9d655822b31adbc485220d1e4 Author: Karel Zak Date: Tue Nov 19 13:02:39 2013 +0100 libfdisk: (sgi) generate partname according to partition position The SGI drive currently counts only usable partitions, that's wrong as Linux kernel counts all partition to generate partition number. For example: Kernel: sdb 8:16 0 600M 0 disk ├─sdb9 8:25 0 2M 0 part └─sdb11 8:27 0 596.2M 0 part Fdisk: Pt# Device Info Start End Sectors Id System 9: /dev/sdb1 0 4095 4096 0 SGI volhdr 11: /dev/sdb2 0 1220939 1220940 6 SGI volume Reported-by: Phillip Susi Signed-off-by: Karel Zak libfdisk/src/sgi.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit c07f86e7ac383e195f08617358eb034950b2712a Author: Karel Zak Date: Mon Nov 18 12:50:27 2013 +0100 unshare: add more hints about mount namespaces to the man page There is also idea (by Lennart) to add --propagation=[shared|private|slave|off] to unshare(1), but it seems unnecessary and too complex as everyone can call mount(8) after unshare(1) to setup a proper namespace. Signed-off-by: Karel Zak sys-utils/unshare.1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) commit 71d842c01992b3678de4da4773ed54f08c0ab4f6 Author: Karel Zak Date: Mon Nov 18 11:27:35 2013 +0100 lsblk: fix -D segfault References: https://bugzilla.redhat.com/show_bug.cgi?id=1031262 Signed-off-by: Karel Zak misc-utils/lsblk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 33cac1003af33bf80fb37bc03fd65829bf864407 Author: Karel Zak Date: Mon Nov 18 10:58:41 2013 +0100 mkfs.minix: fix fscanf() format string [coverity scan] Signed-off-by: Karel Zak disk-utils/mkfs.minix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 247e259c0e198600bed22eec8430d72f4f5c60e3 Author: Ruediger Meier Date: Thu Nov 14 12:12:47 2013 +0100 tests: fix fdisk GPT test There was a missing newline since cd05de50. Signed-off-by: Ruediger Meier tests/expected/fdisk/gpt | 1 + 1 file changed, 1 insertion(+) commit 185b1bc7f4efdbca3d40465b85590d000df0f528 Author: Karel Zak Date: Thu Nov 14 14:38:06 2013 +0100 script: restore errno in signal handler References: https://plus.google.com/+LennartPoetteringTheOneAndOnly/posts/gHSscCJkakd Signed-off-by: Karel Zak term-utils/script.c | 3 +++ 1 file changed, 3 insertions(+) commit f630400c4e821d50a2bc7873165c525e25f3f38a Author: Karel Zak Date: Thu Nov 14 14:34:15 2013 +0100 script: don't call TIOCGWINSZ in signal handler Signed-off-by: Karel Zak term-utils/script.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit d9ba898a7ffe0c88b03afa9d72554d455f120ee0 Author: Phillip Susi Date: Wed Nov 13 10:30:52 2013 -0500 mkswap: remove cruft from the man page I don't think there's any reason to continue to mention behavior of kernels older than 10 years. Signed-off-by: Phillip Susi disk-utils/mkswap.8 | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) commit 9167f4c2e822a4eb161efa4d37836fe2323662a4 Author: Phillip Susi Date: Wed Nov 13 10:19:04 2013 -0500 mount: correct mount man page default iso9660 permission The mount man page said the default permissions are read for everyone, but it is in fact, read and execute. Signed-off-by: Phillip Susi sys-utils/mount.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 50bdacb82354e115bf618775ce438cb39d91609b Author: Karel Zak Date: Tue Nov 12 15:49:33 2013 +0100 libmount: cleanup fix_optstr() regards to selinux and smack It's better (more robust) to make the code based on datetypes rather than on if(strcmp(...)). Signed-off-by: Karel Zak libmount/src/context_mount.c | 66 +++++++++++++++++++++++++++++++------------- 1 file changed, 47 insertions(+), 19 deletions(-) commit 413875b649f910ec34c4c3d892d901143d89ac92 Author: Karel Zak Date: Tue Nov 12 15:48:42 2013 +0100 build-sys: add --with-smack to config-gen.d Signed-off-by: Karel Zak tools/config-gen.d/all.conf | 1 + 1 file changed, 1 insertion(+) commit 74aad572e047ebb24c3d033001eab6d833fe02b3 Author: Karel Zak Date: Tue Nov 12 15:17:28 2013 +0100 libmount: fix typo in smack path Signed-off-by: Karel Zak libmount/src/context_mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b8095d25bae0588dfce8a62169f6db5496cf45c5 Author: Karel Zak Date: Tue Nov 12 15:07:12 2013 +0100 libmount: remove smackfs* option when SMACK not enabled If there is no /sys/fs/smackfs then libmount removes smackfs*= mount options when compiled --with-smack. Note that we do the same for SELinux. References: http://www.mail-archive.com/systemd-devel@lists.freedesktop.org/msg13740.html Signed-off-by: Karel Zak configure.ac | 9 +++++++++ libmount/src/context_mount.c | 22 ++++++++++++++++++++++ 2 files changed, 31 insertions(+) commit 3deb67f50d513a1a74a62e8e248357e844e701a2 Author: Karel Zak Date: Tue Nov 12 12:26:13 2013 +0100 sulogin: use dirent->d_type when scans /dev ... it's more effective than call fstatat() for all device. Signed-off-by: Karel Zak login-utils/sulogin-consoles.c | 5 +++++ 1 file changed, 5 insertions(+) commit d8a9b907563ee1ee195d1d5afc2d624dba5f33d0 Author: Sami Kerola Date: Sun Nov 10 20:06:10 2013 +0000 docs: update links to http://git.kernel.org/ web repository views Signed-off-by: Sami Kerola Documentation/howto-contribute.txt | 2 +- README | 2 +- include/blkdev.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 55fb2bc195fa96162ecfbdfd0fa734d55f1a7fd4 Author: Sami Kerola Date: Sun Nov 10 20:06:09 2013 +0000 docs: add patching process to howto-contribute.txt Signed-off-by: Sami Kerola Documentation/howto-contribute.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) commit 9e480be7ac587c3241f66d700807c4ef96fc7032 Author: Karel Zak Date: Mon Nov 11 09:18:18 2013 +0100 chsh, chfn: add info about non-local support to the man pages Signed-off-by: Karel Zak login-utils/chfn.1 | 5 +++-- login-utils/chsh.1 | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) commit 5dc242cc97b2323c2540a7f13be72c678f0b6b58 Author: Karel Zak Date: Fri Nov 8 14:22:35 2013 +0100 tests: update blkid swap tests Signed-off-by: Karel Zak tests/expected/blkid/low-probe-swap0 | 2 +- tests/expected/blkid/low-probe-swap1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit d2740b0ef6c8b7785f575432fb3ae78cdae8f89e Author: Ondrej Oprala Date: Mon Sep 23 15:39:38 2013 +0200 hexdump: catch memory leaks Signed-off-by: Ondrej Oprala text-utils/display.c | 10 +++++++--- text-utils/hexdump.c | 24 ++++++++++++++++++++++++ text-utils/parse.c | 2 +- 3 files changed, 32 insertions(+), 4 deletions(-) commit 3917a95d9065052eb58cf867a54143fe5c0ca50c Author: Ondrej Oprala Date: Mon Sep 23 15:39:37 2013 +0200 hexdump: make addfile() variable names more hinting of their purpose Signed-off-by: Ondrej Oprala text-utils/parse.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 0acd3f5d0f26457ae9ea65358081b3606912875d Author: Ondrej Oprala Date: Mon Sep 23 15:39:36 2013 +0200 hexdump: use skip_space() in add() Signed-off-by: Ondrej Oprala text-utils/parse.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) commit 675de3f5c190cc4fbdf3d05e2b86731a9772398e Author: Ondrej Oprala Date: Mon Sep 23 15:39:34 2013 +0200 strutils: add skip_space() function [kzak@redhat.com: - add also skip_blank(), - remove duplicate implementation from libmount] Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak include/strutils.h | 18 ++++++++++++++++++ libmount/src/tab_parse.c | 17 ++++------------- 2 files changed, 22 insertions(+), 13 deletions(-) commit d01d144c4b91b1d0964cebaabdfe2d57860f4ace Author: Ondrej Oprala Date: Mon Sep 23 15:39:32 2013 +0200 hexdump: rename in() to first_letter() Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak text-utils/parse.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) commit cb986008310b702558c27f8ff4d0724446f7a9fd Author: Ondrej Oprala Date: Mon Sep 23 15:39:31 2013 +0200 hexdump: get rid of redundant typecasts Signed-off-by: Ondrej Oprala text-utils/conv.c | 4 ++-- text-utils/parse.c | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) commit cda433918e35c300862ae7e3c901235603eb8740 Author: Ondrej Oprala Date: Mon Sep 23 15:39:30 2013 +0200 hexdump: minor formatting improvements in display() Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak text-utils/display.c | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) commit f65e62e0abe873e8df23f4070c9bfd6a94755ea7 Author: Ondrej Oprala Date: Mon Sep 23 15:39:29 2013 +0200 hexdump: rewrite cluttered case statements [kzak@redhat.com: - use strchr() for in() macro] Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak text-utils/parse.c | 237 +++++++++++++++++++++++------------------------------ 1 file changed, 104 insertions(+), 133 deletions(-) commit 53a9a9939e40162e200ca2910b3ac0bcaf5ecb15 Author: Ondrej Oprala Date: Mon Sep 23 15:39:27 2013 +0200 hexdump: use xasprintf in conv_c() Signed-off-by: Ondrej Oprala text-utils/conv.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 5988eede0d4078469416f4d696bcebe85d8b5f9a Author: Ondrej Oprala Date: Mon Sep 23 15:39:26 2013 +0200 hexdump: delete redundant typecasts Signed-off-by: Ondrej Oprala text-utils/display.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) commit 961b4cd6427d749207e037898ac4a6affa7767c8 Author: Ondrej Oprala Date: Mon Sep 23 15:39:24 2013 +0200 hexdump: use GNU case ranges where possible Signed-off-by: Ondrej Oprala text-utils/parse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit bec2d4582f9fe4b467709501e91e804ec1c5d21e Author: Ondrej Oprala Date: Mon Sep 23 15:39:23 2013 +0200 hexdump: use xstrncpy in add() Signed-off-by: Ondrej Oprala text-utils/parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 2f83c8f032f71fb6ab5d01ad81e805e078dd7fd8 Author: Ondrej Oprala Date: Mon Sep 23 15:39:22 2013 +0200 hexdump: simplify newsyntax arguments Signed-off-by: Ondrej Oprala text-utils/hexdump.c | 2 +- text-utils/hexdump.h | 2 +- text-utils/hexsyntax.c | 8 +++----- 3 files changed, 5 insertions(+), 7 deletions(-) commit acf74fc29d9f6fa71d764537b846e26617d7b036 Author: Ondrej Oprala Date: Mon Sep 23 15:39:21 2013 +0200 hexdump: minor formatting improvements Signed-off-by: Ondrej Oprala text-utils/parse.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) commit bbc8c1531f63e452b40b02cd8f2dcec107d4bf94 Author: Ondrej Oprala Date: Mon Sep 23 15:39:20 2013 +0200 hexdump: rename next{fs,fu,pr} to {fs,fu,pr}list Signed-off-by: Ondrej Oprala text-utils/display.c | 14 +++++++------- text-utils/hexdump.c | 4 ++-- text-utils/hexdump.h | 10 +++++----- text-utils/parse.c | 38 +++++++++++++++++++------------------- 4 files changed, 33 insertions(+), 33 deletions(-) commit 96ea3d3200d9ed7f135d41815b312f11d086dc29 Author: Ondrej Oprala Date: Mon Sep 23 15:39:19 2013 +0200 hexdump: rewrite addfile() to use getline() Signed-off-by: Ondrej Oprala text-utils/parse.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) commit d6e5614e5d7ad07e3290c808f14b8e7a4e93acdd Author: Ondrej Oprala Date: Mon Sep 23 15:39:18 2013 +0200 hexdump: formatting and variable name cleanup Signed-off-by: Ondrej Oprala text-utils/conv.c | 14 +++++++------- text-utils/display.c | 14 +++++++++++--- text-utils/hexdump.c | 6 ++---- text-utils/hexsyntax.c | 14 +++++++------- text-utils/parse.c | 12 ++++++------ 5 files changed, 33 insertions(+), 27 deletions(-) commit dabfe2ad7cecaa90a492811f4a95faba726d218f Author: Ondrej Oprala Date: Mon Sep 23 15:39:17 2013 +0200 hexdump: rewrite() formatting improvements Signed-off-by: Ondrej Oprala text-utils/parse.c | 57 +++++++++++++++++++++++++++--------------------------- 1 file changed, 28 insertions(+), 29 deletions(-) commit 9c2cb9b0ea6b26e617a293f6dba2ff54bd7c047b Author: Ondrej Oprala Date: Mon Sep 23 15:39:16 2013 +0200 hexdump: rewrite escape() Signed-off-by: Ondrej Oprala text-utils/parse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit eef27d32fafe20503cbbcbcc2e601c93f713534a Author: Ondrej Oprala Date: Mon Sep 23 15:39:15 2013 +0200 hexdump: rewrite rewrite() Signed-off-by: Ondrej Oprala text-utils/parse.c | 227 ++++++++++++++++++++++++++++------------------------- 1 file changed, 122 insertions(+), 105 deletions(-) commit 7e6e290be95b4e320ebad3ea7cfb768b3e0cc700 Author: Ondrej Oprala Date: Mon Sep 23 15:39:14 2013 +0200 hexdump:rewrite add() Signed-off-by: Ondrej Oprala text-utils/parse.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) commit c889d52510b1351e4366474fd4255c99bb05e486 Author: Ondrej Oprala Date: Mon Sep 23 15:39:13 2013 +0200 hexdump: rewrite next() Signed-off-by: Ondrej Oprala text-utils/display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f77ad413660e9daafe7b3602ba4f10a868f17077 Author: Ondrej Oprala Date: Mon Sep 23 15:39:12 2013 +0200 hexdump: rewrite get() Signed-off-by: Ondrej Oprala text-utils/display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 89dd9eb3b4f58a1b920c4e53a6fd0062e49f936e Author: Ondrej Oprala Date: Mon Sep 23 15:39:11 2013 +0200 hexdump: rewrite addfile() Signed-off-by: Ondrej Oprala text-utils/parse.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) commit cbc6c0da30e2e150855d5810affabaa0793ba91f Author: Ondrej Oprala Date: Mon Sep 23 15:39:10 2013 +0200 hexdump: cleanup of redundant symbols/repeating literals Signed-off-by: Ondrej Oprala text-utils/display.c | 38 +++++++++++++++++++------------------- text-utils/hexdump.c | 2 +- text-utils/hexsyntax.c | 13 +++++++------ 3 files changed, 27 insertions(+), 26 deletions(-) commit 9db5120719a4ff650f2e8b9c3c4081ee46f6f374 Author: Ondrej Oprala Date: Mon Sep 23 15:39:09 2013 +0200 hexdump: use list.h queues and rewrite redundant for cycles Signed-off-by: Ondrej Oprala text-utils/display.c | 64 +++++++++++++--------- text-utils/hexdump.c | 21 +++++--- text-utils/hexdump.h | 14 ++--- text-utils/hexsyntax.c | 2 +- text-utils/parse.c | 144 +++++++++++++++++++++++++++---------------------- 5 files changed, 141 insertions(+), 104 deletions(-) commit bea5774c5bc7af712e0e6c46bfe79e9e3643910b Author: Ondrej Oprala Date: Mon Sep 23 15:39:40 2013 +0200 hexdump: add basic tests Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak tests/expected/hexdump/empty-format | 1 - tests/expected/hexdump/format-strings-1b_char | 41 ++++++++++++++ tests/expected/hexdump/format-strings-1b_octal | 41 ++++++++++++++ tests/expected/hexdump/format-strings-2b_dec | 41 ++++++++++++++ tests/expected/hexdump/format-strings-2b_hex | 41 ++++++++++++++ tests/expected/hexdump/format-strings-2b_octal | 41 ++++++++++++++ tests/expected/hexdump/format-strings-canon | 41 ++++++++++++++ tests/expected/hexdump/format-strings-empty-format | 1 + tests/ts/hexdump/empty-format | 26 --------- tests/ts/hexdump/files/ascii.in | Bin 0 -> 640 bytes tests/ts/hexdump/format-strings | 60 +++++++++++++++++++++ 11 files changed, 307 insertions(+), 27 deletions(-) commit 856ee0ba61003c9fb7183fc780142baf25d81a6d Author: Phillip Susi Date: Fri Nov 8 10:12:17 2013 +0100 blkid: simple typo Signed-off-by: Karel Zak misc-utils/blkid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2b70f02252971af698038783f043d26d09a95ad6 Author: Karel Zak Date: Fri Nov 8 10:00:43 2013 +0100 docs: add note about make distcheck Signed-off-by: Karel Zak Documentation/release-schedule.txt | 2 ++ 1 file changed, 2 insertions(+) commit 1c9885cde853a458b5abe5ce0804abc27caf4fd4 Author: Karel Zak Date: Thu Nov 7 14:07:17 2013 +0100 blkid: escape quotes in the output # e2label /dev/loop0 'La"bel' # blkid -p /dev/loop0 /dev/loop0: LABEL="La"bel" .... new version: /dev/loop0: LABEL="La\"bel" .... Reported-by: Phillip Susi Signed-off-by: Karel Zak misc-utils/blkid.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) commit 485517de72057c90eaa49867bcc2a0c63d7506f3 Author: Karel Zak Date: Tue Nov 5 12:49:20 2013 +0100 tests: add sparc64 lscpu test Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-sparc64 | 17 +++++++++++++++++ tests/ts/lscpu/dumps/sparc64.tar.gz | Bin 0 -> 2756 bytes 2 files changed, 17 insertions(+) commit 4f64286321162f6919abc2cf3a0cc0472e68398c Author: Alexander Troosh Date: Tue Nov 5 10:16:38 2013 +0100 lscpu: support non sequentially numbering of CPUs lscpu don't work correctly on my system with: $ cat /sys/devices/system/cpu/possible 0-1,4-5,8-9,12-13 [kzak@redhat.com: - coding style, - add commit message - add real_cpu_num() macro, - fix functions where we need idx as well as CPU number] Signed-off-by: Karel Zak sys-utils/lscpu.1 | 3 ++ sys-utils/lscpu.c | 133 ++++++++++++++++++++++++++++++++++-------------------- 2 files changed, 87 insertions(+), 49 deletions(-) commit 569d1dac7bc64457aac11163b6a91ce9b41a6715 Author: Phillip Susi Date: Fri Nov 1 13:37:05 2013 -0400 blockdev: don't use HDIO_GETGEO blockdev was still using this depreciated ioctl and that was causing blockdev --report to fail on loop and nbd devices. Switch to reading the partition start from sysfs instead. This also allows it to correctly report > 2^32 sector counts. [kzak@redhat.com: - check sysfs_init() return, - use uint64_t rather than unsigned long long] Signed-off-by: Phillip Susi Signed-off-by: Karel Zak disk-utils/blockdev.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) commit 88839459571a3e138bbf707b865d3d84de28e496 Author: Theodore Ts'o Date: Sat Nov 2 19:46:06 2013 -0400 blkdiscard: BLKSSZGET fills in an int, not a uint64 Reported-by: Jason Cipriani Signed-off-by: "Theodore Ts'o" sys-utils/blkdiscard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 7e0c06194f5e65eb2a9ae38515d78f4ef301c809 Author: Karel Zak Date: Mon Nov 4 12:45:33 2013 +0100 libmount: update utab after successful extern helper mount This patch allows to maintain private utab libmount file also for external mount/umount helpers that are not linked with libmount. The libmount check if utab has been updated after successful extern helper execution (status=0). If not then the file is updated. This patch affects only 'user' fstab mount option. So, for example with suid mount.cifs you can use: //server/foo /mnt cifs username=foo,noauto,user Signed-off-by: Karel Zak libmount/src/context.c | 30 +++++++++++++++-------- libmount/src/mountP.h | 2 ++ libmount/src/tab_update.c | 62 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+), 10 deletions(-) commit 889fc9fe3ab3197cbe6a2e53fcc8c0fd96bc5b12 Author: Karel Zak Date: Mon Nov 4 10:50:48 2013 +0100 libmount: allow to use -s (sloppy) for all external helpers Signed-off-by: Karel Zak libmount/src/context_mount.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) commit 50cb6c0e27edaa04d40d91536d64a7e3218a6335 Author: Karel Zak Date: Mon Nov 4 09:59:54 2013 +0100 libblkid: fix swap-area version * v1: hdr->version = 1, magic string = SWAPSPACE2 * v0: no versio in header, magic string = SWAP-SPACE The mistake has been introduced in the old udev volume_id binary where the version was set according to magic string. Reported-by: Phillip Susi Signed-off-by: Karel Zak libblkid/src/superblocks/swap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 36da6b64c437680bdf58717bf907d23e2a66a406 Author: Karel Zak Date: Fri Nov 1 12:15:25 2013 +0100 libfdisk: (sun) fix end sectors with +1 error partx (or parted, etc.): NR START END SECTORS SIZE NAME UUID 1 0 410047 410048 200.2M 2 410048 82329055 81919008 39.1G 4 82329056 102807615 20478560 9.8G 5 102807616 110999039 8191424 3.9G 6 110999040 312580543 201581504 96.1G and the same with fdisk: Device Flag Start End Blocks Id System /dev/loop0p1 0 410048 205024 1 Boot /dev/loop0p2 410048 82329056 40959504 83 Linux native /dev/loop0p3 0 312580544 156290272 5 Whole disk /dev/loop0p4 82329056 102807616 10239280 83 Linux native /dev/loop0p5 102807616 110999040 4095712 83 Linux native /dev/loop0p6 110999040 312580544 100790752 8e Linux LVM Reported-by: Phillip Susi Signed-off-by: Karel Zak libfdisk/src/sun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5875c5065851dc2d2d3f675e07c0ef530ddb7e4b Author: Karel Zak Date: Thu Oct 31 10:44:33 2013 +0100 mount: improve -s man mage info Signed-off-by: Karel Zak sys-utils/mount.8 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) commit e49874e24c31f0ff1f6cc2a4de5cca122b713236 Author: Karel Zak Date: Thu Oct 31 08:53:03 2013 +0100 libfdisk: (gpt) add /home GUID Reported-by: andreas.hanke@gmx-topmail.de References: http://cgit.freedesktop.org/systemd/systemd/commit/?id=1a14a53cfded6e78c6e8dfb73fdff0039971d642 Signed-off-by: Karel Zak libfdisk/src/gpt.c | 1 + 1 file changed, 1 insertion(+) commit 433d05ff9afeb4a374943cb35d1b8b19613c8039 Author: Karel Zak Date: Wed Oct 23 16:59:45 2013 +0200 libfdisk: (gpt) allow to work with hybrid GPT Notes: * fdisk don't sync hybrid MBR with GPT * hybrid MBR is ignored and not overwritten by PBMR * users is informed about expert command 'M' to toggle between MBR and GPT mode. It's possible to manually modify hybrid MBR. Signed-off-by: Karel Zak fdisks/fdisk.c | 6 +++++- libfdisk/src/dos.c | 6 +++++- libfdisk/src/gpt.c | 18 +++++++++++++----- libfdisk/src/libfdisk.h | 1 + 4 files changed, 24 insertions(+), 7 deletions(-) commit 45ddb828ed7eef92db34841c9d583047b6a6c65e Author: Karel Zak Date: Wed Oct 23 12:06:47 2013 +0200 libfdisk: (gpt) improve and cleanup recovery code * use AlternativeLBA rather than hardcoded offset to backup GPT * create gpt_copy_header() Signed-off-by: Karel Zak libfdisk/src/gpt.c | 71 ++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 56 insertions(+), 15 deletions(-) commit cd05de50137e5fd7623bfbc0aaed04af5321a7ed Author: Karel Zak Date: Wed Oct 23 10:44:58 2013 +0200 tests: test corruted GPT headers Signed-off-by: Karel Zak tests/expected/fdisk/gpt | 43 +++++++++++++++++++++++++++++++++++++++++++ tests/ts/fdisk/gpt | 15 ++++++++++++++- 2 files changed, 57 insertions(+), 1 deletion(-) commit d2d9efa103a744363bd000e075435341c5256c8a Author: Karel Zak Date: Wed Oct 23 10:27:39 2013 +0200 libfdisk: (gpt) recover from corrupted primary/backup PT We already have all code to support this feature, unfortunately it was not used in gpt_probe_label()... References: https://bugzilla.redhat.com/show_bug.cgi?id=1022217 Signed-off-by: Karel Zak libfdisk/src/gpt.c | 44 ++++++++++++++++++++++++++++++++------------ 1 file changed, 32 insertions(+), 12 deletions(-) commit 49807b316ace35c985dd267f3ade0073b3f9543a Author: Karel Zak Date: Fri Oct 18 13:53:14 2013 +0200 docs: update TODO, wipe check for fdisk already implemented Note that rather than implement wipe command in fdisk it's better inform users to call wipefs(8). Signed-off-by: Karel Zak Documentation/TODO | 3 --- 1 file changed, 3 deletions(-) commit 6e876a98ac181bf8f542bbd2c59e91fcdb7ac872 Author: Karel Zak Date: Fri Oct 18 13:52:18 2013 +0200 libfdisk: warn about obsolete signatures on the device Signed-off-by: Karel Zak libfdisk/src/context.c | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) commit 2d8988bd262c1f0cb32590299c5554d306b5a0e1 Author: Karel Zak Date: Fri Oct 18 13:52:10 2013 +0200 fdisk: reorder intro warnings Signed-off-by: Karel Zak fdisks/fdisk.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit f362d863c477c80c8c791c1f3547953344563c2f Author: Karel Zak Date: Wed Oct 16 15:30:43 2013 +0200 fdisk: (gpt) add A,B,R,S expert commands to modify attributes Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) commit c83f772efde4f476d313d640ca9640fb52733fd0 Author: Karel Zak Date: Wed Oct 16 15:28:32 2013 +0200 libfdisk: support extended attributes modification * GPT attributes defined by standard (e.g. legacy boot etc.) * attributes (bits 48-63) reserved for GUID specific attributes (used for example by MS Windows) Signed-off-by: Karel Zak libfdisk/src/gpt.c | 123 ++++++++++++++++++++++++++++++++++++++++++++++++ libfdisk/src/libfdisk.h | 7 +++ 2 files changed, 130 insertions(+) commit f736ae51177bd41d4794b69f81cfefb1e68006df Author: Karel Zak Date: Wed Oct 16 12:13:34 2013 +0200 libfdisk: (dos) be more verbose when change bootable flag Signed-off-by: Karel Zak libfdisk/src/dos.c | 5 +++++ 1 file changed, 5 insertions(+) commit 48d4d931592b96081c426db048df3b8742c9d464 Author: Karel Zak Date: Tue Oct 15 13:26:12 2013 +0200 fdisk: fix printf stuff Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 20 ++++++++++---------- fdisks/fdisk-menu.c | 4 ++-- fdisks/fdisk.c | 5 ++--- 3 files changed, 14 insertions(+), 15 deletions(-) commit 829f4206fc002f2eec21cf9ea425729c22d12f2f Author: Karel Zak Date: Tue Oct 15 13:26:04 2013 +0200 libfdisk: fix printf stuff Signed-off-by: Karel Zak libfdisk/src/ask.c | 4 +-- libfdisk/src/bsd.c | 4 +-- libfdisk/src/dos.c | 84 ++++++++++++++++++++++++------------------------- libfdisk/src/gpt.c | 14 ++++----- libfdisk/src/libfdisk.h | 2 +- libfdisk/src/sgi.c | 2 +- libfdisk/src/sun.c | 25 +++++++-------- 7 files changed, 67 insertions(+), 68 deletions(-) commit f92e1810348a3fdd9b1e10db39db1b26ded076cd Author: Karel Zak Date: Thu Oct 10 12:43:10 2013 +0200 fdisk: add 'M' to access GPT nested protective/hybrid MBR Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 88 ++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 71 insertions(+), 17 deletions(-) commit d17c584ac121f61be265c3c16f07edd05a17433e Author: Karel Zak Date: Thu Oct 10 12:42:18 2013 +0200 libfdisk: support nested MBR Signed-off-by: Karel Zak libfdisk/src/context.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) commit e0e9ff9e9f52c80aaa476724c88259593536b94a Author: Karel Zak Date: Tue Oct 22 12:03:52 2013 +0200 tests: add TERM= to all cal(1) tests Signed-off-by: Karel Zak tests/ts/cal/1m | 1 + tests/ts/cal/1mw | 1 + tests/ts/cal/3m | 1 + tests/ts/cal/bigyear | 1 + tests/ts/cal/bigyearw | 1 + tests/ts/cal/sep1752 | 1 + tests/ts/cal/sep1752w | 1 + tests/ts/cal/weekarg | 1 + tests/ts/cal/weeknum | 1 + tests/ts/cal/year | 1 + tests/ts/cal/yearw | 1 + 11 files changed, 11 insertions(+) commit c1732e62345b366b9865e6e17a0d1c998a53b0e8 Author: Karel Zak Date: Tue Oct 22 11:54:42 2013 +0200 cal: fix coding style - mostly space around operators - split yearly(), move weeknum stuff to append_wnum() Signed-off-by: Karel Zak misc-utils/cal.c | 188 +++++++++++++++++++++++++++++++------------------------ 1 file changed, 107 insertions(+), 81 deletions(-) commit af7c483e62128a59852da2603a94db4b7738f1b6 Author: Tommi Kyntola Date: Mon Oct 7 20:57:28 2013 +0300 cal: remove optional from short arg -w The long option --week still has the optional argument as --week= This was suggested on the mailing list by Padraig Brady and I do agree with that. Actually, the whole idea of --week= came from him. Signed-off-by: Tommi Kyntola misc-utils/cal.1 | 2 +- misc-utils/cal.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit aae4f87e6892f7bbda82444f2dbf38bc83aa1fce Author: Tommi Kyntola Date: Mon Oct 7 14:32:23 2013 +0300 cal: added argument option for -w|--week to display that week Because many years have two sections of week 52 or 53, the week that this argument points to is the one that starts during that year (when available). The week number in argument is also highlighted in addition to possibly visible current/defined date highlighting. Signed-off-by: Tommi Kyntola misc-utils/cal.1 | 2 +- misc-utils/cal.c | 115 +++++++++++++++++++++++++++++++++------ tests/expected/cal/weekarg | 127 +++++++++++++++++++++++++++++++++++++++++++ tests/ts/cal/weekarg | 131 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 358 insertions(+), 17 deletions(-) commit db652f617e7efc0709b272198ac0acf041ffc1d4 Author: Tommi Kyntola Date: Sun Oct 6 21:45:53 2013 +0300 cal: various tests for week numbers Current tests were replicated with week numbers and some additional tests for week numbering corner cases were added, too. Signed-off-by: Tommi Kyntola tests/expected/cal/1mw | 37 ++ tests/expected/cal/3mw | 37 ++ tests/expected/cal/bigyearw | 257 ++++++++ tests/expected/cal/colorw | 55 ++ tests/expected/cal/sep1752w | 249 ++++++++ tests/expected/cal/weeknum | 1485 +++++++++++++++++++++++++++++++++++++++++++ tests/expected/cal/yearw | 177 ++++++ tests/ts/cal/1mw | 59 ++ tests/ts/cal/3mw | 58 ++ tests/ts/cal/bigyearw | 96 +++ tests/ts/cal/colorw | 71 +++ tests/ts/cal/sep1752w | 96 +++ tests/ts/cal/weeknum | 87 +++ tests/ts/cal/yearw | 58 ++ 14 files changed, 2822 insertions(+) commit c36c4a4e4d3e701f378f4bea15a6320a4447da89 Author: Tommi Kyntola Date: Sun Oct 6 21:44:45 2013 +0300 cal: added -w|--week for showing week numbers Added week numbers both in ISO-6801 and North America numbering. The mode is determined by first day of the week, Monday for ISO and Sunday for North America mode. ISO week numbers are defined as the first Thursday being part of week 1. The North America numbering is defined, at least by gcal, as first Sunday being in the first week. Signed-off-by: Tommi Kyntola bash-completion/cal | 2 +- misc-utils/cal.1 | 9 ++++ misc-utils/cal.c | 141 +++++++++++++++++++++++++++++++++++++++++----------- 3 files changed, 122 insertions(+), 30 deletions(-) commit a2c047e01799691bee765f13057f495bb43729e9 Author: Tommi Kyntola Date: Sat Oct 5 21:53:17 2013 +0300 cal: added two missing tests Bigyear and Sep1752 lacked their were missing their last intended tests along with their expected outputs. Signed-off-by: Tommi Kyntola tests/expected/cal/bigyear | 51 ++++++++++++++++++++++++++++++++++++++++++++++ tests/expected/cal/sep1752 | 51 ++++++++++++++++++++++++++++++++++++++++++++++ tests/ts/cal/bigyear | 1 + tests/ts/cal/sep1752 | 1 + 4 files changed, 104 insertions(+) commit 5bdc3754d1df3098c3e946ed0218ac9b4fe356e6 Author: Jari Aalto Date: Tue Jun 18 18:02:40 2013 +0300 pg.1: Move (plus) options near (minus) option at the beginning text-utils/pg.1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) commit 21c6bcbd31fe108c0a767fb0a32b51d644212d82 Author: Jari Aalto Date: Tue Jun 18 18:01:13 2013 +0300 pg.1: Add -h, --help, -V, --version text-utils/pg.1 | 6 ++++++ 1 file changed, 6 insertions(+)