Changes between v2.24.1 and v2.24.2 -------------------------------------------- commit 404891fa9ea6a7ca86a838e809fc0b168169c286 Author: Karel Zak Date: Thu Apr 24 11:23:34 2014 +0200 build-sys: release++ (v2.24.2) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit cc3f5ac35a74c7b605cba56d48faf9e419884ff0 Author: Karel Zak Date: Thu Apr 24 11:21:54 2014 +0200 docs: update v2.24.2-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.24.2-ReleaseNotes | 145 ++++++++++++++++++++++++++++ 1 file changed, 145 insertions(+) commit 0a55a809b8ca1b502a1fe7df9cdd5b3449031be2 Author: Karel Zak Date: Thu Apr 24 11:09:25 2014 +0200 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 10 ++++++++++ 1 file changed, 10 insertions(+) commit 0e0cf2dd32b4ba17e88186a802d7a6e01d5580b7 Author: Karel Zak Date: Thu Apr 24 10:58:48 2014 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 1177 +++++++-------- po/cs.po | 4083 ++++++++++++++++++++++++++++++++--------------------- po/da.po | 3227 ++++++++++++++++++++++++------------------ po/de.po | 4024 +++++++++++++++++++++++++++++++--------------------- po/es.po | 1178 ++++++++-------- po/et.po | 1169 +++++++-------- po/eu.po | 1160 +++++++-------- po/fi.po | 1178 ++++++++-------- po/fr.po | 1214 ++++++++-------- po/gl.po | 1165 +++++++-------- po/hr.po | 1150 +++++++-------- po/hu.po | 1175 +++++++-------- po/id.po | 1172 +++++++-------- po/it.po | 1177 +++++++-------- po/ja.po | 1176 +++++++-------- po/nl.po | 1216 ++++++++-------- po/pl.po | 1215 ++++++++-------- po/pt_BR.po | 1178 ++++++++-------- po/ru.po | 1176 +++++++-------- po/sl.po | 1175 +++++++-------- po/sv.po | 1177 +++++++-------- po/tr.po | 1175 +++++++-------- po/uk.po | 1216 ++++++++-------- po/util-linux.pot | 1129 ++++++++------- po/vi.po | 1216 ++++++++-------- po/zh_CN.po | 1215 ++++++++-------- po/zh_TW.po | 1206 ++++++++-------- 27 files changed, 21718 insertions(+), 18001 deletions(-) commit 8f53cef5c3928e964322b0b03184e05e4ceed6b4 Author: Mario Blättermann Date: Thu Apr 24 10:33:37 2014 +0200 po: update de.po (from translationproject.org) po/de.po | 9234 ++++++++++++++++++++++++++++---------------------------------- 1 file changed, 4186 insertions(+), 5048 deletions(-) commit c8df0b48ab945a5523567bd62dd878949b566116 Author: Joe Hansen Date: Thu Apr 24 10:33:37 2014 +0200 po: update da.po (from translationproject.org) po/da.po | 2383 +++++++++++++++++++++++++------------------------------------- 1 file changed, 950 insertions(+), 1433 deletions(-) commit 373e4bb6ae9d34bcf19b336a1b9c68fb888c9dc2 Author: Petr Písař Date: Thu Apr 24 10:33:37 2014 +0200 po: update cs.po (from translationproject.org) po/cs.po | 3198 ++++++++++++++++++++++++-------------------------------------- 1 file changed, 1210 insertions(+), 1988 deletions(-) commit ba5f73fba161bda8a1b37280d81ddfda3bf7f725 Author: Karel Zak Date: Wed Apr 23 12:41:34 2014 +0200 tests: use old output format The test has been backported from master branch with the new format. Signed-off-by: Karel Zak tests/expected/fdisk/mbr-sort | 46 +++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 23 deletions(-) commit b31fc4cdc9fbe512509a198d36d149d6c19ccc21 Author: Karel Zak Date: Wed Apr 23 12:34:48 2014 +0200 tests: update Py parse mountinfo test Signed-off-by: Karel Zak tests/expected/libmount/tabfiles-py-parse-mountinfo | 11 +++++++++++ 1 file changed, 11 insertions(+) commit 8dffd06a1fbf37194cf667e958a990f22c23192d Author: Karel Zak Date: Wed Apr 23 12:13:12 2014 +0200 tests: clean up backport Signed-off-by: Karel Zak tests/ts/fdisk/mbr-sort | 2 -- 1 file changed, 2 deletions(-) commit d9e0371d7c8bb88761b76ab78d39bc70a570e756 Author: Karel Zak Date: Mon Feb 17 14:32:22 2014 +0100 tests: update libmount tabdiff tests Signed-off-by: Karel Zak tests/expected/libmount/tabdiff-mount | 1 + tests/expected/libmount/tabdiff-move | 1 + tests/expected/libmount/tabdiff-remount | 1 + tests/expected/libmount/tabdiff-umount | 1 + 4 files changed, 4 insertions(+) commit 7af42d8439ef8bb1034cb6a35fa50e2a0b121851 Author: Karel Zak Date: Wed Apr 23 09:27:13 2014 +0200 tests: add fdisk 'f' command MBR test Signed-off-by: Karel Zak tests/expected/fdisk/mbr-sort | 77 +++++++++++++++++++++++++++++++++++++++++ tests/ts/fdisk/mbr-sort | 79 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 156 insertions(+) commit 7125179cb2a4bb52466d37a46e839328fc900212 Author: Bjarni Ingi Gislason Date: Mon Apr 21 00:30:27 2014 +0000 swaplabel: Improve the typesetting of the manual Change macro 'IR' to 'I' if it has only one (italic) argument Remove space at end of lines Signed-off-by: Bjarni Ingi Gislason disk-utils/swaplabel.8 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit e8ad9dfccced25a0a708de35e71de93ad608030d Author: Bjarni Ingi Gislason Date: Mon Apr 21 00:30:25 2014 +0000 raw: Improve the typesetting of the manual Remove space at end of lines Change '-' to '\-', if it indicates an option Signed-off-by: Bjarni Ingi Gislason disk-utils/raw.8 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit f7a1ab2842ae5216b4502c17a44169cd772c154a Author: Bjarni Ingi Gislason Date: Mon Apr 21 00:30:24 2014 +0000 partx: Improve the typesetting of the manual Add a space character around '|' (means "or") Add "(hyphen-minus)" after "\-" to show character name for input Change '\-\-' to '\en', when it is used as a dash (pause, separation) Add a comma before "or" in a series of words (3 or more) Change '-' to '\(en' (an en-dash), if it means a range Protect a full stop (.), that begins or ends a string, with \& Change '--' to '\-\-', if it indicates an option Change '-' to '\-', if it indicates an option Change '-' to '\-', if means a minus Signed-off-by: Bjarni Ingi Gislason disk-utils/partx.8 | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) commit 3a6ac12afdfd8d56771f2da49a4cf5fbc054403c Author: Karel Zak Date: Fri Apr 18 11:48:53 2014 +0200 libfdisk: fix logical partition reorder command Reported-by: Olaf Hering Signed-off-by: Karel Zak libfdisk/src/dos.c | 159 ++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 109 insertions(+), 50 deletions(-) commit c79ce9df352af0911d6e4ab19f76c98aa7af9f0c Author: Ondrej Oprala Date: Tue Apr 8 09:48:49 2014 +0200 delpart: minor man page improvements Signed-off-by: Ondrej Oprala disk-utils/delpart.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5606e7cf5c4d5099f3fbe59014df94a9b63e9612 Author: Ondrej Oprala Date: Tue Apr 8 09:48:47 2014 +0200 addpart: minor man page improvements Signed-off-by: Ondrej Oprala disk-utils/addpart.8 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 49051babbf40ec1dd6bbb1f72cff770c88142ed9 Author: Ondrej Oprala Date: Tue Apr 8 09:48:46 2014 +0200 vipw: minor man page improvements Signed-off-by: Ondrej Oprala login-utils/vipw.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 23e27fff3ff79faf57f8cd7246537eeb30f919cf Author: Ondrej Oprala Date: Tue Apr 8 09:48:45 2014 +0200 nologin: minor man page improvements Signed-off-by: Ondrej Oprala login-utils/nologin.8 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 80c9b74b1a32a8a92941364751106957ecb99b2c Author: Ondrej Oprala Date: Tue Apr 8 09:48:44 2014 +0200 utmpdump: minor man page improvements Signed-off-by: Ondrej Oprala login-utils/utmpdump.1 | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) commit 0eed819e9bb6ef5e92acc7b857cb12d10cbf0238 Author: Ondrej Oprala Date: Tue Apr 8 09:48:43 2014 +0200 sulogin: minor man page improvements Signed-off-by: Ondrej Oprala login-utils/sulogin.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit cab7fa0338d269751766e7c4cff657c2247b1734 Author: Ondrej Oprala Date: Tue Apr 8 09:48:42 2014 +0200 su: fix minor typos in the man page Signed-off-by: Ondrej Oprala login-utils/su.1 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) commit 2ec0cd2f152319c438fce1082521db90d44dfa2e Author: Ondrej Oprala Date: Tue Apr 8 09:48:41 2014 +0200 runuser: fix minor typos in the man page Signed-off-by: Ondrej Oprala login-utils/runuser.1 | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) commit 67ed3e4001c3981567dbe83fa90d1cf221497f59 Author: Ondrej Oprala Date: Tue Apr 8 09:48:40 2014 +0200 last: fix minor typos in the man page Signed-off-by: Ondrej Oprala login-utils/last.1 | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) commit 8d3f179fcc5c80f53edad1deccf8b88d05344d4e Author: Karel Zak Date: Thu Apr 10 09:58:36 2014 +0200 fstrim: add hint to man page Signed-off-by: Karel Zak sys-utils/fstrim.8 | 9 +++++++++ 1 file changed, 9 insertions(+) commit 663e9afbf68bc1adbbd5a1a0b24391603bd40b74 Author: Karel Zak Date: Mon Apr 7 13:26:56 2014 +0200 build-sys: fix .h.in usage in libblkid and libmount Signed-off-by: Karel Zak libblkid/src/Makemodule.am | 2 +- libmount/src/Makemodule.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 9913bbc7900c389eae9fed36fa4189049e97f42b Author: Anton Blanchard Date: Mon Apr 7 09:18:13 2014 +1000 setarch: Fix ppc64le architectures setarch currently fails on ppc64le because it tries to use big endian architecture names. Fix it. Signed-off-by: Anton Blanchard sys-utils/setarch.c | 6 ++++++ 1 file changed, 6 insertions(+) commit a3f6bf3ad7d5d9e7f61254d9a72664e5fe0c3b75 Author: Jonathan Liu Date: Sat Apr 5 00:08:01 2014 +1100 umount: fix typo in usage Signed-off-by: Jonathan Liu sys-utils/umount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e1fccc2efa7e0f78d6bb586d15e38592d32f6137 Author: Ondrej Oprala Date: Thu Apr 3 18:08:21 2014 +0200 login: fix minor typos in the man page Signed-off-by: Ondrej Oprala login-utils/login.1 | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) commit 110729581deeec56814dc88f4a213ab00e223c64 Author: Bjarni Ingi Gislason Date: Thu Apr 3 02:29:48 2014 +0000 mkswap: Some minor typographical corrections to the manual -- changed to \(en (an en-dash) if it is a dash (pause, separation) - changed to \- if it indicates an option A full stop (.), that begins or ends a string, protected with \& Space between sentences corrected to two word spaces -- changed to \-\- if it indicates an option Signed-off-by: Karel Zak disk-utils/mkswap.8 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit b7bb2a12d7017ec0cb22e05da3975f0dbb437ceb Author: Bjarni Ingi Gislason Date: Thu Apr 3 02:28:27 2014 +0000 mkfs.minix: Some typographical changes in the manual - between numbers changed to \(en if it is a range Signed-off-by: Karel Zak disk-utils/mkfs.minix.8 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit a7fec670497e815e49e4e7ad69067abba680a9c4 Author: Bjarni Ingi Gislason Date: Thu Apr 3 02:25:58 2014 +0000 mkfs.cramfs: Some typographical corrections to the manual The unit "MB" is ambigous. Use "MiB" if "M" does not mean 10^6. Otherwise add "(M = 10^6)" after it. Changes: Unpaddable space (\ ) added between a number and an unit. A nuber and a unit are not one word. Is "16MB" written "sixteenmegabytes"? Signed-off-by: Karel Zak disk-utils/mkfs.cramfs.8 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 434c2ed5f18d870c76915509644041798aee1875 Author: Bjarni Ingi Gislason Date: Thu Apr 3 02:23:04 2014 +0000 mkfs.bfs: One typographical correction to the manual - between numbers changed to \(en (an en-dash) Signed-off-by: Karel Zak disk-utils/mkfs.bfs.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6b99a800f8a0388f465253082f1dd4fba9c44a36 Author: Bjarni Ingi Gislason Date: Wed Apr 2 23:42:06 2014 +0000 mkfs: Some typographical changes to the manual - changed to \- if it means an option A full stop (.), that begins or ends a string, protected with \& No line adjustment used for section "SEE ALSO" (.na/.ad) Signed-off-by: Karel Zak disk-utils/mkfs.8 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit ad7acc2178960fc4f97f8bda52d28cbcd1ed701c Author: Bjarni Ingi Gislason Date: Wed Apr 2 23:37:26 2014 +0000 isosize: A few typographical changes to the manual A full stop (.), that begins or ends a string, protected with \& A space between a number and an unit changed to an unpaddable space "\ " Signed-off-by: Karel Zak disk-utils/isosize.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 902d6d182b5d39377bee97a7ff4f6ae13677e542 Author: Bjarni Ingi Gislason Date: Wed Apr 2 23:35:29 2014 +0000 fsck.minix: A few typographical corrections to the manual - between numbers changed to \(en if it means a range A full stop (.), that begins or ends a string, protected with \& Signed-off-by: Karel Zak disk-utils/fsck.minix.8 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit a5c3465d9e6312439cc50855261929b6a70e12a3 Author: Bjarni Ingi Gislason Date: Wed Apr 2 23:30:12 2014 +0000 fsck: Some typographical corrections to the manual The word "kilobytes" is ambiguous. Change it to "kibibytes" if kilo does not mean 1000. Otherwise add "(1000 B)" after it. A string, that begins or ends with a full stop (.), protected with \& - changed to \- if it shows an option -- change to \(en if it means a dash (pause, separation) Space between sentences is two word spaces in *roff. Thus it is better to begin each sentence on a new line when the file contains formatting commands --- changed to \(en if it means a dash (pause, separation) Punctuation separated from a word with a space, if it is an argument to a macro like "BR" (two font styles used alternately) Adjusting inhibited for the section "SEE ALSO" with ".na/.ad" Signed-off-by: Karel Zak disk-utils/fsck.8 | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) commit 01c7163d6f409345da529d343071f62eab1d79e9 Author: Bjarni Ingi Gislason Date: Wed Apr 2 23:25:08 2014 +0000 fdformat: Some minor change to the manual \- changed to - (code "hyphen-minus", rendered with the glyph hyphen in troff) if it is a part of a compound name. A minus is not used in words. People using UTF-8 and copy-and-pase can(?) (may?) use "info", "man --ascii" or the command "man" should have an option to display the - in names of options with the code (character name) "hyphen-minus" (u002D) instead of "u2010" (code (character) name "hyphen") Signed-off-by: Karel Zak disk-utils/fdformat.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6b280686b6623a7a05b0dcdde7ae52fa6e583458 Author: Bjarni Ingi Gislason Date: Wed Apr 2 23:23:32 2014 +0000 blockdev: Some minor corrections to the manual Macro, that alternately changes the input between two font styles, changed to the macro for one font style change, if there is only one argument Text string, that begins or ends with a full stop (.) protected with \& -- changed to \-\- if it is an option - changed to \(en if it is a dash (pause, seperation) Signed-off-by: Karel Zak disk-utils/blockdev.8 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) commit 6db98149e28e6b25c78aada5177bc59a33f3e7f9 Author: Bjarni Ingi Gislason Date: Tue Apr 1 17:26:40 2014 +0000 mount.8: Some typographical and prefix corrections to the manual I forgot to add the patch to the attachment. Additional changes to "Changes:" " \(em " changed to " \(en ", as the em-dash with a word space on each side is to long (troff) ".na/.ad" is not used but .nf/.fi for a long command line and it is split into two lines Word "illegal" is changed to "invalid" Word "hyphen-separated" is changed to '"hyphen-minus"-separated' as the meaning is the code and not the glyph (on the command line) (beware of UTF-8) -- Bjarni I. Gislason sys-utils/mount.8 | 394 +++++++++++++++++++++++++++--------------------------- 1 file changed, 199 insertions(+), 195 deletions(-) commit 0aa6c429897e75d55ca6e7f3f104f397e158914b Author: Karel Zak Date: Mon Apr 7 12:09:11 2014 +0200 mount: apply "nofail" to MNT_ERR_NOSOURCE libmount error fstab: UUID=nonexist /mnt/nonexist1 ext4 nofail 0 1 # mount -av mount: can't find UUID=nonexist .. this is bug of course. Reported-by: Patrick McLean Signed-off-by: Karel Zak libmount/src/context.c | 5 +++++ sys-utils/mount.c | 2 ++ 2 files changed, 7 insertions(+) commit f435d4be5fe7c1e34caaead0bb34af0db7a05867 Author: Karel Zak Date: Mon Apr 7 11:59:30 2014 +0200 umount: more robust success message for --all Signed-off-by: Karel Zak sys-utils/umount.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 5f148289adf1f390c3e5f8fce73dd2a13eb3b6f8 Author: Karel Zak Date: Mon Apr 7 11:53:05 2014 +0200 mount: fix --all and nofail return code Now the "nofail" affects warnings warning messages only. That's wrong and regression (against original non-libmount version). The nofail has to control return code too. Reported-by: Patrick McLean Signed-off-by: Karel Zak sys-utils/mount.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit 9ae50bae04183ede08e69117b5800b780c031a4c Author: Karel Zak Date: Fri Apr 4 16:02:35 2014 +0200 libfdisk: make qsort_r() optional The function is no critical for fdisk functionality. The SUN label verification will check for less issues. All the verification code is optional ('v' fdisk command). Signed-off-by: Karel Zak configure.ac | 1 + libfdisk/src/sun.c | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) commit e0a487090cc5ffb2e3931433db585c9dd3b795b5 Author: Dave Reisner Date: Wed Apr 2 10:41:30 2014 -0400 switch_root: verify initramfs by f_type, not devno As of linux 3.14, the initramfs device will have both major and minor 0, causing our paranoia check to fail. Make this version agnostic by checking the filesystem type, rather than a device number. Signed-off-by: Dave Reisner Signed-off-by: Karel Zak sys-utils/switch_root.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) commit 6b356f5d2cf51766c2304a75cfd2680c4fdf0cd1 Author: Ruediger Meier Date: Fri Mar 21 12:31:39 2014 +0100 mount: update mount.8 about barrier mount options defaults This patch comes originally from Jan Kara and updates the default behaviour of the kernel which has been changed some years ago. See kernel docs Documentation/filesystems/ext3.txt Documentation/filesystems/ext4.txt sys-utils/mount.8 | 37 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 21 deletions(-) commit 6108696ac92795fe12cd0b245448ac9511f90fbb Author: Karel Zak Date: Tue Apr 1 14:39:13 2014 +0200 fdisk: don't colorize "foo:" prefixes Based on master branch commit 412791a995890d3576906d86a39bbee6246eb01e. Signed-off-by: Karel Zak fdisks/fdisk-ask.c | 35 +++-------------------------------- 1 file changed, 3 insertions(+), 32 deletions(-) commit 9bc3759adc5e295650cbf5b6872369eea03464da Author: Karel Zak Date: Fri Jan 24 13:58:40 2014 +0100 losetup: wait for udev On system with /dev/lop-control the udevd creates /dev/loopN nodes. It seems better to wait a moment after unsuccessful open(/dev/loopN) and try it to open again. The problem is pretty visible on systems where udevd also modifies permission for loopN devices, then open() fails with EACCES when losetup executed by non-root user (but user who is in "disk" group). Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1045432 Signed-off-by: Karel Zak include/loopdev.h | 1 + lib/loopdev.c | 23 ++++++++++++++++++----- 2 files changed, 19 insertions(+), 5 deletions(-) commit e3d8f0af373e72383671d2909e8b202ddbb07db6 Author: Ruediger Meier Date: Thu Mar 27 11:31:16 2014 +0100 tests: cleanup, remove unused lscpu output All these files are not used since a292bbde or 0d86c70a. Signed-off-by: Ruediger Meier tests/expected/lscpu/lscpu-i386-amdshanghai | 29 - tests/expected/lscpu/lscpu-i386-dellpe700 | 17 - tests/expected/lscpu/lscpu-i386-intels5000phb | 28 - tests/expected/lscpu/lscpu-i386-xenpara | 19 - tests/expected/lscpu/lscpu-ia64-512cpus | 654 --------------------- tests/expected/lscpu/lscpu-ia64-hpmatterhorn | 29 - tests/expected/lscpu/lscpu-ia64-hprx1620 | 21 - tests/expected/lscpu/lscpu-ia64-pg0 | 37 -- tests/expected/lscpu/lscpu-sparc64-UltraSparc-T1 | 38 -- .../expected/lscpu/lscpu-x86_64-dell_poweredge1950 | 23 - .../expected/lscpu/lscpu-x86_64-dell_poweredgeR610 | 40 -- tests/expected/lscpu/lscpu-x86_64-dellr710 | 40 -- tests/expected/lscpu/lscpu-x86_64-el5xen | 30 - tests/expected/lscpu/lscpu-x86_64-hpdl585 | 42 -- tests/expected/lscpu/lscpu-x86_64-ibme326m | 23 - tests/expected/lscpu/lscpu-x86_64-necem14 | 22 - tests/expected/lscpu/lscpu-x86_64-xenfull | 22 - 17 files changed, 1114 deletions(-) commit 85f900c785dd85f29b621e66d6ef74f5793501ca Author: Ruediger Meier Date: Thu Mar 27 11:19:37 2014 +0100 tests: add lscpu dump for ppc cpu with no cache size Taken from qemu-system-ppc (qemu 1.7) machine with installed debian 7.4 wheezy, kernel 3.2.0-4-powerpc. Signed-off-by: Ruediger Meier tests/expected/lscpu/lscpu-ppc-qemu | 15 +++++++++++++++ tests/ts/lscpu/dumps/ppc-qemu.tar.gz | Bin 0 -> 2014 bytes 2 files changed, 15 insertions(+) commit 366b8913280036dd5e4d37fd79d8b701c591d06a Author: Ruediger Meier Date: Thu Mar 27 09:18:32 2014 +0100 lscpu: cleanup, use _PATH_SYS_CPU/NODE This make most lines shorter than 80 chars again (tab-witdh 4). Signed-off-by: Ruediger Meier sys-utils/lscpu.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) commit fbaf02d7eddf5c2aeb8ad9472e93eb332477734f Author: Ruediger Meier Date: Wed Mar 26 22:18:17 2014 +0100 lscpu: don't abort if cache size is unknown There are systems where the size file does not exist. Most badly even lscpu -p would abort allthough it does not use the size: $ lscpu -p lscpu: error: cannot open /sys/devices/system/cpu/cpu0/cache/index0/size: No such file or directory This patch does not abort in this case and prints "unknown size" in human-readable case. For examle on this qemu pcc test machine: $ lscpu Architecture: ppc CPU op-mode(s): 32-bit Byte Order: Big Endian CPU(s): 1 On-line CPU(s) list: 0 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 1 Model: Power Macintosh BogoMIPS: 33.25 L1d cache: unknown size L1i cache: unknown size Signed-off-by: Ruediger Meier sys-utils/lscpu.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) commit 33249f611789f67bd617e532879908e28732514a Author: Karel Zak Date: Mon Mar 24 11:26:21 2014 +0100 flock: use nfs4 fallback on EBADF too The kernel regression (probably v3.4, commit 55725513) introduces a new errno for O_RDONLY on NFS. Now it returns EBADF rather than EIO. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1078618 Signed-off-by: Karel Zak sys-utils/flock.c | 1 + 1 file changed, 1 insertion(+) commit 7ac2de97f71e5adb995b218bf1bf53bcfd496937 Author: Karel Zak Date: Fri Mar 21 14:04:59 2014 +0100 libfdisk: properly implement read-only mode Don't use fallback to read-only mode in fdisk_context_assign_device(), it's application responsibility open the device in the right mode. The commands fdisk and cfdisk check (and report) read-only mode now. Reported-by: Maciej Małecki Signed-off-by: Karel Zak fdisks/fdisk-menu.c | 4 ++++ fdisks/fdisk.c | 10 ++++++++-- libfdisk/src/context.c | 15 ++++++++++----- libfdisk/src/fdiskP.h | 3 ++- libfdisk/src/label.c | 3 +-- libfdisk/src/libfdisk.h | 1 + 6 files changed, 26 insertions(+), 10 deletions(-) commit df871d1b867ec15adc56e218acf19fd30ae9f9c8 Author: Wolfgang Richter Date: Wed Mar 19 22:47:11 2014 -0400 scriptreplay: no need to skip first time value or last bytes fixes #58 term-utils/scriptreplay.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit 218db157b147383fba3477ae53cf0f0d485365ae Author: Wolfgang Richter Date: Wed Mar 19 22:45:48 2014 -0400 script: time from end of read() call partially fixes #58 term-utils/script.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit c4b2c8485c453916404983dc5debbbcf3e532821 Author: Ruediger Meier Date: Mon Mar 17 11:48:47 2014 +0100 unshare: include libmount.h to provide missing MS_* defines Since 6728ca10 we are using MS_PRIVATE and MS_REC which are not defined in some systems's sys/mount.h. Signed-off-by: Ruediger Meier sys-utils/Makemodule.am | 1 + sys-utils/unshare.c | 3 +++ 2 files changed, 4 insertions(+) commit b5efe778580a5c9400febd771a1420563feff7c2 Author: Ruediger Meier Date: Thu Mar 13 09:20:50 2014 +0100 ipcs: fix memleak in ipc_*_get_info functions In case of error (maxid < 0) we do not enter following for loop. It will return 0 and free the structs afterwards because i is still 0. Signed-off-by: Ruediger Meier sys-utils/ipcutils.c | 6 ------ 1 file changed, 6 deletions(-) commit 1fe01a0197564ea1eb9c92a2cdc92372fea3674d Author: Ruediger Meier Date: Thu Mar 13 09:07:44 2014 +0100 ipcs: fix ipc_sem_get_info fallback case "ipcs -s -i n" (case id >= 0) was broken since v2.22-254-g1e2418a if /sys is not usable. See also comments for commit "ipcs: fix ipc_msg_get_info fallback case". Signed-off-by: Ruediger Meier sys-utils/ipcutils.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) commit fffc1f243811d2d8650a235664a087760778eceb Author: Ruediger Meier Date: Wed Mar 12 22:46:15 2014 +0100 ipcs: fix ipc_shm_get_info fallback case "ipcs -m -i n" (case id >= 0) was broken since v2.22-251-g61e14b4 if /sys is not usable. See also comments for commit "ipcs: fix ipc_msg_get_info fallback case". Signed-off-by: Ruediger Meier sys-utils/ipcutils.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) commit f6ea216db236ca62c3021456249039291fefed53 Author: Ruediger Meier Date: Wed Mar 12 14:53:20 2014 +0100 ipcs: fix ipc_msg_get_info fallback case "ipcs -q" (case id < 0) was broken since v2.22-256-g35118df if /sys is not usable. The main issue was that the use of msqid argument did not cleanly distinguished between "queue identifier" and "index of kernel's internal array". Also now the fallback case and the regular case behave more equally regarding it's return value (introducing another counter j). Note that the case id >= 0 now performs a slower lookup. This could be avoided but then we would better handle both case differently like it was before the above mentioned cleanup commit. Signed-off-by: Ruediger Meier sys-utils/ipcutils.c | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) commit 2b4afee6a7b445fa99c60eeaa2a0eab162cbc675 Author: Ruediger Meier Date: Thu Mar 13 09:28:40 2014 +0100 ipcs: cleanup jumplabel stlyes Signed-off-by: Ruediger Meier sys-utils/ipcutils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit fbb07fb1bd1207c6b34b585a0535930589e1e2f1 Author: Ruediger Meier Date: Thu Mar 13 15:08:13 2014 +0100 build-sys: libmount/python/__init__.py is always a dist file "make dist" and "make distcheck" should work after a bare ./configure to give us a full featured tar ball. Signed-off-by: Ruediger Meier libmount/python/Makemodule.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 93cf4a2b7a4e09b2f7380f0b620173a4c46d3bf6 Author: Karel Zak Date: Thu Mar 13 12:41:03 2014 +0100 include/closestream: don't wipe errno on EPIPE ... the code in close_stdout() is sensitive to EPIPE, so wipe errno is close_stream() is probably bad idea. Signed-off-by: Karel Zak include/closestream.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 0efdd2c595c8ff7dfc38de5746363a65cefd9152 Author: Karel Zak Date: Thu Mar 13 12:39:09 2014 +0100 dmesg: don't report EPIPE Signed-off-by: Karel Zak sys-utils/dmesg.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit 2ca0b84cdff4467f867a257cab8d73e8725ff117 Author: Chris MacGregor Date: Thu Feb 27 10:40:59 2014 -0800 hwclock: fix possible hang and other set_hardware_clock_exact() issues In sys-utils/hwclock.c, set_hardware_clock_exact() has some problems when the process gets pre-empted (for more than 100ms) before reaching the time for which it waits: 1. The "continue" statement causes execution to skip the final tdiff assignment at the end of the do...while loop, leading to the while condition using the wrong value of tdiff, and thus always exiting the loop once newhwtime != sethwtime (e.g., after 1 second). This masks bug # 2, below. 2. The previously-existing bug is that because it starts over waiting for the desired time whenever two successive calls to gettimeofday() return values > 100ms apart, the loop will never terminate unless the process holds the CPU (without losing it for more than 100ms) for at least 500ms. This can happen on a heavily loaded machine or on a virtual machine (or on a heavily loaded virtual machine). This has been observed to occur, preventing a machine from completing the shutdown or reboot process due to a "hwclock --systohc" call in a shutdown script. The new implementation presented in this patch takes a somewhat different approach, intended to accomplish the same goals: It computes the desired target system time (at which the requested hardware clock time will be applied to the hardware clock), and waits for that time to arrive. If it misses the time (such as due to being pre-empted for too long), it recalculates the target time, and increases the tolerance (how late it can be relative to the target time, and still be "close enough". Thus, if all is well, the time will be set *very* precisely. On a machine where the hwclock process is repeatedly pre-empted, it will set the time as precisely as is possible under the conditions present on that particular machine. In any case, it will always terminate eventually (and pretty quickly); it will never hang forever. [kzak@redhat.com: - tiny coding style changes] Signed-off-by: Chris MacGregor Signed-off-by: Karel Zak sys-utils/hwclock.c | 170 ++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 131 insertions(+), 39 deletions(-) commit ac42ce0f205b017bd88b66d08a3d339141b94688 Author: Karel Zak Date: Wed Mar 5 11:23:16 2014 +0100 chcpu: cleanup stdout/stderr usage Signed-off-by: Karel Zak sys-utils/chcpu.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) commit 51ba75ce002828cec1a4acd5e95c8a114a58632b Author: Karel Zak Date: Wed Mar 5 11:06:59 2014 +0100 chcpu: cleanup return codes The code currently always return EXIT_SUCCESS, that's strange. It seems better to return 0 on success, 1 on complete failure and 64 on partial success. Signed-off-by: Karel Zak sys-utils/chcpu.8 | 14 ++++++++++ sys-utils/chcpu.c | 82 ++++++++++++++++++++++++++++++++++++++++--------------- 2 files changed, 74 insertions(+), 22 deletions(-) commit e73533390abf7bad3d1a6e6c21aa1f52f58c6351 Author: Karel Zak Date: Wed Mar 5 10:20:10 2014 +0100 build-sys: don't connect _DEPENDENCIES and _LIBADD The _DEPENDENCIES has to be used for dependencies on another in-tree files, but _LIBADD is to specify additional libs (including external libs). Reported-by: oleid Signed-off-by: Karel Zak libblkid/src/Makemodule.am | 11 +++++------ libfdisk/src/Makemodule.am | 6 +++--- libmount/src/Makemodule.am | 3 ++- 3 files changed, 10 insertions(+), 10 deletions(-) commit a4502fc9e7a6e9b1c7f1d2e12589a91c83341246 Author: Stewart Smith Date: Tue Mar 4 15:39:41 2014 +1100 lscpu: read_hypervisor_dmi: only fallback to memory scan on x86/x86_64 As the comment in the code says, this method is really only valid on x86 and x86_64, so add a #ifdef for those architectures around that code block. This was causing "Program lscpu tried to access /dev/mem between f0000->100000." warnings on some ppc64 machines. Signed-off-by: Stewart Smith sys-utils/lscpu-dmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 9a52e7035630bf84be65823a2fed4fc452de13a5 Author: Stewart Smith Date: Tue Mar 4 15:27:27 2014 +1100 lscpu: don't assume filesystem supports d_type when searching for NUMA nodes Not all file systems support the d_type field and simply checking for d_type == DT_DIR in is_node_dirent would cause the test suite to fail if run on (for example) XFS. The simple fix is to check for DT_DIR or DT_UNKNOWN in is_node_dirent. Signed-off-by: Stewart Smith sys-utils/lscpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 44c638b149fae90f76ae8dc81477ac88dc8aa5d9 Author: Karel Zak Date: Tue Mar 4 11:45:44 2014 +0100 switch_root: make dirent d_type usage more robust Signed-off-by: Karel Zak sys-utils/switch_root.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) commit 56f528703eb55237a178ea996281bcbd620b4095 Author: Karel Zak Date: Tue Mar 4 11:30:03 2014 +0100 lib/sysfs: make dirent d_type usage more robust Signed-off-by: Karel Zak lib/sysfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 201ec25c0bbf39708da8e0e6fed5930b7d860d7d Author: Karel Zak Date: Tue Mar 4 11:27:46 2014 +0100 partx: make dirent d_type usage more robust Signed-off-by: Karel Zak disk-utils/partx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6f5ececbcce7f8bbc869841c4cb7a2093589f58f Author: Jesper Dahl Nyerup Date: Tue Feb 18 20:48:45 2014 +0100 script: Also flush writes to timing file. If both -f and -t are given, flush the timing fd on each write, similar to the behavior on the script fd. This allows playback of still-running sessions, and reduces the risk of ending up with empty timing files when script(1) exits abnormally. Signed-off-by: Jesper Dahl Nyerup Signed-off-by: Karel Zak term-utils/script.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 72b92664b6b3ca35713a5a1dc4b79662285be0cd Author: Benno Schulenberg Date: Sun Feb 9 11:26:49 2014 +0100 more: improve formatting and wording of man page and help text Also, slice up the usage text for ease of translation. Reported-by: Phillip Susi Signed-off-by: Benno Schulenberg text-utils/more.1 | 38 ++++++++++++++++++++------------------ text-utils/more.c | 31 +++++++++++++++---------------- 2 files changed, 35 insertions(+), 34 deletions(-) commit 03f9e8d49debddde24e4900ed948b8db5002d92e Author: Karel Zak Date: Thu Feb 20 16:59:11 2014 +0100 libmount: FS id and parent ID could be zero It seems that linux 3.14 is able to produce things like: 19 0 8:3 / / rw,relatime - ext4 /dev/sda3 rw,data=ordered ^ Reported-by: Mantas Mikulėnas Signed-off-by: Karel Zak libmount/src/tab.c | 14 ++++++-------- misc-utils/findmnt.c | 5 +++-- 2 files changed, 9 insertions(+), 10 deletions(-) commit c0ea893d1728ad64689f62b9eab14c7097163288 Author: Karel Zak Date: Wed Feb 19 13:27:56 2014 +0100 libblkid: add extra checks to XFS prober The current code rely on XFS magic string only. It seems too fragile. Signed-off-by: Karel Zak libblkid/src/superblocks/xfs.c | 158 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 142 insertions(+), 16 deletions(-) commit 26a20690d7b2aa6c00a5ee7355e32745cf75b037 Author: Sami Kerola Date: Sun Feb 16 23:54:19 2014 +0000 swaplabel: wrong version number in check $ swaplabel /dev/sda2 swaplabel: /dev/sda2: unsupported swap version '1' The mkswap does not allow any other version, so swaplabel(8) must be wrong. Reference: https://github.com/karelzak/util-linux/blob/master/disk-utils/mkswap.c#L520 Signed-off-by: Sami Kerola disk-utils/swaplabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 79d4e50a4545c7c30feb635c49f02deab969838e Author: Thomas Bächler Date: Sun Feb 16 14:58:06 2014 +0100 libmount: initialize *root to NULL in mnt_table_get_root_fs mnt_table_get_root_fs only works when *root is set to NULL. This is not only undocumented, but also unintuitive. Fix it by initializing *root inside mnt_table_get_root_fs. Signed-off-by: Karel Zak libmount/src/tab.c | 2 ++ 1 file changed, 2 insertions(+) commit 6592ccc4a7397d5a4a6945e3d89d559bbfcea018 Author: Karel Zak Date: Mon Feb 17 13:22:30 2014 +0100 su: don't use kill(0, ...) when propagate signal The current code uses kill(0, caught_signal) after regular signal cleanup and before exit (all just to make shells happy). Unfortunately, kill(0, ...) is a bad idea. It seems better to use kill(getpid(), ...) otherwise we kill our parent process too. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1063887 Signed-off-by: Karel Zak login-utils/su-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c630ad744050e3e918620e20455e70bd7ab20cfc Author: Karel Zak Date: Mon Feb 17 13:12:23 2014 +0100 libmount: accept (deleted) path suffix in mountinfo file Addresses: debian bug #711183 Signed-off-by: Karel Zak libmount/src/tab_parse.c | 11 +++++++++++ tests/expected/libmount/tabfiles-parse-mountinfo | 11 +++++++++++ tests/ts/libmount/files/mountinfo | 1 + 3 files changed, 23 insertions(+) commit 000c8889e33b34445cc72d02c1efabe64be3bd5e Author: Rodrigo Campos Date: Sat Jan 25 19:17:26 2014 +0000 fallocate: Clarify that space can also be deallocated The functionality is already there, with --punch-hole, but the text was for the preallocation case only. Signed-off-by: Rodrigo Campos sys-utils/fallocate.1 | 11 ++++++----- sys-utils/fallocate.c | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) commit 1a2fc7b4b32b52117e09dbd04459bc57cf892956 Author: Phillip Susi Date: Sat Feb 8 13:22:10 2014 -0500 renice: correct max priority in renice man page The man page stated that the PRIO_MAX is 20. While this is correct, the header definition is wrong and the max value is actually 19. [kzak@redhat.com: - remove PRIO_MAX from man page, kernel syscalls use hardcoded numbers for the priority limits] Signed-off-by: Phillip Susi Signed-off-by: Karel Zak sys-utils/renice.1 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) commit 8a44a9d8dc78c81995ded6864e2e405ade6888e0 Author: Phillip Susi Date: Sat Feb 8 11:44:02 2014 -0500 mount: remove obsolete and confusing statement from mount.8 The wording was confusing and suidperl has gone the way of the dodo, and really didn't need mentionting in mount.8. Signed-off-by: Phillip Susi sys-utils/mount.8 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 7e58f641b491d2674617a128ae9f80ba2f7d78ca Author: Phillip Susi Date: Fri Feb 7 17:01:20 2014 -0500 fix mkfs --verbose and man page mkfs did not actually accept the long form --verbose option. Also the man page seemed to indicate that version/verbose/help options were passed to the filesystem specific utility when this is not the case. Signed-off-by: Phillip Susi disk-utils/mkfs.8 | 7 +------ disk-utils/mkfs.c | 1 + 2 files changed, 2 insertions(+), 6 deletions(-) commit 25f369276894bfdb05866df4695c87d6961305cb Author: Ville Skyttä Date: Sat Jan 25 14:23:49 2014 +0200 getopt.1: The usual doc dir is /usr/share/doc, not .../docs Signed-off-by: Ville Skyttä misc-utils/getopt.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1c3152ef41c9b804161efef40f305cd8cfcf7455 Author: Andy Lutomirski Date: Fri Jan 24 12:02:59 2014 -0800 setpriv: Fix --apparmor-profile There were two bugs. First, trying to access /proc/self/attr/exec with O_CREAT | O_EXCL has no chance of working. Second, it turns out that the correct command to send is "exec", not "changeprofile". Of course, there was no way to know this until: commit 3eea57c26e49a5add4c053a031cc2a1977b7c48e Author: John Johansen Date: Wed Feb 27 03:44:40 2013 -0800 apparmor: fix setprocattr arg processing for onexec Signed-off-by: Andy Lutomirski sys-utils/setpriv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 5ab908b41b12c83af18e1e349d4ef2f38a4435b8 Author: Karel Zak Date: Thu Feb 6 14:14:50 2014 +0100 nsenter: fix set{gid,uid} order,drop supplementary groups .. always, always setgid() before setuid()! Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1061751 Signed-off-by: Karel Zak sys-utils/nsenter.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit e045e35b0fbd359e68ea7b856d79b02d384be9a3 Author: Karel Zak Date: Thu Feb 6 11:48:40 2014 +0100 dmesg: -w output not line-buffered when writing to e.g. a pipe, output from dmesg -w can come many minutes late due to buffering. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1060925 Signed-off-by: Karel Zak sys-utils/dmesg.c | 2 ++ 1 file changed, 2 insertions(+)