Changes between v2.27.1 and v2.28-rc1 -------------------------------------------- commit 8c97556ecfc0af358d35dc7a842aaadde5eeafd3 Author: Karel Zak Date: Fri Mar 11 11:41:05 2016 +0100 build-sys: release++ (v2.28-rc1) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit ec9538250cde31be6ac522609624148a4b2d2f71 Author: Karel Zak Date: Fri Mar 11 11:39:28 2016 +0100 docs: update v2.28-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.28-ReleaseNotes | 597 ++++++++++++++++++++++++++++++ 1 file changed, 597 insertions(+) commit 074c921a4fc83d21a0a061d553554abd668e1f52 Author: Karel Zak Date: Thu Mar 10 15:28:28 2016 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) commit b5ef1472826302603e2c65da2fcaa94aa971cba8 Author: Karel Zak Date: Thu Mar 10 15:19:25 2016 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 5229 ++++++++++++++++++++++++++--------------------- po/cs.po | 5339 ++++++++++++++++++++++++++---------------------- po/da.po | 5355 ++++++++++++++++++++++++++---------------------- po/de.po | 5340 ++++++++++++++++++++++++++---------------------- po/es.po | 5348 ++++++++++++++++++++++++++---------------------- po/et.po | 5214 +++++++++++++++++++++++++--------------------- po/eu.po | 5220 +++++++++++++++++++++++++--------------------- po/fi.po | 5233 ++++++++++++++++++++++++++--------------------- po/fr.po | 5310 +++++++++++++++++++++++++---------------------- po/gl.po | 5124 +++++++++++++++++++++++++--------------------- po/hr.po | 5101 ++++++++++++++++++++++++--------------------- po/hu.po | 5235 ++++++++++++++++++++++++++--------------------- po/id.po | 5226 ++++++++++++++++++++++++++--------------------- po/it.po | 5230 ++++++++++++++++++++++++++--------------------- po/ja.po | 5346 ++++++++++++++++++++++++++---------------------- po/nl.po | 5318 +++++++++++++++++++++++++---------------------- po/pl.po | 5310 +++++++++++++++++++++++++---------------------- po/pt_BR.po | 5365 ++++++++++++++++++++++++++---------------------- po/ru.po | 5778 ++++++++++++++++++++++++++------------------------- po/sl.po | 5229 ++++++++++++++++++++++++++--------------------- po/sv.po | 5229 ++++++++++++++++++++++++++--------------------- po/tr.po | 5223 +++++++++++++++++++++++++--------------------- po/uk.po | 5350 ++++++++++++++++++++++++++---------------------- po/util-linux.pot | 5059 ++++++++++++++++++++++++--------------------- po/vi.po | 5318 +++++++++++++++++++++++++---------------------- po/zh_CN.po | 5906 ++++++++++++++++++++++++++--------------------------- po/zh_TW.po | 5278 ++++++++++++++++++++++++++--------------------- 27 files changed, 77789 insertions(+), 65424 deletions(-) commit befa46018eebf7025353890e0882706a1cadc7ca Author: Wylmer Wang Date: Thu Mar 10 14:39:45 2016 +0100 po: update zh_CN.po (from translationproject.org) po/zh_CN.po | 1778 ++++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 1146 insertions(+), 632 deletions(-) commit 7f7915632f4f82d1c23bce5f727a879bc31443bb Author: Evgeniy Yakushev Date: Thu Mar 10 14:39:45 2016 +0100 po: update ru.po (from translationproject.org) po/ru.po | 8461 ++++++++++++++++++-------------------------------------------- 1 file changed, 2379 insertions(+), 6082 deletions(-) commit 761352568e979b6fb40d3818765d4928c50e28a6 Author: Rafael Fontenelle Date: Thu Mar 10 14:39:45 2016 +0100 po: update pt_BR.po (from translationproject.org) po/pt_BR.po | 3350 +++++++++++++++++++++++++++-------------------------------- 1 file changed, 1505 insertions(+), 1845 deletions(-) commit b64eb0055c426f440c5c756c7e7315cd509d970b Author: Philipp Thomas Date: Thu Mar 10 14:39:45 2016 +0100 po: update de.po (from translationproject.org) po/de.po | 2173 ++++++++++++++++++++++++++------------------------------------ 1 file changed, 925 insertions(+), 1248 deletions(-) commit cf212426fda9daab3886fc99a7ab4d4bf3073027 Author: Petr Písař Date: Thu Mar 10 14:39:45 2016 +0100 po: update cs.po (from translationproject.org) po/cs.po | 1413 +++++++++++++++++++++++++++----------------------------------- 1 file changed, 619 insertions(+), 794 deletions(-) commit 9904521903b36595981b6de14567d64dba9c3b46 Author: Karel Zak Date: Thu Mar 10 14:33:45 2016 +0100 logger: keep man page consistent and use \- everywhere Signed-off-by: Karel Zak misc-utils/logger.1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) commit 8e2e9144ef8b7bbe9d7a97244567bad608784ef2 Author: Karel Zak Date: Thu Mar 10 14:30:32 2016 +0100 misc: remove duplicate includes Signed-off-by: Karel Zak disk-utils/sfdisk.c | 1 - misc-utils/logger.c | 1 - 2 files changed, 2 deletions(-) commit 63bae2279a792feeca7b41961e74b2061b4b9664 Author: Karel Zak Date: Thu Mar 10 14:28:30 2016 +0100 tests: update build-sys tests Signed-off-by: Karel Zak tests/expected/build-sys/config-all | 3 ++- tests/expected/build-sys/config-all-non-nls | 3 ++- tests/expected/build-sys/config-audit | 3 ++- tests/expected/build-sys/config-chfnsh-libuser | 3 ++- tests/expected/build-sys/config-chfnsh-no-password | 3 ++- tests/expected/build-sys/config-chfnsh-pam | 3 ++- tests/expected/build-sys/config-core | 3 ++- tests/expected/build-sys/config-devel | 3 ++- tests/expected/build-sys/config-devel-non-docs | 3 ++- tests/expected/build-sys/config-non-libblkid | 3 ++- tests/expected/build-sys/config-non-libmount | 3 ++- tests/expected/build-sys/config-non-libsmartcols | 2 +- tests/expected/build-sys/config-non-libuuid | 1 + tests/expected/build-sys/config-non-nls | 3 ++- tests/expected/build-sys/config-selinux | 3 ++- tests/expected/build-sys/config-slang | 3 ++- tests/expected/build-sys/config-static | 3 ++- 17 files changed, 32 insertions(+), 16 deletions(-) commit 5bb1d22e8a64281fdbc9b10e3df24b3721f19f8b Author: Karel Zak Date: Thu Mar 10 13:54:15 2016 +0100 build-sys: fix if..endif for *_la_LDFLAGS Signed-off-by: Karel Zak libblkid/src/Makemodule.am | 7 +++---- libfdisk/src/Makemodule.am | 8 ++++---- libmount/src/Makemodule.am | 8 ++++---- libsmartcols/src/Makemodule.am | 7 +++---- libuuid/src/Makemodule.am | 8 ++++---- 5 files changed, 18 insertions(+), 20 deletions(-) commit e6bc81500fbfed0291282c8da0677e60eff4fcd0 Merge: 95aae4f 370d31f Author: Karel Zak Date: Thu Mar 10 12:49:49 2016 +0100 Merge branch 'test-btrfs' of https://github.com/rudimeier/util-linux commit 95aae4fcee79958f56c77b934fcbb048ae25f6fb Author: Karel Zak Date: Thu Mar 10 12:26:43 2016 +0100 sfdisk, fdisk: add fflush() Let's add fflush(stdout) before we print to stderr to make output order more deterministic. Signed-off-by: Karel Zak disk-utils/fdisk.c | 2 ++ disk-utils/sfdisk.c | 2 ++ tests/expected/sfdisk/dos-explicit-size | 14 +++++++------- tests/expected/sfdisk/dos-read-dump | 4 ++-- tests/expected/sfdisk/gpt-list-pmbr | 2 +- 5 files changed, 14 insertions(+), 10 deletions(-) commit c59409b945bc2fcadf32c75855f432a2fec24683 Author: Stanislav Brabec Date: Wed Mar 9 20:52:46 2016 +0100 libmount: Typo fix libmount/src/tab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 9b480fe67b0641cd8dbb0ef3cedb7c4666f5b209 Author: Karel Zak Date: Wed Mar 9 15:51:28 2016 +0100 look: consider blanks as directory characters This change introduces regression, but it seems better than to be incompatible with "sort -d" if we assume that "sort -d" is the right way how to prepare files for look(1). It seems (from man page) that the original goal has been compatibility with sort -d, but this feature has never been fully implemented. Addresses: https://github.com/karelzak/util-linux/issues/284 Signed-off-by: Karel Zak misc-utils/look.1 | 16 ++++++++-------- misc-utils/look.c | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) commit 370d31f7241d776c97826f0920d8fd2300dd1fc8 Author: Ruediger Meier Date: Wed Mar 9 11:30:53 2016 +0000 tests: skip btrfs tests if version too old Noticed on Debian 7 (Wheezy), btrfs-tools 0.19: btrfs inspect-internal: unknown token 'rootid' CC: Stanislav Brabec Signed-off-by: Ruediger Meier tests/ts/mount/fstab-btrfs | 4 ++++ 1 file changed, 4 insertions(+) commit edcf032b30994256f79d531e92b4a51a4f720e78 Merge: 322e553 8d323f0 Author: Karel Zak Date: Wed Mar 9 15:08:50 2016 +0100 Merge branch 'test-fixes' of https://github.com/rudimeier/util-linux * 'test-fixes' of https://github.com/rudimeier/util-linux: tests: fix non-working udevadm settle for scsi_debug tests: hotfix, wait for scsi_debug partion tests: don't use mkfs.btrfs option -f tests: ignore swapon warnings tests: udevadm settle before losetup -d commit 8d323f0dd6863c8705fc1939faef6a228f05ccc7 Author: Ruediger Meier Date: Wed Mar 9 11:26:38 2016 +0000 tests: fix non-working udevadm settle for scsi_debug We don't sleep anymore since 01b38917. This does not work on Debian 7 (wheezy)/linux-3.2. Is it the kernel's or udev's fault? We simmply add a better sleep again plus some todos for later improvements. Signed-off-by: Ruediger Meier tests/functions.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) commit 6c5fbca17a7a1f6b2520eaf35a3250d2823d2701 Author: Ruediger Meier Date: Wed Mar 9 13:08:03 2016 +0000 tests: hotfix, wait for scsi_debug partion Maybe we shouldn't use scsi_debug's num_parts=1 but fdisk to add a partion. This seems to work better with udevadm settle. Signed-off-by: Ruediger Meier tests/ts/minix/mkfs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 1c280706932d5cae1384f7118f65e56db6dde1aa Author: Ruediger Meier Date: Wed Mar 9 11:30:53 2016 +0000 tests: don't use mkfs.btrfs option -f btrfs-tools 0.19 does not have option -f but looks like we don't need it in this test. CC: Stanislav Brabec Signed-off-by: Ruediger Meier tests/ts/mount/fstab-btrfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 322e553a1c9b7958f53dcbde17b3b2c4ffe428e9 Merge: b31fd51 056e622 Author: Karel Zak Date: Wed Mar 9 13:12:50 2016 +0100 Merge branch 'port-osx' of https://github.com/rudimeier/util-linux * 'port-osx' of https://github.com/rudimeier/util-linux: fdisk: fix warning, uninitialized variable logger: fix compiler warning, const facilitynames include/bitops: avoid fallbacks for more systems include/bitops: add casts to bswap functions commit b31fd516ff04b880ea9cfc13faf030924f30d5fc Author: Benno Schulenberg Date: Wed Mar 9 11:55:01 2016 +0100 blkdiscard: slice up the recently changed usage text Signed-off-by: Benno Schulenberg sys-utils/blkdiscard.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) commit 8142133441e21181c36b35d266d6456e15d7c8fd Author: Benno Schulenberg Date: Wed Mar 9 11:55:00 2016 +0100 mount: further improve formatting of the man page Mainly by using proper subsections (so they can be indexed), protecting some things from hyphenation, and marking with \& periods that don't end sentences. Tweaking some wordings too. Signed-off-by: Benno Schulenberg Signed-off-by: Karel Zak sys-utils/mount.8 | 243 ++++++++++++++++++++++++++---------------------------- 1 file changed, 118 insertions(+), 125 deletions(-) commit c00043e5426c6d23cf89bf2c8fd4548984d3be4d Author: Benno Schulenberg Date: Wed Mar 9 11:54:59 2016 +0100 findmnt: improve formatting and wording of the man page Signed-off-by: Benno Schulenberg misc-utils/findmnt.8 | 61 ++++++++++++++++++++++++++-------------------------- 1 file changed, 31 insertions(+), 30 deletions(-) commit 5b4ad40febbe22513057a4788a1695c6bc2446c9 Author: Ruediger Meier Date: Wed Mar 9 12:01:54 2016 +0100 tests: ignore swapon warnings swapon/mkswap warns if system sets different permissions for loop devices. I saw this on Debian 7 (wheezy)/linux-3.2: mkswap: /dev/loop0: insecure permissions 1660, 0660 suggested. swapon: /dev/loop0: insecure permissions 1660, 0660 suggested. Signed-off-by: Ruediger Meier tests/ts/swapon/devname | 3 +++ tests/ts/swapon/fixsig | 3 +++ tests/ts/swapon/label | 3 +++ tests/ts/swapon/uuid | 3 +++ 4 files changed, 12 insertions(+) commit 1e5e93e277f568e93e682a37d6284c6c7fa4d996 Author: Ruediger Meier Date: Wed Mar 9 11:33:47 2016 +0100 tests: udevadm settle before losetup -d On Debian 7 (wheezy)/linux-3.2 we need "udevadm settle" between losetup and losetup -d in case that the backing file is a block device (scsi_debug). This issue is visible since: 7e604f3c tests: don't skip case "output undefined" Signed-off-by: Ruediger Meier tests/ts/losetup/losetup-blkdev | 4 ++++ 1 file changed, 4 insertions(+) commit 8f6a58efdecf7858547b8fb71222910049443581 Author: Karel Zak Date: Wed Mar 9 12:00:52 2016 +0100 misc: avoid shadowing Signed-off-by: Karel Zak libblkid/src/devno.c | 14 +++++++------- libblkid/src/superblocks/exfat.c | 6 +++--- libblkid/src/superblocks/f2fs.c | 10 +++++----- libblkid/src/superblocks/squashfs.c | 28 ++++++++++++++-------------- 4 files changed, 29 insertions(+), 29 deletions(-) commit d404065a82187c8e71cf82e95ab503ff00608722 Author: Karel Zak Date: Wed Mar 9 11:49:42 2016 +0100 lib/linux_version: avoid major and minor shadowing Signed-off-by: Karel Zak lib/linux_version.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) commit a3e1c47accaa94f56c55b62e85eacc216a00ffd4 Author: Sami Kerola Date: Tue Mar 8 22:35:50 2016 +0000 cal: remove libtermcap arguments to my_tgetstr() Missed in commit b4566a8a8d0cf345e637194f9c95091a1ef4dfe0. Signed-off-by: Sami Kerola misc-utils/cal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 652822e08b77aba0d35634f54d8acb484c1749f5 Author: Sami Kerola Date: Tue Mar 8 22:13:38 2016 +0000 misc: remove path name definitions that are unused After this commit the following produces zero matches. $ for i in \ _PATH_DEV_TTY \ _PATH_INITTAB \ _PATH_MNTTAB_DIR \ _PATH_MOUNTED_LOCK \ _PATH_MOUNTED_TMP \ _PATH_RC \ _PATH_REBOOT \ _PATH_SECURE \ _PATH_SECURETTY \ _PATH_SHUTDOWN_CONF \ _PATH_SINGLE \ _PATH_UMOUNT \ _PATH_USERTTY do git grep $i; done Signed-off-by: Sami Kerola include/pathnames.h | 18 ------------------ tests/expected/paths/built-in | 13 ------------- tests/helpers/test_pathnames.c | 13 ------------- 3 files changed, 44 deletions(-) commit deea8ad4a4742f55014ad930e71b505e0d1753fa Author: Karel Zak Date: Wed Mar 9 11:41:13 2016 +0100 tests: mark script race test as "known fail" Addresses: https://github.com/karelzak/util-linux/issues/296 Signed-off-by: Karel Zak tests/ts/script/race | 4 ++++ 1 file changed, 4 insertions(+) commit 056e622c918a42feb67d72c18ac476cb8b934480 Author: Ruediger Meier Date: Tue Mar 8 11:30:25 2016 +0100 fdisk: fix warning, uninitialized variable This was a typo in 4afb337e. Signed-off-by: Ruediger Meier disk-utils/fdisk-menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f5fceb401e2f6edb39dc07fed8eb3c52ef062001 Author: Ruediger Meier Date: Tue Mar 8 11:23:14 2016 +0100 logger: fix compiler warning, const facilitynames This was the warning on FreeBSD: misc-utils/logger.c:221:24: warning: passing 'const CODE [25]' to parameter of type 'CODE *' (aka 'struct _code *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] facility = decode(s, facilitynames); ^~~~~~~~~~~~~ misc-utils/logger.c:187:43: note: passing argument to parameter 'codetab' here static int decode(const char *name, CODE *codetab) Signed-off-by: Ruediger Meier misc-utils/logger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit d20eb029d52b6cd31b2a86b95d2708f505eca78a Author: Ruediger Meier Date: Tue Mar 8 10:35:58 2016 +0100 include/bitops: avoid fallbacks for more systems Signed-off-by: Ruediger Meier include/bitops.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) commit d01c0adb8365b1a7194c40133fe1a2d232b49559 Author: Ruediger Meier Date: Tue Mar 8 09:11:08 2016 +0100 include/bitops: add casts to bswap functions Based on kernel sources include/uapi/linux/swab.h. Signed-off-by: Ruediger Meier include/bitops.h | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) commit 075d2c0754f3723a68ad61755709fa2f0af604b4 Author: Karel Zak Date: Tue Mar 8 14:29:45 2016 +0100 include: move sys/sysmacros.h to c.h The file is no portable (#ifdef HAVE_SYS_SYSMACROS_H is necessary), but needed on many places. It seems better to keep it in c.h. Signed-off-by: Karel Zak disk-utils/fsck.cramfs.c | 5 +---- disk-utils/raw.c | 3 --- include/c.h | 4 ++++ lib/loopdev.c | 1 - login-utils/login.c | 3 --- 5 files changed, 5 insertions(+), 11 deletions(-) commit 3fe3f560b7a70c4c2303930973eb62ddd4c51f7f Author: Karel Zak Date: Tue Mar 8 14:26:33 2016 +0100 Revert "include sysmacros.h where used" This reverts commit 46a40c018438b7b2b25083a5e5a4a21055a0c1e9. disk-utils/fsck.c | 1 - disk-utils/partx.c | 1 - disk-utils/sfdisk.c | 1 - lib/ismounted.c | 1 - lib/sysfs.c | 1 - libblkid/src/devname.c | 1 - libblkid/src/devno.c | 1 - libblkid/src/evaluate.c | 1 - libblkid/src/partitions/partitions.c | 1 - libblkid/src/topology/dm.c | 1 - libblkid/src/topology/evms.c | 1 - libblkid/src/topology/lvm.c | 1 - libblkid/src/topology/md.c | 1 - libmount/python/fs.c | 1 - libmount/src/fs.c | 1 - libmount/src/tab_parse.c | 1 - login-utils/sulogin-consoles.c | 1 - misc-utils/findmnt.c | 1 - misc-utils/lsblk.c | 1 - misc-utils/lslocks.c | 1 - sys-utils/losetup.c | 1 - sys-utils/mountpoint.c | 1 - 22 files changed, 22 deletions(-) commit bcdf097812b1b3b1b9a3113d3aa1ea1b98ff23ed Author: Benno Schulenberg Date: Tue Mar 8 10:07:52 2016 +0100 mount: adjust some wordings and formatting in the man page Signed-off-by: Benno Schulenberg sys-utils/mount.8 | 49 ++++++++++++++++++++----------------------------- 1 file changed, 20 insertions(+), 29 deletions(-) commit c805c36923555d86a1d08f3d94e29969bf4d7cca Author: Benno Schulenberg Date: Tue Mar 8 10:07:51 2016 +0100 sfdisk: adjust more wordings and formatting in the man page Signed-off-by: Benno Schulenberg disk-utils/sfdisk.8 | 63 +++++++++++++++++++++++++++++------------------------ 1 file changed, 34 insertions(+), 29 deletions(-) commit c3cd6751081925735cda3447aee1f17105f321a2 Author: Benno Schulenberg Date: Tue Mar 8 10:07:50 2016 +0100 ctrlaltdel: tweak the wording in the man page Signed-off-by: Benno Schulenberg sys-utils/ctrlaltdel.8 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit 289619bdb686a474fff6b08574c9c26a37090e10 Author: Benno Schulenberg Date: Tue Mar 8 10:07:49 2016 +0100 losetup: correct some formatting in the man page Signed-off-by: Benno Schulenberg sys-utils/losetup.8 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) commit bed9c1f5e5692c9be1f70c5298cb6c53c34fe494 Author: Benno Schulenberg Date: Tue Mar 8 10:07:48 2016 +0100 mount: hardwrap an overlong example in the man page Signed-off-by: Benno Schulenberg sys-utils/mount.8 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit bbe6f3cf39032d97f2a3d2146d3183259888a17e Author: Benno Schulenberg Date: Tue Mar 8 10:07:47 2016 +0100 fstrim: a few tiny tweaks of the man page Signed-off-by: Benno Schulenberg sys-utils/fstrim.8 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 2da0d7c0c23d8d20ab98ec112521f245fe4b24aa Author: Benno Schulenberg Date: Tue Mar 8 10:07:46 2016 +0100 agetty: tweak formatting and some wordings in the man page Signed-off-by: Benno Schulenberg term-utils/agetty.8 | 105 ++++++++++++++++++++++++++-------------------------- 1 file changed, 53 insertions(+), 52 deletions(-) commit 589b69316c481801c2ba6ff464005e7c2233097e Author: Benno Schulenberg Date: Tue Mar 8 10:07:45 2016 +0100 fdisk, sfdisk: adjust the wording of the --wipe option Use "when" as argument, to match the argument of --color, that can have the same three values. Signed-off-by: Benno Schulenberg disk-utils/fdisk.8 | 13 +++++++------ disk-utils/sfdisk.8 | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) commit 7e3b3f47101eec966b512759211710a4db2803b3 Author: Benno Schulenberg Date: Tue Mar 8 10:07:44 2016 +0100 fdisk, sfdisk: adjust some formatting in the man pages Only the optional argument should be in italics, the literal = should be bold. Signed-off-by: Benno Schulenberg disk-utils/fdisk.8 | 6 +++--- disk-utils/sfdisk.8 | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) commit 46a40c018438b7b2b25083a5e5a4a21055a0c1e9 Author: Mike Frysinger Date: Mon Mar 7 17:26:33 2016 -0500 include sysmacros.h where used BSD/Linux systems stick major/minor/makedev in sysmacros.h. Newer Linux libraries have been moving away from including sysmacros.h implicitly via sys/types.h, so include it directly. Signed-off-by: Mike Frysinger disk-utils/fsck.c | 1 + disk-utils/partx.c | 1 + disk-utils/sfdisk.c | 1 + lib/ismounted.c | 1 + lib/sysfs.c | 1 + libblkid/src/devname.c | 1 + libblkid/src/devno.c | 1 + libblkid/src/evaluate.c | 1 + libblkid/src/partitions/partitions.c | 1 + libblkid/src/topology/dm.c | 1 + libblkid/src/topology/evms.c | 1 + libblkid/src/topology/lvm.c | 1 + libblkid/src/topology/md.c | 1 + libmount/python/fs.c | 1 + libmount/src/fs.c | 1 + libmount/src/tab_parse.c | 1 + login-utils/sulogin-consoles.c | 1 + misc-utils/findmnt.c | 1 + misc-utils/lsblk.c | 1 + misc-utils/lslocks.c | 1 + sys-utils/losetup.c | 1 + sys-utils/mountpoint.c | 1 + 22 files changed, 22 insertions(+) commit 076153f8168d3dd7be073e24b4baf4c6d0a78c00 Author: Karel Zak Date: Tue Mar 8 13:38:36 2016 +0100 tests: don't compare btrfs mount options We don't control mount options in the mountinfo file and the options depend on kernel version. It does not make sense to hardcode the options in the expected outputs. Note that libmount should be portable enough to be able to work with all kernel versions. It seems better to check libmount functionality than kernel mount options formatting. Signed-off-by: Karel Zak tests/expected/libmount/context-utab | 3 --- tests/expected/libmount/context-utab-py | 3 --- tests/ts/libmount/context-utab | 10 +++++++--- tests/ts/libmount/context-utab-py | 11 ++++++++--- 4 files changed, 15 insertions(+), 12 deletions(-) commit 5c78d493c05d03b119f1d1c76874ac31f909655a Author: Ruediger Meier Date: Mon Mar 7 11:44:55 2016 +0100 getopt: fix -n name for BSD BSD gets the program name for warnings from getprogname() and not from argv. Thus we use setprogname() there. Signed-off-by: Ruediger Meier misc-utils/getopt.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) commit 0ab03906c1a97d474f431aa7e9d90174a36ed9a1 Author: Ruediger Meier Date: Mon Mar 7 09:20:59 2016 +0100 tests: improve getopt loop error case Avoid exit 1 in test scripts. Simplify and complete redirection to TS_OUPUT. Signed-off-by: Ruediger Meier tests/ts/misc/getopt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) commit 06311163e5af099bbf30605463598a94529c88ed Author: Ruediger Meier Date: Sun Mar 6 22:28:11 2016 +0100 tests: getopt2, add function gnu_getopt_clean() This makes the test compatible to OpenBSD, OSX and musl libc. Signed-off-by: Ruediger Meier tests/ts/misc/getopt2 | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) commit 7e604f3c804a5718b1c591eb32043d140f052803 Author: Ruediger Meier Date: Sat Mar 5 18:51:59 2016 +0100 tests: don't skip case "output undefined" Treat missing expected files as empty and let the test fail if there is non-empty output. Expected output may be missing in these cases: 1. forgot to commit the file after changing/adding a (sub)test 2. a bug in a test where we do tricks with TS_EXPECTED 3. and most notable if ts_die() is called before a subtest is initialized, e.g. in ts_scsi_debug_init() I always wondered why we don't treat this as FAILED. Now we do so, ts_finalize and ts_gen_diff looks much cleaner now. The change discovers that tests with subtest were ignoring the "non-sub" expected files which had to be fixed. BTW we removed any zero sized files. Moreover now we respect diff's return value. In past all test succeeded when diff was not able to write to diffdir, e.g. when running tests as normal user after they run as root. Signed-off-by: Ruediger Meier tests/expected/build-sys/config | 0 tests/expected/colcrt/functional | 0 tests/expected/colcrt/regressions | 0 tests/expected/eject/umount | 0 tests/expected/libmount/context-utab | 3 +- tests/expected/libmount/context-utab-py | 3 +- tests/expected/libmount/tabdiff | 0 tests/expected/logger/errors | 0 tests/expected/logger/formats | 0 tests/expected/logger/options | 0 tests/expected/losetup/losetup | 0 tests/expected/minix/mkfs | 0 tests/expected/misc/getopt2 | 19 ----------- tests/expected/misc/getopt3 | 0 tests/expected/mount/fstab-btrfs | 1 - tests/expected/mount/umount-alltargets | 1 - tests/expected/script/options | 0 tests/expected/sfdisk/dos | 0 tests/expected/sfdisk/gpt | 0 tests/expected/sfdisk/resize | 0 tests/functions.sh | 48 ++++++++++----------------- tests/ts/libmount/context-utab | 47 +++++++++++++------------- tests/ts/libmount/context-utab-py | 58 ++++++++++++++++----------------- tests/ts/losetup/losetup | 1 - tests/ts/misc/getopt2 | 19 ----------- 25 files changed, 72 insertions(+), 128 deletions(-) commit 91aced978b15595811d05bb7f1a3d518025b5740 Author: Ruediger Meier Date: Thu Mar 3 13:54:17 2016 +0100 tests: cramfs, fix root group Sudo may login as group wheel or may use user's original group. Note that group 0 is not named "root" on all Unix systems. We have some more tests with similar issues but they are Linux-only (losetup, scsi_debug). We don't fix them unless somebody complains. BTW we use hexdump instead of md5sum. Signed-off-by: Ruediger Meier tests/expected/cramfs/mkfs-endianness | 80 ++++++++++++++++++++++++++++++++++- tests/ts/cramfs/mkfs | 19 ++++----- tests/ts/cramfs/mkfs-endianness | 5 ++- 3 files changed, 91 insertions(+), 13 deletions(-) commit 9d76c6fb9f0eb4cc34d6a10833a60f252bf5bc65 Author: Ruediger Meier Date: Thu Mar 3 17:29:58 2016 +0100 libmount: don't include libio.h This include was added just one month ago in 5a971329 but I don't see what it was good for. It's missing in musl libc. Signed-off-by: Ruediger Meier libmount/src/btrfs.c | 2 +- login-utils/last.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit fea1cbf7484df23a6fe0b62ccd1de271bc1f931a Author: Ruediger Meier Date: Fri Feb 26 11:10:24 2016 +0100 misc: never cast void* from malloc(3) and friends Such cast could hide serious compiler warnings in case we are missing includes (e.g. or "xalloc.h"). See http://stackoverflow.com/questions/605845/do-i-cast-the-result-of-malloc Signed-off-by: Ruediger Meier disk-utils/mkswap.c | 2 +- lib/setproctitle.c | 2 +- lib/strutils.c | 2 +- libblkid/src/cache.c | 2 +- libblkid/src/config.c | 2 +- libblkid/src/dev.c | 2 +- libblkid/src/tag.c | 2 +- login-utils/login.c | 2 +- misc-utils/test_uuidd.c | 4 ++-- sys-utils/swapon-common.c | 4 ++-- term-utils/agetty.c | 2 +- text-utils/col.c | 4 ++-- 12 files changed, 15 insertions(+), 15 deletions(-) commit d9851e63fba82cbda2238f26f20bf59b3d962577 Author: Ruediger Meier Date: Thu Feb 25 20:29:30 2016 +0100 libfdisk: remove ifdef HDIO_GETGEO We don't use HDIO_GETGEO since e5b5a349. Signed-off-by: Ruediger Meier libfdisk/src/sgi.c | 3 +-- libfdisk/src/sun.c | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) commit 7a11addee861ad1085843043d318f8d9a2cf3615 Author: Ruediger Meier Date: Thu Feb 25 18:29:48 2016 +0100 fdisk: sun, undef HAVE_QSORT_R for non-Linux Linux/glibc's qsort_r(3) has differently ordered arguments than BSD implementations. For now we undef that quick and dirty. The real fix would be to make configure check for qsort_r more carefully (AC_CHECK_FUNCS with AC_LANG_WERROR). Moreover one could add a wrapper to swap arguments, see https://github.com/noporpoise/sort_r/blob/master/sort_r.h Signed-off-by: Ruediger Meier libfdisk/src/sun.c | 5 +++++ 1 file changed, 5 insertions(+) commit e210cfc8c8787c57129113ea21233372f6dfa684 Author: Ruediger Meier Date: Mon Feb 22 16:49:15 2016 +0100 lib: include sys/stat.h for struct stat Compiler warning: 'struct stat' will not be visible outside of this function [-Wvisibility] Signed-off-by: Ruediger Meier include/blkdev.h | 1 + 1 file changed, 1 insertion(+) commit fdbd7bb94051bce49a40b0e055bfa21755de3b1c Author: Ruediger Meier Date: Mon Feb 22 11:58:05 2016 +0100 misc: again fixing many printf format strings This is again a huge patch regarding printf format strings to fix compiler warnings seen on clang/OSX. I'm trying to follow these rules strictly: #type #format #cast uintmax_t %ju - intmax_t %jd - uint64_t PRIu64 - int64_t PRId64 - size_t %zu - ssize_t %zd - ino_t %ju (uintmax_t) off_t %jd (intmax_t) Signed-off-by: Ruediger Meier disk-utils/fdisk.c | 25 +++++++++++++--------- disk-utils/fsck.minix.c | 5 +++-- disk-utils/mkfs.minix.c | 5 +++-- disk-utils/mkswap.c | 4 ++-- disk-utils/sfdisk.c | 17 ++++++++------- libblkid/samples/partitions.c | 4 ++-- libblkid/src/partitions/partitions.c | 6 +++--- libblkid/src/probe.c | 28 +++++++++++++------------ libblkid/src/superblocks/drbdproxy_datalog.c | 2 +- libblkid/src/superblocks/ntfs.c | 8 +++---- libblkid/src/superblocks/vfat.c | 3 ++- libfdisk/src/alignment.c | 2 +- libfdisk/src/ask.c | 4 ++-- libfdisk/src/dos.c | 2 +- libfdisk/src/gpt.c | 26 ++++++++++++----------- libfdisk/src/partition.c | 31 +++++++++++++++------------- libfdisk/src/script.c | 20 +++++++++--------- libfdisk/src/table.c | 12 +++++++---- misc-utils/wipefs.c | 12 +++++------ 19 files changed, 119 insertions(+), 97 deletions(-) commit 8acff75afc900972a071eae7a3e5e5a1704e099d Author: Ruediger Meier Date: Thu Feb 18 03:07:23 2016 +0100 wipefs, sfdisk: include libgen.h for basename(3p) Signed-off-by: Ruediger Meier disk-utils/sfdisk.c | 1 + misc-utils/wipefs.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) commit 8f18a9142cb800b7729164af4f6ba3a25108c127 Merge: cd1c598 925ced8 Author: Karel Zak Date: Mon Mar 7 16:04:27 2016 +0100 Merge branch 'master' of https://github.com/Rufflewind/util-linux commit cd1c5986b8b933eefc769ec636e62bbb3f8da81c Merge: fdbfe2e 855f7f0 Author: Karel Zak Date: Mon Mar 7 15:55:08 2016 +0100 Merge branch 'tests-results-again' of https://github.com/rudimeier/util-linux * 'tests-results-again' of https://github.com/rudimeier/util-linux: tests: add option --parsable tests: --parallel prints results in a single line commit fdbfe2e7f0dd4918f1b690e857d319045c2dfd34 Merge: dc04951 716133f Author: Karel Zak Date: Mon Mar 7 15:50:34 2016 +0100 Merge branch 'fix-minix' of https://github.com/rudimeier/util-linux * 'fix-minix' of https://github.com/rudimeier/util-linux: tests: minix, add a useful non-root check tests: fix minix tests for big endian mkfs.minix: fix v2/v3 .badblocks inode number for big endian fsck.minix: fix v3 version offset tests: minix, some corrections and cleanup tests: minix, use hexdump instead of md5sum commit dc0495166fc3aabaada5f0234048a4f20017305f Author: Ruediger Meier Date: Mon Feb 29 17:45:46 2016 +0100 build-sys: add and use openat build conditionals Signed-off-by: Ruediger Meier configure.ac | 7 ++++++- include/fileutils.h | 2 ++ lib/Makemodule.am | 14 ++++++++++---- libsmartcols/samples/Makemodule.am | 4 +++- 4 files changed, 21 insertions(+), 6 deletions(-) commit e0dfdfeca0bb08d5e51cb7c2cd20ba12dcfd378d Author: Ruediger Meier Date: Mon Feb 29 13:58:48 2016 +0100 fdisk: remove unused include sysfs.h Signed-off-by: Ruediger Meier disk-utils/fdisk.c | 1 - 1 file changed, 1 deletion(-) commit 1a048dc5e2c463f2eaf1b8975983185fee080b37 Author: Ruediger Meier Date: Mon Feb 29 12:49:13 2016 +0100 lib: move fopen_at() to fileutils.h, remove at.h Signed-off-by: Ruediger Meier include/Makemodule.am | 1 - include/at.h | 22 ---------------------- include/fileutils.h | 10 ++++++++++ lib/Makemodule.am | 3 +-- lib/at.c | 24 ------------------------ lib/procutils.c | 2 +- libmount/src/tab_parse.c | 2 +- 7 files changed, 13 insertions(+), 51 deletions(-) commit 2208b3ccb298be2675cf005b761b1668f8cd576f Author: Ruediger Meier Date: Mon Feb 29 12:38:58 2016 +0100 lib: remove openat fallback functions (include/at.h) I have validated that we are still compatible at least back to - openSUSE 11.4 - SLE 11 - RHEL/CentOS 6 - OSX 10.10.x, (Xcode 6.3) - FreeBSD 10.2 Confirmed incompatibility: - OSX 10.9.x, (Xcode 6.2) Signed-off-by: Ruediger Meier disk-utils/partx.c | 3 +- include/at.h | 12 +---- lib/Makemodule.am | 4 -- lib/at.c | 124 +---------------------------------------------- lib/loopdev.c | 3 +- lib/procutils.c | 6 +-- lib/sysfs.c | 15 +++--- libblkid/src/devname.c | 3 +- libblkid/src/devno.c | 5 +- libmount/src/tab_parse.c | 9 ++-- misc-utils/lsblk.c | 11 ++--- misc-utils/lslocks.c | 6 +-- 12 files changed, 29 insertions(+), 172 deletions(-) commit 59e2fea11918dadaa99a8fdd25c9a2171c01db2f Author: Yuriy M. Kaminskiy Date: Sun Feb 28 03:57:03 2016 +0300 taskset: fix description of `-c` option in the man page Commit 42f15e9848dc07e86a2b80c742a0179aaced6c71 introduced a certain inaccuracy in -c option description; it is not _the option with an argument_, but it is the flag that changes interpretation of `mask` parameter. The difference is almost not noticeable, but there are one corner case where it is: taskset -c 1 -p $$ fails (but it would work if 42f15e was correct). Instead, taskset -c -p 1 $$ works (but it should not have if 42f15e was correct). Signed-off-by: Karel Zak schedutils/taskset.1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 06fa5817489adb9728f8a29d4cb7602fb48b8bdb Author: Yuriy M. Kaminskiy Date: Sat Feb 27 19:27:29 2016 +0300 misc: safer (and uniform) handling of return value When `rc` is `INT_MAX`, `rc + 1` result in signed integer overflow. Signed-off-by: Karel Zak disk-utils/fsck.c | 2 +- lib/at.c | 6 +++--- lib/cpuset.c | 7 ++----- lib/sysfs.c | 12 ++++++------ libfdisk/src/ask.c | 8 ++------ login-utils/login.c | 2 +- login-utils/lslogins.c | 2 +- misc-utils/cal.c | 7 ++++++- sys-utils/lscpu.c | 8 ++++++-- sys-utils/mountpoint.c | 2 +- term-utils/agetty.c | 4 ++-- term-utils/ttymsg.c | 8 ++++---- term-utils/wall.c | 4 ++-- 13 files changed, 37 insertions(+), 35 deletions(-) commit ff27b20f3ce74043d512522f28af59050c25541b Author: Yuriy M. Kaminskiy Date: Sat Feb 27 19:14:44 2016 +0300 lsns.c: fix error return If non-negative value returned, errno could be unset (especially 0). Signed-off-by: Karel Zak lib/sysfs.c | 2 +- sys-utils/lsns.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 0c5bbafaf9f59053f5d0293efe1e396456a1b238 Author: Yuriy M. Kaminskiy Date: Sat Feb 27 18:00:50 2016 +0300 lscpu: fix backward buffer size adjustment after adding delimiter remaining buffer space was increased after adding character, instead of decreasing Signed-off-by: Karel Zak sys-utils/lscpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit a2ad58ac51703da20c3f368da585eb426e53c29e Author: Andreas Henriksson Date: Thu Feb 25 11:26:53 2016 +0100 libfdisk: Fix order of C/H/S numbers output While the header says C/H/S the actual numbers where printed as C/S/H. Addresses: http://bugs.debian.org/815847 Reported-by: "groups, freeman" Signed-off-by: Andreas Henriksson libfdisk/src/dos.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit bcceb0c7dd61fb876b34e668a6887b92bcce8fca Merge: ae70657 ab753d8 Author: Karel Zak Date: Mon Mar 7 14:37:31 2016 +0100 Merge branch 'port-osx' of https://github.com/rudimeier/util-linux * 'port-osx' of https://github.com/rudimeier/util-linux: lib: include strutils.h for mempcpy() build-sys: remove duplicate cal sources lib: provide fallback if mkostemp(3) missing build-sys: chrt requires a sched_set* function build-sys: add --disable-ipcrm --disable-ipcs build-sys: disable login-utils if shadow.h or utmp.h is missing login-utils: minor utmp cleanup build-sys: build_init should check for flock newgrp: rename memset_s() misc: fix some includes libsmartcols: fix uninitialized variable fdisk: fix warning, incompatible pointer types passing 'uint64_t *' logger: use SCM_CREDENTIALS on LINUX only commit ae7065760d9bbe776a93a73d88e85c7796acb8cc Author: Dmitry V. Levin Date: Sat Mar 5 00:22:52 2016 +0300 setarch: fix personality syscall return code check Depending on architecture and kernel version, personality syscall is either capable or incapable of returning an error. If the return value is not an error, then it's the previous personality value, which can be an arbitrary value undistinguishable from an error value. To make things clear, a second call is needed. For more details about personality syscall peculiarities see https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=glibc-2.22-637-ge0043e17dfc5 Signed-off-by: Dmitry V. Levin sys-utils/setarch.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) commit 925ced8353fe1225abb87b522f0fe14bf0aed589 Author: Phil Ruffwind Date: Sun Mar 6 13:45:02 2016 -0500 hexdump: certain long options should not accept arguments As documented in the manual and the usage info, the long options --one-byte-char, --canonical, and --two-bytes-octal should not accept any arguments. Signed-off-by: Phil Ruffwind text-utils/hexdump.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 855f7f06507f5b2f547da054898ae751bec888bb Author: Ruediger Meier Date: Sat Mar 5 15:40:57 2016 +0100 tests: add option --parsable This is to force the one-line results also for non-parallel case. We are using it for travis auto-build and on other build farms. Moreover you can set this (and any other) option globally by env which is the only way to pass it to make distcheck. Signed-off-by: Ruediger Meier .travis-functions.sh | 1 + tests/functions.sh | 17 +++++++++++++---- tests/run.sh | 22 ++++++++-------------- 3 files changed, 22 insertions(+), 18 deletions(-) commit 2979724f5d0bf81aea17b2f412e8a760e03ac11b Author: Ruediger Meier Date: Thu Dec 17 10:46:32 2015 +0100 tests: --parallel prints results in a single line Like in non-parallel case we are printing only one line per (sub)test now. The output lines must contain the full test name to be useful. This patch does not change anything for the non-parallel output format except a bit code cleanup. BTW changed blkid/low-probe test description to have shorter lines. Signed-off-by: Ruediger Meier tests/functions.sh | 37 ++++++++++++++++++++----------------- tests/ts/blkid/low-probe | 2 +- 2 files changed, 21 insertions(+), 18 deletions(-) commit 716133fc1ca4ee3b19cdb799a97bd7d4947f4249 Author: Ruediger Meier Date: Thu Mar 3 01:57:35 2016 +0100 tests: minix, add a useful non-root check Signed-off-by: Ruediger Meier tests/expected/minix/fsck | 366 +++++++++++++++++++++++++++++++++++++++++++++- tests/ts/minix/fsck | 45 ++++-- tests/ts/minix/mkfs | 2 +- 3 files changed, 396 insertions(+), 17 deletions(-) commit b0dc5809d7457a9bd6d687550090f68053e5ff91 Author: Ruediger Meier Date: Wed Mar 2 13:48:46 2016 +0100 tests: fix minix tests for big endian You may diff the new .BE files with non-BE file to see whether they look fine. Signed-off-by: Ruediger Meier tests/expected/minix/fsck-images-badblocks.BE | 35 ++++++++++++++++++++++++ tests/expected/minix/fsck-images-check-blocks.BE | 29 ++++++++++++++++++++ tests/expected/minix/fsck-images-v1c14.BE | 28 +++++++++++++++++++ tests/expected/minix/fsck-images-v1c30.BE | 29 ++++++++++++++++++++ tests/expected/minix/fsck-images-v2c14.BE | 29 ++++++++++++++++++++ tests/expected/minix/fsck-images-v2c30.BE | 30 ++++++++++++++++++++ tests/expected/minix/fsck-images-v3c60.BE | 31 +++++++++++++++++++++ tests/ts/minix/fsck-images | 10 +++++++ 8 files changed, 221 insertions(+) commit 7252874a48e3cc7382d579254a19fc4c309442c1 Author: Ruediger Meier Date: Tue Mar 1 21:03:13 2016 +0100 mkfs.minix: fix v2/v3 .badblocks inode number for big endian For minix v2/v3 on big endian systems the inode number of the unwanted ".badblocks" file was not set to zero. This was introduced when v3 was added in a2657ae3. Actually it did not seem to cause any problems but since we zero it out at all we should do it correctly. Now we zero out the whole directory entry (inclusive ".badblocks" file name, also for v1). Unfortunately we have to update the test data checksums. CC: Davidlohr Bueso Signed-off-by: Ruediger Meier disk-utils/mkfs.minix.c | 5 ++--- tests/expected/minix/fsck-images-check-blocks | 2 -- tests/expected/minix/fsck-images-v1c14 | 3 +-- tests/expected/minix/fsck-images-v1c30 | 2 -- tests/expected/minix/fsck-images-v2c14 | 3 +-- tests/expected/minix/fsck-images-v2c30 | 2 -- tests/expected/minix/fsck-images-v3c60 | 3 --- 7 files changed, 4 insertions(+), 16 deletions(-) commit fcb1242601d892bc2d2a3b3e85af36280040d2b3 Author: Ruediger Meier Date: Wed Mar 2 22:29:00 2016 +0100 fsck.minix: fix v3 version offset Our test-suite discoverd it on big endian systems, but it was also broken on little endian for inode numbers > 0xffff. Signed-off-by: Ruediger Meier disk-utils/fsck.minix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 84e324ae657ac2edeb9c76c3afff47dcd68f7cef Author: Ruediger Meier Date: Wed Mar 2 20:14:26 2016 +0100 tests: minix, some corrections and cleanup - move generic "check_minix_fs_type" tests to the top - add some todos/notes about potential issues - add "real" badblocks test (-l) - don't check sed's but fsck's return value - to see debian bug 773892 we would need "-f" - add some more hexdumps CC: Sami Kerola Signed-off-by: Ruediger Meier tests/expected/minix/fsck-images-auto-fix | 2 +- tests/expected/minix/fsck-images-badblocks | 35 ++++++++++++++++++++++++++++ tests/expected/minix/fsck-images-broken-root | 2 +- tests/expected/minix/fsck-images-bug.773892 | 2 +- tests/ts/minix/fsck-images | 29 ++++++++++++++--------- 5 files changed, 56 insertions(+), 14 deletions(-) commit 730f79fc3ddfeba44051032efe3349a77fc13ef0 Author: Ruediger Meier Date: Wed Mar 2 12:59:55 2016 +0100 tests: minix, use hexdump instead of md5sum Signed-off-by: Ruediger Meier tests/expected/minix/fsck-images-auto-fix | 28 ++++++++++++++++++++++++++- tests/expected/minix/fsck-images-check-blocks | 24 ++++++++++++++++++++++- tests/expected/minix/fsck-images-v1c14 | 22 ++++++++++++++++++++- tests/expected/minix/fsck-images-v1c30 | 24 ++++++++++++++++++++++- tests/expected/minix/fsck-images-v2c14 | 23 +++++++++++++++++++++- tests/expected/minix/fsck-images-v2c30 | 25 +++++++++++++++++++++++- tests/expected/minix/fsck-images-v3c60 | 27 +++++++++++++++++++++++++- tests/ts/minix/fsck-images | 5 +++-- 8 files changed, 169 insertions(+), 9 deletions(-) commit ab753d8feef06cd564e597ac2f155f89c0645a5f Author: Ruediger Meier Date: Thu Feb 25 14:21:23 2016 +0100 lib: include strutils.h for mempcpy() We have that mempcpy fallback since 2013 (02887b73) but forgot to include it. This fixes a segfault of cal(1) on FreeBSD and OSX. Compiler warning was: lib/mbsalign.c:468:14: warning: implicit declaration of function 'mempcpy' is invalid in C99 [-Wimplicit-function-declaration] dest = mempcpy (dest, str_to_print, min (n_used_bytes, space_left)); ^ lib/mbsalign.c:468:12: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion] dest = mempcpy (dest, str_to_print, min (n_used_bytes, space_left)); CC: Daniel Trebbien Signed-off-by: Ruediger Meier lib/mbsalign.c | 1 + 1 file changed, 1 insertion(+) commit cc2d3c52bcf32e27d687993114b41b21b1d62c23 Author: Ruediger Meier Date: Thu Feb 25 14:46:50 2016 +0100 build-sys: remove duplicate cal sources These extra sources should have been removed since cal is linked against libcommon (see 7b353df2). CC: Sami Kerola Signed-off-by: Ruediger Meier misc-utils/Makemodule.am | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) commit 4d751c008e7c893c30eb7c9b04b21756ca806b67 Author: Ruediger Meier Date: Sat Feb 27 13:28:04 2016 +0100 lib: provide fallback if mkostemp(3) missing It's missing on OSX. CC: Yuriy M. Kaminskiy Signed-off-by: Ruediger Meier configure.ac | 1 + include/fileutils.h | 2 ++ lib/fileutils.c | 31 ++++++++++++++++++++++++++++++- libblkid/src/save.c | 3 ++- 4 files changed, 35 insertions(+), 2 deletions(-) commit ee20c303ac4336b561b0bdca41123e48fdf44c80 Author: Ruediger Meier Date: Wed Feb 24 13:14:20 2016 +0100 build-sys: chrt requires a sched_set* function Signed-off-by: Ruediger Meier configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) commit 42a4a152500fe507ed3eff491555d5ce1f2f6c08 Author: Ruediger Meier Date: Mon Feb 8 15:32:26 2016 +0100 build-sys: add --disable-ipcrm --disable-ipcs ipcs's source history looks like some people are using it on BSD but it won't build on most non-Linux systems. That's why it's nice let "./configure --disable-ipcrm --disable-ipcs" work. Signed-off-by: Ruediger Meier configure.ac | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) commit d00c10edb87e71e184c7724ed0b6d86abc42e753 Author: Ruediger Meier Date: Tue Feb 23 23:15:35 2016 +0100 build-sys: disable login-utils if shadow.h or utmp.h is missing Actually we could have also used UL_REQUIRES_LINUX because our utmp usage and the shadow.h header is unlikely to be portable. However only requiring these headers may help others who are curious what needs to be done to port something. Note, we could easily make the utmp stuff more portable by using utmpx which is POSIX standard and on LINUX (glibc) basically just renaming work. See getutxent(3). Signed-off-by: Ruediger Meier configure.ac | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) commit a365953a247cf4d00cde52a7b19faf977ae95cc4 Author: Ruediger Meier Date: Wed Feb 24 20:25:11 2016 +0100 login-utils: minor utmp cleanup - consistently use ut->ut_user instead of ut->ut_name - don't include obsolete lastlog.h BSD header Signed-off-by: Ruediger Meier login-utils/last.c | 2 +- login-utils/login.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) commit c12fc5e1cd2e3d3ecbe5fed804c35406e4d79745 Author: Ruediger Meier Date: Wed Feb 24 09:34:48 2016 +0100 build-sys: build_init should check for flock To let a plain ./configure work on systems without create_timer(). see 254743e4 Signed-off-by: Ruediger Meier configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit bbbf2aa85323f9aec3d7674d037d5245bb289b42 Author: Ruediger Meier Date: Wed Feb 24 02:07:57 2016 +0100 newgrp: rename memset_s() It's already defined in OSX standard c library. Signed-off-by: Ruediger Meier login-utils/newgrp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit eaac9f88f9020701496f704f940cb96c97bc4e6a Author: Ruediger Meier Date: Mon Feb 22 17:25:21 2016 +0100 misc: fix some includes features.h: any glibc header includes this already libgen.h: was unused there sys/uio.h: for writev(3p) sys/queue.h seems like it was never used Signed-off-by: Ruediger Meier configure.ac | 1 - lib/blkdev.c | 3 --- misc-utils/logger.c | 1 + misc-utils/test_uuidd.c | 1 - sys-utils/ipcs.c | 1 - sys-utils/lsipc.c | 1 - sys-utils/rtcwake.c | 1 - text-utils/pg.c | 1 - 8 files changed, 1 insertion(+), 9 deletions(-) commit beabee7c67ba519feffcc0a242aa0a1714c61398 Author: Ruediger Meier Date: Fri Feb 26 01:32:18 2016 +0100 libsmartcols: fix uninitialized variable This got broken in 2a750b4c. Signed-off-by: Ruediger Meier libsmartcols/src/table_print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 262c94c2c72a59c51d41f25a94ce50363591e6a3 Author: Ruediger Meier Date: Mon Feb 22 16:32:06 2016 +0100 fdisk: fix warning, incompatible pointer types passing 'uint64_t *' Signed-off-by: Ruediger Meier disk-utils/fdisk.c | 4 ++-- libfdisk/src/gpt.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) commit 4199e9891eb4b024792b18b21f576331d370fdc1 Author: Ruediger Meier Date: Fri Feb 19 01:44:14 2016 +0100 logger: use SCM_CREDENTIALS on LINUX only This is a build fix of FreeBSD and OSX. Basically we revert the following commit for non-linux systems: 27a9eb53 "use --id as local socket credentials" Note I could also compile it like this: #ifdef HAVE_SYS_UCRED_H # define _WANT_UCRED # include # include # define SCM_CREDENTIALS SCM_CREDS #endif [...] #ifdef _linux_ cred->pid = ctl->pid; #endif [...] ... but don't know how to test whether it does what it should. Signed-off-by: Ruediger Meier misc-utils/logger.c | 4 ++++ 1 file changed, 4 insertions(+) commit 7154cc892688f3c58cbbcdc2055f2635c1d0ef5b Author: Karel Zak Date: Wed Feb 24 15:21:38 2016 +0100 blkdiscard: add --zeroout (BLKZEROOUT ioctl) Requested-by: Yaniv Kaul Signed-off-by: Karel Zak sys-utils/blkdiscard.8 | 6 +++-- sys-utils/blkdiscard.c | 59 ++++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 51 insertions(+), 14 deletions(-) commit b64dc52a53fe33286d305f5e3af4dbe4afdf6fff Merge: 1c3ed5b 2013b33 Author: Karel Zak Date: Wed Feb 24 13:51:10 2016 +0100 Merge branch 'ldadd-cflags-warnings' of https://github.com/rudimeier/util-linux * 'ldadd-cflags-warnings' of https://github.com/rudimeier/util-linux: build-sys: disable unused parameter warnings for some test progs misc: fix compiler warnungs (unsigned/signed) misc: fix warnings "unused parameter" [-Wunused-parameter] libfdisk: fix warnings, "redundant redeclaration" [-Wredundant-decls] tests: fix compiler warnings [-Wmissing-prototypes] libfdisk: fix compiler warnings [-Wmissing-prototypes] libfdisk: fix missing symbol libblkid: fix compiler warnings [-Wmissing-prototypes] libmount: add mnt_fs_set_priority() build-sys: always add AM_CFLAGS build-sys: always use global LDADD commit 1c3ed5bf17503e22ef8da306dfaae14b27cd323d Author: Karel Zak Date: Wed Feb 24 13:42:28 2016 +0100 libsmartcols: fix stupid typo Signed-off-by: Karel Zak libsmartcols/src/table_print.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 249fc8fe899f51fad1eda05e97b38633ea78119f Author: Karel Zak Date: Wed Feb 24 13:28:19 2016 +0100 unshare: add example for persistent mount namespace References: https://github.com/karelzak/util-linux/issues/289 Signed-off-by: Karel Zak sys-utils/unshare.1 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) commit a03eac52942f46c43da1621a2bd956aec441bbe1 Author: Ruediger Meier Date: Wed Feb 24 12:29:49 2016 +0100 chrt: restore removed ifdef SCHED_RESET_ON_FORK They got lost in acde3a05. Signed-off-by: Ruediger Meier schedutils/chrt.c | 4 ++++ 1 file changed, 4 insertions(+) commit 59e4a3827b3572c8c4b61cbcf77b38be137bfd78 Author: Ruediger Meier Date: Wed Feb 24 12:29:48 2016 +0100 chrt: fix case SCHED_RR Looks like the logic was mistakenly changed in acde3a05. Signed-off-by: Ruediger Meier schedutils/chrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit cbe3e495357308177ca12e07996217ea663cbf78 Author: Karel Zak Date: Wed Feb 24 12:34:37 2016 +0100 libsmartcols: fix relative column width for maxout Signed-off-by: Karel Zak libsmartcols/samples/continuous.c | 7 ++-- libsmartcols/src/column.c | 2 +- libsmartcols/src/table.c | 12 ++++--- libsmartcols/src/table_print.c | 70 ++++++++++++++++++++++++--------------- 4 files changed, 56 insertions(+), 35 deletions(-) commit c1d185c77b8bb4c41c73896b685b01e304569a9e Author: Karel Zak Date: Wed Feb 24 12:04:24 2016 +0100 findmnt: use scols_table_print_range() for --poll This change fixes problem with duplicate header line. Signed-off-by: Karel Zak misc-utils/findmnt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 7db029e54a4c0fdab43e8f645e4f91314747887c Author: Karel Zak Date: Wed Feb 24 10:40:08 2016 +0100 logger: always update header when writing stdin line Addresses: http://bugs.debian.org/798239 Reported-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/logger.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) commit 2013b33f40cbd88def30725da84e4dff2f534632 Author: Ruediger Meier Date: Tue Feb 23 03:15:23 2016 +0100 build-sys: disable unused parameter warnings for some test progs Signed-off-by: Ruediger Meier configure.ac | 2 ++ libfdisk/src/Makemodule.am | 2 +- libmount/src/Makemodule.am | 2 +- libsmartcols/samples/Makemodule.am | 20 ++++++++++++-------- text-utils/Makemodule.am | 2 +- 5 files changed, 17 insertions(+), 11 deletions(-) commit b9710f1f0850100e59503729f6e12eaa0ded7314 Author: Ruediger Meier Date: Tue Feb 23 00:54:41 2016 +0100 misc: fix compiler warnungs (unsigned/signed) These ones should be fixed: libblkid/src/probe.c:393:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] libblkid/src/probe.c:907:25: warning: signed and unsigned type in conditional expression [-Wsign-compare] libblkid/src/probe.c:1221:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] libblkid/src/partitions/partitions.c:540:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] libblkid/src/partitions/partitions.c:1043:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] libblkid/src/partitions/partitions.c:1056:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] libblkid/src/partitions/partitions.c:1057:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] libblkid/src/partitions/partitions.c:1061:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] libblkid/src/partitions/partitions.c:1199:27: warning: signed and unsigned type in conditional expression [-Wsign-compare] libblkid/src/partitions/partitions.c:1410:26: warning: signed and unsigned type in conditional expression [-Wsign-compare] libblkid/src/partitions/partitions.c:1431:25: warning: signed and unsigned type in conditional expression [-Wsign-compare] libblkid/src/superblocks/linux_raid.c:151:8: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] libblkid/src/superblocks/linux_raid.c:155:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] libblkid/src/superblocks/superblocks.c:375:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] libblkid/src/superblocks/xfs.c:141:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] libsmartcols/src/table.c:333:24: warning: signed and unsigned type in conditional expression [-Wsign-compare] libsmartcols/src/table.c:344:25: warning: signed and unsigned type in conditional expression [-Wsign-compare] libsmartcols/src/table_print.c:753:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] libfdisk/src/ask.c:364:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] libfdisk/src/utils.c:33:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] libfdisk/src/context.c:435:56: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] libfdisk/src/context.c:730:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] libfdisk/src/script.c:557:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] libfdisk/src/dos.c:1791:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] libfdisk/src/gpt.c:813:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] misc-utils/logger.c:408:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] misc-utils/logger.c:408:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] misc-utils/logger.c:408:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] misc-utils/logger.c:408:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] misc-utils/logger.c:408:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] disk-utils/partx.c:140:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] disk-utils/partx.c:551:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] disk-utils/partx.c:640:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Signed-off-by: Ruediger Meier disk-utils/partx.c | 6 +++--- libblkid/src/partitions/partitions.c | 16 ++++++++-------- libblkid/src/probe.c | 6 +++--- libblkid/src/superblocks/linux_raid.c | 4 ++-- libblkid/src/superblocks/superblocks.c | 2 +- libblkid/src/superblocks/xfs.c | 2 +- libfdisk/src/ask.c | 2 +- libfdisk/src/context.c | 4 ++-- libfdisk/src/dos.c | 2 +- libfdisk/src/gpt.c | 2 +- libfdisk/src/script.c | 2 +- libfdisk/src/utils.c | 2 +- libsmartcols/src/table.c | 4 ++-- libsmartcols/src/table_print.c | 2 +- misc-utils/logger.c | 2 +- 15 files changed, 29 insertions(+), 29 deletions(-) commit 71177ab8f9460c9aafec89a3870bb5a46fc8b50b Author: Ruediger Meier Date: Tue Feb 23 00:26:46 2016 +0100 misc: fix warnings "unused parameter" [-Wunused-parameter] Signed-off-by: Ruediger Meier libblkid/src/superblocks/minix.c | 3 ++- libblkid/src/superblocks/nilfs.c | 3 ++- libblkid/src/superblocks/xfs.c | 3 ++- libblkid/src/superblocks/zfs.c | 3 ++- libfdisk/src/dos.c | 4 ++-- libfdisk/src/script.c | 8 ++++---- libsmartcols/src/table_print.c | 5 ++--- 7 files changed, 16 insertions(+), 13 deletions(-) commit 63a7065b2c200d901e2e83d9ae5298bd74b00d1b Author: Ruediger Meier Date: Mon Feb 22 23:53:31 2016 +0100 libfdisk: fix warnings, "redundant redeclaration" [-Wredundant-decls] Signed-off-by: Ruediger Meier libfdisk/src/fdiskP.h | 6 ------ 1 file changed, 6 deletions(-) commit 5fde1d9f066ba794824ae6d8fa44462865a8f5cc Author: Ruediger Meier Date: Mon Feb 22 23:30:17 2016 +0100 tests: fix compiler warnings [-Wmissing-prototypes] Signed-off-by: Ruediger Meier libblkid/src/dev.c | 2 +- libblkid/src/tag.c | 2 +- libfdisk/src/ask.c | 2 +- libfdisk/src/gpt.c | 4 ++-- libfdisk/src/script.c | 8 ++++---- libfdisk/src/utils.c | 2 +- libfdisk/src/version.c | 2 +- libmount/src/cache.c | 6 +++--- libmount/src/context.c | 8 ++++---- libmount/src/lock.c | 8 ++++---- libmount/src/monitor.c | 8 ++++---- libmount/src/optstr.c | 20 ++++++++++---------- libmount/src/tab.c | 16 ++++++++-------- libmount/src/tab_diff.c | 2 +- libmount/src/utils.c | 22 +++++++++++----------- libmount/src/version.c | 2 +- libsmartcols/samples/wrap.c | 2 +- 17 files changed, 58 insertions(+), 58 deletions(-) commit 74272f00e18158b3a007bd279f36115b6be34dad Author: Ruediger Meier Date: Mon Feb 22 23:06:28 2016 +0100 libfdisk: fix compiler warnings [-Wmissing-prototypes] Signed-off-by: Ruediger Meier libfdisk/src/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f3aca7ab210924f25037861261f240def1473a1b Author: Ruediger Meier Date: Mon Feb 22 23:04:27 2016 +0100 libfdisk: fix missing symbol Signed-off-by: Ruediger Meier libfdisk/src/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b55b9fccf6c1f06ba3e8cfb8ee6ee3df5f02c777 Author: Ruediger Meier Date: Mon Feb 22 22:23:38 2016 +0100 libblkid: fix compiler warnings [-Wmissing-prototypes] Signed-off-by: Ruediger Meier libblkid/src/partitions/partitions.c | 2 +- libblkid/src/superblocks/iso9660.c | 1 + libblkid/src/superblocks/linux_raid.c | 2 +- libblkid/src/superblocks/vfat.c | 3 +++ 4 files changed, 6 insertions(+), 2 deletions(-) commit 48df5980b4dc2d50f35d7a5b6e3d2664b81552bd Author: Ruediger Meier Date: Mon Feb 22 21:20:13 2016 +0100 libmount: add mnt_fs_set_priority() Looks like it got lost in ce4dd666. Compiler warning discoverd this issue: libmount/src/fs.c:1171:5: warning: no previous prototype for 'mnt_fs_set_priority' [-Wmissing-prototypes] int mnt_fs_set_priority(struct libmnt_fs *fs, int prio) ^ Signed-off-by: Ruediger Meier libmount/docs/libmount-sections.txt | 1 + libmount/src/libmount.h.in | 1 + libmount/src/libmount.sym | 1 + 3 files changed, 3 insertions(+) commit b0b54cc582ffc4f4faac2d4ad5cf9028a9eea013 Author: Ruediger Meier Date: Mon Feb 22 20:20:14 2016 +0100 build-sys: always add AM_CFLAGS We were missing our nice compliler warnings for many programs and libs. See next commits how many trivial and non-trival warnings have to be fixed. Signed-off-by: Ruediger Meier disk-utils/Makemodule.am | 4 ++-- lib/Makemodule.am | 28 ++++++++++++++-------------- libblkid/samples/Makemodule.am | 8 ++++---- libblkid/src/Makemodule.am | 1 + libfdisk/src/Makemodule.am | 1 + libmount/src/Makemodule.am | 1 + libsmartcols/samples/Makemodule.am | 8 ++++---- libsmartcols/src/Makemodule.am | 1 + libuuid/src/Makemodule.am | 3 ++- login-utils/Makemodule.am | 2 +- misc-utils/Makemodule.am | 3 ++- text-utils/Makemodule.am | 2 +- 12 files changed, 34 insertions(+), 28 deletions(-) commit b201f1d86c871f2cf3e9f9f96a6d72f363aa1947 Author: Ruediger Meier Date: Mon Feb 22 19:48:30 2016 +0100 build-sys: always use global LDADD This was a major showstopper when building on a system where LTLIBINTL libs are needed (e.g. OSX). Maybe there are a few test programs which wouldn't need LDADD ... never mind. Signed-off-by: Ruediger Meier lib/Makemodule.am | 8 ++++---- libblkid/samples/Makemodule.am | 8 ++++---- libblkid/src/Makemodule.am | 2 +- libfdisk/src/Makemodule.am | 2 +- libmount/src/Makemodule.am | 2 +- libsmartcols/samples/Makemodule.am | 8 ++++---- libuuid/src/Makemodule.am | 2 +- login-utils/Makemodule.am | 2 +- misc-utils/Makemodule.am | 3 ++- 9 files changed, 19 insertions(+), 18 deletions(-) commit 334e5eba9ee01357ca8275708711881fd9fbc99b Author: Karel Zak Date: Mon Feb 22 10:43:25 2016 +0100 libsmartcols: fix scols_table_print_range() to print header References: https://github.com/karelzak/util-linux/issues/287 Signed-off-by: Karel Zak libsmartcols/src/table_print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 96592b4902ca9b5672998da4c8fdf4968224def3 Merge: 80d00db cfa1857 Author: Karel Zak Date: Mon Feb 22 10:37:41 2016 +0100 Merge branch 'scols_table_print_range_to_string' of https://github.com/ignatenkobrain/util-linux commit 80d00db17ee74d1c650cdc53021244954b0f0afc Merge: e0bbe3d 423ef37 Author: Karel Zak Date: Mon Feb 22 09:50:57 2016 +0100 Merge branch 'errno-strutils' of https://github.com/rudimeier/util-linux commit e0bbe3d6ffed13ca5e4af450b8de775ddc5b30f3 Author: Hushan Jia Date: Sun Feb 21 21:10:24 2016 -0800 ipcs: show gid instead of uid ipcs -i incorrectly used uid where it should be gid Signed-off-by: Hushan Jia sys-utils/ipcs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 092bc0edaa23d58d4a5536bd1174a824f792c7fc Author: Romain Naour Date: Fri Feb 19 22:50:48 2016 +0100 vipw: Remove pre-ANSI compiler support __P() is used for compatibility with old K&R C compilers. With ANSI C this macro has no effect. This fixes a compilation error with musl libc because of undeclared __P. Ref: https://lists.samba.org/archive/samba-technical/2015-June/108042.html Signed-off-by: Romain Naour login-utils/vipw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7944a03cef6d0d237beb3e8f8b6b02dbd733cf80 Author: Romain Naour Date: Fri Feb 19 22:50:47 2016 +0100 build-sys: fix typo When timer_create is available have_timer must be set to "yes". But instead have_time is used. Replace have_time by have_timer. Fixes: http://autobuild.buildroot.net/results/993/9935cd0522d4f978ba2e788a690f66790686b76b Signed-off-by: Romain Naour configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit cfa185721e53444568f545fc058fba23087cf144 Author: Igor Gnatenko Date: Sun Feb 21 21:13:50 2016 +0100 libsmartcols: implement scols_table_print_range_to_string Reference: https://github.com/karelzak/util-linux/issues/283 Signed-off-by: Igor Gnatenko libsmartcols/docs/libsmartcols-docs.xml | 2 +- libsmartcols/docs/libsmartcols-sections.txt | 1 + libsmartcols/src/libsmartcols.h.in | 4 +++ libsmartcols/src/libsmartcols.sym | 1 + libsmartcols/src/table_print.c | 44 +++++++++++++++++++++++++++++ 5 files changed, 51 insertions(+), 1 deletion(-) commit 423ef3759268087bd17995db1fcf98d0e7c92952 Author: Ruediger Meier Date: Sun Feb 21 18:03:13 2016 +0100 tests: add logger tests "id _numbers_ with spaces" Leading spaces are allowed. Signed-off-by: Ruediger Meier tests/expected/logger/errors-check_socket | 7 +++++++ tests/expected/logger/errors-id_with_space | 6 ++++++ tests/ts/logger/errors | 4 ++++ 3 files changed, 17 insertions(+) commit f643d3349ed4f110401e009de2c04a8cb497fd5b Author: Ruediger Meier Date: Sun Feb 21 16:18:04 2016 +0100 lib/strutils: parse_size(), sync errno and return value Maybe strtosize_or_err() is the only function which uses this errno (wrongly). But it doesnt hurt to maintain rc as well as errno. Signed-off-by: Ruediger Meier lib/strutils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit ca8eff2ade9ed9981f77064e016b47151c4f7c4d Author: Ruediger Meier Date: Sun Feb 21 14:35:47 2016 +0100 lib/strutils: add more ERANGE messages Signed-off-by: Ruediger Meier lib/strutils.c | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) commit 73b9e094a8a55c9e0f8c148b9006df23c48697ac Author: Ruediger Meier Date: Sun Feb 21 14:12:01 2016 +0100 lib/strutils: fix errno usage in strtoint functions Don't use undefined errno: $ ./logger --no-act -t "wtf" --id="" message logger: failed to parse id: '': No such file or directory Don't print useless EINVAL message but ERANGE only: $ ./logger --no-act -t "wtf" --id="XX" message logger: failed to parse id: 'XX': Invalid argument Note the ERANGE-only improvement does not change anything on Linux/c99 as strtoul(3) only set ERANGE there. Signed-off-by: Ruediger Meier lib/strutils.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) commit 12ca9cb1f5efdbdbca3c4a9c4f685634b2c13221 Author: Karel Zak Date: Fri Feb 19 16:47:38 2016 +0100 libsmartcols: add sample-scols-continuous Signed-off-by: Karel Zak libsmartcols/samples/Makemodule.am | 8 ++- libsmartcols/samples/continuous.c | 128 +++++++++++++++++++++++++++++++++++++ 2 files changed, 135 insertions(+), 1 deletion(-) commit 2981e0fd0e238f120811e1955e4f1bfddf93a326 Author: Karel Zak Date: Fri Feb 19 16:43:28 2016 +0100 libsmartcols: support continuous printing This patch allows to disable line-breaks. This feature is usable when you want to re-print the same line more than once -- move terminal cursor to the begin of the line and print again and again (aka progress bar). Signed-off-by: Karel Zak libsmartcols/docs/libsmartcols-sections.txt | 1 + libsmartcols/src/cell.c | 2 +- libsmartcols/src/libsmartcols.h.in | 1 + libsmartcols/src/libsmartcols.sym | 1 + libsmartcols/src/smartcolsP.h | 2 ++ libsmartcols/src/table.c | 21 +++++++++++++++++++++ libsmartcols/src/table_print.c | 22 ++++++++++++++++++---- 7 files changed, 45 insertions(+), 5 deletions(-) commit 2a750b4c4ecb6a40b98cf481522ec7eaba5ca1fe Author: Karel Zak Date: Fri Feb 19 14:43:06 2016 +0100 libsmartcols: add scols_table_print_range() Signed-off-by: Karel Zak libsmartcols/docs/libsmartcols-sections.txt | 1 + libsmartcols/samples/tree.c | 47 +++++++--- libsmartcols/src/libsmartcols.h.in | 4 + libsmartcols/src/libsmartcols.sym | 1 + libsmartcols/src/table.c | 8 +- libsmartcols/src/table_print.c | 132 +++++++++++++++++++++------- 6 files changed, 142 insertions(+), 51 deletions(-) commit a8b122f229149149417c9bed646db439875745ee Author: Karel Zak Date: Fri Feb 19 11:38:04 2016 +0100 hwclock: use labs() for long Signed-off-by: Karel Zak sys-utils/hwclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 45c9a3d27ffc22139bc9453a58cf786613acf0f9 Merge: eae665f 440d1db Author: Karel Zak Date: Fri Feb 19 11:30:53 2016 +0100 Merge branch 'port-osx' of https://github.com/rudimeier/util-linux * 'port-osx' of https://github.com/rudimeier/util-linux: include: fix sys/sysinfo.h libblkid: don't include endian.h lib: fix ismounted includes for FreeBSD lib: remove unused variable lsns: use xcalloc() include: remove unused mntent.h include: check for sys/sysmacros.h lib: define LOGIN_NAME_MAX fallback include: provide MAP_ANONYMOUS on OSX lib: rename strmode() and setmode() tests: fix ts_option helpers build-sys: fix [g]libtoolize version for OSX build-sys: check linker support for version scripts build-sys: portable usage of find command travis: minor cleanup commit 440d1db7b0900b26a301f9ec0e28d391e90b3673 Author: Ruediger Meier Date: Thu Feb 18 03:18:38 2016 +0100 include: fix sys/sysinfo.h Signed-off-by: Ruediger Meier lib/monotonic.c | 2 ++ lib/timer.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) commit a8d4e707e2fdbcef4bd501f091ce4f4c8740998f Author: Ruediger Meier Date: Wed Feb 17 23:44:04 2016 +0100 libblkid: don't include endian.h Signed-off-by: Ruediger Meier libblkid/src/superblocks/drbdmanage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ac1c53e4519007955c6b51e1e87620a86e8f7f53 Author: Ruediger Meier Date: Wed Feb 17 23:28:52 2016 +0100 lib: fix ismounted includes for FreeBSD Signed-off-by: Ruediger Meier configure.ac | 2 ++ lib/ismounted.c | 11 ++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) commit b9071bf5dca960d2a1eab23d1dbe69346cf67d00 Author: Ruediger Meier Date: Wed Feb 17 22:46:11 2016 +0100 lib: remove unused variable Signed-off-by: Ruediger Meier lib/blkdev.c | 1 - 1 file changed, 1 deletion(-) commit 9d3d66dfaa975a119b1754a0269422566f200d87 Author: Ruediger Meier Date: Wed Feb 17 20:58:23 2016 +0100 lsns: use xcalloc() ... found by tools/checkxalloc.sh Signed-off-by: Ruediger Meier sys-utils/lsns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit f3e0213aa49503e22578953cae971a2822b4f21a Author: Ruediger Meier Date: Wed Feb 17 19:43:41 2016 +0100 include: remove unused mntent.h Signed-off-by: Ruediger Meier disk-utils/fsck.minix.c | 1 - disk-utils/mkfs.minix.c | 1 - disk-utils/mkswap.c | 1 - 3 files changed, 3 deletions(-) commit 66daee0765d26d6aa898d7b9358992be305a778b Author: Ruediger Meier Date: Wed Feb 17 18:52:10 2016 +0100 include: check for sys/sysmacros.h Signed-off-by: Ruediger Meier configure.ac | 1 + disk-utils/fsck.cramfs.c | 2 ++ disk-utils/raw.c | 2 ++ login-utils/login.c | 2 ++ 4 files changed, 7 insertions(+) commit 06c8aec38cc3b5b3f509e381962192329776f79b Author: Ruediger Meier Date: Sun Feb 7 14:10:27 2016 +0100 lib: define LOGIN_NAME_MAX fallback LOGIN_NAME_MAX was unused in misc-utils/namei.c since 04a5cb58. Signed-off-by: Ruediger Meier lib/idcache.c | 4 ++++ misc-utils/namei.c | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) commit 40733239a79b5fd1c761e03942044a1b5a39bc36 Author: Ruediger Meier Date: Thu Feb 18 16:37:13 2016 +0100 include: provide MAP_ANONYMOUS on OSX Hope there are no side effect when defining _DARWIN_C_SOURCE globally. Signed-off-by: Ruediger Meier configure.ac | 6 ++++++ include/c.h | 8 ++++++++ 2 files changed, 14 insertions(+) commit eae665f24b876618902ffa7ad78931adb3c04f5b Author: Karel Zak Date: Thu Feb 18 14:23:37 2016 +0100 libfdisk: fix typo Signed-off-by: Karel Zak libfdisk/src/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 97ffbd43d2b93242f8fc9fd5d36da8ea08c06d3c Author: Karel Zak Date: Thu Feb 18 12:57:31 2016 +0100 cfdisk: wipe device if create a new label Signed-off-by: Karel Zak disk-utils/cfdisk.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit 15b5e942f2c159db8f726079573bb77cdad560ed Author: Karel Zak Date: Thu Feb 18 12:57:13 2016 +0100 sfdisk: add --wipe This patch changes sfdisk behavior and it wipes foreign signatures from the device to avoid collisions. The wipe functionality is automatically enabled in the interactive mode only (user is always warned about it), otherwise it's possible to control all by --wipe . The program does not change behavior when executed in scripts (echo | sfdisk), the option "--wipe=always" is required to enable in this case. Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 11 +++++++++++ disk-utils/sfdisk.c | 32 +++++++++++++++++++++++++++++++- 2 files changed, 42 insertions(+), 1 deletion(-) commit cb9a4b0033eca429689a403be2a192fe2842f2e9 Author: Karel Zak Date: Thu Feb 18 12:50:11 2016 +0100 fdisk: add --wipe This patch changes fdisk behavior and it wipes foreign signatures from the device to avoid collisions. The wipe functionality is automatically enabled in the interactive mode only (user is always warned about it), otherwise it's possible to control all by --wipe . The program does not change behavior when executed in scripts (echo | fdisk), the option "--wipe=always" is required to enable in this case. Signed-off-by: Karel Zak disk-utils/fdisk-list.h | 28 ++++++++++++++++++++++++++++ disk-utils/fdisk.8 | 10 ++++++++++ disk-utils/fdisk.c | 28 +++++++++++++++++++++++++++- 3 files changed, 65 insertions(+), 1 deletion(-) commit 6cbb7371b349c63c6f3ba59a14acb0afc8ca3bde Author: Karel Zak Date: Thu Feb 18 12:42:06 2016 +0100 libfdisk: add API to control signatures wiping Now libfdisk warns if another filesystem/RAID/PT signature is detected on the device. It seems better and user-friendly to make it possible to wipe the signatures when we write a new disk label to the device. This patch adds to the library API fdisk_enable_wipe() fdisk_has_wipe() fdisk_get_collision() to control this new feature. The device modification is done by libblkid (the same we use in some mkfs-like utils). Signed-off-by: Karel Zak libfdisk/docs/libfdisk-sections.txt | 3 ++ libfdisk/src/context.c | 104 ++++++++++++++++++++++++++++++------ libfdisk/src/fdiskP.h | 5 ++ libfdisk/src/label.c | 6 +++ libfdisk/src/libfdisk.h.in | 4 ++ libfdisk/src/libfdisk.sym | 6 +++ 6 files changed, 113 insertions(+), 15 deletions(-) commit b0b24b11f8072fc854dbf6ee31be0feba93beba3 Author: Ruediger Meier Date: Sun Feb 7 12:59:57 2016 +0100 lib: rename strmode() and setmode() On BSD they are part of the standard C library. Signed-off-by: Ruediger Meier include/strutils.h | 2 +- lib/strutils.c | 2 +- libsmartcols/samples/tree.c | 2 +- misc-utils/lsblk.c | 2 +- misc-utils/namei.c | 2 +- sys-utils/lsipc.c | 6 +++--- text-utils/ul.c | 10 +++++----- 7 files changed, 13 insertions(+), 13 deletions(-) commit 4303124ad5879a100c6ddd6c28c74164de8e7afb Author: Ruediger Meier Date: Wed Feb 17 15:01:21 2016 +0100 tests: fix ts_option helpers These two problems should be fixed now: - BSD awk only accepts 1-char field seperator - ts_has_option() did not returned "yes" if an option was given multiple times Signed-off-by: Ruediger Meier tests/functions.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 6b5cad006f111acf63050d741be064c2c6e41be9 Author: Ruediger Meier Date: Thu Feb 18 01:21:57 2016 +0100 build-sys: fix [g]libtoolize version for OSX follow-up 0024583c Signed-off-by: Ruediger Meier autogen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3719bf8de9c40ac46a8a44b57623822aa2274a69 Author: Ruediger Meier Date: Wed Feb 17 17:37:41 2016 +0100 build-sys: check linker support for version scripts The macro AX_CHECK_VSCRIPT was taken from gnu autoconf archive. http://www.gnu.org/software/autoconf-archive/ Signed-off-by: Ruediger Meier configure.ac | 3 + libblkid/src/Makemodule.am | 4 +- libfdisk/src/Makemodule.am | 4 +- libmount/src/Makemodule.am | 4 +- libsmartcols/src/Makemodule.am | 4 +- libuuid/src/Makemodule.am | 4 +- m4/ax_check_vscript.m4 | 142 +++++++++++++++++++++++++++++++++++++++++ 7 files changed, 160 insertions(+), 5 deletions(-) commit 51658498c41f46950b6a418589b371c8ae8c09da Author: Ruediger Meier Date: Wed Feb 17 13:03:11 2016 +0100 build-sys: portable usage of find command - use dot instead of skipping search-path - avoid -perm /a+x - avoid -path Signed-off-by: Ruediger Meier tests/run.sh | 11 +++++++++-- tests/ts/build-sys/config | 2 +- tests/ts/cramfs/mkfs | 2 +- tools/checkmans.sh | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) commit 1091e83e8469c2bb2bc75cb908b6ae9a22919025 Author: Ruediger Meier Date: Mon Feb 15 18:15:58 2016 +0100 travis: minor cleanup - print env for debugging - remove unused builddir stuff - avoid non-portable find/xargs usage Signed-off-by: Ruediger Meier .travis-functions.sh | 31 ++++++++++--------------------- .travis.yml | 2 ++ 2 files changed, 12 insertions(+), 21 deletions(-) commit 99fcafdf5f9c8cf7dedeeb1246210013da58dfd7 Author: Yuriy M. Kaminskiy Date: Sat Jan 30 16:18:39 2016 +0300 unshare: fix busyloop and reduce racing probability Replace busy-loop with waiting on pipe from parent. Note: reduces racing probability, but still there are window where it is possible (if parent unshare process will be [externally] killed between successful read(fds[0]) and mount() calls). [kzak@redhat.com: - use all-io.h to avoid loops around write() and read(), - use less generic 0x06 byte to sync parent and child] Signed-off-by: Yuriy M. Kaminskiy Signed-off-by: Karel Zak sys-utils/unshare.c | 40 ++++++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) commit d689166b11c5ee89a754d46cc1ce09f27bde0a31 Author: Karel Zak Date: Wed Feb 17 12:53:20 2016 +0100 agetty: support \e{name} for issue file Signed-off-by: Karel Zak term-utils/agetty.8 | 9 +++++++-- term-utils/agetty.c | 12 +++++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) commit 4683cf3673f15e0136129427d4a170f98fdd9da7 Author: Karel Zak Date: Wed Feb 17 12:17:23 2016 +0100 lib/color: add more ESC seq. Signed-off-by: Karel Zak include/color-names.h | 4 ++++ lib/color-names.c | 5 +++++ lib/terminal-colors.d.5 | 6 ++++-- 3 files changed, 13 insertions(+), 2 deletions(-) commit e05ac5aae00913e7a999c96a7bb731dc1d09cc5c Author: J William Piggott Date: Tue Feb 16 19:28:36 2016 -0500 hwclock.c, hwclock.8.in: new --show format * hwclock.c: change --get and --show functions to the ISO 8601 format and concatenate fractional seconds to the time display. * hwclock.8.in: document this. Signed-off-by: J William Piggott sys-utils/hwclock.8.in | 8 +++----- sys-utils/hwclock.c | 17 +++++++++-------- 2 files changed, 12 insertions(+), 13 deletions(-) commit 9ea16fdc2ab2405df4ed42bbd103407e42519b70 Merge: dc7c3d6 d381f70 Author: Karel Zak Date: Tue Feb 16 16:14:52 2016 +0100 Merge branch 'wrap_padding' of https://github.com/ignatenkobrain/util-linux commit dc7c3d658782f6c2a409c6e76e32db3afc86c4ed Author: Karel Zak Date: Tue Feb 16 15:44:31 2016 +0100 libmount: fix mnt_table_is_fs_mounted() loopdev use The function does not detect already mounted loop devices on systems with regular /etc/mtab file. The patch also improves test_is_mounted() to be useful with mtab. Reported-by: Ruediger Meier Signed-off-by: Karel Zak libmount/src/tab.c | 33 +++++++++++++++++++-------------- libmount/src/tab_parse.c | 1 + libmount/src/utils.c | 5 ++++- 3 files changed, 24 insertions(+), 15 deletions(-) commit 7bbde59c8caa64ce572c935169e60d1b5c6b782b Author: Karel Zak Date: Tue Feb 16 15:03:22 2016 +0100 libmount: add loop to debug output Signed-off-by: Karel Zak libmount/src/context_loopdev.c | 33 +++++++++++++++++---------------- libmount/src/init.c | 1 + libmount/src/mountP.h | 1 + 3 files changed, 19 insertions(+), 16 deletions(-) commit d381f70814fcc5d4584f40926f3b9e43ae1e04eb Author: Igor Gnatenko Date: Tue Feb 16 12:57:55 2016 +0100 libsmartcols: fill wrapped lines with space instead of 'x' Signed-off-by: Igor Gnatenko libsmartcols/src/table_print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f776d76e49e83c7be739656310c4c39a577b4434 Author: Karel Zak Date: Tue Feb 16 10:27:56 2016 +0100 build-sys: use $PKG_CONFIG Reported-by: Helmut Grohne References: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811546 Signed-off-by: Karel Zak m4/ul.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit c619d3d167115990e9228b27851e0cc2faa8f936 Author: Karel Zak Date: Mon Feb 15 13:55:37 2016 +0100 su: clean up groups initialization This patch does not change any su/runuser behaviour, code changes: * don't use huge groups[NGROUPS_MAX]; the array has 256k, but we need it only occasionally when -G/-g specified. * the current code uses groups[0] for -g and the rest for -G, this patch adds 'gid' to remember -g argument to avoid memmove() * add function add_supp_group() to simplify su_main() * add note about -G and -g relation to the man pages (undocumented now) Signed-off-by: Karel Zak login-utils/runuser.1 | 3 ++- login-utils/su-common.c | 70 +++++++++++++++++++++++++++---------------------- login-utils/su.1 | 3 ++- 3 files changed, 42 insertions(+), 34 deletions(-) commit f16f28b0fc0ce09720181b2088254a3a1d0b547a Author: Igor Gnatenko Date: Sat Feb 13 16:13:04 2016 +0100 libsmartcols: print title only with SCOLS_FMT_HUMAN Reference: https://github.com/karelzak/util-linux/issues/279 Signed-off-by: Igor Gnatenko libsmartcols/src/table_print.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit e7fccab111068d476ef91d9bcc0d59adf751ccfc Author: Ruediger Meier Date: Fri Feb 12 17:28:04 2016 +0100 tests: mkfs.ext3 image-file needs option -F Maybe on newer systems it's not needed anymore. CC: Stanislav Brabec Signed-off-by: Ruediger Meier tests/ts/mount/fstab-loop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c2114018018b836b743265ef6014387952219d94 Author: Ruediger Meier Date: Fri Feb 12 14:30:52 2016 +0100 misc: always cast timeval.tv_usec to long rather than int Signed-off-by: Ruediger Meier sys-utils/dmesg.c | 15 ++++++++------- sys-utils/hwclock.c | 35 ++++++++++++++++++----------------- 2 files changed, 26 insertions(+), 24 deletions(-) commit f81faffa4c86613b79314c55100737d527882906 Author: Ruediger Meier Date: Tue Feb 9 22:12:51 2016 +0100 travis: install mdadm Travis build host is able to load kernel modules nowadays! Signed-off-by: Ruediger Meier .travis-functions.sh | 1 + 1 file changed, 1 insertion(+) commit 6744eedcc7220b155c72f7c8c4723a6b7f9be7ac Author: Ruediger Meier Date: Wed Feb 10 23:29:42 2016 +0100 tests: disable eject for broken kernels Signed-off-by: Ruediger Meier tests/ts/eject/umount | 7 +++++++ 1 file changed, 7 insertions(+) commit 63d14fe9393792838f1776146d093fbc9cf6c9b9 Author: Ruediger Meier Date: Tue Feb 9 16:24:25 2016 +0100 tests: add some check_test_command requirements Signed-off-by: Ruediger Meier tests/ts/blkid/mbr-wholedisk | 2 ++ tests/ts/losetup/losetup | 1 + tests/ts/losetup/losetup-blkdev | 1 + 3 files changed, 4 insertions(+) commit 0ec9bba2ca1688290d6a0008fa16b3a4c3047c22 Author: Ruediger Meier Date: Mon Feb 8 13:53:17 2016 +0100 misc-utils: build test_uuidd only if BUILD_UUIDD Signed-off-by: Ruediger Meier misc-utils/Makemodule.am | 5 + misc-utils/test_uuidd.c | 339 ++++++++++++++++++++++++++++++++++++++++++++ tests/helpers/Makemodule.am | 5 - tests/helpers/test_uuidd.c | 339 -------------------------------------------- 4 files changed, 344 insertions(+), 344 deletions(-) commit 0024583ca048414c69eacb467e7e1805db2ba69c Author: Ruediger Meier Date: Sun Feb 7 11:01:22 2016 +0100 build-sys: fix libtoolize for OSX autoreconf would also call glibtoolize on Darwin. Signed-off-by: Ruediger Meier autogen.sh | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) commit 173607a25461a33ec659b8a598ef351a472daa36 Merge: aa4e57e 7f79adb Author: Karel Zak Date: Fri Feb 12 13:35:18 2016 +0100 Merge branch 'compiler-warnings' of https://github.com/rudimeier/util-linux * 'compiler-warnings' of https://github.com/rudimeier/util-linux: exec_shell: prevent basename from modifying env lib/path: ifdef path_set_prefix() like in path.h lib: fix unused parameters and variables misc: fix some printf format strings include: add missing includes ipcs: ulong -> unsigned long libcommon: don't include sysinfo.h commit aa4e57e3ba6c8ae96cecc13009095fac7301fba1 Merge: 9a18b8b 05894f0 Author: Karel Zak Date: Fri Feb 12 13:15:25 2016 +0100 Merge branch 'travis2' of https://github.com/filbranden/util-linux commit 9a18b8bce3dac7452a7c57f081f1a55cd092ebee Merge: af86564 01e8c90 Author: Karel Zak Date: Fri Feb 12 13:15:00 2016 +0100 Merge branch 'test-fixes' of https://github.com/rudimeier/util-linux * 'test-fixes' of https://github.com/rudimeier/util-linux: tests: ts_fdisk_clean(), remove optimal iosize tests: minor cleanup ts_fdisk_clean() commit af86564357ca39b69bf91b615e412004e1fb5da0 Author: Karel Zak Date: Fri Feb 12 13:09:28 2016 +0100 libmount: fix memleak in mnt_pretty_path() References: https://github.com/karelzak/util-linux/issues/275 Signed-off-by: Karel Zak libmount/src/cache.c | 1 + 1 file changed, 1 insertion(+) commit d0fe12aeb4ac2f3f20f82664cd2f50ba35c8ba89 Author: Karel Zak Date: Fri Feb 12 11:21:50 2016 +0100 sulogin: keep initialization more robust Signed-off-by: Karel Zak login-utils/sulogin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit cde7699c27ff22bed8d554d50e10a42ec0dba6d8 Author: Werner Fink Date: Thu Feb 11 13:35:26 2016 +0100 sulogin: avoid shared memory area usemask but use waitid() for childs This small patch improves the console detection code and also avoids not existing device nodes due strdup() which is used in canonicalize_path(). Beside this now the code for emergeny mount does work if enabled at configure time. Signed-off-by: Werner Fink login-utils/sulogin-consoles.c | 53 ++++++++++++++++----- login-utils/sulogin.c | 104 ++++++++++++++++++++++++++++++----------- 2 files changed, 120 insertions(+), 37 deletions(-) commit 5ee870c98c9d4ee38ce01fd86c5506bc40e5ce29 Author: Stanislav Brabec Date: Thu Feb 11 20:45:56 2016 +0100 tests: add test for loop option in fstab Add a new fstab tests which check loop mount of the same source multiple times in multiple steps. The test is currently failing, but it should not fail once the triggering bug will be fixed. Signed-off-by: Stanislav Brabec tests/expected/mount/fstab-loop | 1 + tests/ts/mount/fstab-loop | 51 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) commit d58b9706ed8a10cc484835119ed10385d141eb6c Author: Karel Zak Date: Fri Feb 12 11:03:32 2016 +0100 libmount: fix mnt_table_is_fs_mounted() for loopdev Reported-by: Stanislav Brabec Signed-off-by: Karel Zak libmount/src/tab.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) commit b59c3bf292269be1a203f91563b961e0062e0a5f Author: Stanislav Brabec Date: Thu Feb 11 20:40:29 2016 +0100 tests: fix redirection Many tests do. 2>&1 >> $TS_OUTPUT It redirects stdout to $TS_OUTPUT and stderr to stdout. It could cause unintended ignoring of errors on strerr and false positive result of the test. Use >> $TS_OUTPUT 2>&1 instead to redirect both stdout and stderr to $TS_OUTPUT. Automatically created by: cd tests/ts sed -i 's:2>\&1 >> \$TS_OUTPUT:>> $TS_OUTPUT 2>\&1:g' $(fgrep -rl '2>&1 >> $TS_OUTPUT' .) Signed-off-by: Stanislav Brabec tests/ts/cramfs/doubles | 2 +- tests/ts/cramfs/fsck-endianness | 2 +- tests/ts/cramfs/mkfs | 2 +- tests/ts/hexdump/format-strings | 4 ++-- tests/ts/minix/fsck | 4 ++-- tests/ts/mount/devname | 2 +- tests/ts/mount/fslists | 8 ++++---- tests/ts/mount/fstab-btrfs | 28 ++++++++++++++-------------- tests/ts/mount/fstab-devname | 4 ++-- tests/ts/mount/fstab-devname2label | 2 +- tests/ts/mount/fstab-devname2uuid | 2 +- tests/ts/mount/fstab-label | 6 +++--- tests/ts/mount/fstab-label2devname | 4 ++-- tests/ts/mount/fstab-label2uuid | 4 ++-- tests/ts/mount/fstab-none | 2 +- tests/ts/mount/fstab-symlink | 6 +++--- tests/ts/mount/fstab-uuid | 6 +++--- tests/ts/mount/fstab-uuid2devname | 4 ++-- tests/ts/mount/fstab-uuid2label | 4 ++-- tests/ts/mount/label | 4 ++-- tests/ts/mount/regfile | 2 +- tests/ts/mount/uuid | 4 ++-- tests/ts/swapon/devname | 2 +- tests/ts/swapon/label | 2 +- tests/ts/swapon/uuid | 2 +- 25 files changed, 56 insertions(+), 56 deletions(-) commit c4af75a84ef3430003c77be2469869aaf3a63e2a Author: Stanislav Brabec Date: Thu Feb 11 19:07:22 2016 +0100 tests: add btrfs mount tests btrfs needs a special support in mount. Add a testcase for btrfs specific problems. Coverage: 352740e8: bind mounts pointing to btrfs 2cd28fc8: mounting default subvolume d2f82678: use of "auto" 618a8814: use of "subvolid" Signed-off-by: Stanislav Brabec tests/expected/mount/fstab-btrfs | 1 + tests/expected/mount/fstab-btrfs-auto | 1 + tests/expected/mount/fstab-btrfs-btrfs | 1 + tests/ts/mount/fstab-btrfs | 128 +++++++++++++++++++++++++++++++++ 4 files changed, 131 insertions(+) commit 7f79adb3429efe130ceb1b32032a1925abe66d76 Author: Ruediger Meier Date: Thu Feb 11 03:45:11 2016 +0100 exec_shell: prevent basename from modifying env Fix warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] Signed-off-by: Ruediger Meier lib/exec_shell.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit 4a04d7f3d618299739557a252046e65b87215753 Author: Ruediger Meier Date: Thu Feb 11 03:15:12 2016 +0100 lib/path: ifdef path_set_prefix() like in path.h Signed-off-by: Ruediger Meier lib/path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 8b9cf26affe26b454f293e1a59049eed586be450 Author: Ruediger Meier Date: Thu Feb 11 02:58:03 2016 +0100 lib: fix unused parameters and variables Signed-off-by: Ruediger Meier lib/at.c | 11 ++++++----- lib/blkdev.c | 33 ++++++++++++++++++++++++--------- lib/ismounted.c | 24 +++++++++++++----------- 3 files changed, 43 insertions(+), 25 deletions(-) commit 7231fb2a5b0b0ebf2be047a23a11ca43e786861b Author: Ruediger Meier Date: Tue Feb 9 18:08:56 2016 +0100 misc: fix some printf format strings Fix the warnings below for OSX clang and add a few more casts for timeval: lib/at.c:131:27: warning: format specifies type 'intmax_t' (aka 'long') but the argument has type 'off_t' (aka 'long long') [-Wformat] printf("%16jd bytes ", st.st_size); ~~~~~ ^~~~~~~~~~ lib/strutils.c:522:52: warning: format specifies type 'intmax_t' (aka 'long') but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] snprintf(buf, sizeof(buf), "%d%s%jd%s", dec, dp, frac, suffix); ~~~ ^~~~ lib/sysfs.c:468:42: warning: format specifies type 'uintmax_t' (aka 'unsigned long') but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] len = snprintf(buf, sizeof(buf), "%ju", num); ~~~ ^~~ libuuid/src/gen_uuid.c:316:34: warning: format specifies type 'unsigned long' but the argument has type '__darwin_suseconds_t' (aka 'int') [-Wformat] clock_seq, last.tv_sec, last.tv_usec, adjustment); ^~~~~~~~~~~~ Signed-off-by: Ruediger Meier disk-utils/fsck.c | 24 ++++++++++++------------ lib/at.c | 2 +- lib/strutils.c | 2 +- lib/sysfs.c | 2 +- libuuid/src/gen_uuid.c | 4 ++-- libuuid/src/uuid_time.c | 2 +- term-utils/script.c | 3 ++- 7 files changed, 20 insertions(+), 19 deletions(-) commit 583627ef363f0e0bd8a7dac646507c2458accc56 Author: Karel Zak Date: Thu Feb 11 12:33:57 2016 +0100 agetty: add support for \e in issue file to print \033 Suggested-by: Victor Ananjevsky Signed-off-by: Karel Zak term-utils/agetty.8 | 3 +++ term-utils/agetty.c | 3 +++ 2 files changed, 6 insertions(+) commit 948d1f31142d95850f65ae70c591a7b319decb81 Author: Ruediger Meier Date: Tue Feb 9 12:52:20 2016 +0100 include: add missing includes lib/pager.c: signal.h ... raise(3p) lib/sysfs.c: libgen.h ... basename(3p) lib/exec_shell.c: libgen.h ... basename(3p) Signed-off-by: Ruediger Meier lib/exec_shell.c | 1 + lib/pager.c | 1 + lib/sysfs.c | 1 + 3 files changed, 3 insertions(+) commit 8fe76cd1711e2e0039e274fd79c859182b97348f Author: Ruediger Meier Date: Mon Feb 8 15:38:48 2016 +0100 ipcs: ulong -> unsigned long Signed-off-by: Ruediger Meier sys-utils/ipcutils.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 930a56620790127a03ea262fe490981b8e032411 Author: Ruediger Meier Date: Mon Feb 8 13:29:25 2016 +0100 libcommon: don't include sysinfo.h It was added in 929f939e but should have been removed again in 08ca3e26. Signed-off-by: Ruediger Meier lib/timeutils.c | 2 -- 1 file changed, 2 deletions(-) commit 79c101427fcad053c75e59be9d223d83eec70642 Author: Karel Zak Date: Thu Feb 11 12:21:14 2016 +0100 colcrt: minor cosmetic changes Signed-off-by: Karel Zak text-utils/colcrt.c | 49 +++++++++++++++++++++++++++++++++++-------------- 1 file changed, 35 insertions(+), 14 deletions(-) commit eac478dcfd6ab8f3eb1ed1acbcb872573da02a0f Author: Karel Zak Date: Thu Feb 11 12:07:34 2016 +0100 swapon: drop perms if setuid before call mkswap Signed-off-by: Karel Zak sys-utils/swapon.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) commit 8292273fde4112ab329bc49e5a565bba4b3dd1ae Merge: a125123 c1ca4fc Author: Karel Zak Date: Thu Feb 11 11:59:58 2016 +0100 Merge branch 'colcrt' of git://github.com/kerolasa/lelux-utiliteetit * 'colcrt' of git://github.com/kerolasa/lelux-utiliteetit: tests: update colcrt test expectations colcrt: reimplementation tests: add colcrt functional tests commit a125123f8bb16354da1231630370f50354a78cbe Author: Karel Zak Date: Thu Feb 11 11:39:16 2016 +0100 swapon: simplify ctl->device usage * use and initialize ctl->{label,uuid,device} by do_swapon() only * remove ctl->canonic, function arguments are good enough for this Signed-off-by: Karel Zak sys-utils/swapon.c | 80 +++++++++++++++++++++++++----------------------------- 1 file changed, 37 insertions(+), 43 deletions(-) commit 8843aa41a74b4d3b3dc69fee339d2e64cb5c778f Author: Sami Kerola Date: Tue Feb 2 13:40:10 2016 +0000 swapon: do not run execvp() calls when swapon is setuid binary swapon(8) is not expected to be setuid binary, but if it is try to avoid obvious security vulnerability of executing user preferred mkswap file as someone else, such as root. Signed-off-by: Sami Kerola sys-utils/swapon.c | 4 ++++ 1 file changed, 4 insertions(+) commit 2dd3ba2c8566e41fc8532df35b3b5f942c37377c Author: Sami Kerola Date: Tue Feb 2 13:40:09 2016 +0000 swapon: move function arguments to control structure This makes reading what the code does easier. This change also makes error messages to prefer none-canonical device path, e.g., the one user supplied rather than the canonical path needed internally. Signed-off-by: Sami Kerola sys-utils/swapon.c | 158 ++++++++++++++++++++++++++--------------------------- 1 file changed, 77 insertions(+), 81 deletions(-) commit 9eeba70eeda0585d224bd27ec9df8c1d7fa96dae Author: Sami Kerola Date: Tue Feb 2 13:40:08 2016 +0000 swapon: add control struct Signed-off-by: Sami Kerola sys-utils/swapon.c | 253 +++++++++++++++++++++++++++-------------------------- 1 file changed, 129 insertions(+), 124 deletions(-) commit 01e8c90ca2fb840aeda2e83206ec37b959eab875 Author: Ruediger Meier Date: Thu Feb 4 00:58:04 2016 +0100 tests: ts_fdisk_clean(), remove optimal iosize It's a pity a pity that we have to remove it. In past our test suite could discover a kernel bug (4.4). But now they've changed optimal iosizes on purpose. Signed-off-by: Ruediger Meier tests/expected/blkid/md-raid0-whole | 2 +- tests/expected/blkid/md-raid1-part | 2 +- tests/expected/blkid/md-raid1-whole | 2 +- tests/expected/fdisk/align-512-4K | 2 +- tests/expected/fdisk/align-512-4K-63 | 2 +- tests/expected/fdisk/align-512-4K-md | 4 ++-- tests/expected/fdisk/align-512-512 | 2 +- tests/expected/fdisk/align-512-512-topology | 2 +- tests/expected/fdisk/bsd | 10 ++++----- tests/expected/fdisk/gpt | 14 ++++++------- tests/expected/fdisk/mbr-dos-mode | 22 ++++++++++---------- tests/expected/fdisk/mbr-nondos-mode | 24 +++++++++++----------- tests/expected/fdisk/mbr-sort | 8 ++++---- tests/expected/fdisk/sunlabel | 12 +++++------ tests/expected/libfdisk/gpt-all-defaults | 2 +- tests/expected/sfdisk/dos-activate | 2 +- tests/expected/sfdisk/dos-dump-gaps | 2 +- tests/expected/sfdisk/dos-dump-old | 2 +- tests/expected/sfdisk/dos-explicit-size | 2 +- tests/expected/sfdisk/dos-read-dump | 2 +- tests/expected/sfdisk/dos-resize | 2 +- tests/expected/sfdisk/dos-simple-commas | 2 +- tests/expected/sfdisk/dos-simple-space | 2 +- tests/expected/sfdisk/gpt-all-defaults | 2 +- tests/expected/sfdisk/gpt-list-pmbr | 2 +- tests/expected/sfdisk/gpt-read-dump | 4 ++-- tests/expected/sfdisk/gpt-reorder | 4 ++-- tests/expected/sfdisk/gpt-resize | 2 +- tests/expected/sfdisk/movedata-down | 2 +- tests/expected/sfdisk/movedata-non-overlay | 2 +- tests/expected/sfdisk/movedata-up | 2 +- .../expected/sfdisk/resize-dos-0-move-up-absolute | 2 +- .../sfdisk/resize-dos-1-move-down-absolute | 2 +- tests/expected/sfdisk/resize-dos-10-down-enlarge | 2 +- .../sfdisk/resize-dos-11-absolute-move-resize | 2 +- tests/expected/sfdisk/resize-dos-12-reduce-midle | 2 +- tests/expected/sfdisk/resize-dos-13-max-last | 2 +- .../expected/sfdisk/resize-dos-2-move-up-relative | 2 +- .../sfdisk/resize-dos-3-move-down-relative | 2 +- .../expected/sfdisk/resize-dos-4-enlarge-absolute | 2 +- tests/expected/sfdisk/resize-dos-5-reduce-absolute | 2 +- .../expected/sfdisk/resize-dos-6-enlarge-relative | 2 +- tests/expected/sfdisk/resize-dos-7-reduce-relative | 2 +- tests/expected/sfdisk/resize-dos-8-enlarge-all | 2 +- tests/expected/sfdisk/resize-dos-9-up-preduce | 2 +- .../expected/sfdisk/resize-gpt-0-move-up-absolute | 2 +- .../sfdisk/resize-gpt-1-move-down-absolute | 2 +- tests/expected/sfdisk/resize-gpt-10-down-enlarge | 2 +- .../sfdisk/resize-gpt-11-absolute-move-resize | 2 +- tests/expected/sfdisk/resize-gpt-12-reduce-midle | 2 +- tests/expected/sfdisk/resize-gpt-13-max-last | 2 +- .../expected/sfdisk/resize-gpt-2-move-up-relative | 2 +- .../sfdisk/resize-gpt-3-move-down-relative | 2 +- .../expected/sfdisk/resize-gpt-4-enlarge-absolute | 2 +- tests/expected/sfdisk/resize-gpt-5-reduce-absolute | 2 +- .../expected/sfdisk/resize-gpt-6-enlarge-relative | 2 +- tests/expected/sfdisk/resize-gpt-7-reduce-relative | 2 +- tests/expected/sfdisk/resize-gpt-8-enlarge-all | 2 +- tests/expected/sfdisk/resize-gpt-9-up-preduce | 2 +- tests/functions.sh | 1 + 60 files changed, 102 insertions(+), 101 deletions(-) commit 23d8c556848c8121e50ff77b16254f1802aa681a Author: Ruediger Meier Date: Wed Feb 3 23:44:42 2016 +0100 tests: minor cleanup ts_fdisk_clean() Signed-off-by: Ruediger Meier tests/functions.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) commit a7f160f9e10665bd7c9f675aa4ba6b649c1f1f79 Author: Karel Zak Date: Wed Feb 10 16:59:41 2016 +0100 build-sys: remove AM_CONDITIONAL from UL_CHECK_SYSCALL Unused, unnecessary, wrong. Reported-by: J William Piggott Signed-off-by: Karel Zak m4/ul.m4 | 8 -------- 1 file changed, 8 deletions(-) commit 20759a42ecb3bed482bd6b7902228ca1f00200a7 Author: Karel Zak Date: Wed Feb 10 15:37:30 2016 +0100 libsmartcols: rewrite ./sample-scols-wrap Signed-off-by: Karel Zak libsmartcols/samples/wrap.c | 52 +++++++++++++++++++++++++++++++++------------ 1 file changed, 39 insertions(+), 13 deletions(-) commit d94c519877278124691be5ea3c8dbc729c1962e5 Author: Karel Zak Date: Wed Feb 10 15:25:38 2016 +0100 libsmartcols: support multi-line cells The initial implementation has been introduced by SCOLS_FL_WRAP columns, but this patch clean ups all and makes things more elegant. Note that use SCOLS_FL_TREE | SCOLS_FL_WRAP for a column is bad idea and I don't think we need to fix it. References: https://github.com/karelzak/util-linux/issues/269 Signed-off-by: Karel Zak lib/mbsalign.c | 3 +- libsmartcols/src/column.c | 1 + libsmartcols/src/libsmartcols.h.in | 2 +- libsmartcols/src/smartcolsP.h | 4 + libsmartcols/src/table_print.c | 209 +++++++++++++++++++++++++++++-------- 5 files changed, 176 insertions(+), 43 deletions(-) commit 05894f05bd96b0de2ea0d1ea930acc15b75a9406 Author: Filipe Brandenburger Date: Tue Feb 9 15:13:43 2016 -0800 travis: Remove workaround for libtool install of pylibmount Commit 324330aca6443d ("build-sys: Properly order install dependencies of pylibmount") introduces a proper make dependency for the install rules, in a way that the workaround is no longer necessary. Tested that a PR with this commit passes Travis-CI. Signed-off-by: Filipe Brandenburger .travis-functions.sh | 4 ---- 1 file changed, 4 deletions(-) commit e865838d6ddcb0fed74e3819b503c6f7ccad452b Author: Karel Zak Date: Tue Feb 9 11:21:21 2016 +0100 libsmartcols: use libscols_cell for title References: https://github.com/karelzak/util-linux/issues/270 Signed-off-by: Karel Zak libsmartcols/docs/libsmartcols-sections.txt | 5 +- libsmartcols/samples/title.c | 15 ++++-- libsmartcols/src/cell.c | 29 +++++++++++ libsmartcols/src/libsmartcols.h.in | 16 +++--- libsmartcols/src/libsmartcols.sym | 5 +- libsmartcols/src/smartcolsP.h | 5 +- libsmartcols/src/table.c | 78 ++--------------------------- libsmartcols/src/table_print.c | 32 +++++++----- 8 files changed, 78 insertions(+), 107 deletions(-) commit f4a1d26609bf31cca2da9756f48703e62565af5b Author: Karel Zak Date: Tue Feb 9 10:04:36 2016 +0100 libfdisk: add missing break Signed-off-by: Karel Zak libfdisk/src/script.c | 1 + 1 file changed, 1 insertion(+) commit c78f4d0a4a2d371e380bb757d3427db6341b8f3d Merge: 300e24a 324330a Author: Karel Zak Date: Tue Feb 9 09:57:48 2016 +0100 Merge branch 'pylibmount_dependency' of https://github.com/filbranden/util-linux commit 300e24a8eaf4658961ee725505ef56f48dec2ec4 Author: Karel Zak Date: Mon Feb 8 16:34:14 2016 +0100 sfdisk: add ESP shortcut also for Legacy MBR References: https://github.com/karelzak/util-linux/issues/267 Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 2 +- libfdisk/src/script.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) commit 324330aca6443dcc8ae795652b0df0f4d4c37d88 Author: Filipe Brandenburger Date: Fri Feb 5 10:13:40 2016 -0800 build-sys: Properly order install dependencies of pylibmount Introduce a dependency so that libmount.so is installed before pylibmount.so, so that when libtool tries to relink it, it can find libmount.so in the destdir. We introduce this additional make rule through an AC_SUBST variable, to prevent automake from trying to interpret that. This trick has been suggested in http://stackoverflow.com/a/8643550. This fixes a failure of `make install DESTDIR=...` when trying to relink pylibmount against libmount.la. libtool will look for libmount.so under ${DESTDIR}/${libdir} in that case, but if it is not yet present there, libtool assumes it is a system installed library and use -lmount instead, which causes the following failure if libmount is not installed on the base system yet: libtool: install: warning: relinking `pylibmount.la' libtool: install: (... libtool --mode=relink gcc -o pylibmount.la \ -rpath /usr/lib/python2.7/dist-packages/libmount \ libmount/python/*.lo libmount.la ... -lpython2.7 \ -inst-prefix-dir /path/to/destdir) /usr/bin/ld: cannot find -lmount collect2: error: ld returned 1 exit status libtool: install: error: relink `pylibmount.la' ... make[3]: *** [install-pylibmountexecLTLIBRARIES] Error 1 This seems to be a previously encountered issue, since automake includes a hack to insert such a dependency rule to install all libLTLIBRARIES before attempting to install binPROGRAMS, initially introduced in the commit below: http://git.savannah.gnu.org/cgit/automake.git/commit/?id=bd4a1d5ad1a72fa780a8b7fd6c365a5dad2e6220 Also related bug from Ubuntu tracker: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1442076 Tested that `make install` starts working again after this commit, even when libmount-dev is not installed on the system. Also confirmed that `make distcheck` is now functional. Confirmed that the all the files expected in the Python directory (both __init__.py and pylibmount.so) are present after an install. Tested that parallel install works, the dependency is always respected since it's explicit. Inspected the generated Makefile and confirmed that the definition of install-pylibmountexecLTLIBRARIES (generated by automake) and the explicit dependency we introduced are both present. Signed-off-by: Filipe Brandenburger Makefile.am | 8 ++++++++ configure.ac | 12 ++++++++++++ 2 files changed, 20 insertions(+) commit d54eb46646213d99d3ce74a89b3c55f2be061b4d Author: Filipe Brandenburger Date: Fri Feb 5 10:08:50 2016 -0800 Revert "build-sys: Order pylibmount after usrlib on install" This reverts commit e61f406913fb9356aed013da7ece34e73929cff6. libmount/python/Makemodule.am | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) commit b1d31d03de88419c40105e8cd32de655c1f230cd Merge: 4afb337 23e35ec Author: Karel Zak Date: Thu Feb 4 16:02:17 2016 +0100 Merge branch 'master' of https://github.com/rudimeier/util-linux * 'master' of https://github.com/rudimeier/util-linux: script: fix misspelling docs: fix typos found by codespell commit 23e35eca157ab7f7bd2504dcc65f38d33f8ab345 Author: Ruediger Meier Date: Wed Feb 3 16:34:12 2016 +0100 script: fix misspelling term-utils/script.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 3fd1f7711eb8612ce6e3f1f135b80220fdd2d208 Author: Ruediger Meier Date: Wed Feb 3 15:00:37 2016 +0100 docs: fix typos found by codespell Using "codespell" from https://github.com/lucasdemarchi/codespell Signed-off-by: Ruediger Meier Documentation/releases/v2.15-ReleaseNotes | 2 +- Documentation/releases/v2.23-ReleaseNotes | 2 +- Documentation/releases/v2.24-ReleaseNotes | 4 ++-- Documentation/releases/v2.25-ReleaseNotes | 6 +++--- Documentation/releases/v2.26-ReleaseNotes | 6 +++--- Documentation/releases/v2.27-ReleaseNotes | 2 +- NEWS | 2 +- disk-utils/fdisk-list.c | 2 +- lib/loopdev.c | 2 +- lib/monotonic.c | 2 +- libblkid/src/probe.c | 4 ++-- libfdisk/src/gpt.c | 2 +- libmount/src/context_mount.c | 2 +- libsmartcols/src/table.c | 2 +- login-utils/login.c | 2 +- login-utils/sulogin-consoles.c | 2 +- misc-utils/lsblk.c | 2 +- misc-utils/uuidd.c | 2 +- term-utils/script.c | 2 +- tests/expected/fdisk/oddinput | 2 +- tests/ts/fdisk/bsd | 2 +- tests/ts/fdisk/oddinput | 2 +- 22 files changed, 28 insertions(+), 28 deletions(-) commit 4afb337e0016233d30b83327d45a9384e48a5af7 Author: Karel Zak Date: Wed Feb 3 13:40:25 2016 +0100 fdisk: make 'f' command more verbose Signed-off-by: Karel Zak disk-utils/fdisk-menu.c | 4 ++++ 1 file changed, 4 insertions(+) commit c1ca4fc10867e792fd431d06ccbd282b7353992e Author: Sami Kerola Date: Sat Oct 3 23:39:33 2015 +0100 tests: update colcrt test expectations The reimplementation caused output to change in some corner cases, such as how binary inputs, long lines with underscores, and white space trimming, are handled. Signed-off-by: Sami Kerola tests/expected/colcrt/functional-half-lines | 22 +- tests/expected/colcrt/functional-no-options | 20 +- tests/expected/colcrt/functional-no-underlining | 16 +- tests/expected/colcrt/functional-short-options | 18 +- tests/expected/colcrt/regressions-crash1 | 1 + tests/expected/colcrt/regressions-crash2 | 392 +----------------------- 6 files changed, 49 insertions(+), 420 deletions(-) commit ea4ccc9ea1a1fc5ff5b4ef39ef8d438aeb7fd937 Author: Sami Kerola Date: Wed Sep 23 09:42:58 2015 +0100 colcrt: reimplementation This implementation aims to be easier to read, more robust dealing all sorts of unexpected inputs, and possibly even more correct. The correctness refers to last line handling this implementation does differently than the previous. With the previous last line that ended to EOF without \n was not printed. Signed-off-by: Sami Kerola text-utils/colcrt.c | 419 ++++++++++++++++++++++------------------------------ 1 file changed, 176 insertions(+), 243 deletions(-) commit 5abd5d8aec088d097bc82cab805560672bc97ec1 Author: Sami Kerola Date: Tue Sep 22 10:40:13 2015 +0100 tests: add colcrt functional tests Output formats are based on colcrt before recent asan fixes and magic constant replace, that are the commits ee24ab6f1..70e3fcf29. It seems the fixes caused unintentional, and not detected change to output format - which to me means colcrt has a regression that got to be part of release v2.27. Signed-off-by: Sami Kerola tests/expected/colcrt/functional | 0 tests/expected/colcrt/functional-half-lines | 87 ++++++++++++++++++++++++ tests/expected/colcrt/functional-no-options | 74 ++++++++++++++++++++ tests/expected/colcrt/functional-no-underlining | 44 ++++++++++++ tests/expected/colcrt/functional-short-options | 87 ++++++++++++++++++++++++ tests/expected/colcrt/regressions | 0 tests/ts/colcrt/functional | 50 ++++++++++++++ tests/ts/colcrt/nasty-input | Bin 0 -> 545 bytes tests/ts/colcrt/underlines | 23 +++++++ 9 files changed, 365 insertions(+) commit c809b20aa404a79b1482f0fc850c2a61d09253f5 Author: Karel Zak Date: Mon Feb 1 14:30:31 2016 +0100 sfdisk: make --quiet really quiet References: https://github.com/karelzak/util-linux/issues/268 Signed-off-by: Karel Zak disk-utils/sfdisk.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit d09c06baf4eccfb81cb9a5d0285ba6337aec2919 Author: Karel Zak Date: Mon Feb 1 14:08:04 2016 +0100 sfdisk: add 'U' shortcut for ESP echo -e ',512M,U\n,,L' | sfdisk --label gpt /dev/foo to make ESP system partition. References: https://github.com/karelzak/util-linux/issues/267 Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 3 +++ libfdisk/src/script.c | 3 +++ 2 files changed, 6 insertions(+) commit ea7f53cdc59ae33fe75724650e6e014ec9d888c2 Author: Karel Zak Date: Mon Feb 1 13:43:22 2016 +0100 hwclock: remove extra space from --show output Signed-off-by: Karel Zak sys-utils/hwclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6fc24cc21132e681d3f3f8d6146b8b03b3c7c885 Merge: 9aa3173 dadaad0 Author: Karel Zak Date: Mon Feb 1 13:39:48 2016 +0100 Merge branch 'master' of https://github.com/annajonna/util-linux commit 9aa3173bab816dfa88972dc12d4b54b9dfce7177 Author: Karel Zak Date: Mon Feb 1 13:10:33 2016 +0100 libmount: move btrfs subvol code refactoring Signed-off-by: Karel Zak libmount/src/tab.c | 214 ++++++++++++++++++++++++++++------------------------- 1 file changed, 115 insertions(+), 99 deletions(-) commit 7dca35b2bebe66a2b925fcd6709d7712ed470277 Author: Karel Zak Date: Mon Feb 1 12:36:07 2016 +0100 libmount: fix target resolving for btrfs stuff and make the code more verbose. Signed-off-by: Karel Zak libmount/src/tab.c | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) commit c6f9f229c57f48ff521c6901d6cc48c2474f8d67 Author: Stanislav Brabec Date: Wed Jan 27 21:37:29 2016 +0100 libmount: code re-indentation For easier review, the fix of libmount comes in two patches: PATCH 1/2: libmount: run btrfs subvol checks for "subvolid" option PATCH 2/2: code re-indentation No code change is present in this patch. Signed-off-by: Stanislav Brabec libmount/src/tab.c | 87 +++++++++++++++++++++++++++--------------------------- 1 file changed, 44 insertions(+), 43 deletions(-) commit 618a88140e26a134727a39c906c9cdf6d0c04513 Author: Stanislav Brabec Date: Wed Jan 27 21:37:00 2016 +0100 libmount: run btrfs subvol checks for "subvolid" option It is possible to identify btrfs subvolume with "subvolid" instead of "subvol". In such case, btrfs specific check mistakenly assumes that the default subvolume is going to be mounted, even if subvolid specifies id of non-default subvolume. Implement a code for "subvolid" option. For easier review, this fix comes in two patches: PATCH 1/2: libmount: run btrfs subvol checks for "subvolid" option PATCH 2/2: code re-indentation How to reproduce: truncate -s1G btrfs_test.img mkdir -p btrfs_mnt /sbin/mkfs.btrfs -f -d single -m single ./btrfs_test.img mount -o loop btrfs_test.img btrfs_mnt pushd . cd btrfs_mnt mkdir -p d0/dd0/ddd0 cd d0/dd0/ddd0 touch file{1..5} btrfs subvol create s1 cd s1 touch file{1..5} mkdir -p d1/dd1/ddd1 cd d1/dd1/ddd1 btrfs subvol create s2 rid=$(btrfs inspect rootid s2) echo new default $rid btrfs subvol get-default . btrfs subvol set-default $rid . popd DEFAULT_SUBVOLID=`btrfs subvolume get-default btrfs_mnt | while read dummy id rest ; do echo $id ; done` NON_DEFAULT_SUBVOLID=`btrfs subvolume list btrfs_mnt | while read dummy id rest ; do if test $id = $DEFAULT_SUBVOLID ; then continue ; fi ; echo $id ; done` umount btrfs_mnt losetup /dev/loop0 $PWD/btrfs_test.img echo "/dev/loop0 $PWD/btrfs_mnt btrfs subvolid=$NON_DEFAULT_SUBVOLID 0 0" >>/etc/fstab ./mount -a ./mount -a umount btrfs_mnt sed -i "/\/dev\/loop0/d" /etc/fstab losetup -d /dev/loop0 rm btrfs_test.img rmdir btrfs_mnt Current behavior of second "mount -a": mount: /dev/loop0 is already mounted or /root/btrfs_mnt busy /dev/loop0 is already mounted on /root/btrfs_mnt Signed-off-by: Stanislav Brabec libmount/src/tab.c | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) commit d2f8267847ecbe763a3b63af1289bf1179cd8c45 Author: Stanislav Brabec Date: Tue Jan 26 21:59:55 2016 +0100 libmount: run btrfs subvol checks for "auto" fs type It is possible to mount btrfs using "auto" keyword in fstab. In such case, btrfs specific checks are skipped. Run them for "auto" as well. Looking at the code, it is a safe approach. In case of btrfs, it will do what is needed, in case of no btrfs, btrfs_get_default_subvol_id() will fail, and the rest of the code is skipped. How to reproduce: See reproducer in 2cd28fc and replace fstab line by echo "/dev/loop0 $PWD/btrfs_mnt btrfs auto 0 0" >>/etc/fstab Current behavior of second "mount -a": mount: /dev/loop0 is already mounted or /root/btrfs_mnt busy /dev/loop0 is already mounted on /root/btrfs_mnt Testcases for btrfs and ext4: truncate -s1G btrfs_test.img truncate -s1G ext4_test.img mkdir -p btrfs_mnt mkdir -p ext4_mnt /sbin/mkfs.btrfs -f -d single -m single ./btrfs_test.img /sbin/mkfs.ext4 ./ext4_test.img losetup /dev/loop0 $PWD/btrfs_test.img losetup /dev/loop1 $PWD/ext4_test.img echo "/dev/loop0 $PWD/btrfs_mnt auto defaults 0 0" >>/etc/fstab echo "/dev/loop1 $PWD/ext4_mnt auto defaults 0 0" >>/etc/fstab ./mount -a ./mount -a umount btrfs_mnt umount ext4_mnt sed -i "/\/dev\/loop[01]/d" /etc/fstab losetup -d /dev/loop0 losetup -d /dev/loop1 rm btrfs_test.img rm ext4_test.img rmdir btrfs_mnt rmdir ext4_mnt Signed-off-by: Stanislav Brabec libmount/src/tab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 314c3358d53b99338d32f30dde720bf173e61c1b Author: Karel Zak Date: Mon Feb 1 11:01:44 2016 +0100 libmount: add 'force-mountinfo' to features list, improve debug Signed-off-by: Karel Zak libmount/src/context_umount.c | 11 ++++------- libmount/src/version.c | 3 +++ 2 files changed, 7 insertions(+), 7 deletions(-) commit dadaad018721a82aafc06af2e94c1c2f8cef68de Author: Anna Jonna Ármannsdóttir Date: Thu Jan 28 19:03:20 2016 +0000 Change of output format and documentation. sys-utils/hwclock.8.in | 6 +++++- sys-utils/hwclock.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) commit 4c01c98ca20b404940a4be749e729411d861ae97 Merge: 71a77ca e61f406 Author: Karel Zak Date: Wed Jan 27 13:00:13 2016 +0100 Merge branch 'fix_pylibmount_install' of https://github.com/filbranden/util-linux * 'fix_pylibmount_install' of https://github.com/filbranden/util-linux: build-sys: Order pylibmount after usrlib on install commit 71a77ca1ddfdd7e0d14caad9e8a607a83d61a45c Merge: 7ed6a6a bf6be9f Author: Karel Zak Date: Wed Jan 27 12:52:02 2016 +0100 Merge branch 'fix-static-configuration-and-building' of https://github.com/ladatrimasova/util-linux * 'fix-static-configuration-and-building' of https://github.com/ladatrimasova/util-linux: buildsys: fix static configuration and building commit e61f406913fb9356aed013da7ece34e73929cff6 Author: Filipe Brandenburger Date: Wed Dec 30 22:36:15 2015 -0800 build-sys: Order pylibmount after usrlib on install This fixes a failure of `make install DESTDIR=...` when trying to relink pylibmount against libmount.la. libtool will look for libmount.so under ${DESTDIR}/${libdir}, but if it is not yet present, it will assume it is a system installed library and use -lmount instead. This makes the install order significant. Automake lists the install entries in alphabetical order, and as install-pylibmountexecLTLIBRARIES < install-usrlib_execLTLIBRARIES, make will try to install pylibmount.so before libmount.so is present in the DESTDIR, which will then cause libtool to fallback to -lmount when relinking. This causes the error below: libtool: install: warning: relinking `pylibmount.la' libtool: install: (... libtool --mode=relink gcc -o pylibmount.la \ -rpath /usr/lib/python2.7/dist-packages/libmount \ libmount/python/*.lo libmount.la ... -lpython2.7 \ -inst-prefix-dir /path/to/destdir) /usr/bin/ld: cannot find -lmount collect2: error: ld returned 1 exit status libtool: install: error: relink `pylibmount.la' ... make[3]: *** [install-pylibmountexecLTLIBRARIES] Error 1 Work around this issue by using a zz_ prefix for the pylibmount exec dir, in order to install it last. This does not work if parallel make is used for the install step, but that should be a minor issue (parallel install is probably not that useful for util-linux, which is not that large a package to actually benefit from it.) The proper fix should be to introduce a make dependency of target install-pylibmountexecLTLIBRARIES on target install-usrlib_execLTLIBRARIES, but unfortunately there is no good way to accomplish that in automake without overriding it completely. This issue seems to be previously encountered in automake context, since automake includes a hack to insert such a dependency rule to install all libLTLIBRARIES before attempting to install binPROGRAMS, initially introduced in the commit below: http://git.savannah.gnu.org/cgit/automake.git/commit/?id=bd4a1d5ad1a72fa780a8b7fd6c365a5dad2e6220 Also, a related bug from Ubuntu tracker: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1442076 Tested that `make install` starts working again after this commit, even when libmount-dev is not installed on the system. Also confirmed that `make distcheck` is now functional. Confirmed that both __init__.py and the .so library are still installed in the Python directory. Tested that it still works without python-devel installed, also inspected Makefile.in which looks correct. Tested that `make install pylibmountexecdir=...` still works to override destination directory at `make install` time. Signed-off-by: Filipe Brandenburger libmount/python/Makemodule.am | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) commit 7ed6a6a00db04723ccde8e7a2dfb339eed1635bc Author: Karel Zak Date: Tue Jan 26 16:49:39 2016 +0100 tests: make swaplabel test more robust Signed-off-by: Karel Zak tests/expected/misc/swaplabel | 2 +- tests/ts/misc/swaplabel | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) commit bf6be9f5238a0db221089f87a601738a110bd4d6 Author: Lada Trimasova Date: Tue Jan 26 18:34:50 2016 +0300 buildsys: fix static configuration and building In case of uClibc librt depends on libpthread. In particular timer_create() function uses pthread_XXX(). That means in case of static builds it's required to link not librt alone but together with libpthread. So if checking timer_create function in librt fails, it is necessary to check if timer_create function successfully links with "-lpthread". That issues was spotted in Buldroot autobuilder failures: http://autobuild.buildroot.net/results/759/75960db671807091fe9155aee9e46a6245e32590/ http://autobuild.buildroot.org/results/112/112e8b85783f5aaba42a937a6eb064317615a21b/ Signed-off-by: Lada Trimasova configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit b35831b7558153993d6e5fd3cbec48376eeddaf1 Author: Karel Zak Date: Tue Jan 26 16:02:54 2016 +0100 tests: update swapfile output Signed-off-by: Karel Zak tests/expected/misc/swaplabel | 1 + tests/ts/misc/swaplabel | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) commit 7ccc2989ddfba346baa010531e9d05d1edbe50fc Author: Karel Zak Date: Tue Jan 26 15:57:24 2016 +0100 libmount: cleanup btrfs.c header Signed-off-by: Karel Zak libmount/src/btrfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 5a9713293d5f0e20230646fc403ec4a5bf8c1a1f Author: Karel Zak Date: Tue Jan 26 14:39:13 2016 +0100 libmount: consolidate btrfs stuff, make it more portable - add --with-btrfs (enabled by default) - check for linux/btrfs.h - add "btrfs" to libmount features list (see mount -V) - #ifdef HAVE_BTRFS_SUPPORT for all btrfs stuff in libmount Signed-off-by: Karel Zak configure.ac | 22 ++++++++ libmount/src/Makemodule.am | 7 ++- libmount/src/btrfs.c | 90 +++++++++++++++++++++++++++++---- libmount/src/btrfs.h | 122 --------------------------------------------- libmount/src/tab.c | 3 ++ libmount/src/version.c | 3 ++ 6 files changed, 114 insertions(+), 133 deletions(-) commit bb7803e971c0142850084a2cc45bbaaa422f3d79 Author: Karel Zak Date: Tue Jan 26 11:50:58 2016 +0100 more: remove unnecessary compatibility layer Signed-off-by: Karel Zak text-utils/more.c | 107 +++++++++++++++++++++--------------------------------- 1 file changed, 41 insertions(+), 66 deletions(-) commit b4566a8a8d0cf345e637194f9c95091a1ef4dfe0 Author: Sami Kerola Date: Sat Jan 16 23:23:04 2016 +0000 build-sys: remove libtermcap support It is unlikely anyone is going to build this project on system where libtermcap is available. Fedora project obsoleted libtermcap 2007-12-12 in favour of ncurses. Debian made same move 2005. Reference: https://fedoraproject.org/wiki/Deprecated_packages Reference: https://www.debian.org/doc/manuals/debian-faq/ch-compat.en.html#s-termcap Signed-off-by: Sami Kerola configure.ac | 11 ----- misc-utils/Makemodule.am | 3 -- misc-utils/cal.c | 59 +++++-------------------- text-utils/Makemodule.am | 4 -- text-utils/more.c | 110 ++++++++++------------------------------------- 5 files changed, 34 insertions(+), 153 deletions(-) commit cc706d9f0978c03f730aec627c5b656ee4eec58f Author: Wayne R. Roth Date: Tue Jan 19 22:09:37 2016 -0800 mkswap: add warnings for insecure device permissions/owners Logic modified from sys-utils/swapon.c Signed-off-by: Wayne R. Roth disk-utils/mkswap.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) commit 2cd28fc82d0c947472a4700d5e764265916fba1e Author: Stanislav Brabec Date: Thu Jan 21 22:58:31 2016 +0100 libmount: handle btrfs default subvolume mount When mounting btrfs volume without subvol= and subvolid=, and the btrfs volume has default subvolume defined, mount() mounts the default subvolume and not the volume root as other filesystems do. To handle this situation correctly (for example for "mount -a"), libmount has to be capable to detect default subvolume. Add btrfs.c and btrfs.h that implement needed functions. This patch adds mnt_table_find_target_with_option() to the library API. Known problems not covered by this patch: - Use of subvolid= in fstab is not yet handled. - Use of type auto in combination with subvol= in fstab is not yet handled. - Use of btrfs in loop devices, where image file is specified in fstab is not yet handled (use of /dev/loop0 in fstab works). - If fstab uses subvol=, and subvol path changes since last "mount -a", subsequent "mount -a" will not recognize that it is already mounted, and it will attempt to mount it second time. To fix it, libmount should remember subvolid in time of mount (subvolid is unique for the subvolume, subvol is not). - mountinfo contains subvol and subvolid since kernel 4.2. Before kernel 4.2, there is no reasonable way to solve this situation. (One would create temporary mount point, mount the default, call needed ioctl() to determine what was mounted, deduce the default subvolume, compare it with subvolume of mounted volume, unmount and return result.) How to reproduce: truncate -s1G btrfs_test.img mkdir -p btrfs_mnt /sbin/mkfs.btrfs -f -d single -m single ./btrfs_test.img mount -o loop btrfs_test.img btrfs_mnt pushd . cd btrfs_mnt mkdir -p d0/dd0/ddd0 cd d0/dd0/ddd0 touch file{1..5} btrfs subvol create s1 cd s1 touch file{1..5} mkdir -p d1/dd1/ddd1 cd d1/dd1/ddd1 btrfs subvol create s2 rid=$(btrfs inspect rootid s2) echo new default $rid btrfs subvol get-default . btrfs subvol set-default $rid . popd umount btrfs_mnt losetup /dev/loop0 $PWD/btrfs_test.img echo "/dev/loop0 $PWD/btrfs_mnt btrfs defaults 0 0" >>/etc/fstab mount -a mount -a umount btrfs_mnt sed -i "/\/dev\/loop0/d" /etc/fstab losetup -d /dev/loop0 rm btrfs_test.img rmdir btrfs_mnt Current behavior: mount: /dev/loop0 is already mounted or /root/btrfs_mnt busy /dev/loop0 is already mounted on /root/btrfs_mnt Expected behavior is to ignore already mounted FS. [kzak@redhat.com: - make 'var' optional for mnt_table_find_target_with_option(), - add mnt_table_find_target_with_option() to symbols table and docs - add "btrfs" string between supported debug modes - minor coding style changes] Signed-off-by: Stanislav Brabec Cc: David Štěrba Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 1 + libmount/src/Makemodule.am | 2 + libmount/src/btrfs.c | 102 ++++++++++++++++++++++++++++++ libmount/src/btrfs.h | 122 ++++++++++++++++++++++++++++++++++++ libmount/src/init.c | 1 + libmount/src/libmount.h.in | 2 + libmount/src/libmount.sym | 4 ++ libmount/src/mountP.h | 6 ++ libmount/src/tab.c | 95 ++++++++++++++++++++++++++-- 9 files changed, 331 insertions(+), 4 deletions(-) commit 46bf6eb2775230c2f803269d5040d1586d3c8de4 Author: Karel Zak Date: Mon Jan 25 15:42:53 2016 +0100 doap: fix download URL Signed-off-by: Karel Zak util-linux.doap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e85c8c98e6e3c0548c5a0d3f614f45dc04e4ebbb Author: Karel Zak Date: Mon Jan 25 15:31:24 2016 +0100 libsmartcols: make SCOLS_FL_WRAP usable in tree Signed-off-by: Karel Zak libsmartcols/samples/wrap.c | 24 +++++++++++++++--------- libsmartcols/src/table_print.c | 2 +- 2 files changed, 16 insertions(+), 10 deletions(-) commit 5243e4ebc8acab655c10c0fcb397132375180eb6 Author: Karel Zak Date: Mon Jan 25 15:17:36 2016 +0100 libsmartcols: reduce also SCOLS_FL_WRAP columns Signed-off-by: Karel Zak libsmartcols/src/table_print.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit e90f4b6715a9e8963d2c9ee7d3a0e9b98364ee30 Author: Karel Zak Date: Mon Jan 25 15:17:21 2016 +0100 libsmartcols: add wrap.c sample Signed-off-by: Karel Zak libsmartcols/samples/Makemodule.am | 7 +++- libsmartcols/samples/wrap.c | 79 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+), 1 deletion(-) commit 4a51e682bb385c03c46f911cba03df174b5a2c46 Author: Karel Zak Date: Mon Jan 25 13:45:34 2016 +0100 libsmartcols: fix title sample Signed-off-by: Karel Zak libsmartcols/samples/title.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 107ca34a4ce8ae26b2e18f41489cc5756bc0b27b Author: Karel Zak Date: Mon Jan 25 13:42:51 2016 +0100 libsmartcols: fix samples build, add title.c Signed-off-by: Karel Zak .gitignore | 5 +- libsmartcols/samples/Makemodule.am | 12 +++++ libsmartcols/samples/title.c | 94 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+), 4 deletions(-) commit 2f09ae9d5d711ca299f6f25d194d2cdddee6c748 Author: Karel Zak Date: Mon Jan 25 13:17:43 2016 +0100 libsmartcols: add samples directory Signed-off-by: Karel Zak configure.ac | 1 - libsmartcols/Makemodule.am | 1 + libsmartcols/samples/tree.c | 226 +++++++++++++++++++++++++++++++++++++++++ libsmartcols/src/Makemodule.am | 13 --- libsmartcols/src/column.c | 2 + libsmartcols/src/test.c | 226 ----------------------------------------- 6 files changed, 229 insertions(+), 240 deletions(-) commit d372bcf26e25ebe7a3264e01cbc328d3a81e7a12 Merge: 982034c ad13ab8 Author: Karel Zak Date: Mon Jan 25 13:03:29 2016 +0100 Merge branch 'scols_fl_wrap' of https://github.com/ignatenkobrain/util-linux * 'scols_fl_wrap' of https://github.com/ignatenkobrain/util-linux: libsmartcols: add scols_column_is_wrap to docs libsmartcols: don't loose colors when wrapping libsmartcols: wrap columns correctly with unicode libsmartcols: implement SCOLS_FL_WRAP commit 982034c3d1ab4dd5bb376fb95e494885cea67bf5 Author: Karel Zak Date: Mon Jan 25 12:57:10 2016 +0100 libsmartcols: document v2.27 symbols Signed-off-by: Karel Zak libsmartcols/docs/libsmartcols-docs.xml | 4 ++++ libsmartcols/src/column.c | 2 ++ libsmartcols/src/table.c | 6 ++++++ 3 files changed, 12 insertions(+) commit 2bdbc8e834d8d5165ba7fae16c9410a1e6e5ef42 Author: Igor Gnatenko Date: Mon Jan 25 00:47:07 2016 +0100 add util-linux.doap This is also well-known RDF Schema supported by some editors. Reference: https://github.com/edumbill/doap/wiki Signed-off-by: Igor Gnatenko util-linux.doap | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) commit f9f6b563aa50430dcf507bd555e54f9adcba75a9 Author: Igor Gnatenko Date: Sun Jan 24 23:57:51 2016 +0100 add .editorconfig EditorConfig is very well known config file for text editors/IDE's with settings for project. This format supported by Vim, GNOME Builder, Atom, Sublime and many others. We will provide this configuration to be more friendly for newcomers. Signed-off-by: Igor Gnatenko .editorconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) commit db307d8e968bd325a014b30eb33227ae9c14f7f1 Author: Igor Gnatenko Date: Sun Jan 24 23:52:41 2016 +0100 libsmartcols: add 'Since' tag for gtkdoc for some functions Signed-off-by: Igor Gnatenko libsmartcols/docs/libsmartcols-docs.xml | 4 ++++ libsmartcols/src/line.c | 6 ++++-- libsmartcols/src/symbols.c | 2 ++ libsmartcols/src/table.c | 4 ++++ 4 files changed, 14 insertions(+), 2 deletions(-) commit 703d0196ee37f04cdef1b74b6af4b97252c961b0 Author: Igor Gnatenko Date: Sun Jan 24 23:47:42 2016 +0100 libsmartcols: add few methods to get information about title Signed-off-by: Igor Gnatenko libsmartcols/docs/libsmartcols-sections.txt | 3 +++ libsmartcols/src/libsmartcols.h.in | 3 +++ libsmartcols/src/libsmartcols.sym | 3 +++ libsmartcols/src/table.c | 39 +++++++++++++++++++++++++++++ 4 files changed, 48 insertions(+) commit bfc3d8b48ef9f2c10f3a4c8f932ed941e8f048be Author: Igor Gnatenko Date: Sun Jan 24 23:34:53 2016 +0100 libsmartcols: position of title in fact unsigned Signed-off-by: Igor Gnatenko libsmartcols/src/libsmartcols.h.in | 2 +- libsmartcols/src/table.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 63107d1bbc4e304ddfc4ffee9ce1d6152a7d63a6 Author: Karel Zak Date: Fri Jan 22 19:38:18 2016 +0100 lsblk: remove useless warnings It's seems better to keep the warnings only in the debug output. Reported-by: Kay Sievers Signed-off-by: Karel Zak misc-utils/lsblk.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 57867795aa7dead56a7339a13f08ea1f3a5de615 Author: Karel Zak Date: Fri Jan 22 16:51:59 2016 +0100 libsmartcols: support multibyte titles, rename wrap to padding - let's support multibyte table titles - use lib/mbalign.c to align the title - rename title_wrap to title_padding (we already use "wrap" on another places for another things) Signed-off-by: Karel Zak include/mbsalign.h | 4 ++ lib/mbsalign.c | 20 +++++--- libsmartcols/docs/libsmartcols-sections.txt | 2 +- libsmartcols/src/libsmartcols.h.in | 2 +- libsmartcols/src/libsmartcols.sym | 2 +- libsmartcols/src/smartcolsP.h | 2 +- libsmartcols/src/symbols.c | 15 +++--- libsmartcols/src/table.c | 2 +- libsmartcols/src/table_print.c | 78 ++++++++++++++++------------- 9 files changed, 75 insertions(+), 52 deletions(-) commit ad13ab8d661de42e6f28a55d8a4a537c3d656063 Author: Igor Gnatenko Date: Fri Jan 22 14:48:46 2016 +0100 libsmartcols: add scols_column_is_wrap to docs Signed-off-by: Igor Gnatenko libsmartcols/docs/libsmartcols-sections.txt | 1 + 1 file changed, 1 insertion(+) commit 57c7b2a1a56a4c7c3f3534c0b7e92a91dcffe15f Author: Igor Gnatenko Date: Fri Jan 22 14:30:39 2016 +0100 libsmartcols: don't loose colors when wrapping Signed-off-by: Igor Gnatenko libsmartcols/src/table_print.c | 6 ++++++ 1 file changed, 6 insertions(+) commit e6f89163be323b72ebb33b456671195ca51e02c4 Author: Igor Gnatenko Date: Fri Jan 22 14:29:16 2016 +0100 libsmartcols: wrap columns correctly with unicode Signed-off-by: Igor Gnatenko libsmartcols/src/table_print.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) commit fd5cbf57e05bcee92f2df0a40a64e23cecdcce51 Author: Karel Zak Date: Fri Jan 22 13:50:02 2016 +0100 libsmartcols: add title to the test application Signed-off-by: Karel Zak libsmartcols/src/test.c | 2 ++ 1 file changed, 2 insertions(+) commit 6f2737964d57b55994ff59237903737dde7e8bdd Author: Karel Zak Date: Fri Jan 22 13:46:29 2016 +0100 libsmartcols: add JSON to the test application Signed-off-by: Karel Zak libsmartcols/src/test.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) commit 500a229f512fd78d51c3044c1a72067291530f7f Author: Karel Zak Date: Fri Jan 22 13:40:19 2016 +0100 libsmartcols: add new functions to docs Signed-off-by: Karel Zak libsmartcols/docs/libsmartcols-sections.txt | 2 ++ 1 file changed, 2 insertions(+) commit 788da91b1196f3624ae4dbb2837b6777aae857b1 Merge: 1ab7aba 0a69e64 Author: Karel Zak Date: Fri Jan 22 13:34:05 2016 +0100 Merge branch 'table_title' of https://github.com/ignatenkobrain/util-linux * 'table_title' of https://github.com/ignatenkobrain/util-linux: libsmartcols: set everything once in scols_table_set_title() libsmartcols: put new line after title libsmartcols: fix title aligning to center libsmartcols: don't try to align title if it's more that term libsmartcols: use symbols for title wrap libsmartcols: implement title of table commit 0a69e647fcd01c9dbf4a12949a0299af8149dca8 Author: Igor Gnatenko Date: Fri Jan 22 12:54:02 2016 +0100 libsmartcols: set everything once in scols_table_set_title() Reported-by: Karel Zak Signed-off-by: Igor Gnatenko libsmartcols/src/table.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) commit a64040930960699e1457dcface8334c501ba96a6 Author: Igor Gnatenko Date: Thu Jan 21 09:57:31 2016 +0100 libsmartcols: implement SCOLS_FL_WRAP Reference: https://github.com/karelzak/util-linux/issues/257 Signed-off-by: Igor Gnatenko libsmartcols/src/column.c | 14 ++++++++++++++ libsmartcols/src/libsmartcols.h.in | 2 ++ libsmartcols/src/libsmartcols.sym | 1 + libsmartcols/src/table_print.c | 14 +++++++++++++- 4 files changed, 30 insertions(+), 1 deletion(-) commit 2f62d9fe3ed3c03fc9d2b57b0559ff5c8359b294 Author: Igor Gnatenko Date: Thu Jan 21 17:37:21 2016 +0100 libsmartcols: put new line after title Signed-off-by: Igor Gnatenko libsmartcols/src/table_print.c | 2 ++ 1 file changed, 2 insertions(+) commit 7bc451694fdea21469e2c45e89bc0e1d30ad6212 Author: Igor Gnatenko Date: Thu Jan 21 17:36:53 2016 +0100 libsmartcols: fix title aligning to center Signed-off-by: Igor Gnatenko libsmartcols/src/table_print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 284ee2a9a4d2fef60dc1e21d3b1628bf45eea04f Author: Igor Gnatenko Date: Thu Jan 21 17:25:15 2016 +0100 libsmartcols: don't try to align title if it's more that term Signed-off-by: Igor Gnatenko libsmartcols/src/table_print.c | 3 +++ 1 file changed, 3 insertions(+) commit cd32dc248cca891b872391d3472cafc8b8e23385 Author: Igor Gnatenko Date: Thu Jan 21 17:09:16 2016 +0100 libsmartcols: use symbols for title wrap Signed-off-by: Igor Gnatenko libsmartcols/src/libsmartcols.h.in | 1 + libsmartcols/src/libsmartcols.sym | 1 + libsmartcols/src/smartcolsP.h | 1 + libsmartcols/src/symbols.c | 31 +++++++++++++++++++++++++++++-- libsmartcols/src/table.c | 1 + libsmartcols/src/table_print.c | 8 ++++---- 6 files changed, 37 insertions(+), 6 deletions(-) commit b3256efff24c57f92a4f0357396fc47fa044e1f7 Author: Igor Gnatenko Date: Thu Jan 21 10:02:31 2016 +0100 libsmartcols: implement title of table Reference: https://github.com/karelzak/util-linux/issues/258 Signed-off-by: Igor Gnatenko libsmartcols/src/libsmartcols.h.in | 10 ++++++++ libsmartcols/src/libsmartcols.sym | 1 + libsmartcols/src/smartcolsP.h | 5 +++- libsmartcols/src/table.c | 47 ++++++++++++++++++++++++++++++++++ libsmartcols/src/table_print.c | 52 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 114 insertions(+), 1 deletion(-) commit 1ab7abacce0247c7186021824fc4e8d0fb096b6b Author: Karel Zak Date: Thu Jan 21 11:21:27 2016 +0100 zramctl: fix typo Reported-by: Rafael Fontenelle Signed-off-by: Karel Zak sys-utils/zramctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e4520bf20fbcfb62d410f6772ccd2063a69cda5d Author: Mike Frysinger Date: Wed Jan 20 15:20:08 2016 -0500 mount: allow nofail to silence ENOMEDIUM cases Allow people to use nofail to ignore empty cd/dvd drive errors. URL: https://bugs.gentoo.org/559356 Reported-by: William Hubbs Signed-off-by: Mike Frysinger sys-utils/mount.c | 3 +++ 1 file changed, 3 insertions(+) commit acde3a05a92ddd39234c89e55b654cd7b8058656 Author: Karel Zak Date: Wed Jan 20 15:32:30 2016 +0100 chrt: use sched_getattr() schedutils/chrt.c | 159 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 92 insertions(+), 67 deletions(-) commit 5b033bfd8590c4e476010ddbfc204b20360f5a93 Author: Karel Zak Date: Wed Jan 20 14:30:52 2016 +0100 chrt: make man page more structured Signed-off-by: Karel Zak schedutils/chrt.1 | 129 +++++++++++++++++++++++--------------------------- sys-utils/fallocate.1 | 120 ---------------------------------------------- 2 files changed, 59 insertions(+), 190 deletions(-) commit 1a7e63950bbbbe0301c15c46d455af14ec0567d3 Author: Karel Zak Date: Wed Jan 20 14:04:32 2016 +0100 chrt: add support for SCHED_DEADLINE This patch introduces -d, --deadline -T, --sched-runtime -D, --sched-deadline -P, --sched-period command line options. The functionality is available only for Linux with sched_setattr() [kernel >=3.14] Signed-off-by: Karel Zak schedutils/chrt.1 | 28 ++++++++++++- schedutils/chrt.c | 116 +++++++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 119 insertions(+), 25 deletions(-) commit 15167589fb40be9479e1afe261bea0bf23b33a83 Author: Karel Zak Date: Wed Jan 20 12:44:27 2016 +0100 chrt: use sched_setattr() if available Signed-off-by: Karel Zak configure.ac | 5 ++++ schedutils/chrt.c | 73 +++++++++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 71 insertions(+), 7 deletions(-) commit a6fec53788e3cf729081174b72305982c3bb7942 Author: Karel Zak Date: Tue Jan 19 14:52:51 2016 +0100 chrt: make usage more readable Signed-off-by: Karel Zak schedutils/chrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4820a7373a5809446d7d7ea56b774c0841853b91 Author: Karel Zak Date: Tue Jan 19 14:46:30 2016 +0100 chrt: set function refactoring Signed-off-by: Karel Zak schedutils/chrt.c | 46 +++++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 19 deletions(-) commit a30cf6507630dc6ad4c17746a0e978c237fd18df Author: Karel Zak Date: Tue Jan 19 14:38:18 2016 +0100 chrt: output function refactoring Signed-off-by: Karel Zak schedutils/chrt.c | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) commit 7a4ea5664edba98bff28adec3a9c3cfb5763a495 Author: Karel Zak Date: Tue Jan 19 14:24:53 2016 +0100 chrt: add control struct Signed-off-by: Karel Zak schedutils/chrt.c | 84 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 45 insertions(+), 39 deletions(-) commit 4ec6062678b105389722fd0b7936c1096a96c7d6 Author: Boris Egorov Date: Tue Jan 19 12:18:21 2016 +0600 tests: remove redundant check for NULL [cppcheck] We set SA_SIGINFO flag, so we should not get NULL. [tests/helpers/test_sigreceive.c:45] -> [tests/helpers/test_sigreceive.c:47]: (warning) Either the condition 'if(info)' is redundant or there is possible null pointer dereference: info. tests/helpers/test_sigreceive.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit faebeb86e5917b9ea91bc9babf0dbf8c9ec1b343 Author: Boris Egorov Date: Tue Jan 19 12:16:41 2016 +0600 hwclock: fix format specifier [cppcheck] [sys-utils/hwclock-rtc.c:435]: (warning) %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. sys-utils/hwclock-rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0cd7ecefc5c541b4be3dcb45a0ab49a667d6a66d Author: Boris Egorov Date: Tue Jan 19 12:16:03 2016 +0600 libblkid: check limits before indexing array [cppcheck] [libblkid/src/encode.c:165]: (style) Array index 'i' is used before limits check. libblkid/src/encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 01b63fcca2908fe72c0577205bc731b3f0d9a849 Author: Boris Egorov Date: Tue Jan 19 11:45:15 2016 +0600 readprofile: add scanf field width limits [cppcheck] [sys-utils/readprofile.c:301]: (warning) scanf without field width limits can crash with huge input data. [sys-utils/readprofile.c:322]: (warning) scanf without field width limits can crash with huge input data. sys-utils/readprofile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit fef0063119b2e756cdf006d5c089552ca4d964ee Author: Boris Egorov Date: Tue Jan 19 11:42:26 2016 +0600 libblkid,libmount: Do not use void* in calculations [cppcheck] [libblkid/src/superblocks/zfs.c:179]: (portability) 'label' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [libblkid/src/superblocks/zfs.c:237]: (portability) 'label' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [libblkid/src/topology/topology.c:221]: (portability) 'chn.data' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [libmount/src/fs.c:153]: (portability) 'old' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [libmount/src/fs.c:154]: (portability) 'new' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. libblkid/src/superblocks/zfs.c | 4 ++-- libblkid/src/topology/topology.c | 2 +- libmount/src/fs.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) commit 18b76be61c11fd5f11fcb84aa6a946d3b03d7225 Author: Boris Egorov Date: Tue Jan 19 11:37:57 2016 +0600 libblkid: (zfs) add cast to fix UB [cppcheck] [libblkid/src/superblocks/zfs.c:173]: (error) Shifting 32-bit value by 56 bits is undefined behaviour [libblkid/src/superblocks/zfs.c:173]: (error) Shifting 32-bit value by 40 bits is undefined behaviour libblkid/src/superblocks/zfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7675d69d017830cfd9d131e8d49e633b6dd535bb Author: Karel Zak Date: Mon Jan 18 14:35:33 2016 +0100 libblkid: make minix prober more robust It seems that the current minix probing code is not robust enough and it returns false positive for Fedora f24 install images. The crazy thing is that the image pass also all Linux kernel minix_fill_super() checks and mount(2) fails later when it tries to read filesystem root directory. The fsck.minix requires sb->s_log_zone_size to be zero (Linux kernel does not care about it), let's use the same requirement for libblkid. Note, it would be possible to check minix root directory inode in libblkid, but this solution requires minix prober specific seek & read. We want to avoid extra read operations... References: https://bugzilla.redhat.com/show_bug.cgi?id=1299255 Signed-off-by: Karel Zak libblkid/src/superblocks/minix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 8afabdb1fa1388c022101d0a8ab932bcaa3c8e34 Author: Karel Zak Date: Mon Jan 18 10:47:22 2016 +0100 libsmartcols: don't sort if cmpfunc() is not set Reported-by: Igor Gnatenko libsmartcols/src/table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7ad4b8503cd66ef9de97f25d374f19cb29181919 Author: Karel Zak Date: Mon Jan 18 10:36:31 2016 +0100 libsmartcols: be sure column is unused Signed-off-by: Karel Zak libsmartcols/src/table.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 1bb767f54c19629db4d15d1c09a2d7675568a7da Merge: 28cbfde ff43eab Author: Karel Zak Date: Mon Jan 18 10:24:39 2016 +0100 Merge branch 'gh/254' of https://github.com/ignatenkobrain/util-linux commit 28cbfdec2194fc84689ec4b685ceeff02af507dd Merge: 5dc625b a229e20 Author: Karel Zak Date: Mon Jan 18 10:16:36 2016 +0100 Merge branch 'sym_is_hidden' of https://github.com/ignatenkobrain/util-linux * 'sym_is_hidden' of https://github.com/ignatenkobrain/util-linux: libsmartcols: add scols_column_is_hidden into sym file commit 5dc625b669f168c608c2deb5103e35f6af2bd998 Author: Yuriy M. Kaminskiy Date: Sat Jan 16 00:38:00 2016 +0300 lsns: fix failure after zombie process (At least on kernel 3.16), stat("/proc/${pid_of_zombie}/ns/mnt") returns -ENOENT, as a result lsns stops scanning processes prematurely. sys-utils/lsns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ff43eabd30e2a965c7433ad5a8dda394a144ddf2 Author: Igor Gnatenko Date: Sat Jan 16 22:52:43 2016 +0100 AUTHORS: add Igor Gnatenko Signed-off-by: Igor Gnatenko AUTHORS | 1 + 1 file changed, 1 insertion(+) commit d10fa7e6dd2b936edcfc5e6ab78687e60e57b46a Author: Igor Gnatenko Date: Sat Jan 16 22:51:52 2016 +0100 libsmartcols: reflect changinging SCOLS_FL_TREE after adding to table When scols_column_set_flags() is called we will compare before & after status of SCOLS_FL_TREE flag and appropriately handle tb->ntreecols. Reference: https://github.com/karelzak/util-linux/issues/254 Signed-off-by: Igor Gnatenko libsmartcols/src/column.c | 7 +++++++ libsmartcols/src/smartcolsP.h | 2 ++ libsmartcols/src/table.c | 2 ++ 3 files changed, 11 insertions(+) commit a229e20478cc16de8cba65e35baab0785dd584b3 Author: Igor Gnatenko Date: Fri Jan 15 23:26:26 2016 +0100 libsmartcols: add scols_column_is_hidden into sym file In commit 6d6b6d185e7427e2b5590349edd76d019b0fe920 we forgot to add this function to sym file and now we are getting undefined symbol: scols_column_is_hidden Signed-off-by: Igor Gnatenko libsmartcols/src/libsmartcols.sym | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 7ebbb9918edcd0a6ac059e70290c8cc0cd7c747e Author: Karel Zak Date: Wed Jan 13 13:20:43 2016 +0100 fstrim: add reference to blkdiscard Signed-off-by: Karel Zak sys-utils/fstrim.8 | 1 + 1 file changed, 1 insertion(+) commit 683ddbd5c4a7c28db878bd5b2387c7cff2504967 Author: Karel Zak Date: Wed Jan 13 10:08:39 2016 +0100 column: ignore non-printable chars echo -e '\033[33mb\033[mXFoo\n\033[33mbar\033[mXFoo' | column -s X -t old version: b Foo bar Foo fixed version: b Foo bar Foo References: https://github.com/karelzak/util-linux/issues/252 Signed-off-by: Karel Zak text-utils/column.c | 43 ++++++++++++++++++++++++++++++++++++------- 1 file changed, 36 insertions(+), 7 deletions(-) commit 6426f926ee3d23fe416cd82e0325f249ba973798 Author: Karel Zak Date: Wed Jan 13 10:08:13 2016 +0100 lib/mbsalign: fix warnings when compile without widechars Signed-off-by: Karel Zak include/widechar.h | 1 + lib/mbsalign.c | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) commit f12cd8d1e931f218b4e4c40fe431c3cc725ef1d3 Author: Karel Zak Date: Tue Jan 12 18:42:02 2016 +0100 libblkid: use internally uint64_t for offsets and sizes Signed-off-by: Karel Zak libblkid/src/blkidP.h | 32 ++++++------ libblkid/src/partitions/gpt.c | 2 +- libblkid/src/partitions/mac.c | 3 +- libblkid/src/partitions/partitions.c | 43 ++++++++-------- libblkid/src/partitions/partitions.h | 6 +-- libblkid/src/partitions/sun.c | 4 +- libblkid/src/probe.c | 94 ++++++++++++++-------------------- libblkid/src/superblocks/befs.c | 10 ++-- libblkid/src/superblocks/exfat.c | 18 +++---- libblkid/src/superblocks/hfs.c | 4 +- libblkid/src/superblocks/linux_raid.c | 2 +- libblkid/src/superblocks/superblocks.c | 2 +- libblkid/src/superblocks/udf.c | 6 +-- libblkid/src/superblocks/vfat.c | 6 +-- misc-utils/blkid.c | 6 +-- 15 files changed, 110 insertions(+), 128 deletions(-) commit 95fb0ead2bfe05f03f0dc37d0c48d701f85b345f Author: Karel Zak Date: Tue Jan 12 16:00:57 2016 +0100 lsblk: use unsigned type for SIZE Signed-off-by: Karel Zak misc-utils/lsblk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7837186515a642bfc7178e14508156bca89bad58 Author: Karel Zak Date: Tue Jan 12 11:39:03 2016 +0100 libsmartcols: allow to set data by reference to libscols_column References: https://github.com/karelzak/util-linux/issues/251 Signed-off-by: Karel Zak libsmartcols/docs/libsmartcols-sections.txt | 2 ++ libsmartcols/src/libsmartcols.h.in | 2 ++ libsmartcols/src/libsmartcols.sym | 2 ++ libsmartcols/src/line.c | 34 +++++++++++++++++++++++++++++ 4 files changed, 40 insertions(+) commit f136260aeb77b1cb5448aae19db4e76a78534a72 Author: Andrew Wilcox Date: Tue Jan 12 10:35:11 2016 +0100 libfdisk: Add GPT type GUID for Itanium Linux root References: http://www.freedesktop.org/wiki/Specifications/DiscoverablePartitionsSpec/ Signed-off-by: Andrew Wilcox Signed-off-by: Karel Zak libfdisk/src/gpt.c | 1 + 1 file changed, 1 insertion(+) commit 1a2e4a94fc230cdf58ba7b1d50e10512b090d67e Author: Peter Hoeg Date: Thu Jan 7 10:16:02 2016 +0800 fstrim: systemd timer units should be WantedBy=timers.target [kzak@redhat.com: - this configuration is recommended by systemd docs] Signed-off-by: Karel Zak sys-utils/fstrim.timer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 19981b07d97667686135b491162d241a93ad3f75 Author: Karel Zak Date: Thu Jan 7 17:29:11 2016 +0100 libsmartcols: make output buffer size estimation more robust and elegant Reported-by: Andreas Henriksson Signed-off-by: Karel Zak libsmartcols/src/table.c | 6 ++++- libsmartcols/src/table_print.c | 53 +++++++++++++++++++++++++++++++++++++----- 2 files changed, 52 insertions(+), 7 deletions(-) commit fbed7e09f826e7804e99522cc1dd3cf54c9cdb67 Author: Karel Zak Date: Thu Jan 7 13:23:24 2016 +0100 hwclock: change audit message The preferred layout is name=value for audit messages. References: https://bugzilla.redhat.com/show_bug.cgi?id=1296278 Signed-off-by: Karel Zak sys-utils/hwclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 94757eceb1da6fe668861dce2e793e83a877967d Author: Filipe Brandenburger Date: Wed Jan 6 11:00:49 2016 -0800 scriptreplay/newgrp: use signed int to store return of getopt_long Signed-off-by: Filipe Brandenburger login-utils/newgrp.c | 2 +- term-utils/scriptreplay.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 43b4f7ea5f96f861787c30fdd6933daf472fcc02 Author: Boris Egorov Date: Tue Jan 5 22:17:58 2016 +0600 lib/tty: Pass default width to get_terminal_width() Almost any code calling get_terminal_width() checks returned width for non-positive values and sets it to some default value (say, 80). So, let's pass this default value directly to the function. [kzak@redhat.com: - get_terminal_width() refactoring] Signed-off-by: Karel Zak disk-utils/fdisk-list.c | 4 +--- include/ttyutils.h | 2 +- lib/ttyutils.c | 50 +++++++++++++++++++++--------------------- libsmartcols/src/table_print.c | 4 +--- misc-utils/blkid.c | 6 ++--- misc-utils/kill.c | 6 +---- text-utils/column.c | 4 +--- 7 files changed, 32 insertions(+), 44 deletions(-) commit 7054d8a6c76b05d3c68e583034a73163dc1f86dd Author: Osamu Aoki Date: Sat Dec 26 12:57:08 2015 +0900 mount.8: Add documentation of overlay mount options [kzak@redhat.com: - add more information, change formatting] Signed-off-by: Karel Zak sys-utils/mount.8 | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) commit 98604ef9f25360d6d3bcaf9dd99a35a51d49333f Author: Karel Zak Date: Tue Jan 5 12:31:32 2016 +0100 tests: fallback for missing TS_DESC Signed-off-by: Karel Zak tests/functions.sh | 1 + 1 file changed, 1 insertion(+) commit 0e0c823874c325a65293e1fdab9e6f965b7e0552 Author: Ruediger Meier Date: Thu Dec 17 16:56:14 2015 +0100 tests: wipefs fix, ts_init was called too late Signed-off-by: Ruediger Meier tests/ts/wipefs/wipefs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 81b3d7eda54edd74c0ab7b9a564ae6adb0d45839 Author: Ruediger Meier Date: Tue Dec 15 18:26:04 2015 +0100 tests: fix run.sh --parallel=1 Signed-off-by: Ruediger Meier tests/run.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 1cb10736e4c5e51075d06ca9a0fc8ff49ac46c7d Author: Ruediger Meier Date: Tue Dec 15 17:46:58 2015 +0100 tests: always create sparse image files This saves about 400M disk I/O and space. Signed-off-by: Ruediger Meier tests/functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 01b38917ad2006f71748b8c1e326db9eaf45867d Author: Ruediger Meier Date: Tue Dec 15 16:43:29 2015 +0100 tests: no more sleep, udevadm settle only This seems to work nowadays and saves 37s. Signed-off-by: Ruediger Meier tests/functions.sh | 1 - tests/ts/eject/umount | 1 - tests/ts/libmount/context | 1 - tests/ts/libmount/context-py | 1 - tests/ts/libmount/context-utab | 1 - tests/ts/libmount/context-utab-py | 1 - 6 files changed, 6 deletions(-) commit 67c78d5f6ddb8feb9bc968f386c0ff551c8101a2 Author: Ruediger Meier Date: Tue Dec 15 14:03:23 2015 +0100 tests: use sfdisk --no-reread wherever it's needed The first BLKRRPART ioctl causes udev events and then second one may fail, see Discussion http://comments.gmane.org/gmane.linux.utilities.util-linux-ng/11885 Signed-off-by: Ruediger Meier tests/expected/sfdisk/dos-resize | 2 -- tests/expected/sfdisk/gpt-resize | 2 -- tests/expected/sfdisk/movedata-down | 2 -- tests/expected/sfdisk/movedata-non-overlay | 2 -- tests/expected/sfdisk/movedata-up | 2 -- tests/expected/sfdisk/resize-dos-0-move-up-absolute | 2 -- tests/expected/sfdisk/resize-dos-1-move-down-absolute | 2 -- tests/expected/sfdisk/resize-dos-10-down-enlarge | 2 -- tests/expected/sfdisk/resize-dos-11-absolute-move-resize | 2 -- tests/expected/sfdisk/resize-dos-12-reduce-midle | 2 -- tests/expected/sfdisk/resize-dos-13-max-last | 2 -- tests/expected/sfdisk/resize-dos-2-move-up-relative | 2 -- tests/expected/sfdisk/resize-dos-3-move-down-relative | 2 -- tests/expected/sfdisk/resize-dos-4-enlarge-absolute | 2 -- tests/expected/sfdisk/resize-dos-5-reduce-absolute | 2 -- tests/expected/sfdisk/resize-dos-6-enlarge-relative | 2 -- tests/expected/sfdisk/resize-dos-7-reduce-relative | 2 -- tests/expected/sfdisk/resize-dos-8-enlarge-all | 2 -- tests/expected/sfdisk/resize-dos-9-up-preduce | 2 -- tests/expected/sfdisk/resize-gpt-0-move-up-absolute | 2 -- tests/expected/sfdisk/resize-gpt-1-move-down-absolute | 2 -- tests/expected/sfdisk/resize-gpt-10-down-enlarge | 2 -- tests/expected/sfdisk/resize-gpt-11-absolute-move-resize | 2 -- tests/expected/sfdisk/resize-gpt-12-reduce-midle | 2 -- tests/expected/sfdisk/resize-gpt-13-max-last | 2 -- tests/expected/sfdisk/resize-gpt-2-move-up-relative | 2 -- tests/expected/sfdisk/resize-gpt-3-move-down-relative | 2 -- tests/expected/sfdisk/resize-gpt-4-enlarge-absolute | 2 -- tests/expected/sfdisk/resize-gpt-5-reduce-absolute | 2 -- tests/expected/sfdisk/resize-gpt-6-enlarge-relative | 2 -- tests/expected/sfdisk/resize-gpt-7-reduce-relative | 2 -- tests/expected/sfdisk/resize-gpt-8-enlarge-all | 2 -- tests/expected/sfdisk/resize-gpt-9-up-preduce | 2 -- tests/ts/sfdisk/dos | 2 +- tests/ts/sfdisk/gpt | 3 ++- tests/ts/sfdisk/movedata | 8 ++++---- tests/ts/sfdisk/resize | 12 ++++++------ 37 files changed, 13 insertions(+), 78 deletions(-) commit dd62675a87da03cacfc3cff79d60fa63346b91c0 Author: W. Trevor King Date: Tue Dec 15 11:46:25 2015 -0800 lsns: Fix "lowers" -> "lowest" typo in --help for COL_PID The process-selection logic is in add_process_to_namespace: if (!ns->proc || ns->proc->pid > proc->pid) ns->proc = proc; so it's just selecting the lowest PID. Signed-off-by: W. Trevor King sys-utils/lsns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8b7ef916893de143828d2e2670020d955887bb22 Author: Karel Zak Date: Mon Dec 21 15:50:58 2015 +0100 lslogins: fix getgrouplist() usage for 64BE on ppc64: $ lslogins kzak $ lslogins: cannot allocate 85899345920 bytes: Cannot allocate memory because (int *) len where len is pointer to size_t is bad idea... Signed-off-by: Karel Zak login-utils/lslogins.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) commit 514f593060449f4df16fb7366dea1ed34bfbc115 Author: Ruediger Meier Date: Thu Dec 17 14:10:17 2015 +0100 travis: workaround env pollution, PYTHON_CFLAGS Since a few days travis workers seem to export broken PYTHON_CFLAGS and automake's python detection fails. see https://github.com/travis-ci/travis-ci/issues/5301 Signed-off-by: Ruediger Meier .travis.yml | 2 ++ 1 file changed, 2 insertions(+) commit d42ecea2e9503619e50b58225728e3ef0401125d Author: Ruediger Meier Date: Thu Dec 17 14:04:57 2015 +0100 travis: cosmetics, order scripts like they are executed Signed-off-by: Ruediger Meier .travis.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit 48d20d4dae7c41b1a4e49a491e2d7778b86f0147 Merge: f7ac9e7 5e8461a Author: Karel Zak Date: Tue Dec 15 12:48:30 2015 +0100 Merge branch 'scols_print_to_string' of https://github.com/ignatenkobrain/util-linux commit f7ac9e71b18fa7314151f2ab65ee0bdd2ea89c07 Author: Karel Zak Date: Tue Dec 15 12:25:56 2015 +0100 login, mount: fix __SC_GETPW_R_SIZE_MAX usage sysconf(_SC_GETPW_R_SIZE_MAX) returns initial suggested size for pwd buffer (see getpwnam_r man page or POSIX). This is not large enough in some cases. Yes, this sysconf option is misnamed (should be _SC_GETPW_R_SIZE_MIN). Signed-off-by: Karel Zak include/c.h | 9 +++++++++ libmount/src/utils.c | 25 ++++++------------------- login-utils/login.c | 12 ++---------- 3 files changed, 17 insertions(+), 29 deletions(-) commit b5febe04898672019bd8aa1234132d3ad8e5229b Merge: 11290b8 6ea6964 Author: Karel Zak Date: Tue Dec 15 10:55:49 2015 +0100 Merge branch 'test-fixes' of https://github.com/rudimeier/util-linux * 'test-fixes' of https://github.com/rudimeier/util-linux: tests: sfdisk/gpt-reorder, add missing results tests: skip nonroot before checking for progs in PATH tests: skip automake's empty "Testsuite summary" commit 5e8461a53a11b2ed4d4e14a9e912bfad02cb7287 Author: Igor Gnatenko Date: Sun Dec 13 15:02:05 2015 +0100 scols/table_print: restore old stream after printing to str Reference: https://github.com/karelzak/util-linux/issues/240 Signed-off-by: Igor Gnatenko libsmartcols/src/table_print.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 11290b849fc67eab0752dc43e5c6cb8038195a8a Author: Bill Pemberton Date: Thu Dec 10 10:02:34 2015 -0500 wipefs: Allow b to be used as the short option for backup 'b' is documented as the short option for backup but b was not added to the optstring on the getopt_long call. Add it. Signed-off-by: Bill Pemberton misc-utils/wipefs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6ea6964367bfb2d259f3db53fc5d682cc6f0ecd9 Author: Ruediger Meier Date: Thu Dec 10 18:02:28 2015 +0100 tests: sfdisk/gpt-reorder, add missing results follow-up 9a17d946 Signed-off-by: Ruediger Meier tests/expected/sfdisk/gpt-reorder | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) commit ee6c0ca65b36f4925f58d787276786252532be6f Author: Ruediger Meier Date: Thu Dec 10 16:56:11 2015 +0100 tests: skip nonroot before checking for progs in PATH The least annoying and most useful order is this one: 1. check for compiled UL commands 2. check for root 3. check for loop support 4. check for external progs Signed-off-by: Ruediger Meier tests/ts/eject/umount | 2 +- tests/ts/fsck/ismounted | 2 +- tests/ts/ipcs/limits | 1 - tests/ts/libmount/context | 3 ++- tests/ts/libmount/context-py | 3 ++- tests/ts/libmount/context-utab | 3 ++- tests/ts/libmount/context-utab-py | 4 ++-- tests/ts/libmount/tabfiles-tags | 1 + tests/ts/libmount/tabfiles-tags-py | 4 +++- tests/ts/mount/devname | 2 +- tests/ts/mount/fslists | 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-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/regfile | 2 +- tests/ts/mount/remount | 2 +- tests/ts/mount/rlimit | 2 +- tests/ts/mount/shared-subtree | 2 +- tests/ts/mount/umount-alltargets | 2 +- tests/ts/mount/umount-recursive | 2 +- tests/ts/mount/uuid | 2 +- tests/ts/partx/partx | 3 +-- tests/ts/sfdisk/movedata | 1 + 31 files changed, 36 insertions(+), 31 deletions(-) commit 24147585f0da26bdb4264ecffd8aabcdf584ef07 Author: Ruediger Meier Date: Thu Dec 10 13:35:27 2015 +0100 tests: skip automake's empty "Testsuite summary" We have no automake TESTS. Let's run check-local only. Signed-off-by: Ruediger Meier Makefile.am | 1 - 1 file changed, 1 deletion(-) commit 85008725d07283b5608ad26e306b43a8012f84fc Author: Karel Zak Date: Thu Dec 10 13:06:48 2015 +0100 lsblk: tiny man page update for --sort Signed-off-by: Karel Zak misc-utils/lsblk.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a6dc8dcd028dbbec9562fd09921055e856392b7d Author: Karel Zak Date: Thu Dec 10 13:03:46 2015 +0100 lsblk: allow to --sort by hidden column For example: lsblk -o NAME --sort SIZE prints NAMEs, but sort by SIZEs. Signed-off-by: Karel Zak Documentation/TODO | 7 ------- misc-utils/lsblk.c | 10 ++++++++-- 2 files changed, 8 insertions(+), 9 deletions(-) commit 6d6b6d185e7427e2b5590349edd76d019b0fe920 Author: Karel Zak Date: Thu Dec 10 13:02:03 2015 +0100 libsmartcols: add SCOLS_FL_HIDDEN Export "don't print this column" functionality by public API. Signed-off-by: Karel Zak libsmartcols/docs/libsmartcols-sections.txt | 1 + libsmartcols/src/column.c | 15 +++++++++++++++ libsmartcols/src/libsmartcols.h.in | 2 ++ libsmartcols/src/smartcolsP.h | 2 -- libsmartcols/src/table_print.c | 10 +++++----- 5 files changed, 23 insertions(+), 7 deletions(-) commit 0f1cbe943037f73ce114ac264f784730412b22b2 Author: Karel Zak Date: Thu Dec 10 11:45:31 2015 +0100 libmount: add comment, remove TODO item Signed-off-by: Karel Zak Documentation/TODO | 4 ---- libmount/src/context_umount.c | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) commit 96c6ccd55412a93793988e8d9495f9684c33c2ff Merge: fdc106a 84918ad Author: Karel Zak Date: Thu Dec 10 11:18:04 2015 +0100 Merge branch 'test-fixes' of https://github.com/rudimeier/util-linux * 'test-fixes' of https://github.com/rudimeier/util-linux: tests: use xz instead of bzip2 for blkid images tests: add some line tests tests: avoid sed -E commit fdc106a4ebf551a23da10c3bf11926f803f49a5d Author: Ruediger Meier Date: Wed Dec 9 16:27:17 2015 +0100 tests: skip BLKDISCARD if unsupported CC: Federico Simoncelli Signed-off-by: Ruediger Meier tests/ts/blkdiscard/offsets | 5 +++++ 1 file changed, 5 insertions(+) commit 45eb5b2917c3fe76ac7047859540ba04489ddc66 Author: Ruediger Meier Date: Wed Dec 9 16:12:35 2015 +0100 tests: blkdiscard, check return values CC: Federico Simoncelli Signed-off-by: Ruediger Meier tests/expected/blkdiscard/offsets | 31 +++++++++++++++++ tests/ts/blkdiscard/offsets | 73 ++++++++++++++++++++++----------------- 2 files changed, 72 insertions(+), 32 deletions(-) commit eeae448805c0eb2ef130a6ac301750706bb80420 Author: Ruediger Meier Date: Wed Dec 9 13:01:51 2015 +0100 blkdiscard: don't report "zero range" at the end We want to address the case that we have printed the last useful stats line already within the loop. Avoiding an additional line "Discarded 0 bytes ..." at the end. Note there is a behavior change now for the edge cases "-v -l 0" and "-v -o blksize" where we don't print any stats line anymore. But actually it's correct, we never make any BLKDISCARD syscall with zero range. Perhaps we should return error in these cases to help people who always want to parse stats output on success. CC: Federico Simoncelli Signed-off-by: Ruediger Meier sys-utils/blkdiscard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a3e91e26467a0f644ee568bb0b3d481591834015 Author: Ruediger Meier Date: Wed Dec 9 12:57:43 2015 +0100 blkdiscard: fix stats reporting (off by one) CC: Federico Simoncelli Signed-off-by: Ruediger Meier sys-utils/blkdiscard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 0e765365798c54d412e355798ad584a52035f228 Author: Ruediger Meier Date: Wed Dec 9 09:36:14 2015 +0100 blkdiscard: fix timeval comparison inclusive usecs We will see if this makes our "--step" tests reliable. CC: Federico Simoncelli Signed-off-by: Ruediger Meier sys-utils/blkdiscard.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 6589a1632b313db1304b673a6ce41a48f203eb98 Author: Karel Zak Date: Wed Dec 9 10:26:16 2015 +0100 libmount: use fstatat(AT_NO_AUTOMOUNT) for mountpoints Signed-off-by: Karel Zak Documentation/TODO | 4 ++++ libmount/src/context.c | 4 ++-- libmount/src/context_umount.c | 4 ++-- libmount/src/mountP.h | 1 + libmount/src/utils.c | 13 +++++++++++-- 5 files changed, 20 insertions(+), 6 deletions(-) commit 84918ad0fcc03d065dbe238459cc31b26225420f Author: Ruediger Meier Date: Mon Dec 7 17:48:56 2015 +0100 tests: use xz instead of bzip2 for blkid images xz decompression creates sparse files if possible. This saves about 1G disk space in build directory and a lot I/O and time. BTW regarding compatibility ... CentOS 7 is the first system I've met which does not install bzip2 but xz only by default. Signed-off-by: Ruediger Meier tests/ts/blkid/images-fs/adaptec-raid.img.bz2 | Bin 256 -> 0 bytes tests/ts/blkid/images-fs/adaptec-raid.img.xz | Bin 0 -> 672 bytes tests/ts/blkid/images-fs/bcache-B.img.bz2 | Bin 161 -> 0 bytes tests/ts/blkid/images-fs/bcache-B.img.xz | Bin 0 -> 180 bytes tests/ts/blkid/images-fs/bcache-C.img.bz2 | Bin 201 -> 0 bytes tests/ts/blkid/images-fs/bcache-C.img.xz | Bin 0 -> 9976 bytes tests/ts/blkid/images-fs/befs.img.bz2 | Bin 36236 -> 0 bytes tests/ts/blkid/images-fs/befs.img.xz | Bin 0 -> 28584 bytes tests/ts/blkid/images-fs/bfs.img.bz2 | Bin 133 -> 0 bytes tests/ts/blkid/images-fs/bfs.img.xz | Bin 0 -> 492 bytes tests/ts/blkid/images-fs/cramfs.img.bz2 | Bin 124 -> 0 bytes tests/ts/blkid/images-fs/cramfs.img.xz | Bin 0 -> 144 bytes tests/ts/blkid/images-fs/ddf-raid.img.bz2 | Bin 599 -> 0 bytes tests/ts/blkid/images-fs/ddf-raid.img.xz | Bin 0 -> 8140 bytes .../blkid/images-fs/drbdmanage-control-volume.img.bz2 | Bin 2001 -> 0 bytes .../ts/blkid/images-fs/drbdmanage-control-volume.img.xz | Bin 0 -> 2520 bytes tests/ts/blkid/images-fs/exfat.img.bz2 | Bin 6301 -> 0 bytes tests/ts/blkid/images-fs/exfat.img.xz | Bin 0 -> 4620 bytes tests/ts/blkid/images-fs/ext2.img.bz2 | Bin 356 -> 0 bytes tests/ts/blkid/images-fs/ext2.img.xz | Bin 0 -> 384 bytes tests/ts/blkid/images-fs/ext3.img.bz2 | Bin 1489 -> 0 bytes tests/ts/blkid/images-fs/ext3.img.xz | Bin 0 -> 1612 bytes tests/ts/blkid/images-fs/f2fs.img.bz2 | Bin 695 -> 0 bytes tests/ts/blkid/images-fs/f2fs.img.xz | Bin 0 -> 22188 bytes tests/ts/blkid/images-fs/fat.img.bz2 | Bin 249 -> 0 bytes tests/ts/blkid/images-fs/fat.img.xz | Bin 0 -> 488 bytes tests/ts/blkid/images-fs/fat16_noheads.img.bz2 | Bin 336 -> 0 bytes tests/ts/blkid/images-fs/fat16_noheads.img.xz | Bin 0 -> 16300 bytes tests/ts/blkid/images-fs/fat32_label_64MB.img.bz2 | Bin 1151 -> 0 bytes tests/ts/blkid/images-fs/fat32_label_64MB.img.xz | Bin 0 -> 10428 bytes tests/ts/blkid/images-fs/gfs2.img.bz2 | Bin 130 -> 0 bytes tests/ts/blkid/images-fs/gfs2.img.xz | Bin 0 -> 5092 bytes tests/ts/blkid/images-fs/hfs.img.bz2 | Bin 257 -> 0 bytes tests/ts/blkid/images-fs/hfs.img.xz | Bin 0 -> 1876 bytes tests/ts/blkid/images-fs/hfsplus.img.bz2 | Bin 300 -> 0 bytes tests/ts/blkid/images-fs/hfsplus.img.xz | Bin 0 -> 1940 bytes tests/ts/blkid/images-fs/hpfs.img.bz2 | Bin 2454 -> 0 bytes tests/ts/blkid/images-fs/hpfs.img.xz | Bin 0 -> 2172 bytes tests/ts/blkid/images-fs/hpt37x-raid.img.bz2 | Bin 123 -> 0 bytes tests/ts/blkid/images-fs/hpt37x-raid.img.xz | Bin 0 -> 400 bytes tests/ts/blkid/images-fs/hpt45x-raid.img.bz2 | Bin 151 -> 0 bytes tests/ts/blkid/images-fs/hpt45x-raid.img.xz | Bin 0 -> 424 bytes tests/ts/blkid/images-fs/iso-joliet.img.bz2 | Bin 21050 -> 0 bytes tests/ts/blkid/images-fs/iso-joliet.img.xz | Bin 0 -> 21884 bytes tests/ts/blkid/images-fs/iso-rr-joliet.img.bz2 | Bin 21380 -> 0 bytes tests/ts/blkid/images-fs/iso-rr-joliet.img.xz | Bin 0 -> 22144 bytes tests/ts/blkid/images-fs/iso.img.bz2 | Bin 20718 -> 0 bytes tests/ts/blkid/images-fs/iso.img.xz | Bin 0 -> 21656 bytes tests/ts/blkid/images-fs/isw-raid.img.bz2 | Bin 251 -> 0 bytes tests/ts/blkid/images-fs/isw-raid.img.xz | Bin 0 -> 528 bytes tests/ts/blkid/images-fs/jbd.img.bz2 | Bin 214 -> 0 bytes tests/ts/blkid/images-fs/jbd.img.xz | Bin 0 -> 688 bytes tests/ts/blkid/images-fs/jfs.img.bz2 | Bin 3434 -> 0 bytes tests/ts/blkid/images-fs/jfs.img.xz | Bin 0 -> 4768 bytes tests/ts/blkid/images-fs/jmicron-raid.img.bz2 | Bin 159 -> 0 bytes tests/ts/blkid/images-fs/jmicron-raid.img.xz | Bin 0 -> 480 bytes tests/ts/blkid/images-fs/lsi-raid.img.bz2 | Bin 146 -> 0 bytes tests/ts/blkid/images-fs/lsi-raid.img.xz | Bin 0 -> 436 bytes tests/ts/blkid/images-fs/lvm2.img.bz2 | Bin 177 -> 0 bytes tests/ts/blkid/images-fs/lvm2.img.xz | Bin 0 -> 512 bytes tests/ts/blkid/images-fs/mdraid.img.bz2 | Bin 160 -> 0 bytes tests/ts/blkid/images-fs/mdraid.img.xz | Bin 0 -> 1752 bytes tests/ts/blkid/images-fs/minix-BE.img.bz2 | Bin 144 -> 0 bytes tests/ts/blkid/images-fs/minix-BE.img.xz | Bin 0 -> 220 bytes tests/ts/blkid/images-fs/minix-LE.img.bz2 | Bin 140 -> 0 bytes tests/ts/blkid/images-fs/minix-LE.img.xz | Bin 0 -> 224 bytes tests/ts/blkid/images-fs/netware.img.bz2 | Bin 239 -> 0 bytes tests/ts/blkid/images-fs/netware.img.xz | Bin 0 -> 244 bytes tests/ts/blkid/images-fs/nilfs2.img.bz2 | Bin 795 -> 0 bytes tests/ts/blkid/images-fs/nilfs2.img.xz | Bin 0 -> 25072 bytes tests/ts/blkid/images-fs/ntfs.img.bz2 | Bin 35942 -> 0 bytes tests/ts/blkid/images-fs/ntfs.img.xz | Bin 0 -> 89576 bytes tests/ts/blkid/images-fs/nvidia-raid.img.bz2 | Bin 175 -> 0 bytes tests/ts/blkid/images-fs/nvidia-raid.img.xz | Bin 0 -> 572 bytes tests/ts/blkid/images-fs/ocfs2.img.bz2 | Bin 1070 -> 0 bytes tests/ts/blkid/images-fs/ocfs2.img.xz | Bin 0 -> 18644 bytes tests/ts/blkid/images-fs/promise-raid.img.bz2 | Bin 784 -> 0 bytes tests/ts/blkid/images-fs/promise-raid.img.xz | Bin 0 -> 740 bytes tests/ts/blkid/images-fs/reiser3.img.bz2 | Bin 282 -> 0 bytes tests/ts/blkid/images-fs/reiser3.img.xz | Bin 0 -> 936 bytes tests/ts/blkid/images-fs/reiser4.img.bz2 | Bin 372 -> 0 bytes tests/ts/blkid/images-fs/reiser4.img.xz | Bin 0 -> 904 bytes tests/ts/blkid/images-fs/romfs.img.bz2 | Bin 115 -> 0 bytes tests/ts/blkid/images-fs/romfs.img.xz | Bin 0 -> 384 bytes tests/ts/blkid/images-fs/silicon-raid.img.bz2 | Bin 328 -> 0 bytes tests/ts/blkid/images-fs/silicon-raid.img.xz | Bin 0 -> 588 bytes tests/ts/blkid/images-fs/small-fat32.img.bz2 | Bin 372 -> 0 bytes tests/ts/blkid/images-fs/small-fat32.img.xz | Bin 0 -> 576 bytes tests/ts/blkid/images-fs/swap0.img.bz2 | Bin 75 -> 0 bytes tests/ts/blkid/images-fs/swap0.img.xz | Bin 0 -> 496 bytes tests/ts/blkid/images-fs/swap1.img.bz2 | Bin 121 -> 0 bytes tests/ts/blkid/images-fs/swap1.img.xz | Bin 0 -> 524 bytes tests/ts/blkid/images-fs/tuxonice.img.bz2 | Bin 36891 -> 0 bytes tests/ts/blkid/images-fs/tuxonice.img.xz | Bin 0 -> 37032 bytes tests/ts/blkid/images-fs/ubifs.img.bz2 | Bin 937 -> 0 bytes tests/ts/blkid/images-fs/ubifs.img.xz | Bin 0 -> 1128 bytes tests/ts/blkid/images-fs/udf-hdd-mkudffs.img.bz2 | Bin 1042 -> 0 bytes tests/ts/blkid/images-fs/udf-hdd-mkudffs.img.xz | Bin 0 -> 2728 bytes tests/ts/blkid/images-fs/udf-hdd-mkudffs2.img.bz2 | Bin 1082 -> 0 bytes tests/ts/blkid/images-fs/udf-hdd-mkudffs2.img.xz | Bin 0 -> 2772 bytes .../ts/blkid/images-fs/udf-hdd-udfclient-0.7.5.img.bz2 | Bin 816 -> 0 bytes tests/ts/blkid/images-fs/udf-hdd-udfclient-0.7.5.img.xz | Bin 0 -> 2292 bytes .../ts/blkid/images-fs/udf-hdd-udfclient-0.7.7.img.bz2 | Bin 822 -> 0 bytes tests/ts/blkid/images-fs/udf-hdd-udfclient-0.7.7.img.xz | Bin 0 -> 2296 bytes tests/ts/blkid/images-fs/udf-hdd-win7.img.bz2 | Bin 884 -> 0 bytes tests/ts/blkid/images-fs/udf-hdd-win7.img.xz | Bin 0 -> 2624 bytes tests/ts/blkid/images-fs/udf.img.bz2 | Bin 2031 -> 0 bytes tests/ts/blkid/images-fs/udf.img.xz | Bin 0 -> 1884 bytes tests/ts/blkid/images-fs/ufs.img.bz2 | Bin 1318 -> 0 bytes tests/ts/blkid/images-fs/ufs.img.xz | Bin 0 -> 1296 bytes tests/ts/blkid/images-fs/via-raid.img.bz2 | Bin 99 -> 0 bytes tests/ts/blkid/images-fs/via-raid.img.xz | Bin 0 -> 528 bytes tests/ts/blkid/images-fs/vmfs.img.bz2 | Bin 144 -> 0 bytes tests/ts/blkid/images-fs/vmfs.img.xz | Bin 0 -> 512 bytes tests/ts/blkid/images-fs/vmfs_volume.img.bz2 | Bin 287 -> 0 bytes tests/ts/blkid/images-fs/vmfs_volume.img.xz | Bin 0 -> 680 bytes tests/ts/blkid/images-fs/xfs-log.img.bz2 | Bin 138 -> 0 bytes tests/ts/blkid/images-fs/xfs-log.img.xz | Bin 0 -> 1720 bytes tests/ts/blkid/images-fs/xfs.img.bz2 | Bin 443 -> 0 bytes tests/ts/blkid/images-fs/xfs.img.xz | Bin 0 -> 2892 bytes tests/ts/blkid/images-fs/zfs.img.bz2 | Bin 10912 -> 0 bytes tests/ts/blkid/images-fs/zfs.img.xz | Bin 0 -> 19904 bytes tests/ts/blkid/images-pt/bsd.img.bz2 | Bin 122 -> 0 bytes tests/ts/blkid/images-pt/bsd.img.xz | Bin 0 -> 840 bytes tests/ts/blkid/images-pt/dos+bsd.img.bz2 | Bin 1728 -> 0 bytes tests/ts/blkid/images-pt/dos+bsd.img.xz | Bin 0 -> 2620 bytes tests/ts/blkid/images-pt/gpt.img.bz2 | Bin 494 -> 0 bytes tests/ts/blkid/images-pt/gpt.img.xz | Bin 0 -> 2140 bytes tests/ts/blkid/images-pt/sgi.img.bz2 | Bin 144 -> 0 bytes tests/ts/blkid/images-pt/sgi.img.xz | Bin 0 -> 1724 bytes tests/ts/blkid/images-pt/sun.img.bz2 | Bin 170 -> 0 bytes tests/ts/blkid/images-pt/sun.img.xz | Bin 0 -> 1748 bytes tests/ts/blkid/low-probe | 7 ++++--- tests/ts/blkid/lowprobe-pt | 7 ++++--- tests/ts/partx/partx | 7 ++++--- 135 files changed, 12 insertions(+), 9 deletions(-) commit 624996a95095b083501affdf6dbbc714171c4901 Author: Karel Zak Date: Tue Dec 8 12:16:27 2015 +0100 libmount: add cgroup2 pseudo FS Signed-off-by: Karel Zak include/statfs_magic.h | 1 + libmount/src/utils.c | 1 + 2 files changed, 2 insertions(+) commit 24500575ac7c86c2553cc2acd35a11fa752d096a Merge: f07a82c 100a3ab Author: Karel Zak Date: Tue Dec 8 12:10:39 2015 +0100 Merge branch 'patch-1' of https://github.com/frioux/util-linux * 'patch-1' of https://github.com/frioux/util-linux: Fix subtle typo commit f07a82c9d8141dd295c2453e3c5804f997ed7ce5 Author: Karel Zak Date: Tue Dec 8 11:52:13 2015 +0100 build-sys: fix typo and more all RT to the same place typo : s/timer_createx/timer_create/ Signed-off-by: Karel Zak configure.ac | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) commit 100a3ab5160f148516ac941c5efdc527bb210698 Author: fREW Schmidt Date: Mon Dec 7 14:16:30 2015 -0800 Fix subtle typo sys-utils/unshare.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 96561604e2f87f94d0db633b70db463fed83cf58 Author: Karel Zak Date: Mon Dec 7 15:10:23 2015 +0100 libsmartcols: fix right-aligned logic for last column Signed-off-by: Karel Zak libsmartcols/src/table_print.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit 717fff869e7e947d9b6655531c9ed6f5f500bc4c Author: Karel Zak Date: Mon Dec 7 12:23:26 2015 +0100 cfdisk: use new libsmartcols functionality to fix output Reported-by: Benno Schulenberg Signed-off-by: Karel Zak disk-utils/cfdisk.c | 1 + 1 file changed, 1 insertion(+) commit 05c1123bc3d3c4473397dcf73b2b9ef391950c3d Author: Karel Zak Date: Mon Dec 7 12:22:29 2015 +0100 libsmartcols: don't use fprintf() when count cells fprintf("%*s") is based on bytes, no cells. Signed-off-by: Karel Zak libsmartcols/src/table_print.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit df73852b6ec0d22c947647c03f447ce2edc22904 Author: Karel Zak Date: Mon Dec 7 12:03:52 2015 +0100 libsmartcols: add scols_table_enable_nowrap() This allows to use libsmartcols in ncurses programs without any additional voodoo. Signed-off-by: Karel Zak libsmartcols/docs/libsmartcols-sections.txt | 1 + libsmartcols/src/libsmartcols.h.in | 1 + libsmartcols/src/libsmartcols.sym | 5 +++ libsmartcols/src/smartcolsP.h | 5 ++- libsmartcols/src/table.c | 18 ++++++++++ libsmartcols/src/table_print.c | 51 ++++++++++++++++++++++++++--- 6 files changed, 75 insertions(+), 6 deletions(-) commit 86688c378b7b3bebfd145561ad252c4247cc44c1 Author: Karel Zak Date: Mon Dec 7 10:42:15 2015 +0100 Revert "cfdisk: make sure that output fits to terminal width" This reverts commit ed99eac0e2a83a315c7cf5d8a461df16b3106596. disk-utils/cfdisk.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) commit 5330b97e94b8d7622e43a403e71677f432fffea1 Author: Benno Schulenberg Date: Thu Dec 3 21:12:28 2015 +0100 lsns: improve formatting and wording of the man page Signed-off-by: Benno Schulenberg sys-utils/lsns.8 | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) commit 28a2df8dc0a2edd93d816dac04a7ab315dca7c52 Author: Karel Zak Date: Thu Dec 3 12:24:22 2015 +0100 libblkid: fix buffers mapping on 32bit archs Reported-by: Ruediger Meier Signed-off-by: Karel Zak libblkid/src/probe.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) commit caad4ded121790c89f0c383636c6cf7e9b4a04d4 Author: Ruediger Meier Date: Thu Dec 3 01:42:28 2015 +0100 tests: add some line tests regarding e03f29b6 ... Signed-off-by: Ruediger Meier tests/expected/misc/line | 6 ++++++ tests/ts/misc/line | 11 +++++++++++ 2 files changed, 17 insertions(+) commit e2142701ac6f86815dc85688efcbe1a221bef22e Author: Ruediger Meier Date: Wed Dec 2 15:24:27 2015 +0100 tests: avoid sed -E GNU sed's -E option for BSD compatibility is relatively new (>=4.2) and undocumented. Signed-off-by: Ruediger Meier tests/ts/uuid/uuidd | 2 +- tests/ts/wipefs/wipefs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit e03f29b6941fcf71b03039b0bf9e8fec66c81b58 Author: Karel Zak Date: Wed Dec 2 15:01:23 2015 +0100 line: keep stdin unbuiffered $ printf 'a\nb\n' | echo $(./line) :: $(./line) broken version: a :: fixed version: a :: b Addresses: https://github.com/karelzak/util-linux/issues/236 Signed-off-by: Karel Zak text-utils/line.c | 1 + 1 file changed, 1 insertion(+) commit 352740e88e2c9cb180fe845ce210b1c7b5ad88c7 Author: Karel Zak Date: Wed Dec 2 13:38:51 2015 +0100 libmount: fix is-mounted check for btrfs fstab: /dev/sdc /mnt/test btrfs subvol=/anydir /mnt/test /mnt/test2 auto bind and "mount -a" does not detect that /mnt/test2 is already mounted. Reported-by: Stanislav Brabec Signed-off-by: Karel Zak libmount/src/tab.c | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) commit bd9b94d12a6158b6080630085f77e59ac1b7de26 Author: Sukadev Bhattiprolu Date: Wed Nov 25 12:10:39 2015 -0800 lscpu: Print physical cpu information lscpu currently prints information for CPUs configured in the system. In case of KVM or other virtualized guest operating systems, this refers to the virtual system, and bears no relation to the physical topology of the system. It would be useful if lscpu could also display the physical topology info when available: $ ./lscpu Architecture: ppc64le Byte Order: Little Endian CPU(s): 16 On-line CPU(s) list: 0-15 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 16 NUMA node(s): 1 Model: IBM pSeries (emulated by qemu) Hypervisor vendor: KVM Virtualization type: para L1d cache: 64K L1i cache: 32K NUMA node0 CPU(s): 0-15 Physical sockets: 2 <<< New Physical chips: 4 <<< New Physical cores/chip: 4 <<< New For now, physical topology information is available on platforms that support the following RTAS (Real time abstraction service) call provided by librtas: rtas_get_sysparm(PROCESSOR_MODULE_INFO). Currently this call is available to the PowerVM (pHYP) guests on PowerPC. With a patch propoosed to PowerKVM, this RTAS call would also be available to PowerKVM guests. Based on input from Nishanth Aravamudan and Karel Zak. Signed-off-by: Sukadev Bhattiprolu configure.ac | 6 ++++++ sys-utils/Makemodule.am | 2 +- sys-utils/lscpu.1 | 10 ++++++++- sys-utils/lscpu.c | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 71 insertions(+), 2 deletions(-) commit 4ba2a6e515dc41805526ce976993a9b019abd082 Merge: 0e4f6b2 010d5a6 Author: Karel Zak Date: Wed Dec 2 10:27:43 2015 +0100 Merge branch 'races' of git://github.com/kerolasa/lelux-utiliteetit commit 0e4f6b2a262346a2bf9fbff4a8c943cd34fae7ed Author: Karel Zak Date: Tue Dec 1 17:27:22 2015 +0100 lsns: improve man page Signed-off-by: Karel Zak sys-utils/lsns.8 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit e069296ed8331d8a0408669ac21533883629f54f Author: Karel Zak Date: Tue Dec 1 15:44:26 2015 +0100 include: add missing header file Signed-off-by: Karel Zak include/Makemodule.am | 1 + 1 file changed, 1 insertion(+) commit 8ff3d5d077cc5d60db840836a219d83e8f3f99dc Author: Karel Zak Date: Tue Dec 1 13:50:51 2015 +0100 lsns: fix usage() Signed-off-by: Karel Zak sys-utils/lsns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 635493655ec717a12574061ebcacfd2944ee69ff Author: Karel Zak Date: Tue Dec 1 13:00:14 2015 +0100 lsns: add details to the man page Signed-off-by: Karel Zak sys-utils/lsns.8 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit 1880a5781f29d9a0d5bcce76a35c19b2363e0c68 Author: Karel Zak Date: Tue Dec 1 12:31:30 2015 +0100 lsns: sort namespaces, avoid duplicate entries in tree output Signed-off-by: Karel Zak sys-utils/lsns.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) commit 82a437c79d18e887b1c8dc908228fd4b7e87a9f3 Author: Karel Zak Date: Tue Dec 1 11:45:11 2015 +0100 lsns: remove unwanted comment Signed-off-by: Karel Zak sys-utils/lsns.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit 1bb4fe24e3055ae784b5d809a193bd90f2af9388 Author: Karel Zak Date: Tue Dec 1 11:40:51 2015 +0100 lsns: add man page Signed-off-by: Karel Zak sys-utils/Makemodule.am | 2 +- sys-utils/lsns.8 | 74 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 1 deletion(-) commit 304fbe8b3ca320b1447824ee104b5fe66d5eb477 Author: Karel Zak Date: Mon Nov 30 15:55:31 2015 +0100 lsns: filter by NS type Signed-off-by: Karel Zak sys-utils/lsns.c | 59 ++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 47 insertions(+), 12 deletions(-) commit 969d3d15aadd82882f648d112259f7743e03b833 Author: Karel Zak Date: Mon Nov 30 14:06:05 2015 +0100 lsln: allows to list namespace processes Signed-off-by: Karel Zak sys-utils/lsns.c | 192 +++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 145 insertions(+), 47 deletions(-) commit c600d82a3a0dbab074eb6ebdd25dfa6e72621289 Author: Karel Zak Date: Mon Nov 30 12:53:42 2015 +0100 libsmartcols: make sure we have space for ascii art * more verbose output about columns width counting * strlen_line() does not care about space between columns and extra tree ASCII art. Let's assume that all termwith is possible to use for this extra stuff, it means that maximal buffer size is biggest_line + termwidth. Signed-off-by: Karel Zak libsmartcols/src/table_print.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) commit 440f73b7bc5e2b1021a62dfd338b883f73ff913e Author: Karel Zak Date: Mon Nov 30 11:43:05 2015 +0100 libsmartcols: allow to reduce tree columns Signed-off-by: Karel Zak libsmartcols/src/smartcolsP.h | 1 + libsmartcols/src/table_print.c | 16 +++++++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) commit 9dfd601976583aaba5264f31e8c626b31059f1e3 Author: Karel Zak Date: Fri Nov 27 14:24:09 2015 +0100 lsns: read all processes when --task specified Signed-off-by: Karel Zak sys-utils/lsns.c | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) commit 13f6b9db1e4df70cda0f91e8ffa0b0d80077862a Author: Karel Zak Date: Fri Nov 27 13:57:22 2015 +0100 build-sys: add lsns to gitignore Signed-off-by: Karel Zak .gitignore | 1 + 1 file changed, 1 insertion(+) commit a52852d37a677028649f99ff093a776832d5b834 Author: Karel Zak Date: Fri Nov 27 13:56:31 2015 +0100 lsns: add USER and UID Signed-off-by: Karel Zak sys-utils/lsns.c | 46 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 37 insertions(+), 9 deletions(-) commit 04a5cb58b62598b86173a03af8e900d58f2bfed1 Author: Karel Zak Date: Fri Nov 27 13:56:01 2015 +0100 namei: move icache to lib/ Signed-off-by: Karel Zak include/idcache.h | 28 ++++++++++++ lib/Makemodule.am | 1 + lib/idcache.c | 113 +++++++++++++++++++++++++++++++++++++++++++++++ misc-utils/Makemodule.am | 2 +- misc-utils/namei.c | 111 ++++++---------------------------------------- 5 files changed, 156 insertions(+), 99 deletions(-) commit 8a2045620e13d66ba8f271dc8378f7bd0830aaae Author: Karel Zak Date: Thu Nov 26 14:09:45 2015 +0100 lsns: new command Signed-off-by: Karel Zak configure.ac | 5 + sys-utils/Makemodule.am | 9 + sys-utils/lsns.c | 572 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 586 insertions(+) commit 0e756daeb64ab62a8e9296e5156e17bb5cf6720a Author: Karel Zak Date: Wed Nov 25 14:17:22 2015 +0100 lslocks: use stuff from lib/procutils Signed-off-by: Karel Zak include/procutils.h | 1 + lib/procutils.c | 18 +++++++++++++++--- misc-utils/lslocks.c | 25 ++----------------------- 3 files changed, 18 insertions(+), 26 deletions(-) commit 5184d93630ded83770a90e6a663a2ca3f5f4bbf2 Author: Karel Zak Date: Tue Nov 24 17:44:38 2015 +0100 agetty: don't ignore netlink on select() agetty uses NETLINK_ROUTE to be notified about network interface changes. Unfortunately, the code that monitor the netlink FD does not increment number of the monitored file descriptors when call select(2), so the netlink notifications are invisible for agetty. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1278906 Signed-off-by: Karel Zak term-utils/agetty.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) commit 010d5a670bc4021d6f1790705fcdde4dcde97b4b Author: Sami Kerola Date: Sat Oct 31 18:16:07 2015 +0000 mesg: fix multiple races Signed-off-by: Sami Kerola term-utils/mesg.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) commit f5320b483c0a25be1481df221665f4d18add4a1a Author: Sami Kerola Date: Sat Oct 31 18:34:36 2015 +0000 fdformat: fix block device open race This fix makes fdformat also to detect if block device is busy, and warn if the device is misaligned. Signed-off-by: Sami Kerola disk-utils/fdformat.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit 80c320fac1c0fe0154ab07c3b5242a13d3c50adb Author: Sami Kerola Date: Sat Oct 31 18:10:00 2015 +0000 mkswap: fix block device open race Signed-off-by: Sami Kerola disk-utils/mkswap.c | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) commit 8a4eb983d845856a48cb03f70f97009af49cc6fc Author: Sami Kerola Date: Sat Oct 31 18:08:27 2015 +0000 mkfs.minix: fix block device open race Signed-off-by: Sami Kerola disk-utils/mkfs.minix.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) commit 98b4f74e1f8f5735e29b6ac37cf4d3dcd77be701 Author: Sami Kerola Date: Sun Nov 22 19:58:26 2015 +0000 mkfs.bfs: allow creating file system to a file Most, if not all, linux file systems allow this and there should not be a reason why bfs could not do the same. Signed-off-by: Sami Kerola disk-utils/mkfs.bfs.c | 3 --- 1 file changed, 3 deletions(-) commit 5fc7694a544a6cc9f606a5ee3f6787dda732e98f Author: Sami Kerola Date: Sat Oct 31 18:06:46 2015 +0000 mkfs.bfs: fix block device open race This fix makes mkfs.bfs also to detect if block device is busy, and warn if the device is misaligned. Signed-off-by: Sami Kerola disk-utils/mkfs.bfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8fe1e638fa81d88e1e405f6221c7a592284c9b23 Author: Sami Kerola Date: Sat Oct 31 17:29:02 2015 +0000 lib/blkdev: add open_blkdev_or_file() function Purpose of this function is to open a path that is potentially pointing to a block device or file without races. The function also proper open(3) flags are used to check the device is not busy, and finally warning is been printed if a block device happens to be misaligned. Signed-off-by: Sami Kerola include/blkdev.h | 3 +++ lib/blkdev.c | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+) commit 3f684db0d93a86b3e9525c57e65a5b281c792a2e Author: Sami Kerola Date: Sat Oct 31 17:26:51 2015 +0000 include/fileutils: add is_same_inode() check Check if a file descriptor and path or stat structure are represent the same file. This function is needed for TACTOU avoidance. Signed-off-by: Sami Kerola include/fileutils.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit 0172ebba52718afe89b5d1941266825b065358cb Author: Karel Zak Date: Thu Nov 19 19:08:00 2015 +0100 tests: update ZFS test Signed-off-by: Karel Zak tests/expected/blkid/low-probe-zfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit dcbba45cc54efba13e92b4eb960dfb409a32d29e Author: Casper Ti. Vector Date: Thu Nov 19 10:56:34 2015 +0800 include: remove now useless linux_reboot.h. include/Makemodule.am | 1 - include/linux_reboot.h | 72 -------------------------------------------------- 2 files changed, 73 deletions(-) commit e52b58e6277141ffd3d196b636515096d7a1ce44 Author: Casper Ti. Vector Date: Thu Nov 19 10:52:14 2015 +0800 ctrlaltdel: use reboot() provided by libc, assuming it is 1-adic. configure.ac | 6 ++++++ sys-utils/ctrlaltdel.c | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) commit f98d9641a371421640a8f1cfe497030758f86dca Author: Karel Zak Date: Thu Nov 19 11:57:05 2015 +0100 losetup: clean up --direct-io Signed-off-by: Karel Zak sys-utils/losetup.8 | 4 ++++ sys-utils/losetup.c | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) commit faeef4d2e9d5e38bed57846ba903009990f24422 Author: Ming Lei Date: Tue Nov 17 22:32:48 2015 +0800 losetup: support list direct io So that user can see if DIO is set for current loop device. Signed-off-by: Ming Lei include/loopdev.h | 2 ++ lib/loopdev.c | 22 ++++++++++++++++++++++ sys-utils/losetup.c | 6 ++++++ 3 files changed, 30 insertions(+) commit 64c3bb3cb7ead2faa97aa6d400d65f392df3dba8 Author: Ming Lei Date: Tue Nov 17 22:32:47 2015 +0800 losetup: support ioctl cmd of LOOP_SET_DIRECT_IO From v4.4, linux kernel starts to support direct I/O and AIO to backing file for loop driver, so allow losetup to enable the feature by using LOOP_SET_DIRECT_IO ioctl cmd. Signed-off-by: Ming Lei include/loopdev.h | 2 ++ lib/loopdev.c | 18 ++++++++++++++++++ sys-utils/losetup.c | 27 +++++++++++++++++++++++++-- 3 files changed, 45 insertions(+), 2 deletions(-) commit 710dd492394be6cd2f3dd65c057ae7827ee6e89d Author: Karel Zak Date: Wed Nov 18 11:55:35 2015 +0100 blkid: don't mark zfs as RAID Signed-off-by: Karel Zak libblkid/src/probe.c | 5 +++-- libblkid/src/superblocks/zfs.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) commit 42f536ee84fe1f97b9d390b508a23cafb521ed80 Author: Andreas Henriksson Date: Thu Nov 12 12:36:03 2015 +0100 bash-completion: fstrim: use mountpoint, not device fstrim takes mountpoint as argument but the bash completion was completing it to a device node. Addresses: http://bugs.debian.org/804833 Reported-by: Ritesh Raj Sarraf Signed-off-by: Andreas Henriksson bash-completion/fstrim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 25b3c04f41accbbcf33311deb9c04597b4a8131a Author: Benno Schulenberg Date: Sun Nov 8 11:54:15 2015 +0100 lsipc: tweak a few wordings on the manpage Signed-off-by: Benno Schulenberg sys-utils/lsipc.1 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) commit 1e6a9c1814fa512846da611d9ddd631d5ff4fcbd Author: Benno Schulenberg Date: Sun Nov 8 11:54:14 2015 +0100 chfn: improve formatting and wording of the manpage Signed-off-by: Benno Schulenberg login-utils/chfn.1 | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) commit e8cf378e48ff0d669468e5118c290d761a224663 Author: Benno Schulenberg Date: Sun Nov 8 11:54:13 2015 +0100 hexdump: fix a typo and tweak some wordings in the manpage Signed-off-by: Benno Schulenberg text-utils/hexdump.1 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit 239610b659be1e5136db6531b36801f95d3bab5f Author: Benno Schulenberg Date: Sun Nov 8 11:54:12 2015 +0100 dmseg: slightly improve punctuation and formatting of the manpage Signed-off-by: Benno Schulenberg sys-utils/dmesg.1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit da6bb5f8c39f374af78636fb6bdfb77c860bbd29 Author: Benno Schulenberg Date: Sun Nov 8 11:54:11 2015 +0100 logger: sort the options in the manpage alphabetically Signed-off-by: Benno Schulenberg misc-utils/logger.1 | 93 ++++++++++++++++++++++++++--------------------------- 1 file changed, 46 insertions(+), 47 deletions(-) commit 05e68ce7287461eefa299a2c978e69e0ee8c2435 Author: Benno Schulenberg Date: Sun Nov 8 11:54:10 2015 +0100 logger: improve grammar and formatting of the manpage Signed-off-by: Benno Schulenberg misc-utils/logger.1 | 103 +++++++++++++++++++++++++++------------------------- 1 file changed, 53 insertions(+), 50 deletions(-) commit a4aeb5bd80a0db763c71d380c2132fb6c34c0e1f Author: Sami Kerola Date: Sat Oct 31 19:21:17 2015 +0000 script, hwclock: check file exist with access(3) rather than stat(3) Signed-off-by: Sami Kerola sys-utils/hwclock.c | 5 +---- term-utils/script.c | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) commit c3a9f86fcd1977365bbbe9aaee36b02df9f330f5 Author: Sami Kerola Date: Sat Oct 31 19:21:16 2015 +0000 agetty: fix chown(3), chmod(3) and open(3) race Signed-off-by: Sami Kerola term-utils/agetty.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit d0a050e0f9343f3da7c3b865eff78ce36df14f2c Author: Sami Kerola Date: Sat Oct 31 19:21:15 2015 +0000 fsck: retire stat(3) when access(3) does better job The stat(3) and access(3) are in this case almost interchangeable, so choose the lightweight function with additional advantage checking the file is executable. Signed-off-by: Sami Kerola disk-utils/fsck.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 8df370d340a9c4aceb36662aeecd63d0c08b44c8 Author: Sami Kerola Date: Sat Oct 31 19:21:14 2015 +0000 swapon: fix stat(3) and open(3) race Signed-off-by: Sami Kerola sys-utils/swapon.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit a64e268224a142210e135c2b409c4f65743e476a Author: Sami Kerola Date: Sat Oct 31 19:21:13 2015 +0000 login: fix stat(2) race Signed-off-by: Sami Kerola login-utils/login.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit 2ec100a180e305d972ff7567aadbc3a4be6a3e4b Author: Sami Kerola Date: Sat Oct 31 12:27:36 2015 +0000 logger: shadow declaration misc-utils/logger.c:448:17: warning: declaration of 'msg' shadows a parameter [-Wshadow] misc-utils/logger.c:429:74: note: shadowed declaration is here Signed-off-by: Sami Kerola misc-utils/logger.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit 803172f63dea6e9a9f49539de87a6230c0f13321 Author: Karel Zak Date: Thu Nov 5 18:59:00 2015 +0100 prlimit: cleanup output units The change is based on kernel fs/proc/base.c. Signed-off-by: Karel Zak sys-utils/prlimit.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit 3ccd9664aa4c50e9fa17ed5a113b899ffa2e38f3 Author: Karel Zak Date: Thu Nov 5 11:34:25 2015 +0100 bash-completion: add cal --span Signed-off-by: Karel Zak bash-completion/cal | 1 + 1 file changed, 1 insertion(+) commit a29edd057caeba597b231fdd2d06620cb5b1e3ab Merge: b0e6b25 ccf3dd5 Author: Karel Zak Date: Thu Nov 5 11:32:10 2015 +0100 Merge branch 'cal-span' of https://github.com/Deiz/util-linux * 'cal-span' of https://github.com/Deiz/util-linux: cal: Add --span option cal: Track date span independently from months_in_row commit b0e6b25e64e1c4cc4b7a67461a4b46fa32d480c0 Author: Karel Zak Date: Wed Nov 4 16:02:44 2015 +0100 build-sys: bump also PACKAGE_VERSION_RELEASE number Now we bump only PACKAGE_VERSION_MAJOR and PACKAGE_VERSION_MINOR numbers. The PACKAGE_VERSION_RELEASE is always zero. These numbers are used for LIBxxx_VERSION strings and Version: field in the .pc files. Unfortunately, if we keep PACKAGE_VERSION_RELEASE= always zero then our bugfix releases are invisible for pkg-config. (Although I don't think it's good idea to depend in code on any library bugfix release, code should be about APIs). Addresses: https://github.com/systemd/systemd/pull/1754 Signed-off-by: Karel Zak configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 4419ffb9eff5801fdbd385a4a6199b3877f802ad Author: Karel Zak Date: Fri Oct 30 11:08:32 2015 +0100 lib/sysfs: make sysfs_get_devname()/blkid_devno_to_wholedisk() more robust Now the function uses result buffer for internal stuff (readlink), so it requires that the buffer is large enough. This is unexpected as caller assumes that the buffer has to be large enough for devname only. References: http://www.spinics.net/lists/util-linux-ng/msg12015.html Reported-by: Tom Yan Signed-off-by: Karel Zak lib/sysfs.c | 48 +++++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 23 deletions(-) commit 9b28da2d1f88a99c37477ff63a23e8b9edbb1026 Author: Karel Zak Date: Thu Oct 29 11:32:50 2015 +0100 logger: remove unnecessary comment Signed-off-by: Karel Zak misc-utils/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 27a9eb5359c13e403cee2f89c0545c892b5327e3 Author: Karel Zak Date: Thu Oct 29 11:18:21 2015 +0100 logger: use --id as local socket credentials If you have really paranoid syslog (or systemd who listens on /dev/log) then it replaces in the message PID with a real PID from socket header credentials: # echo $PPID 1550 # logger -p info --stderr --id=$PPID "This is message baby!" <14>Oct 29 11:22:13 kzak[1550]: This is message baby! # journald -n 1 Oct 29 11:22:13 ws kzak[22100]: This is message baby! ^^^^^ This patch forces kernel to accept another *valid* PID if logger(1) executed with root permissions; improved version: # logger -p info --stderr --id=$PPID "This is message baby!" <14>Oct 29 11:26:00 kzak[1550]: This is message baby! # journald -n 1 Oct 29 11:26:00 ws kzak[1550]: This is message baby! Signed-off-by: Karel Zak misc-utils/logger.1 | 8 ++++++++ misc-utils/logger.c | 28 ++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) commit 17c8aa1dc0f05fb68ccd78aa725f8fe8a5cc269d Author: Karel Zak Date: Tue Oct 27 18:44:00 2015 +0100 logger: use iovec for all message Signed-off-by: Karel Zak misc-utils/logger.c | 65 ++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 45 insertions(+), 20 deletions(-) commit 94a28496aa3fcec48dc58917342ec6bcc23f0c31 Author: Karel Zak Date: Tue Oct 27 13:19:16 2015 +0100 logger: use iovec and sendmsg() to send message The iovec based solutions allow to send multiple strings by one syscall (for example additional \n messages separator). We can also use it to send additional socket header metadata (e.g. SCM_CREDENTIALS) later. Signed-off-by: Karel Zak misc-utils/logger.c | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) commit da0c95128c99cd8fec7bf9e498fd04b607255eea Merge: 741d478 244d483 Author: Karel Zak Date: Tue Oct 27 12:01:22 2015 +0100 Merge branch 'uuid' of git://github.com/kerolasa/lelux-utiliteetit * 'uuid' of git://github.com/kerolasa/lelux-utiliteetit: tests: add uuidd output check tests: add uuidgen output check tests: make test_uuid_parser to read files tests: add uuid parser check commit 741d478eeba5af51d862d650010f8b3de4ce6d3f Author: Karel Zak Date: Tue Oct 27 11:56:51 2015 +0100 ctrlaltdel: use path.h to read /proc Signed-off-by: Karel Zak sys-utils/Makemodule.am | 1 + sys-utils/ctrlaltdel.c | 13 +++---------- 2 files changed, 4 insertions(+), 10 deletions(-) commit 244d48331e2ead3fbb2a6439081d7487cc04cfff Author: Sami Kerola Date: Sun Oct 18 20:01:38 2015 +0100 tests: add uuidd output check Signed-off-by: Sami Kerola tests/commands.sh | 1 + tests/expected/uuid/uuidd | 11 +++++++++ tests/ts/uuid/uuidd | 57 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) commit 4bd90ec8640720351a4aaa72721f8ca1186f83f8 Author: Sami Kerola Date: Sun Oct 18 19:42:46 2015 +0100 tests: add uuidgen output check Signed-off-by: Sami Kerola tests/expected/uuid/uuidgen | 8 ++++++++ tests/ts/uuid/uuidgen | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) commit 85638702ed2d156f461ae638b4b140073119d07f Author: Sami Kerola Date: Sun Oct 18 19:07:11 2015 +0100 tests: make test_uuid_parser to read files This allows using the command to check uuidgen and uuidd are generating valid outputs. Signed-off-by: Sami Kerola libuuid/src/test_uuid.c | 156 ++++++++++++++---------------------------------- 1 file changed, 45 insertions(+), 111 deletions(-) commit 4d3f964e4a5eecdfd17724f03696890bf22d4a3d Author: Sami Kerola Date: Sun Oct 18 18:39:21 2015 +0100 tests: add uuid parser check The check is based on code by Theodore Ts'o to test libuuid, from which unstable output is commented out. Signed-off-by: Sami Kerola libuuid/src/Makemodule.am | 8 ++++---- libuuid/src/test_uuid.c | 8 +++++++- tests/commands.sh | 1 + tests/expected/uuid/uuid_parser | 15 +++++++++++++++ tests/ts/uuid/uuid_parser | 26 ++++++++++++++++++++++++++ 5 files changed, 53 insertions(+), 5 deletions(-) commit 82cac348896156ae081f9e99fafa28f393fa9115 Author: Sami Kerola Date: Tue Oct 13 11:52:55 2015 +0100 ctrlaltdel: display setting when ran without arguments This is more useful than printing an error. Signed-off-by: Sami Kerola include/pathnames.h | 3 +++ sys-utils/ctrlaltdel.8 | 5 +++- sys-utils/ctrlaltdel.c | 70 +++++++++++++++++++++++++++++++++++++++----------- 3 files changed, 62 insertions(+), 16 deletions(-) commit 6e82b1f3ef039ed2298517b87f6ab3fed6872165 Author: Sami Kerola Date: Tue Oct 13 00:45:00 2015 +0100 docs: update ctrlaltdel.8 man page Most significant clarification is to tell hard C_A_D is the default in linux kernel. Update also kernel reference, and improve readability. Reference: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/kernel/reboot.c Signed-off-by: Sami Kerola sys-utils/ctrlaltdel.8 | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) commit 8137c98f8391e49b296ec37c928dd0882c1f0376 Author: Sami Kerola Date: Tue Oct 13 00:35:42 2015 +0100 ctrlaltdel: improve error messaging Tell user what is wrong rather than print usage(). Signed-off-by: Sami Kerola sys-utils/ctrlaltdel.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) commit bd299782ca40756515acf1c3afa4d8662a2492f2 Author: Sami Kerola Date: Tue Oct 6 23:15:54 2015 +0100 nologin: require /etc/nologin.txt to be file This makes silly practical jokes impossible, like for example symlinking /dev/null or dev/random to /etc/nologin.txt Signed-off-by: Sami Kerola login-utils/nologin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit f06abd22beedcfe5dbd5577180bbed0a98d4f8dc Author: Sami Kerola Date: Tue Oct 6 22:18:27 2015 +0100 last: display input file in usage() according to command name Default depends on whether the executable is called 'lastb' or something else. Signed-off-by: Sami Kerola login-utils/last.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) commit c2f03da93d9b79679e4e7e65807cc9a31036dbe7 Author: Karel Zak Date: Fri Oct 16 11:48:47 2015 +0200 script: be pedantic and use "%"SCNi64 Signed-off-by: Karel Zak term-utils/script.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 345208a5abb876deb451c481a5bab94b009eafe8 Author: Isaac Dunham Date: Thu Oct 15 18:12:59 2015 -0700 script: don't assume that time_t is compatible with long time_t may change to 64-bit on 32-bit Linux kernels at some point; at that point, it may be desireable to test for issues with dates past 2038. [kzak@redhat.com: - use %jd rather than %lld] Signed-off-by: Karel Zak term-utils/script.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit 99eadc9e3f9a6dc012072c97b9d0845ba13974f8 Author: James Clarke Date: Sat Oct 10 00:29:47 2015 +0100 sulogin: Use fallback method on the Hurd for detecting consoles Signed-off-by: James Clarke login-utils/sulogin-consoles.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit 1bb02a2da9f1bf7d80b352d540b29371099ab570 Author: Karel Zak Date: Thu Oct 15 12:12:11 2015 +0200 libmount: follow docs with parse-error callback return code The docs says that recoverable errors have rc > 0. Signed-off-by: Karel Zak libmount/src/tab_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4546fd398faa62d6627956af246253b073fd06f6 Author: Karel Zak Date: Thu Oct 15 12:04:35 2015 +0200 Revert "libblkid: support LSI RAID on partition too" This reverts commit bc9007c372765ad4a1c7e1d3d69ba8be800f250f. We need a better way, it seems that the original report is mostly about udev rules disadvantages than about libblkid bug. See RH bugzilla (#1172510) for more details. libblkid/src/superblocks/lsi_raid.c | 2 ++ 1 file changed, 2 insertions(+) commit 1cd9d0d7463850ef6b16a78b8a55e56dbf9a8db1 Author: Karel Zak Date: Thu Oct 15 11:53:44 2015 +0200 mount, umount, swapon, fsck, lsblk, findmnt: ignore malformed lines The libmount provides way how to deal with parsing errors in fstab -- on error callback function is executed and according to the return libmount manipulate with the malformed line, possible are three states: 1/ fatal error; all file ignored (callback rc < 0) 2/ recoverable error; malformed line ignored (callback rc > 0) 3/ ignore the error (callback rc == 0) The 2/ is the default if no callback specified. Unfortunately our utils uses 3/. The correct way is to use 2/. Signed-off-by: Karel Zak disk-utils/fsck.c | 2 +- misc-utils/findmnt.c | 2 +- misc-utils/lsblk.c | 11 +++++++++++ sys-utils/mount.c | 2 +- sys-utils/swapon-common.c | 11 +++++++++++ sys-utils/umount.c | 2 +- 6 files changed, 26 insertions(+), 4 deletions(-) commit d5b7d2912afceac3774d1aaea9e8486b54d4e9e9 Author: Karel Zak Date: Tue Oct 13 12:01:29 2015 +0200 libblkid: make XFS Log visible for wipefs Reported-by: Peter Rajnoha Signed-off-by: root Signed-off-by: Karel Zak libblkid/src/superblocks/xfs.c | 6 ++++++ 1 file changed, 6 insertions(+) commit bc9007c372765ad4a1c7e1d3d69ba8be800f250f Author: Karel Zak Date: Tue Oct 13 10:55:47 2015 +0200 libblkid: support LSI RAID on partition too Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1172510 Signed-off-by: Karel Zak libblkid/src/superblocks/lsi_raid.c | 2 -- 1 file changed, 2 deletions(-) commit 440a355a3d3934d99f7ef82adf02342e6f2f7983 Author: Karel Zak Date: Mon Oct 12 11:42:13 2015 +0200 libmount: fix uid= and gid= translation The current libmount version returns error when no able to convert username/groupname to uid/git. # mount mount /dev/sda1 /mnt/test -o uid=ignore # mount: failed to parse mount options This is regression, the original mount(8) has ignored possible unknown user/group names and the option has been used unconverted (with the original value). For example UDF kernel driver depends on this behavior and "uid=ignore" (or "forgot") is a valid mount option. Fixed version (unit test): ./test_mount_optstr --fix uid=kzak,gid=forgot,aaa,bbb optstr: uid=kzak,gid=forgot,aaa,bbb fixed: uid=1000,gid=forgot,aaa,bbb Reported-By: Anthony DeRobertis Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801527 Signed-off-by: Karel Zak libmount/src/optstr.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) commit ccf3dd50ce70bb915a42a037d99fac9fcd282bf1 Author: Deiz Date: Fri Oct 9 20:39:02 2015 -0400 cal: Add --span option This allows the date spanning behaviour of -3 to be used with other month ranges. Signed-off-by: Deiz misc-utils/cal.1 | 3 +++ misc-utils/cal.c | 23 +++++++++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) commit d4cb626da245c0d792289f5267eec4b34c281e72 Author: Deiz Date: Fri Oct 9 20:35:17 2015 -0400 cal: Track date span independently from months_in_row This fixes a minor issue where cal -n 3 would mirror the spanning behaviour of cal -3 with Gregorian calendars, instead of starting with the current month. Signed-off-by: Deiz misc-utils/cal.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 3ebfa6882adaf55b41fb541776f5136a913d2b26 Author: Karel Zak Date: Fri Oct 9 13:13:53 2015 +0200 include/pt-mbr-partnames: remove '|' from partition type name Signed-off-by: Karel Zak include/pt-mbr-partnames.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 240ddd3a5fc67529c5ad9ef38f8597305393f0a7 Author: Ian Wienand Date: Thu Oct 8 15:00:44 2015 +1100 libfdisk: Detect out-of-space when adding new primary partition I got a bit confused with the interaction below: Command (m for help): p Disk /dev/sda: 41 GiB, 43965677568 bytes, 85870464 sectors ... Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 1026047 1024000 500M 83 Linux /dev/sda2 1026048 85868543 84842496 40.5G 8e Linux LVM Command (m for help): n To create more partitions, first replace a primary with an extended partition. I knew I should have had two primary partitions available, but I did not notice that the disk was seen as full (I was trying to grow it) This change detects available primary partitions, and if so indicates we are out of space, rather than out of partitions. Signed-off-by: Ian Wienand libfdisk/src/dos.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 3e9a2bbb94b9f0a2f265ac0c59ffd3b94007b2c8 Author: Jörg Jenderek Date: Wed Oct 7 11:41:23 2015 +0200 fdisk: to recognize Intel Rapid Start hibernation partition I use Intel Rapid Start Technology on my PC. According to their User Guide "Rapid_Start_Technology_User_Guide_v1.4.pdf" I create a partition with id=84 for hibernation by this Technology. Unfortunately the software fdisk (util-linux-2.27) classifies that partition as "OS/2 hidden C:". That is not wrong, but on website https://en.wikipedia.org/wiki/Partition_type is written, that id 0x84 beside using for hiding drive C: this type is a also used as hibernation partition for Microsoft APM and also for Intel Rapid Start So I patched 2 header files so that fdisk recognize this partition type variation. Signed-off-by: Karel Zak include/pt-mbr-partnames.h | 4 +++- include/pt-mbr.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) commit 24b7db7e4e0d7bb026d2d80c95ecdcfc476a9b45 Author: Karel Zak Date: Tue Oct 6 23:50:56 2015 +0600 partx: prevent code duplication Reported-by: Alexander Kuleshov Signed-off-by: Karel Zak disk-utils/partx.h | 59 +++++++++++++++++++++--------------------------------- 1 file changed, 23 insertions(+), 36 deletions(-) commit 3d6250e96b0041a3cbe2f8dd3e746cca5d6ac121 Author: Karel Zak Date: Fri Oct 9 11:46:49 2015 +0200 uuidd: add debug message for timeout Signed-off-by: Karel Zak misc-utils/uuidd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit b97edfe731fdf3d3e92e40494b22658207ab6d3c Author: Karel Zak Date: Fri Oct 9 11:31:49 2015 +0200 build-sys: use REALTIME_LIBS Signed-off-by: Karel Zak misc-utils/Makemodule.am | 2 +- sys-utils/Makemodule.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit b85df4b738fd241c44ce0edb8573b17957e1765f Author: Karel Zak Date: Fri Oct 9 11:26:28 2015 +0200 uuidd: use cxt->quiet Signed-off-by: Karel Zak misc-utils/uuidd.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) commit 4b09b1c253808ad4559917693d26918580283a47 Author: Karel Zak Date: Fri Oct 9 11:23:16 2015 +0200 uuidd: fix compiler warning [-Wsign-compare] Signed-off-by: Karel Zak misc-utils/uuidd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit fd346daf89860391f0687d76ddb2b1506ec15cdc Author: Sami Kerola Date: Sat Oct 3 19:31:07 2015 +0100 uuidd: fix shadow declaration misc-utils/uuidd.c:384:13: warning: declaration of 'ret' shadows a previous local [-Wshadow] misc-utils/uuidd.c:327:6: note: shadowed declaration is here Signed-off-by: Sami Kerola misc-utils/uuidd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 25d66b4e3232d7b004e51114d7fff5e40b0224b2 Author: Sami Kerola Date: Sat Oct 3 19:31:06 2015 +0100 uuidd: use signalfd() and setup_timer() Point of this change is to replace use of signal() and alarm() system calls using newer interfaces. Nice side effect is that the point where timer was earlier used cannot be distracted by sending rogue SIGALRM. Signed-off-by: Sami Kerola misc-utils/Makemodule.am | 4 +- misc-utils/uuidd.c | 135 +++++++++++++++++++++++++++++++++-------------- 2 files changed, 98 insertions(+), 41 deletions(-) commit 67791b77870c09c06cae8441c0c3d4e90fd3fa1d Author: Sami Kerola Date: Sat Oct 3 19:31:05 2015 +0100 blkid, uuidd, uuidgen: assume getopt.h and getopt.h are available These headers are in use allover this project without issues. Signed-off-by: Sami Kerola misc-utils/blkid.c | 6 ------ misc-utils/uuidd.c | 8 -------- misc-utils/uuidgen.c | 8 -------- 3 files changed, 22 deletions(-) commit 61b6427638992956537714274d80d784b07dfcbc Author: Sami Kerola Date: Sat Oct 3 19:31:04 2015 +0100 uuidd: slice up the usage text and normalize its layout Signed-off-by: Sami Kerola misc-utils/uuidd.c | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) commit 64b5e362a98a7620116a83eda69bccda1e46f134 Author: Karel Zak Date: Tue Oct 6 11:06:21 2015 +0200 tests: replace username with tag in logger test Signed-off-by: Karel Zak tests/expected/logger/errors-check_socket | 6 +++--- tests/expected/logger/errors-multi-line | 6 +++--- tests/ts/logger/errors | 6 ++++-- 3 files changed, 10 insertions(+), 8 deletions(-) commit 9baf46ea54542e88c498265a299e426532fbcc05 Author: Karel Zak Date: Tue Oct 6 10:46:37 2015 +0200 tests: add missing files Signed-off-by: Karel Zak tests/expected/logger/errors-multi-line | 4 ++++ tests/expected/logger/errors-tcp | 2 ++ 2 files changed, 6 insertions(+) commit 5b90a8f38fda1426ad02f31b6391c7495cd18bf9 Author: Karel Zak Date: Tue Oct 6 10:17:11 2015 +0200 tests: update and extend logger tests Signed-off-by: Karel Zak tests/expected/logger/errors-check_socket | 13 +++++++++++++ tests/ts/logger/errors | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) commit fc20393cdb5ed960fa4d6822c2fbf15fc191a6a0 Author: Karel Zak Date: Tue Oct 6 09:16:33 2015 +0200 logger: fix messages separation on UNIX socket The function write_output() add additional \n after each message on TYPE_TPC. This is required by syslog daemons, otherwise you will see multiple log messages merged together in your log file, for example: Oct 6 09:01:40 ws kzak: AAA<14>Oct 6 09:01:40 kzak: BBB for printf "AAA\nBBB\n" | logger -p info -u Unfortunately, the connection initialization functions keep the default ALL_TYPES as connection type and nowhere in the control struct is info about the final real connection type. The problem is invisible when you specify --tpc or --udp on logger command line. Addresses: https://github.com/karelzak/util-linux/issues/225 Signed-off-by: Karel Zak misc-utils/logger.c | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) commit fa8945db4aa0526655655526c3ace8fafaf32f8e Author: Sami Kerola Date: Sat Sep 5 19:56:36 2015 +0100 uuidd: improve socket activation error messaging Tell more exactly what is wrong and how, and give hint how to recover when possible. Signed-off-by: Sami Kerola misc-utils/uuidd.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) commit 100a43932c5769f54a641ec426fca9ef570d53b0 Author: Alexander Kuleshov Date: Fri Oct 2 15:38:56 2015 +0600 bash-completion: curly brace missed for findmnt This patch provides fix for bash-completion/fndmt script. There is curly brace missed in the completion generation for the -M/--mountpoint option. In other way we will get following messages: bash: /etc/bash_completion.d/findmnt: line 91: unexpected EOF while looking for matching `)' bash: /etc/bash_completion.d/findmnt: line 141: syntax error: unexpected end of file Signed-off-by: Alexander Kuleshov bash-completion/findmnt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b12b07e361d7b286c3c710bc6d1711b9316d4ba9 Author: Jörg Jenderek Date: Sat Sep 26 02:58:06 2015 +0200 fdisk: to recognize partition type 0xEA (Rufus) i used a partitioning+formatting tool product rufus 2.2. of https://rufus.akeo.ie/ This software has an extra format option for older BIOS. With this fix the main partition is created with some alignments and for the remaining unallocated space a small extra and empty partition with identification 0xEA is created. On the List of partition identifiers for PCs at http://www.win.tue.nl/~aeb/partitions/partition_types-1.html is is said that there is a freedesktop proposal to use also type ea as boot partition Unfortunately the software fdisk (util-linux-2.27) can not classify that partition. I send for the fdisk program my 2 patches so that fdisk recognize this partition type. Signed-off-by: Karel Zak include/pt-mbr-partnames.h | 1 + include/pt-mbr.h | 1 + 2 files changed, 2 insertions(+) commit 2b29b8734adccdcbfa119d44f15f746b71fda47b Merge: 4eec8a8 4299ed1 Author: Karel Zak Date: Thu Oct 1 14:51:49 2015 +0200 Merge branch 'logger' commit 4299ed1ce2f088cced8a5b9420811ddce27eae8e Author: Karel Zak Date: Thu Oct 1 14:48:15 2015 +0200 logger: add --sd-id and -sd-param This patch add support for RFC 5424 structured data elements. For example: logger --rfc5424 --sd-id zoo@123 \ --sd-param tiger=\"hungry\" \ --sd-param zebra=\"running\" \ --sd-id manager@123 \ --sd-param onMeeting=\"yes\" \ "this is message" produces: <13>1 2015-10-01T14:07:59.168662+02:00 ws kzak - - [timeQuality tzKnown="1" isSynced="1" syncAccuracy="218616"][zoo@123 tiger="hungry" zebra="running"][manager@123 onMeeting="yes"] this is message Signed-off-by: Karel Zak misc-utils/Makemodule.am | 2 +- misc-utils/logger.1 | 46 ++++++++- misc-utils/logger.c | 246 ++++++++++++++++++++++++++++++++++++++++++++--- 3 files changed, 276 insertions(+), 18 deletions(-) commit de8d3863c8a8dc7120a384353a0031666065ad8a Author: Karel Zak Date: Thu Oct 1 14:43:05 2015 +0200 lib/strv: add strv_extendv() Signed-off-by: Karel Zak include/strv.h | 1 + lib/strv.c | 11 +++++++++++ 2 files changed, 12 insertions(+) commit 4eec8a8c45d9e594ced97e86b4585cad7e2b904a Author: Karel Zak Date: Thu Oct 1 12:00:54 2015 +0200 Revert "logger: add support for rfc5424 structured data (--hdr-data)" Sorry, pushed incomplete implementation... This reverts commit d8959474c4af7abd47c2027ed9b7e63a433b9427. misc-utils/Makemodule.am | 2 +- misc-utils/logger.1 | 19 -------------- misc-utils/logger.c | 68 +++++++++--------------------------------------- 3 files changed, 14 insertions(+), 75 deletions(-) commit d8959474c4af7abd47c2027ed9b7e63a433b9427 Author: Karel Zak Date: Thu Oct 1 11:35:58 2015 +0200 logger: add support for rfc5424 structured data (--hdr-data) for example: logger --rfc5424 --hdr-data myAnimal=\"cat\" --hdr-data isHungry "message string" produces: <13>1 2015-10-01T11:38:08.265799+02:00 ws kzak - - [timeQuality tzKnown="1" isSynced="1" syncAccuracy="369547" myAnimal="cat" isHungry] message string Reported-by: Priya Ahuja Signed-off-by: Karel Zak misc-utils/Makemodule.am | 2 +- misc-utils/logger.1 | 19 ++++++++++++++ misc-utils/logger.c | 68 +++++++++++++++++++++++++++++++++++++++--------- 3 files changed, 75 insertions(+), 14 deletions(-) commit d5358bbb6bb5c21a6343fa6329d37c2614e7819d Author: Karel Zak Date: Wed Sep 30 12:42:16 2015 +0200 libuuid: fix buffer overflow with long paths Based on patch from Justin Akers, he wrote: > When building Openembedded inside a Jenkins matrix job the paths can > get quite long. This ensures libuuid won't crash when attempting to > connect to uuidd in such a scenario. Reported-by: Justin Akers Signed-off-by: Karel Zak libuuid/src/gen_uuid.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit 1ceb4077af59a32cdfde954a84c1dd7c0b5b84ed Author: Karel Zak Date: Thu Sep 24 12:46:21 2015 +0200 zramctl: fix lists of the all devices The command zramctl lists the same stat info for all devices (DATA COMPR TOTAL). Reported-by: Oliver Freyermuth Signed-off-by: Karel Zak sys-utils/zramctl.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) commit 2355dd6a49a684f098f2c7d048588848194f7e14 Author: Karel Zak Date: Thu Sep 24 10:35:18 2015 +0200 libblkid: add read() based fallback for char (UBI) devs Signed-off-by: Karel Zak libblkid/src/probe.c | 69 +++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 60 insertions(+), 9 deletions(-) commit a674a0ab03660b1df777e69436b2dc832b6f8681 Author: Karel Zak Date: Tue Sep 22 15:37:26 2015 +0200 libblkid: use mmap() rather than read() diff between perf stat -e 'syscalls:sys_enter_*' for old and new version: - 35 syscalls:sys_enter_lseek - 38 syscalls:sys_enter_read + 3 syscalls:sys_enter_read ... - 19 syscalls:sys_enter_mmap + 17 syscalls:sys_enter_mmap - 0.001083084 seconds time elapsed + 0.000751722 seconds time elapsed The patch dramatically reduces malloc()+seek()+read() operations in libblkid. The code mmaps ~2MiB of the begin and the end of the device and it moves buffers management to kernel. Signed-off-by: Karel Zak libblkid/src/blkidP.h | 2 + libblkid/src/init.c | 1 + libblkid/src/probe.c | 205 ++++++++++++++++++++++++++++++++++---------------- 3 files changed, 144 insertions(+), 64 deletions(-) commit 9325a8be9e55cc01d9f580e14dd2193829245183 Author: Karel Zak Date: Tue Sep 22 15:27:39 2015 +0200 libblkid: (zfs) keep bufferes read-only Signed-off-by: Karel Zak libblkid/src/superblocks/zfs.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) commit 6b86ef4a6a9ca614ac1fdc31712d6b20263d226c Author: Karel Zak Date: Tue Sep 22 11:14:31 2015 +0200 libblkid: (promise raid) cleanup code Signed-off-by: Karel Zak libblkid/src/superblocks/promise_raid.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) commit 7020de0be8b5fa0cdb6a8feee3f64f5384b18f06 Author: Karel Zak Date: Tue Sep 22 15:26:36 2015 +0200 lib/crc32: don't require to modify GPT header This patch introduces smart crc32 function that is able to exclude specified. The advantage is that we does not have to modify GPT header (set the current in-header crc field to zero) when we count crc32. This allows to keep GPT header in read-only buffers and simplify code. Signed-off-by: Karel Zak include/crc32.h | 2 ++ lib/crc32.c | 26 +++++++++++++- libblkid/src/partitions/gpt.c | 18 +++++----- libfdisk/src/gpt.c | 81 +++++++++++++++++++------------------------ 4 files changed, 71 insertions(+), 56 deletions(-) commit aab9be66c4a2525a6ca3b2b7a47b8ad2a54aa659 Author: Karel Zak Date: Thu Sep 17 13:57:44 2015 +0200 sfdisk: add --delete Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 3 +++ disk-utils/sfdisk.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) commit 83677b99cb138426f94083c54092b1628d58a55b Author: Karel Zak Date: Thu Sep 17 12:27:58 2015 +0200 libfdisk: fix partition move/resize code - verify that the new partition fits to the area if the size of the has not been modified - fix remaining space calculation (yes, brown-paper-bag bug..) - offer also space before first partition as free space Signed-off-by: Karel Zak libfdisk/src/partition.c | 26 ++++++++++++++++++-------- libfdisk/src/table.c | 7 ++++++- 2 files changed, 24 insertions(+), 9 deletions(-) commit f2be8b3dfcf990872e1964f028a89d46bf16b230 Author: Karel Zak Date: Thu Sep 17 12:04:23 2015 +0200 libfdisk: add more debug message to resize code Signed-off-by: Karel Zak libfdisk/src/partition.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) commit 31c79e18231b83f7b1562d96ea7c4014ea58b3c6 Author: Karel Zak Date: Thu Sep 17 11:45:02 2015 +0200 sfdisk: fix -N return code detection, add debug messages Signed-off-by: Karel Zak disk-utils/sfdisk.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) commit c949fa98d8737cd0a14ea071d141d2c6a0b35faa Author: Karel Zak Date: Thu Sep 17 11:44:08 2015 +0200 libfdisk: (gpt) control ranges in set_partition Signed-off-by: Karel Zak libfdisk/src/gpt.c | 15 ++++++++++++--- libfdisk/src/partition.c | 1 + 2 files changed, 13 insertions(+), 3 deletions(-) commit 53650755e025c720c0176cf3aad0a65ee35d7a24 Author: Karel Zak Date: Tue Sep 15 09:50:08 2015 +0200 ipcs: fix ipc_sem_get_limits() Reported-by: https://github.com/AndrewIrcha Addresses: https://github.com/karelzak/util-linux/commit/e5995acda2d3d55ba4d926741ddd789c9776f1e7#commitcomment-13200369 Signed-off-by: Karel Zak sys-utils/ipcutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1d15c4b273b5690f575a872ed2f8ef137976f937 Author: Karel Zak Date: Fri Sep 11 11:37:49 2015 +0200 libmount: (monitor) remove unnecessary epoll EPOLLPRI Signed-off-by: Karel Zak libmount/src/monitor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 02501746545ef729cefed28b5feb0b4e59c3d34f Author: Karel Zak Date: Fri Sep 11 11:19:30 2015 +0200 libmount: (monitor) don't check for regular mtab The monitor supports utab only (as documented). It's application responsibility to use libmount in the right way. It's overkill to check for valid environment during monitor initialization. For example systemd checks for regular mtab during boot, it's better than try to be smart later in libmount monitor when system is already running. Signed-off-by: Karel Zak libmount/src/monitor.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) commit d85a7fa744fdf96d585150202057de392b2733f1 Author: Karel Zak Date: Wed Sep 9 14:48:33 2015 +0200 sfdisk: cleanup and optimize --move-data Signed-off-by: Karel Zak disk-utils/sfdisk.c | 52 ++++++++++++++++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 20 deletions(-) commit 161f399f132a504f3acb273a56a39e2758d88616 Author: Karel Zak Date: Wed Sep 9 14:43:31 2015 +0200 tests: add sfdisk --move-data test Signed-off-by: Karel Zak tests/expected/sfdisk/movedata-down | 27 +++++++++++ tests/expected/sfdisk/movedata-non-overlay | 27 +++++++++++ tests/expected/sfdisk/movedata-up | 27 +++++++++++ tests/functions.sh | 3 +- tests/ts/sfdisk/movedata | 74 ++++++++++++++++++++++++++++++ 5 files changed, 157 insertions(+), 1 deletion(-) commit f42205d89a68eff198c12eda9c03b59f6cd68768 Author: Karel Zak Date: Tue Sep 8 16:37:08 2015 +0200 sfdisk: add --move-data Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 29 +++++++- disk-utils/sfdisk.c | 209 +++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 227 insertions(+), 11 deletions(-) commit 9a17d9460a163abdce01276450864dcfe7b2b5d6 Author: Karel Zak Date: Wed Sep 2 14:49:36 2015 +0200 sfdisk: add --reorder Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1232707 Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 3 +++ disk-utils/sfdisk.c | 40 +++++++++++++++++++++++++++++++++++++++- tests/ts/sfdisk/gpt | 22 +++++++++++++++++++++- 3 files changed, 63 insertions(+), 2 deletions(-)