Changes between v2.24 and v2.24.1 -------------------------------------------- commit 2113c7531f56565361a777504d1f4846d451fc8e Author: Karel Zak Date: Mon Jan 20 13:34:39 2014 +0100 build-sys: release++ (v2.24.1) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit becf02e6223d68cef779ae168400dc29e98f0314 Author: Karel Zak Date: Mon Jan 20 13:33:10 2014 +0100 docs: update v2.24.1-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.24.1-ReleaseNotes | 113 ++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) commit 09c88a805d496923f55685f7a6f9a239c8d5333e Author: Karel Zak Date: Mon Jan 20 13:27:28 2014 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 6 ++++++ 1 file changed, 6 insertions(+) commit 30cb51fd75b31b12eed86d86fc319a6cacfab1c9 Author: Karel Zak Date: Mon Jan 20 13:07:24 2014 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 1235 ++++++++++---------- po/cs.po | 1261 +++++++++++---------- po/da.po | 2383 +++++++++++++++++++++++---------------- po/de.po | 2579 +++++++++++++++++++++++++----------------- po/es.po | 1234 ++++++++++---------- po/et.po | 1226 ++++++++++---------- po/eu.po | 1207 +++++++++++--------- po/fi.po | 1235 ++++++++++---------- po/fr.po | 1261 +++++++++++---------- po/gl.po | 1205 +++++++++++--------- po/hr.po | 1201 +++++++++++--------- po/hu.po | 1230 ++++++++++---------- po/id.po | 1228 ++++++++++---------- po/it.po | 1234 ++++++++++---------- po/ja.po | 1228 ++++++++++---------- po/nl.po | 1271 +++++++++++---------- po/pl.po | 1246 ++++++++++---------- po/pt_BR.po | 3248 +++++++++++++++++++++++++++++++++-------------------- po/ru.po | 1236 ++++++++++---------- po/sl.po | 1229 ++++++++++---------- po/sv.po | 1238 ++++++++++---------- po/tr.po | 1232 ++++++++++---------- po/uk.po | 1245 ++++++++++---------- po/util-linux.pot | 1190 +++++++++++--------- po/vi.po | 1262 +++++++++++---------- po/zh_CN.po | 2008 +++++++++++++++++++-------------- po/zh_TW.po | 1243 ++++++++++---------- 27 files changed, 21306 insertions(+), 17289 deletions(-) commit 0bfec8e30bde4b28bd6dd6b0614b57ddb8ee6a75 Author: Wylmer Wang Date: Mon Jan 20 12:53:45 2014 +0100 po: update zh_CN.po (from translationproject.org) po/zh_CN.po | 1380 +++++++++++++++++++++++++---------------------------------- 1 file changed, 575 insertions(+), 805 deletions(-) commit 4d19abd0f9161233a2f540cbfdab33fa0eace92a Author: Rafael Ferreira Date: Mon Jan 20 12:53:45 2014 +0100 po: update pt_BR.po (from translationproject.org) po/pt_BR.po | 3370 +++++++++++++++++++++++------------------------------------ 1 file changed, 1297 insertions(+), 2073 deletions(-) commit e6c87ee4aab590e91a37c67addf29a61f49dab97 Author: Mario Blättermann Date: Mon Jan 20 12:53:45 2014 +0100 po: update de.po (from translationproject.org) po/de.po | 5262 +++++++++++++++++++++++--------------------------------------- 1 file changed, 1911 insertions(+), 3351 deletions(-) commit 7171c366059437d69b04f2a358652e3fe4b4a45d Author: Joe Hansen Date: Mon Jan 20 12:53:45 2014 +0100 po: update da.po (from translationproject.org) po/da.po | 4342 ++++++++++++++------------------------------------------------ 1 file changed, 966 insertions(+), 3376 deletions(-) commit 091cf3d7eed57a302dcf9960fb35efabb057b478 Author: Wieland Hoffmann Date: Thu Jan 16 01:06:32 2014 +0100 flock: Change the 'exit status' man page section to make more sense Signed-off-by: Wieland Hoffmann sys-utils/flock.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit a630c2f1eb2752881df282343b10c9e7097feb6d Author: Karel Zak Date: Mon Jan 20 12:07:35 2014 +0100 wipefs: call BLKRRPART when erase partition table It's better to be smart than make things inconsistent (without BLKRRPART kernel still uses the erased PT and udev-db still contains obsolete information). Signed-off-by: Karel Zak misc-utils/wipefs.8 | 3 +++ misc-utils/wipefs.c | 41 +++++++++++++++++++++++++++++++++-------- 2 files changed, 36 insertions(+), 8 deletions(-) commit ca48b7942074cabf47653b40301fdd668b984180 Author: Karel Zak Date: Mon Jan 20 10:51:00 2014 +0100 libblkid: detect alone PMBR wipefs(8) has to also erase PMBR, not GPR header only, otherwise the device could be still interpreted as a device with a partition table. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1054186 Signed-off-by: Karel Zak libblkid/src/partitions/gpt.c | 44 ++++++++++++++++++++++++++++++++++-- libblkid/src/partitions/partitions.c | 1 + libblkid/src/partitions/partitions.h | 1 + 3 files changed, 44 insertions(+), 2 deletions(-) commit 5dfe050dd190edde923a9c096ce8e333e5370572 Author: Karel Zak Date: Fri Jan 17 15:00:55 2014 +0100 tests: update build-sys tests Signed-off-by: Karel Zak tests/expected/build-sys/config-all | 2 +- tests/expected/build-sys/config-all-non-nls | 2 +- tests/expected/build-sys/config-audit | 2 +- tests/expected/build-sys/config-chfnsh-libuser | 2 +- tests/expected/build-sys/config-chfnsh-no-password | 2 +- tests/expected/build-sys/config-chfnsh-pam | 2 +- tests/expected/build-sys/config-core | 2 +- tests/expected/build-sys/config-devel | 2 +- tests/expected/build-sys/config-devel-non-docs | 2 +- tests/expected/build-sys/config-non-libblkid | 1 - tests/expected/build-sys/config-non-libmount | 1 - tests/expected/build-sys/config-non-libs | 1 - tests/expected/build-sys/config-non-libuuid | 2 +- tests/expected/build-sys/config-non-nls | 2 +- tests/expected/build-sys/config-old-mount | 2 +- tests/expected/build-sys/config-selinux | 2 +- tests/expected/build-sys/config-slang | 2 +- tests/expected/build-sys/config-static | 2 +- 18 files changed, 15 insertions(+), 18 deletions(-) commit 40ab109bdffd0a258b081c378036a6252ba92721 Author: Karel Zak Date: Fri Jan 17 14:34:53 2014 +0100 build-sys: fstrim depends on libmount Signed-off-by: Karel Zak configure.ac | 6 ++++++ sys-utils/Makemodule.am | 14 ++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) commit fb55bca01cfc80613e3b2661164bd3bdd1d0fdfd Author: Karel Zak Date: Fri Jan 17 14:33:31 2014 +0100 mkswap: fix compiler warning [-Wunused-variable] Signed-off-by: Karel Zak disk-utils/mkswap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 5e146619acd3ed3d6a42ca8a9fc49b152273d616 Author: Karel Zak Date: Thu Jan 16 13:18:24 2014 +0100 script: use poll() rather then O_NONBLOCK The hack with O_NONBLOCK is not reliable, poll is really better way to wait for data. This is backport from master branch to v2.24.1. Signed-off-by: Karel Zak term-utils/script.c | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) commit 6a7d2ea0ae0c96fdea510a5cc00af1143b033326 Author: Karel Zak Date: Thu Jan 16 13:57:29 2014 +0100 Revert "script: check that stdin is a terminal" The patch does not make any sense for v2.24.1, because non-tty stdin will be supported in version v2.25. This reverts commit e088b34acd885984475de471f32e010f9549b81e. term-utils/script.c | 4 ---- 1 file changed, 4 deletions(-) commit 531b73edfb176c949c000ee35e32c37f97031da6 Author: Karel Zak Date: Tue Jan 14 17:34:08 2014 +0100 pylibmount: import directly from pylibmount in tests This change does not have any impact to in a standard way installed libmount impact. It's simplification for in-tree tests. Signed-off-by: Karel Zak libmount/python/test_mount_context.py | 4 +++- libmount/python/test_mount_tab.py | 4 +++- libmount/python/test_mount_tab_update.py | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) commit d18b44b7de881c7388ad07e360adbf7939868ff4 Author: Karel Zak Date: Tue Jan 14 14:57:44 2014 +0100 pylibmount: remove unncessary subdirectory Signed-off-by: Karel Zak libmount/python/Makemodule.am | 2 +- libmount/python/__init__.py | 2 ++ libmount/python/libmount/__init__.py | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) commit 379033286796570eddb2c9c2877b19f4df692541 Author: Karel Zak Date: Tue Jan 14 13:58:38 2014 +0100 tests: update lscpu tests Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-x86_64-64cpu | 68 +++++++++++++++++---------------- 1 file changed, 35 insertions(+), 33 deletions(-) commit 0da8de0af4e00fd364e667301c6fb7ccc11c6221 Author: Karel Zak Date: Tue Jan 14 13:56:27 2014 +0100 lscpu: sort NUMA nodes to keep output human readable Signed-off-by: Karel Zak sys-utils/lscpu.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit ffb697c71b826971922e815cfa42957b06338ef9 Author: Karel Zak Date: Fri Nov 8 14:22:35 2013 +0100 tests: update blkid swap tests Signed-off-by: Karel Zak tests/expected/blkid/low-probe-swap0 | 2 +- tests/expected/blkid/low-probe-swap1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 5cc378e4cdeb957b405e0264a09295eda7d75ff7 Author: Scott Moser Date: Mon Jan 13 15:32:49 2014 -0500 partx: fix --update ranges and out of order tables partx --update DEVICE NUMBER was broken in 2 cases: * if NUMBER != 1 * if the partition table was "out of order". Ie, where sda2 came after sda3. References: https://bugs.launchpad.net/ubuntu/+source/cloud-utils/+bug/1244662 Signed-off-by: Scott Moser Signed-off-by: Karel Zak disk-utils/partx.c | 75 ++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 50 insertions(+), 25 deletions(-) commit d5bb9e78f2d35cd645eb151b837f4857ce9ba999 Author: Carlos Maiolino Date: Mon Jan 13 15:05:49 2014 +0100 mount: update man page ext3/4 mount options Add missing mount options to ext3 and ext4 filesystems. This also remove resize option information from the man page. Signed-off-by: Carlos Maiolino Signed-off-by: Karel Zak sys-utils/mount.8 | 42 +++++++++++++++++++++++++++++++----------- 1 file changed, 31 insertions(+), 11 deletions(-) commit 0a047c5f890345a8d157ca14ddc314a579171898 Author: Karel Zak Date: Mon Jan 13 14:30:51 2014 +0100 libblkid: (nilfs2) check also backup superblock * read also backup superblock * check which superblock is newer * set minimal device size to 1MiB Reported-by: Phillip Susi Signed-off-by: Karel Zak libblkid/src/superblocks/nilfs.c | 66 +++++++++++++++++++++++++--------------- 1 file changed, 42 insertions(+), 24 deletions(-) commit d73924398b76b8000dda9ef2202ee101059fd71f Author: Karel Zak Date: Tue Jan 7 17:41:42 2014 +0100 dmesg: fix --raw zero timestamp for kmsg Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1049438 Signed-off-by: Karel Zak sys-utils/dmesg.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) commit dc6ccf1427f00b968faea71c2420ac326230c1b7 Author: Karel Zak Date: Mon Jan 6 16:48:44 2014 +0100 lscpu: support discontinuous NUMA nodes lscpu fails to print proper NUMA node values in a system with discontinuous nodes. This patch adds support by creating a nodeidx array to map node numbers. Based on patch from Madhavan Srinivasan . Reported-by: Madhavan Srinivasan Signed-off-by: Karel Zak sys-utils/lscpu.c | 50 +++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 43 insertions(+), 7 deletions(-) commit 6bf037a371897688f8e9ddfee6439685bfbfbfbc Author: Karel Zak Date: Mon Jan 6 16:48:13 2014 +0100 lib/path: add path_strdup() Signed-off-by: Karel Zak include/path.h | 2 ++ lib/path.c | 13 +++++++++++++ 2 files changed, 15 insertions(+) commit e7d32328e319c77961454bdac5f8391840a713c7 Author: Ville Skyttä Date: Thu Dec 19 00:13:48 2013 +0200 man: Syntax and spelling fixes. Signed-off-by: Ville Skyttä login-utils/nologin.8 | 2 +- sys-utils/lscpu.1 | 2 +- sys-utils/mount.8 | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) commit cb96c27047ae81df0345821cf5da5c327b5c310f Author: Karel Zak Date: Thu Dec 12 11:41:07 2013 +0100 mount: add note about "noauto" to --all description References: https://bugzilla.redhat.com/show_bug.cgi?id=1039905 Signed-off-by: Karel Zak sys-utils/mount.8 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 67be04e2daafda8b912f9089a644a8f90f8751e5 Author: Benno Schulenberg Date: Wed Dec 11 12:40:14 2013 +0100 textual: small inprovements to usage and man page of fstrim Signed-off-by: Benno Schulenberg sys-utils/fstrim.8 | 9 +++++---- sys-utils/fstrim.c | 8 ++++---- 2 files changed, 9 insertions(+), 8 deletions(-) commit a5054859b110bcaafadd65aedde9fbec21b49543 Author: Karel Zak Date: Tue Dec 10 15:49:49 2013 +0100 fstrim: add --all to discard all filesystem * read /proc/self/mountinfo to get filesystems * ignore net and pseudo filesystems * ignore unaccessible filesystems (over mounted by another FS) * read disk sysfs queue/discard_granularity to detect is discard support * call FITRIM ioctl * silently ignore EOPNOTSUPP (for example LUKS without discard) and ENOTTY (for example vfat) errors Signed-off-by: Karel Zak sys-utils/Makemodule.am | 3 +- sys-utils/fstrim.8 | 20 +++++ sys-utils/fstrim.c | 210 +++++++++++++++++++++++++++++++++++++++++------- 3 files changed, 202 insertions(+), 31 deletions(-) commit 60f526ab35b1b87a1544210794c3375aa58da1dc Author: Karel Zak Date: Tue Dec 10 14:05:22 2013 +0100 libmount: add efivarfs to the list of pseudo filesystems Signed-off-by: Karel Zak libmount/src/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit c746031ba34d7a7aeceeef1b38a10604bbae3bc9 Author: Karel Zak Date: Tue Dec 10 11:36:50 2013 +0100 fstrim: cleanup usage() Signed-off-by: Karel Zak sys-utils/fstrim.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit 3f7d18dff57b33d718f7e9d140ba6de266f40938 Author: Rik van Riel Date: Fri Dec 6 16:07:54 2013 -0500 taskset: fix PERMISSIONS section of taskset man page A user is always allowed to change the CPU affinity of his or her own processes. CAP_SYS_NICE is only required to change the affinity of another user's process. Signed-off-by: Rik van Riel Reported-by: Joe Mario schedutils/taskset.1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit e088b34acd885984475de471f32e010f9549b81e Author: Karel Zak Date: Mon Dec 2 13:42:01 2013 +0100 script: check that stdin is a terminal Signed-off-by: Karel Zak term-utils/script.c | 4 ++++ 1 file changed, 4 insertions(+) commit 0495bcd6e1c1a7994127db1043b7e4e3e63345a7 Author: Karel Zak Date: Mon Dec 2 12:21:47 2013 +0100 setterm: fix -dump man page info It seems that setterm -dump does not dump terminal attributes, but the man page says -dump includes the attributes. Let's fix the man page. Reported-by: Phillip Susi Signed-off-by: Karel Zak term-utils/setterm.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4395cb09922a8da2b3d18be82f1384165a14186f Author: Werner Fink Date: Fri Nov 29 16:44:25 2013 +0100 agetty: support the special terminal on first serial line on a S/390 which is due legacy reasons a block terminal of type 3270 or higher. Whereas the second serial line on a S/390(x) is a real character terminal which is compatible with VT220. Signed-off-by: Werner Fink term-utils/agetty.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) commit dec12ba632376798f9dfe07ecc2f7959ff69375d Author: Phillip Susi Date: Mon Nov 25 10:35:40 2013 -0500 mount man page cleanups Fowarding this patch submitted by Bjarni Ingi Gislason to deb bug #674595. sys-utils/mount.8 | 68 +++++++++++++++++++++++++++++++------------------------ 1 file changed, 39 insertions(+), 29 deletions(-) commit 97ff07980286e77bbf718af14453cea355df7798 Author: Phillip Susi Date: Mon Nov 25 10:23:26 2013 -0500 mount.8: fix grammar Switch "A unbindable" to "An unbindable" Reported-by: Regid Ichira Signed-off-by: Phillip Susi sys-utils/mount.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 63067e75000b0e27244f0076138a14e60f579334 Author: Dave Reisner Date: Thu Nov 21 12:25:27 2013 -0500 pylibmount: correctly import from pylibmount.so Without this, python is unable to find the module: $ python -c 'import libmount' Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.3/site-packages/libmount/__init__.py", line 1, in from pylibmount import * ImportError: No module named 'pylibmount' Signed-off-by: Dave Reisner libmount/python/libmount/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 38a1c997193cdbefcc89d25639f280027aaaa15b Author: Karel Zak Date: Wed Nov 27 22:04:10 2013 +0100 libfdisk: (dos) warn on type 0 This is old warning, but somehow lost during rewrite to libfdisk. Sorry. Signed-off-by: Karel Zak libfdisk/src/dos.c | 3 +++ 1 file changed, 3 insertions(+) commit 3e4482e0f2827a6ec9faf57e09675c8d52fe6d7a Author: Karel Zak Date: Wed Nov 27 21:42:18 2013 +0100 libfdisk: (dos) fix free part counter Signed-off-by: Karel Zak libfdisk/src/dos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1557ba3ccf051e802b0d2e385731949b37f6e355 Author: Karel Zak Date: Mon Nov 25 12:00:55 2013 +0100 fdisk: don't care about partition type fdisk allows to overwrite existing partition if the partition has partition type set to zero (very unusual, but possible). This is incorrect because such partition is pretty valid (and Linux kernel does not care about the type at all). For example: Device Boot Start End Blocks Id System /dev/sdb1 2048 22527 10240 83 Linux /dev/sdb2 22528 227327 102400 0 Empty ^^^^^ ^^^^^^^^ Command (m for help): n Partition type: p primary (1 primary, 0 extended, 3 free) e extended Select (default p): Using default response p Partition number (3,4, default 3): First sector (22528-1228799, default 22528): ^^^^^^^ .. if user follows the default then the result are overlapping partitions: Device Boot Start End Blocks Id System /dev/sdb1 2048 22527 10240 83 Linux /dev/sdb2 22528 227327 102400 0 Empty /dev/sdb3 22528 1228799 603136 83 Linux ^^^^^ ... and if you call "mkfs /dev/sdb3" then you lost data on sdb2. Sad thing. Reported-by: Marc MERLIN Signed-off-by: Karel Zak libfdisk/src/dos.c | 42 ++++++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 18 deletions(-) commit 56812cf531418d8515ae1f3a0189cb6be0c3e0a4 Author: Karel Zak Date: Tue Nov 19 18:30:40 2013 +0100 fdisk: fix usage(), -l [] Add square brackets, is optional for -l. Reported-by: Phillip Susi Signed-off-by: Karel Zak fdisks/fdisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 00a689f851af1587ecf61e700445c68680b71ad2 Author: Karel Zak Date: Tue Nov 19 17:55:12 2013 +0100 umount: fix umount by tag for non-roots $ umount LABEL=foo currently does not work for non-root users as umount uses the LABEL= as a path in sanitize_path(). Signed-off-by: Karel Zak sys-utils/umount.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit c934a53a3add643c23e5e870278fcff20f390d3b Author: Karel Zak Date: Tue Nov 19 17:52:56 2013 +0100 libblkid: fix memory leak in blkid_parse_tag_string() Signed-off-by: Karel Zak libblkid/src/tag.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) commit 171fab2a384755db86927d4ad3f9e7efebff5a6f Author: Karel Zak Date: Tue Nov 19 17:44:21 2013 +0100 mount: make NAME=value tags usable for non-root The libmount does not care if we set source or target, it's able to swap it, but the mount.c function sanitize_paths() does not work as expected if we set NAME=value as target. It means that $ mount LABEL=foo does not work for non-root users (since 51e3530cdcb1d4f3ab91ae953ebc5adcdc5f9239, v2.24). This patch also checks if source or target is specified more than once. Signed-off-by: Karel Zak sys-utils/mount.c | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) commit 727999308ce02cc69969b7c500d741148b78bfe7 Author: Karel Zak Date: Tue Nov 19 17:41:28 2013 +0100 libmount: add mnt_tag_is_valid() Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 1 + libmount/src/libmount.h.in | 1 + libmount/src/libmount.sym | 4 ++++ libmount/src/utils.c | 17 +++++++++++++++++ 4 files changed, 23 insertions(+) commit 5332a14c9104f3c1813afca1c43158eb5c15d040 Author: Phillip Susi Date: Mon Nov 18 14:15:50 2013 -0500 fsck: add ext4 to list of filesystems with progress bars in fsck man page Signed-off-by: Phillip Susi disk-utils/fsck.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1c3af25c5e15418f511694ad77b37cb215e76ad6 Author: Phillip Susi Date: Mon Nov 18 14:00:17 2013 -0500 mount: fix man mount page type Slight grammatical error in the mount man page Signed-off-by: Phillip Susi sys-utils/mount.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8e1ed4454f99338c971eb247b8c2e655402c2595 Author: Karel Zak Date: Tue Nov 19 14:42:22 2013 +0100 setpriv: simplify usage() Let's keep usage() simple and details in the man page. The current brief description in usage() seems confusing for some users. Signed-off-by: Karel Zak sys-utils/setpriv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 02b0a08b25ad58d5a363376228f15644687ddcf4 Author: Karel Zak Date: Tue Nov 19 13:02:39 2013 +0100 libfdisk: (sgi) generate partname according to partition position The SGI drive currently counts only usable partitions, that's wrong as Linux kernel counts all partition to generate partition number. For example: Kernel: sdb 8:16 0 600M 0 disk ├─sdb9 8:25 0 2M 0 part └─sdb11 8:27 0 596.2M 0 part Fdisk: Pt# Device Info Start End Sectors Id System 9: /dev/sdb1 0 4095 4096 0 SGI volhdr 11: /dev/sdb2 0 1220939 1220940 6 SGI volume Reported-by: Phillip Susi Signed-off-by: Karel Zak libfdisk/src/sgi.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit dd2d52eb0ab780d520f23334da25ef6f07d270bf Author: Karel Zak Date: Mon Nov 18 12:50:27 2013 +0100 unshare: add more hints about mount namespaces to the man page There is also idea (by Lennart) to add --propagation=[shared|private|slave|off] to unshare(1), but it seems unnecessary and too complex as everyone can call mount(8) after unshare(1) to setup a proper namespace. Signed-off-by: Karel Zak sys-utils/unshare.1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) commit c76e7bc4b5acd87a4810f8adfd2bef4de5652845 Author: Karel Zak Date: Mon Nov 18 11:27:35 2013 +0100 lsblk: fix -D segfault References: https://bugzilla.redhat.com/show_bug.cgi?id=1031262 Signed-off-by: Karel Zak misc-utils/lsblk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit d75a2f60fad96e02982036111c6ed08eb0e2edda Author: Karel Zak Date: Mon Nov 18 10:58:41 2013 +0100 mkfs.minix: fix fscanf() format string [coverity scan] Signed-off-by: Karel Zak disk-utils/mkfs.minix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4987c6a05c8f5e86eb88fb9dd4c214438cb4c3cf Author: Karel Zak Date: Thu Nov 14 14:38:06 2013 +0100 script: restore errno in signal handler References: https://plus.google.com/+LennartPoetteringTheOneAndOnly/posts/gHSscCJkakd Signed-off-by: Karel Zak term-utils/script.c | 3 +++ 1 file changed, 3 insertions(+) commit 56969c178d3e7d3547c72e233ef08845d5b82a8b Author: Karel Zak Date: Thu Nov 14 14:34:15 2013 +0100 script: don't call TIOCGWINSZ in signal handler Signed-off-by: Karel Zak term-utils/script.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit 705480ea73feab773195a1079f0ac928a36cadeb Author: Phillip Susi Date: Wed Nov 13 10:30:52 2013 -0500 mkswap: remove cruft from the man page I don't think there's any reason to continue to mention behavior of kernels older than 10 years. Signed-off-by: Phillip Susi disk-utils/mkswap.8 | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) commit 1b3ec2442b020a53884bd44fdd6b95b7bdd995ba Author: Phillip Susi Date: Wed Nov 13 10:19:04 2013 -0500 mount: correct mount man page default iso9660 permission The mount man page said the default permissions are read for everyone, but it is in fact, read and execute. Signed-off-by: Phillip Susi sys-utils/mount.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8c1e7c54c42081f372c0803be2b536a915ec9a60 Author: Karel Zak Date: Tue Nov 12 15:49:33 2013 +0100 libmount: cleanup fix_optstr() regards to selinux and smack It's better (more robust) to make the code based on datetypes rather than on if(strcmp(...)). Signed-off-by: Karel Zak libmount/src/context_mount.c | 66 +++++++++++++++++++++++++++++++------------- 1 file changed, 47 insertions(+), 19 deletions(-) commit 2f677dd182550278804eb9eb125c434991ea631a Author: Karel Zak Date: Tue Nov 12 15:48:42 2013 +0100 build-sys: add --with-smack to config-gen.d Signed-off-by: Karel Zak tools/config-gen.d/all.conf | 1 + 1 file changed, 1 insertion(+) commit ec3dfa17f7675d8fc3c2bcd79386c316b3cd4b62 Author: Karel Zak Date: Tue Nov 12 15:17:28 2013 +0100 libmount: fix typo in smack path Signed-off-by: Karel Zak libmount/src/context_mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4f6258edb5b4d6b896838bbb98114785a13042f4 Author: Karel Zak Date: Tue Nov 12 15:07:12 2013 +0100 libmount: remove smackfs* option when SMACK not enabled If there is no /sys/fs/smackfs then libmount removes smackfs*= mount options when compiled --with-smack. Note that we do the same for SELinux. References: http://www.mail-archive.com/systemd-devel@lists.freedesktop.org/msg13740.html Signed-off-by: Karel Zak configure.ac | 9 +++++++++ libmount/src/context_mount.c | 22 ++++++++++++++++++++++ 2 files changed, 31 insertions(+) commit 083211e5b31c1971a8a95caf75f2e508550ff0c5 Author: Karel Zak Date: Tue Nov 12 12:26:13 2013 +0100 sulogin: use dirent->d_type when scans /dev ... it's more effective than call fstatat() for all device. Signed-off-by: Karel Zak login-utils/sulogin-consoles.c | 5 +++++ 1 file changed, 5 insertions(+) commit f5d4c1c9e172af48fd3637351844429f1c037099 Author: Sami Kerola Date: Sun Nov 10 20:06:10 2013 +0000 docs: update links to http://git.kernel.org/ web repository views Signed-off-by: Sami Kerola Documentation/howto-contribute.txt | 2 +- README | 2 +- include/blkdev.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 9082a53e6bd445e2a5fa0666c6071b7cbbebd4c8 Author: Sami Kerola Date: Sun Nov 10 20:06:09 2013 +0000 docs: add patching process to howto-contribute.txt Signed-off-by: Sami Kerola Documentation/howto-contribute.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) commit e6513adb7af8e07a269b8101f7498b4317917029 Author: Karel Zak Date: Mon Nov 11 09:18:18 2013 +0100 chsh, chfn: add info about non-local support to the man pages Signed-off-by: Karel Zak login-utils/chfn.1 | 5 +++-- login-utils/chsh.1 | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) commit ce6ae48d195e5145777ebbe006ee123166c93c04 Author: Phillip Susi Date: Fri Nov 8 10:12:17 2013 +0100 blkid: simple typo Signed-off-by: Karel Zak misc-utils/blkid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b01274b926e5809ae943fb8b0b36fe941d5e8321 Author: Karel Zak Date: Thu Nov 7 14:07:17 2013 +0100 blkid: escape quotes in the output # e2label /dev/loop0 'La"bel' # blkid -p /dev/loop0 /dev/loop0: LABEL="La"bel" .... new version: /dev/loop0: LABEL="La\"bel" .... Reported-by: Phillip Susi Signed-off-by: Karel Zak misc-utils/blkid.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) commit a42931b8fbeb38d90111ea9508493fd5c399c532 Author: Alexander Troosh Date: Tue Nov 5 10:16:38 2013 +0100 lscpu: support non sequentially numbering of CPUs lscpu don't work correctly on my system with: $ cat /sys/devices/system/cpu/possible 0-1,4-5,8-9,12-13 [kzak@redhat.com: - coding style, - add commit message - add real_cpu_num() macro, - fix functions where we need idx as well as CPU number] Signed-off-by: Karel Zak sys-utils/lscpu.1 | 3 ++ sys-utils/lscpu.c | 133 ++++++++++++++++++++++++++++++++++-------------------- 2 files changed, 87 insertions(+), 49 deletions(-) commit f7541e14c40f291b21016fd4db906fd5755ed87d Author: Phillip Susi Date: Fri Nov 1 13:37:05 2013 -0400 blockdev: don't use HDIO_GETGEO blockdev was still using this depreciated ioctl and that was causing blockdev --report to fail on loop and nbd devices. Switch to reading the partition start from sysfs instead. This also allows it to correctly report > 2^32 sector counts. [kzak@redhat.com: - check sysfs_init() return, - use uint64_t rather than unsigned long long] Signed-off-by: Phillip Susi Signed-off-by: Karel Zak disk-utils/blockdev.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) commit 44766f0d713221ab74aca81ba1ebc4c8c7598eaf Author: Theodore Ts'o Date: Sat Nov 2 19:46:06 2013 -0400 blkdiscard: BLKSSZGET fills in an int, not a uint64 Reported-by: Jason Cipriani Signed-off-by: "Theodore Ts'o" sys-utils/blkdiscard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 4915a7441d4e066b9bee7e394cd37252c67f5742 Author: Karel Zak Date: Mon Nov 4 09:59:54 2013 +0100 libblkid: fix swap-area version * v1: hdr->version = 1, magic string = SWAPSPACE2 * v0: no versio in header, magic string = SWAP-SPACE The mistake has been introduced in the old udev volume_id binary where the version was set according to magic string. Reported-by: Phillip Susi Signed-off-by: Karel Zak libblkid/src/superblocks/swap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 753bdc35c39bb5a89628e48e4c7d037cd036012e Author: Karel Zak Date: Fri Nov 1 12:15:25 2013 +0100 libfdisk: (sun) fix end sectors with +1 error partx (or parted, etc.): NR START END SECTORS SIZE NAME UUID 1 0 410047 410048 200.2M 2 410048 82329055 81919008 39.1G 4 82329056 102807615 20478560 9.8G 5 102807616 110999039 8191424 3.9G 6 110999040 312580543 201581504 96.1G and the same with fdisk: Device Flag Start End Blocks Id System /dev/loop0p1 0 410048 205024 1 Boot /dev/loop0p2 410048 82329056 40959504 83 Linux native /dev/loop0p3 0 312580544 156290272 5 Whole disk /dev/loop0p4 82329056 102807616 10239280 83 Linux native /dev/loop0p5 102807616 110999040 4095712 83 Linux native /dev/loop0p6 110999040 312580544 100790752 8e Linux LVM Reported-by: Phillip Susi Signed-off-by: Karel Zak libfdisk/src/sun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4c3f222fec127657136819a8a5df7bb45517c4d2 Author: Karel Zak Date: Thu Oct 31 10:44:33 2013 +0100 mount: improve -s man mage info Signed-off-by: Karel Zak sys-utils/mount.8 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) commit 65b137195b21245caf71c692354d70f508c40361 Author: Karel Zak Date: Thu Oct 31 08:53:03 2013 +0100 libfdisk: (gpt) add /home GUID Reported-by: andreas.hanke@gmx-topmail.de References: http://cgit.freedesktop.org/systemd/systemd/commit/?id=1a14a53cfded6e78c6e8dfb73fdff0039971d642 Signed-off-by: Karel Zak libfdisk/src/gpt.c | 1 + 1 file changed, 1 insertion(+) commit 6a4cf04405293c21c58e8863139928322179a72f Author: Karel Zak Date: Wed Oct 23 12:06:47 2013 +0200 libfdisk: (gpt) improve and cleanup recovery code * use AlternativeLBA rather than hardcoded offset to backup GPT * create gpt_copy_header() Signed-off-by: Karel Zak libfdisk/src/gpt.c | 71 ++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 56 insertions(+), 15 deletions(-) commit 396d94030831053975e94e3305a679538ab287de Author: Karel Zak Date: Wed Oct 23 10:27:39 2013 +0200 libfdisk: (gpt) recover from corrupted primary/backup PT We already have all code to support this feature, unfortunately it was not used in gpt_probe_label()... References: https://bugzilla.redhat.com/show_bug.cgi?id=1022217 Signed-off-by: Karel Zak libfdisk/src/gpt.c | 44 ++++++++++++++++++++++++++++++++------------ 1 file changed, 32 insertions(+), 12 deletions(-) commit 68e96c4676aae3b0f11322fc8d650cc471b4979c Author: Karel Zak Date: Wed Oct 16 12:13:34 2013 +0200 libfdisk: (dos) be more verbose when change bootable flag Signed-off-by: Karel Zak libfdisk/src/dos.c | 5 +++++ 1 file changed, 5 insertions(+) commit 9283144fe9433df5579104bf793dbc4573223abd Author: Karel Zak Date: Tue Oct 15 13:26:12 2013 +0200 fdisk: fix printf stuff Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 20 ++++++++++---------- fdisks/fdisk-menu.c | 4 ++-- fdisks/fdisk.c | 5 ++--- 3 files changed, 14 insertions(+), 15 deletions(-)