Changes between v2.20 and v2.21-rc1 -------------------------------------------- commit 47fb10792a5ddf0113d9ca555870890a46ff5c5a Author: Karel Zak Date: Wed Jan 18 21:29:52 2012 +0100 build-sys: add changelog target Signed-off-by: Karel Zak Makefile.am | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) commit df5f3c5401ec97f5d795344b982d6ec46ca810d6 Author: Karel Zak Date: Wed Jan 18 20:10:44 2012 +0100 build-sys: enable .xz, disable .gz Signed-off-by: Karel Zak configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e6e5b7dcf49d7165863c053a78366bea5e546647 Author: Karel Zak Date: Wed Jan 18 14:22:17 2012 +0100 build-sys: release++ (v2.21-rc1) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) commit a6ec840a1725ae1e12d4c571ef6caa2bd2e803ac Author: Karel Zak Date: Wed Jan 18 14:20:09 2012 +0100 docs: add v2.21 ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.21-ReleaseNotes | 799 +++++++++++++++++++++++++++++ 1 files changed, 799 insertions(+), 0 deletions(-) commit b9960a5e5d3356f1ecada2809174bd7161fff910 Author: Karel Zak Date: Wed Jan 18 11:39:05 2012 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) commit 3406942ed2aec845ccb78f8c00958a35353a5717 Author: Karel Zak Date: Wed Jan 18 11:31:55 2012 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 7649 +++++++++++++++++++++++++------------------ po/cs.po | 8663 +++++++++++++++++++++++++++++-------------------- po/da.po | 8086 +++++++++++++++++++++++++++------------------- po/de.po | 7668 ++++++++++++++++++++++++++------------------ po/es.po | 7654 +++++++++++++++++++++++++------------------ po/et.po | 7014 +++++++++++++++++++++++----------------- po/eu.po | 6876 +++++++++++++++++++++++----------------- po/fi.po | 7647 +++++++++++++++++++++++++------------------ po/fr.po | 9354 ++++++++++++++++++++++++++++++++--------------------- po/gl.po | 6541 +++++++++++++++++++++---------------- po/hu.po | 7694 ++++++++++++++++++++++++++------------------ po/id.po | 7979 ++++++++++++++++++++++++++------------------- po/it.po | 7417 +++++++++++++++++++++++++----------------- po/ja.po | 8243 ++++++++++++++++++++++++++++------------------- po/nl.po | 7943 ++++++++++++++++++++++++++------------------- po/pl.po | 8176 +++++++++++++++++++++++++++------------------- po/pt_BR.po | 7472 +++++++++++++++++++++++++------------------ po/ru.po | 7683 ++++++++++++++++++++++++++------------------ po/sl.po | 7351 +++++++++++++++++++++++++----------------- po/sv.po | 7659 +++++++++++++++++++++++++------------------ po/tr.po | 7386 +++++++++++++++++++++++++----------------- po/uk.po | 7389 +++++++++++++++++++++++++----------------- po/util-linux.pot | 5990 +++++++++++++++++++--------------- po/vi.po | 8022 +++++++++++++++++++++++++++------------------- po/zh_CN.po | 6568 +++++++++++++++++++++---------------- po/zh_TW.po | 7934 ++++++++++++++++++++++++++------------------- 26 files changed, 116215 insertions(+), 81843 deletions(-) commit 598fcedac48731e927de6d6ea1e3b8f0efa2856b Author: Takeshi Hamasaki Date: Wed Jan 18 11:26:08 2012 +0100 po: update ja.po (from translationproject.org) po/ja.po | 900 ++++++++++++++++++++++---------------------------------------- 1 files changed, 315 insertions(+), 585 deletions(-) commit 82acaf5c8745e02c100bb39dad59e24d7cc30aae Author: David Prévot Date: Wed Jan 18 11:25:50 2012 +0100 po: update fr.po (from translationproject.org) po/fr.po | 4844 +++++++++++++++++++++++++++++--------------------------------- 1 files changed, 2258 insertions(+), 2586 deletions(-) commit 65c80fc5d3bd25560c67530401cd73213aa41c29 Author: Petr Pisar Date: Wed Jan 18 11:25:50 2012 +0100 po: update cs.po (from translationproject.org) po/cs.po | 1069 ++++++++++++++++++++++---------------------------------------- 1 files changed, 371 insertions(+), 698 deletions(-) commit 43608256ca2a6d5568287c5207c73c67f788cb95 Author: Karel Zak Date: Tue Jan 17 17:32:32 2012 +0100 build-sys: add sleepexit from login.c to smatch non-return functions Signed-off-by: Karel Zak tools/smatch-data/no_return_funcs | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit c9c1304d1dfca17bd801c05414b3d25ce805f609 Author: Karel Zak Date: Tue Jan 17 17:29:55 2012 +0100 hwclock: remove non-ANSI function declaration [smatch scan] Signed-off-by: Karel Zak hwclock/kd.c | 2 +- hwclock/rtc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 3d4820f4d1cac4dc87b9d9e197d8f889c1997376 Author: Karel Zak Date: Tue Jan 17 17:28:46 2012 +0100 fsck: make fs->type usage more robust [smatch scan] Signed-off-by: Karel Zak fsck/fsck.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) commit 16bd8025616743dd4287bca057428d6432560f90 Author: Karel Zak Date: Tue Jan 17 17:23:01 2012 +0100 blockdev: remove non-ANSI function declaration [smatch scan] Signed-off-by: Karel Zak disk-utils/blockdev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0208ae2e0c9f212914f4400078918a6c5df2e2d4 Author: Karel Zak Date: Tue Jan 17 17:16:57 2012 +0100 libmount: fix bugs detected by [smatch scan] Signed-off-by: Karel Zak libmount/src/context_mount.c | 2 +- libmount/src/utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 5aa74dc747447fd64755cea6492449b472bcda1a Author: Karel Zak Date: Tue Jan 17 17:13:16 2012 +0100 build-sys: use $(MAKE) for checksmatch Signed-off-by: Karel Zak config/include-Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit aa1f95c3d0e729a37bfb4a9befb1904e81e46ea5 Author: Karel Zak Date: Tue Jan 17 17:02:34 2012 +0100 losetup: make xgetpass more robust Signed-off-by: Karel Zak include/c.h | 1 + lib/xgetpass.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) commit 8cfd1ffb7aecd14d15a27eac78e006370a3d2e37 Author: Karel Zak Date: Tue Jan 17 16:50:17 2012 +0100 dmesg: fix non-ANSI function declaration [smatch scan] Signed-off-by: Karel Zak sys-utils/dmesg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 6e0e1394c4994fded3a34e1b56ec928c22049e0a Author: Karel Zak Date: Tue Jan 17 16:45:58 2012 +0100 line: fix compiler warnings [-Wunused-parameter] Signed-off-by: Karel Zak text-utils/line.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7d5fb52be30b11d3d109662800b26db6a1509045 Author: Karel Zak Date: Tue Jan 17 16:43:45 2012 +0100 mount: fix __attribute__ keyword Signed-off-by: Karel Zak mount/fstab.c | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) commit 56dec8b7f40f532e371d7f4cc5ab0cff450c45f2 Author: Karel Zak Date: Tue Jan 17 16:40:37 2012 +0100 mount: fix compiler warnings [-Wunused-parameter -Wunused-variable] Signed-off-by: Karel Zak sys-utils/mount.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit a3b421dfacc0c0ce76f4a917da6f3af5a5d9d694 Author: Karel Zak Date: Tue Jan 17 16:36:55 2012 +0100 losetup: fix compiler warnings [-Wpointer-sign -Wformat] Signed-off-by: Karel Zak sys-utils/losetup.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit b2ddfb59c13056dcc51fde56b2628c8c37b21431 Author: Karel Zak Date: Tue Jan 17 16:33:19 2012 +0100 libmount: fix compiler warnings [-Wuninitialized -Wformat] Signed-off-by: Karel Zak libmount/src/context_loopdev.c | 2 +- libmount/src/tab.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 94283c9a771692c3722e3b89abb3ad0882c45029 Author: Karel Zak Date: Tue Jan 17 16:31:45 2012 +0100 libmount: fix compiler warnings [-Wsign-compare] Signed-off-by: Karel Zak libmount/src/optstr.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 64f29158433a5b9c3bdf0945b8e582d2dc82a2d2 Author: Karel Zak Date: Tue Jan 17 16:27:06 2012 +0100 sfdisk: fix poor coding style Signed-off-by: Karel Zak fdisk/sfdisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit baec3e49139ccfb92ed54bc6177bb2f0219a1c1f Author: Karel Zak Date: Tue Jan 17 16:26:08 2012 +0100 fdisk: fix poor coding style Signed-off-by: Karel Zak fdisk/fdisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 01663a53f18fb3a08370bb66eac4834cc4010c5b Author: Karel Zak Date: Tue Jan 17 16:22:11 2012 +0100 mount: remove duplicate includes Signed-off-by: Karel Zak sys-utils/mount.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit a13e99840dde232002d31af9af8dd4ffb34f4935 Author: Karel Zak Date: Tue Jan 17 16:21:56 2012 +0100 lib,loopdev: remove duplicate includes Signed-off-by: Karel Zak lib/loopdev.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 3fb184d20b2b4354c9e9deb5c1c336851e904638 Author: Karel Zak Date: Tue Jan 17 16:21:33 2012 +0100 sfdisk: remove duplicate includes Signed-off-by: Karel Zak fdisk/sfdisk.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit c1f3576e0acddd058552847f0b6665ad8b643a41 Author: Karel Zak Date: Tue Jan 17 16:12:04 2012 +0100 libmount: ignore "defaults" mount option ... thanks to regression test! Signed-off-by: Karel Zak libmount/src/optstr.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit b69719b6249004895716908e01c12bbbe57a63ed Author: Karel Zak Date: Tue Jan 17 15:48:20 2012 +0100 sfdisk: add note about alignment to the man page Signed-off-by: Karel Zak fdisk/sfdisk.8 | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 096ff740a827d55499f5aa3f420237452e3a2a18 Author: Karel Zak Date: Tue Jan 17 15:48:14 2012 +0100 cfdisk: add note about alignment to the man page Signed-off-by: Karel Zak fdisk/cfdisk.8 | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 9206b23863b83602af65df6e3b36c16ef82777c0 Author: Karel Zak Date: Tue Jan 17 15:35:10 2012 +0100 test: refresh build-sys tests Signed-off-by: Karel Zak disk-utils/mkswap.c | 3 +- tests/expected/build-sys/config-all | 7 +- tests/expected/build-sys/config-all-non-nls | 7 +- tests/expected/build-sys/config-audit | 5 +- tests/expected/build-sys/config-core | 5 +- tests/expected/build-sys/config-devel | 7 +- tests/expected/build-sys/config-devel-new-mount | 125 +++++++++++++++++++++++ tests/expected/build-sys/config-non-libblkid | 1 + tests/expected/build-sys/config-non-libmount | 4 +- tests/expected/build-sys/config-non-libs | 1 + tests/expected/build-sys/config-non-libuuid | 5 +- tests/expected/build-sys/config-non-nls | 5 +- tests/expected/build-sys/config-selinux | 5 +- tests/expected/build-sys/config-slang | 5 +- tests/expected/build-sys/config-static | 7 +- tests/ts/build-sys/config | 4 +- 16 files changed, 157 insertions(+), 39 deletions(-) commit aa397ce5e8dfc8cd0bd7d8f0dff95370764fb3f6 Author: Dave Reisner Date: Mon Jan 16 20:17:55 2012 -0500 mount: avoid canonicalizing pseudofs paths This fixes a display bug in the new mount wherein a psuedofs existing in $PWD by name will be resolved and shown as a real mount point. $ cd /tmp; mkdir nfsd; mount | grep nfsd /tmp/nfsd on /proc/fs/nfsd type nfsd (rw,relatime) Signed-off-by: Dave Reisner sys-utils/mount.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) commit 0c381880282b9365aaf9e8457c69750c12c4d9b2 Author: Francesco Cosoleto Date: Mon Jan 16 06:36:13 2012 +0100 fdisk: fix last sector dialog bug after an incorrect input with suffix If user input in a last sector dialog was out of range and with suffix, and if this was followed by accepting the default value, then the used last sector was erroneously default - 1. Reported-by: Gerardo Exequiel Pozzi Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) commit 2c911261ff9bd265cd5dbfea50883584f3e69265 Author: Francesco Cosoleto Date: Mon Jan 16 06:36:12 2012 +0100 fdisk: rename read_int_sx() and some related variables Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 42 +++++++++++++++++++++--------------------- 1 files changed, 21 insertions(+), 21 deletions(-) commit 374fd21addc8519de832bb78b9bf6a6675a477a7 Author: Karel Zak Date: Mon Jan 16 14:35:10 2012 +0100 libmount: add MNT_OMODE_NOTAB Signed-off-by: Karel Zak libmount/src/context.c | 44 ++++++++++++++++++++++++++++++++++++-------- libmount/src/libmount.h.in | 5 ++++- sys-utils/mount.c | 11 ++++++++++- 3 files changed, 50 insertions(+), 10 deletions(-) commit 38a8d69e2992c1b46b9425a937525bf359b40cb1 Author: Karel Zak Date: Mon Jan 16 13:22:28 2012 +0100 lsblk: add UUID to --fs output Signed-off-by: Karel Zak misc-utils/lsblk.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 98b1302ecf8a901dcd3ffa0fe3e4c86f868ff729 Author: Karel Zak Date: Mon Jan 16 13:15:01 2012 +0100 libmount: cleanup post-umount operations Signed-off-by: Karel Zak libmount/src/context_umount.c | 62 ++++++++++++++++++++--------------------- 1 files changed, 30 insertions(+), 32 deletions(-) commit 07a67e6805aa92d98371ea6badaa2f879125358d Author: Karel Zak Date: Mon Jan 16 12:29:27 2012 +0100 libmount: fix MS_BIND|MS_REC usage, improve some bitwise operations Signed-off-by: Karel Zak libmount/src/context_umount.c | 6 +++--- libmount/src/optstr.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) commit f9906424d4be8cc274f4eab1a2264f264ec0ebe0 Author: Karel Zak Date: Mon Jan 16 12:09:36 2012 +0100 libmount: add post-mount checks to detect ro/rw Signed-off-by: Karel Zak libmount/src/context_loopdev.c | 3 +-- libmount/src/context_mount.c | 40 ++++++++++++++++++++++++++++++++++------ libmount/src/mountP.h | 2 ++ libmount/src/utils.c | 35 +++++++++++++++++++++++++++++++++++ 4 files changed, 72 insertions(+), 8 deletions(-) commit 8b470b20d70eaf2daa84975af13130433c79d1f8 Author: Karel Zak Date: Mon Jan 16 11:28:05 2012 +0100 libmount: avoid duplicate loopdevs Signed-off-by: Karel Zak lib/loopdev.c | 5 ++- libmount/src/context_loopdev.c | 67 ++++++++++++++++++++++++++++++++++++++++ sys-utils/mount.c | 8 +++- 3 files changed, 77 insertions(+), 3 deletions(-) commit ce43340461db49e0b6cbd9d3cbdbf38b6d85f220 Author: Karel Zak Date: Fri Jan 13 16:29:21 2012 +0100 mount: (new) print error messages Signed-off-by: Karel Zak sys-utils/mount.c | 280 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 274 insertions(+), 6 deletions(-) commit dc4dbbf188be91da4b13b29e04ae94f2f831e4ab Author: Karel Zak Date: Fri Jan 13 16:27:50 2012 +0100 libmount: allow to toggle ro/rw and mount again Signed-off-by: Karel Zak libmount/src/context.c | 11 +++++++++++ libmount/src/context_mount.c | 4 +++- libmount/src/mountP.h | 1 + libmount/src/optstr.c | 3 ++- 4 files changed, 17 insertions(+), 2 deletions(-) commit be3df3838a0c95ae0f7c56ee41e4bb03a97a856d Author: Karel Zak Date: Fri Jan 13 14:37:09 2012 +0100 libmount: allow to use UUID and LABEL for owner/group mount options in fstab Signed-off-by: Karel Zak libmount/src/context.c | 8 +++++++- libmount/src/context_mount.c | 24 +++++++++++++++++++----- 2 files changed, 26 insertions(+), 6 deletions(-) commit 8ab6accf014b1ba9f7437a78463dbed35f08cceb Author: Karel Zak Date: Fri Jan 13 13:01:18 2012 +0100 libmount: add functions to export syscall/helpers status Signed-off-by: Karel Zak libmount/src/context.c | 94 +++++++++++++++++++++++++++++++++++++---- libmount/src/context_mount.c | 12 +++++ libmount/src/libmount.h.in | 9 ++++ libmount/src/libmount.sym | 5 ++ 4 files changed, 110 insertions(+), 10 deletions(-) commit cfd693adddcd770d4717524f2701a24032a7d6cd Author: Karel Zak Date: Thu Jan 12 21:51:29 2012 +0100 tests: fix mount/special to be compatible with libmount Signed-off-by: Karel Zak tests/expected/mount/special | 18 +----------------- tests/ts/mount/special | 2 +- 2 files changed, 2 insertions(+), 18 deletions(-) commit c851223602539385e8824f905ea18f49d9b0efa5 Author: Karel Zak Date: Thu Jan 12 21:51:00 2012 +0100 libmount: fix auto-loopdev Signed-off-by: Karel Zak libmount/src/context_loopdev.c | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) commit a10d6ad6f4c3f8ed5ae581c69ae72e0fc2b1fd4f Author: Karel Zak Date: Thu Jan 12 21:30:58 2012 +0100 libmount: support umount /path/file.img Signed-off-by: Karel Zak libmount/src/context.c | 2 +- libmount/src/context_umount.c | 55 +++++++++++++++++++++++++++++++--------- 2 files changed, 43 insertions(+), 14 deletions(-) commit 25331447462324f533e29466e2554236e246077c Author: Karel Zak Date: Thu Jan 12 20:37:21 2012 +0100 tests: add exceptions for libmount Signed-off-by: Karel Zak tests/ts/mount/fstab-broken | 1 - tests/ts/mount/noncanonical | 3 +++ tests/ts/mount/paths | 3 +++ tests/ts/mount/regfile | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) commit 1e8c936978f5467a50732a072084337653820bba Author: Karel Zak Date: Thu Jan 12 16:52:32 2012 +0100 libmount: make options in fstab optional .. to be compatible with old mount(8). Signed-off-by: Karel Zak libmount/src/tab_parse.c | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) commit c63d6f24f38327034e2212e40855b9f902af4808 Author: Karel Zak Date: Thu Jan 12 11:35:10 2012 +0100 tests: update tests with fdisk output Signed-off-by: Karel Zak tests/expected/blkid/md-raid0-whole | 6 +++--- tests/expected/blkid/md-raid1-part | 6 +++--- tests/expected/blkid/md-raid1-whole | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) commit 8f966782b461680937c74738d9134ac559097353 Author: Karel Zak Date: Thu Jan 12 11:31:54 2012 +0100 tests: remove unssuported losetup -s Signed-off-by: Karel Zak tests/ts/cramfs/mkfs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 35e6fe5c7ac5352511f9564dd9d3a337f805f9d3 Author: Karel Zak Date: Thu Jan 12 11:28:42 2012 +0100 tests: remove unexpected set -x Signed-off-by: Karel Zak tests/ts/cramfs/doubles | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit fcaa1ffb77bbd9ceede9ac5c5c5295903e73a061 Author: Karel Zak Date: Thu Jan 12 11:15:53 2012 +0100 tests: cleanup paths Signed-off-by: Karel Zak tests/commands.sh.in | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) commit 9c79d48bd6354205b2759bc72c7d85015184fc70 Author: Karel Zak Date: Wed Jan 11 17:54:04 2012 +0100 build-sys: suport static build for new [u]mount Signed-off-by: Karel Zak sys-utils/Makefile.am | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) commit ecdba5ddfc99815181db1e5d571ea8e2b806c0f9 Author: Karel Zak Date: Wed Jan 11 17:05:08 2012 +0100 build-sys: add --enable-new-mount Now we have three versions of the mount(8) utility * old mount(8) --enable-mount [default] * old mount(8) linked with libmount This is this is necessary for systems without mtab file. --enable-libmount-mount - new mount(8) This is completely new pure-libmount based mount(8). --enable-new-mount Signed-off-by: Karel Zak configure.ac | 15 +- libmount/Makefile.am | 2 +- libmount/samples/.gitignore | 2 - libmount/samples/Makefile.am | 14 - libmount/samples/mount.c | 543 ------------------------------- libmount/samples/umount.c | 286 ---------------- sys-utils/.gitignore | 2 + sys-utils/Makefile.am | 29 ++ sys-utils/mount.c | 543 +++++++++++++++++++++++++++++++ sys-utils/umount.c | 286 ++++++++++++++++ tools/config-gen.d/devel-new-mount.conf | 8 + 11 files changed, 882 insertions(+), 848 deletions(-) commit dbae36fe40f60065d2cfa2843060edd356e2e57a Author: Karel Zak Date: Wed Jan 11 16:17:06 2012 +0100 libmount: add --pass-fd to samples/mount Signed-off-by: Karel Zak libmount/samples/Makefile.am | 6 ++++- libmount/samples/mount.c | 44 ++++++++++++++++++++++++++++++++++++++--- 2 files changed, 45 insertions(+), 5 deletions(-) commit 1a7a421ed74bc8502cdd9d1de46bc78c62b71b7d Author: Karel Zak Date: Wed Jan 11 16:16:00 2012 +0100 libmount: add support for encrypted loopdevs Signed-off-by: Karel Zak libmount/src/context.c | 20 ++++++++++++++++++++ libmount/src/context_loopdev.c | 26 ++++++++++++++++++++++++-- libmount/src/libmount.h.in | 5 +++++ libmount/src/libmount.sym | 1 + libmount/src/mountP.h | 3 +++ libmount/src/optmap.c | 1 + 6 files changed, 54 insertions(+), 2 deletions(-) commit 6af8d3d7225efc3d8595f472d73beb0ba3c257b6 Author: Karel Zak Date: Wed Jan 11 15:45:36 2012 +0100 losetup: add note about non-root users to losetup.8 Signed-off-by: Karel Zak sys-utils/losetup.8 | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 6c503d5916efe6549bb8428931547735c2c54fa4 Author: Karel Zak Date: Wed Jan 11 15:17:06 2012 +0100 losetup: move xgetpass() to lib/xgetpass.c Signed-off-by: Karel Zak include/Makefile.am | 1 + include/xgetpass.h | 6 ++++++ lib/xgetpass.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ sys-utils/Makefile.am | 1 + sys-utils/losetup.c | 40 +--------------------------------------- 5 files changed, 55 insertions(+), 39 deletions(-) commit 143635c91f784a91d8a0efca1b2369448240f141 Author: Karel Zak Date: Wed Jan 11 12:14:29 2012 +0100 build-sys: move swapon from mount/ to sys-utils/ ... to make it independent on mount stuff. Signed-off-by: Karel Zak configure.ac | 6 + mount/.gitignore | 1 - mount/Makefile.am | 10 +- mount/swapoff.8 | 1 - mount/swapon.8 | 220 ------------- mount/swapon.c | 877 ------------------------------------------------- sys-utils/.gitignore | 1 + sys-utils/Makefile.am | 26 ++- sys-utils/swapoff.8 | 1 + sys-utils/swapon.8 | 220 +++++++++++++ sys-utils/swapon.c | 877 +++++++++++++++++++++++++++++++++++++++++++++++++ 11 files changed, 1130 insertions(+), 1110 deletions(-) commit 9514a612463051982f3b85618285dacdd78cd220 Author: Karel Zak Date: Wed Jan 11 11:43:42 2012 +0100 swapon: merge swap_constants.h into swapon.c Signed-off-by: Karel Zak mount/swap_constants.h | 15 --------------- mount/swapon.c | 13 ++++++++++++- 2 files changed, 12 insertions(+), 16 deletions(-) commit 0b359bcdfd1ff67b61f2fb83195bfd8861fcaea3 Author: Karel Zak Date: Tue Jan 10 16:48:37 2012 +0100 docs: add info about virt-what to TODO Signed-off-by: Karel Zak Documentation/TODO | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 3142564b244b3163446d59f83390f73cea85097b Author: Karel Zak Date: Tue Jan 10 15:43:56 2012 +0100 mount: add hint that context= has to be quoted Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=747038 Signed-off-by: Karel Zak mount/mount.8 | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) commit c6238085a12baa45d7270e73a181c20b81586bee Author: Karel Zak Date: Tue Jan 10 14:01:17 2012 +0100 mount: update info about check= mount option Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=770172 Signed-off-by: Karel Zak mount/mount.8 | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 916bf85e621bb01d58279a014088376c80050a74 Author: Karel Zak Date: Mon Jan 9 23:27:53 2012 +0100 losetup: add --partscan option Signed-off-by: Karel Zak include/loopdev.h | 3 ++- sys-utils/losetup.8 | 4 +++- sys-utils/losetup.c | 7 ++++++- 3 files changed, 11 insertions(+), 3 deletions(-) commit d356c5d238a40c45968550bfb7714297dd0e4461 Author: Karel Zak Date: Mon Jan 9 23:22:04 2012 +0100 loopdev: improve debug messages Signed-off-by: Karel Zak lib/loopdev.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) commit 59d749c33136b85fc4a51a0af6c48cc97e3d1b31 Author: Karel Zak Date: Tue Nov 15 12:35:23 2011 +0100 loopdev: support LO_FLAGS_PARTSCAN flag (kernel 3.2) Signed-off-by: Karel Zak include/loopdev.h | 3 ++ lib/loopdev.c | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++- partx/partx.c | 28 +++++----------------- 3 files changed, 72 insertions(+), 23 deletions(-) commit 4e4a25c0dde10eebcb7f7618d0ab4ccedeff3273 Author: Davidlohr Bueso Date: Thu Jan 5 00:02:11 2012 +0100 sfdisk: use is_blkdev Signed-off-by: Davidlohr Bueso fdisk/sfdisk.c | 13 +++---------- 1 files changed, 3 insertions(+), 10 deletions(-) commit f61a097becef0f71fb0dc3156c8c8e46b49b4834 Author: Wanlong Gao Date: Tue Dec 27 22:09:19 2011 +0800 blockdev: make functions static make the functions in blockdev to statics. Signed-off-by: Wanlong Gao disk-utils/blockdev.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) commit 756d79cd63d78650fa03662c3dfe5b8bd3eaa393 Author: Davidlohr Bueso Date: Wed Jan 4 23:28:59 2012 +0100 lscpu: fix compiler warnings The string format is not being passed triggering: lscpu.c: In function ‘read_hypervisor’: lscpu.c:545:4: warning: format not a string literal and no format arguments lscpu.c: In function ‘get_cell_header’: lscpu.c:904:2: warning: format not a string literal and no format arguments lscpu.c:904:2: warning: format not a string literal and no format arguments Signed-off-by: Davidlohr Bueso sys-utils/lscpu.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 8150beac7ced4e35fef7a8db71caee72d455f180 Author: Davidlohr Bueso Date: Thu Jan 5 00:02:06 2012 +0100 blkdev: add is_blkdev function We should have the most basic of checks in this library to see whether or not a block device is being used. Signed-off-by: Davidlohr Bueso include/blkdev.h | 3 +++ lib/blkdev.c | 6 ++++++ 2 files changed, 9 insertions(+), 0 deletions(-) commit 67aa2fc7950812093f710cba0585e0fab71dc84e Author: Karel Zak Date: Thu Jan 5 17:01:19 2012 +0100 fdisk: remove PACKED macro Signed-off-by: Karel Zak fdisk/fdisk.h | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) commit 9df2ac603e8c6bbd0aac389510813811abc4e54f Author: Karel Zak Date: Thu Jan 5 16:58:56 2012 +0100 sfdisk: remove PACKED macro Signed-off-by: Karel Zak fdisk/sfdisk.c | 20 +++----------------- 1 files changed, 3 insertions(+), 17 deletions(-) commit 66d28be8112b59a0c2edbbe6ac52b15e84983beb Author: Davidlohr Bueso Date: Tue Dec 20 14:42:03 2011 +0100 sfdisk: remove do_warn Replace it with warnx() instead. Signed-off-by: Davidlohr Bueso fdisk/sfdisk.c | 83 ++++++++++++++++++++++++------------------------------- 1 files changed, 36 insertions(+), 47 deletions(-) commit 109dbc4f84dac59098b461f1ac55d74c2d8b7eea Author: Davidlohr Bueso Date: Tue Dec 20 14:42:00 2011 +0100 sfdisk: remove fatal Since fatal() exists with a standard 1 code, it can easily be replaced by errx(3). The xalloc lib is also introduced in this patch. [kzak@redhat,com: - fix coding style] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak fdisk/sfdisk.c | 65 ++++++++++++++++++++++--------------------------------- 1 files changed, 26 insertions(+), 39 deletions(-) commit 5be926fac1c6a0931285b3c2a8e1c6dc532a569b Author: Karel Zak Date: Wed Jan 4 14:29:26 2012 +0100 column: don't check result from xmalloc() Signed-off-by: Karel Zak text-utils/column.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit d05a3e971366923d3d9ce65e1afb373188b06b10 Author: Karel Zak Date: Wed Jan 4 14:25:21 2012 +0100 build-sys: add checkxalloc to toplevel Makefile Signed-off-by: Karel Zak Makefile.am | 2 ++ tools/checkxalloc.sh | 10 ++++++++++ 2 files changed, 12 insertions(+), 0 deletions(-) commit cce4d25aedaaf55c8233e3537e1dbc494fd5626a Author: Dave Reisner Date: Tue Dec 20 08:36:02 2011 -0500 column: use xalloc libs Signed-off-by: Dave Reisner text-utils/column.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 8290a2495299f06b3a8fc2f2761c81df695d647b Author: Dave Reisner Date: Tue Dec 20 08:36:03 2011 -0500 lscpu: use xalloc libs Signed-off-by: Dave Reisner sys-utils/lscpu.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit e1e7be22eec27b358d269f203e8ebcc05a761f31 Author: Dave Reisner Date: Tue Dec 20 08:36:04 2011 -0500 tools: add new code checking script Finds usage of strdup, malloc, calloc, and realloc when xalloc.h is included. http://marc.info/?l=util-linux-ng&m=132438338929925&w=2 Signed-off-by: Dave Reisner tools/checkxalloc.sh | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) commit b631e4d801f3a4e94b83b9866ba3356012ca1ab4 Author: s.p@orbitalfox.com Date: Fri Dec 16 12:19:56 2011 +0000 libmount: fixed a small typo libmount/src/tab.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0c48d37192c5a851df9667c3faf75b644c509e98 Author: Francesco Cosoleto Date: Thu Dec 22 15:53:25 2011 +0100 fdisk: fix incorrect position of is_ide_cdrom_or_tape() call Reported-by: Guillem Jover Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit b928ab01e04ac2b7b93c83d0cdf2e0e2b51f050c Author: Dave Reisner Date: Mon Jan 2 09:49:42 2012 -0500 libmount: fix typo in function name Build broken in c70d9d7. Signed-off-by: Dave Reisner libmount/src/fs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit c70d9d768bbe291ad29f29200340d1f4d8bbf30f Author: Karel Zak Date: Mon Jan 2 15:00:27 2012 +0100 libmount: consolidate MNT_FS_* code Signed-off-by: Karel Zak libmount/src/context.c | 8 +++--- libmount/src/context_loopdev.c | 4 +-- libmount/src/context_mount.c | 6 ++-- libmount/src/context_umount.c | 2 +- libmount/src/fs.c | 46 ++++++++++++++++++++++++++++++--------- libmount/src/libmount.h.in | 3 ++ libmount/src/libmount.sym | 3 ++ libmount/src/mountP.h | 6 ++-- libmount/src/tab.c | 8 +++--- 9 files changed, 57 insertions(+), 29 deletions(-) commit 46c59b51196d4e3f4fe3e4418f6f33d2f0d485d8 Author: Dave Reisner Date: Mon Dec 26 18:47:24 2011 -0500 mount: don't canonicalize the source of a pseudofs In line with previous patches, the source of a pseudofs is strictly semantic; do not attempt to resolve it to a filesystem path. As a side effect of this, nspec needs to be initialized to NULL since it may not be assigned null by spec_to_devname when the FS is deemed a pseudofs. Signed-off-by: Dave Reisner mount/mount.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit ee83edede1f80666806002248e89168ee41a6cc0 Author: Dave Reisner Date: Mon Dec 26 17:10:23 2011 -0500 libmount: avoid resolving pseudofs source on update Similar to the previous commit, when mounting a pseudofs, trust the source of the fs, as it cannot be matched to backing device on the filesystem. Similar situation, but slightly different bug: # mkdir /foo /root/foo # echo 'foo /foo tmpfs defaults 0 0' >> /etc/fstab # cd /root # mount -a # mount | grep /foo /root/foo on /foo type tmpfs (rw,relatime) This fixes the pure libmount based mount utility, but the legacy mount tool will still fail to handle this properly. Signed-off-by: Dave Reisner Signed-off-by: Karel Zak libmount/src/context.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 16b8db49fee91417aad09aaa98edd3acd9e70754 Author: Karel Zak Date: Mon Jan 2 14:16:15 2012 +0100 libmount; fix possible mem-leak Signed-off-by: Karel Zak libmount/src/fs.c | 6 ++++-- libmount/src/tab.c | 23 ++++++++++++++++------- 2 files changed, 20 insertions(+), 9 deletions(-) commit 14f66ad69a02ce5c39a92f1b27384f63507934a4 Author: Dave Reisner Date: Mon Dec 26 17:10:22 2011 -0500 libmount: always trust the source of a pseudofs Since nodev FSs have no backing block device, it's unreasonable to try and resolve the source back to a path on the filesystem. Always trust the source of the FS given in /etc/fstab to avoid remounting the device when a directory of the same name exists in the current working directory. Example reproduction: # mkdir /foo # echo 'foo /foo tmpfs defaults 0 0' >> /etc/fstab # mount -a # cd /root; mkdir foo # mount -a # mount | grep /foo foo on /foo type tmpfs (rw,relatime) /root/foo on /foo type tmpfs (rw,relatime) [kzak@redhat.com: - use fs->flags to detect pseudo FS] Signed-off-by: Dave Reisner Signed-off-by: Karel Zak libmount/src/tab.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 3b622ddd72a783f9b532f1e363093978fe4d340a Author: Davidlohr Bueso Date: Tue Dec 20 14:42:10 2011 +0100 fdisk: use CDROM_GET_CAPABILITY ioctl And replace the current archaic logic of is_ide_cdrom_or_tape(). Signed-off-by: Davidlohr Bueso fdisk/fdisk.c | 35 +++++++---------------------------- fdisk/sfdisk.c | 37 +++++++++---------------------------- include/blkdev.h | 9 +++++++++ lib/blkdev.c | 13 +++++++++++++ 4 files changed, 38 insertions(+), 56 deletions(-) commit a4c0cc75ff9744299f108c259efab1bd30c8007a Author: Karel Zak Date: Mon Jan 2 11:08:17 2012 +0100 mount: append inverting options for mount. fstab: server://foo /mnt/foo nfs user,exec The mount(8) does not append the option "exec" to /sbin/mount. helper's command line. This is no problem when executed by non-root user as it reads the options from fstab only. .. but when executed by root (UID=0) then the mount. helper follows the command where the "exec" option is missing. This is bug. original version (strace output): execve("/sbin/mount.nfs", ["/sbin/mount.nfs", "sr.net.home:/mnt/store", "/mnt/store", "-o", "rw,nosuid,nodev,noauto,user"], [/* 21 vars */]) = 0 fixed version: execve("/sbin/mount.nfs", ["/sbin/mount.nfs", "sr.net.home:/mnt/store", "/mnt/store", "-o", "rw,nosuid,nodev,noauto,user,exec"], [/* 21 vars */]) = 0 ^^^^^ Signed-off-by: Karel Zak mount/mount.c | 31 ++++++++++++++++++++++++------- 1 files changed, 24 insertions(+), 7 deletions(-) commit 3ed8b5363d527a612e3180e96785e7604beb0282 Author: Karel Zak Date: Thu Dec 22 13:21:16 2011 +0100 lib,tt: don't trim last line char Signed-off-by: Karel Zak lib/tt.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 934df30dd0af1a0cc01dab690aca566bfc5f0e7a Author: Karel Zak Date: Thu Dec 22 12:18:43 2011 +0100 losetup: cleanup headers, cmdline checks Signed-off-by: Karel Zak sys-utils/losetup.c | 15 ++++----------- 1 files changed, 4 insertions(+), 11 deletions(-) commit 23b85230e7bf53881b265ef8bf03ec05ac5cefd2 Author: Karel Zak Date: Thu Dec 22 12:08:37 2011 +0100 losetup: cleanup man page Signed-off-by: Karel Zak sys-utils/losetup.8 | 94 ++++++++++++++++++++------------------------------- 1 files changed, 37 insertions(+), 57 deletions(-) commit aadb930377d94b40a64477eb9e42578d3e46f1a7 Author: Karel Zak Date: Thu Dec 22 12:08:23 2011 +0100 losetup: cleanup usage() Signed-off-by: Karel Zak sys-utils/losetup.c | 77 ++++++++++++++++++++++++++++++-------------------- 1 files changed, 46 insertions(+), 31 deletions(-) commit 6da69b83a65bfdfd4171c58213ef20c549f7f7c8 Author: Karel Zak Date: Thu Dec 22 11:07:21 2011 +0100 losetup: check to control debug output Signed-off-by: Karel Zak sys-utils/losetup.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 09ec0c0a970d3542d818bb57e29bb76c489cc37c Author: Karel Zak Date: Thu Dec 22 11:02:58 2011 +0100 losetup: print info about one device Signed-off-by: Karel Zak sys-utils/losetup.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) commit c7e0925defe178ac31a524463a3488e4d72b6e4b Author: Karel Zak Date: Wed Dec 21 19:24:58 2011 +0100 losetup: rewrite loop setup Signed-off-by: Karel Zak include/loopdev.h | 2 + lib/loopdev.c | 8 + sys-utils/losetup.c | 927 ++++++--------------------------------------------- 3 files changed, 104 insertions(+), 833 deletions(-) commit bcdbdc72cb1a8817729902725071506e6f9b49c7 Author: Karel Zak Date: Wed Dec 21 15:38:59 2011 +0100 losetup: rewrite -f Signed-off-by: Karel Zak sys-utils/losetup.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit c654c4f0a3d4c0820800f2820693f05cb02a1789 Author: Karel Zak Date: Wed Dec 21 15:28:10 2011 +0100 losetup: rewrite -d and -D Signed-off-by: Karel Zak sys-utils/losetup.c | 129 ++++++++++++++++++++------------------------------- 1 files changed, 50 insertions(+), 79 deletions(-) commit 6e90a44c1e3a482a078e8656ad66b4e4b2ecd8d1 Author: Karel Zak Date: Wed Dec 21 15:02:47 2011 +0100 losetup: rewrite -c Signed-off-by: Karel Zak sys-utils/losetup.c | 67 ++++++++++++++++++++++----------------------------- 1 files changed, 29 insertions(+), 38 deletions(-) commit bc0ac075a99418928c8e80e34ddc7c8c966aff18 Author: Karel Zak Date: Wed Dec 21 14:44:53 2011 +0100 losetup: rewrite -j Signed-off-by: Karel Zak sys-utils/losetup.c | 97 +++++++++++++++++++-------------------------------- 1 files changed, 36 insertions(+), 61 deletions(-) commit 39fde1373d9f888b686fc8f780c05ba4091c70bd Author: Karel Zak Date: Tue Dec 20 20:43:09 2011 +0100 losetup: rewrite -a Signed-off-by: Karel Zak sys-utils/Makefile.am | 4 ++ sys-utils/losetup.c | 135 ++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 121 insertions(+), 18 deletions(-) commit 6c224de18bfa7c652e07685d0450e0984b27ee86 Author: Karel Zak Date: Tue Dec 20 18:25:04 2011 +0100 lib,loopdev: add missing functions - improve loop_info usage (don't call ioctl more than once) - add functions to get devno and inode of the backing file - add function for compare any file with backing file by devno + inode or by filename Signed-off-by: Karel Zak include/loopdev.h | 12 +++ lib/loopdev.c | 207 ++++++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 178 insertions(+), 41 deletions(-) commit 7eac65fcf630271c18d32a6f0dfa9089a20c66b0 Author: Karel Zak Date: Wed Dec 21 17:32:01 2011 +0100 libblkid; fix memory leak in blkid_probe_get_wholedisk_probe() Reported-by: Kay Sievers Signed-off-by: Karel Zak libblkid/src/probe.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 212db7f2af08572da42abf3220ccbefce9567f54 Author: Davidlohr Bueso Date: Tue Dec 20 12:58:16 2011 +0100 prlimit: use xalloc libs Signed-off-by: Davidlohr Bueso sys-utils/prlimit.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit bd6d0d039c311b4f31f1c2a1312ff414dfbd020a Author: Karel Zak Date: Tue Dec 20 13:07:54 2011 +0100 losetup: move to sys-utils directory Now losetup(8) is independent on mount/ stuff at all. Signed-off-by: Karel Zak configure.ac | 9 + mount/.gitignore | 1 - mount/Makefile.am | 15 +- mount/lomount.c | 1131 ------------------------------------------------- mount/losetup.8 | 188 -------- sys-utils/.gitignore | 1 + sys-utils/Makefile.am | 17 + sys-utils/losetup.8 | 188 ++++++++ sys-utils/losetup.c | 1131 +++++++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 1348 insertions(+), 1333 deletions(-) commit 0a719a7cf6f950253c9df3eba3daed2cd4a83fd6 Author: Karel Zak Date: Tue Dec 20 12:52:00 2011 +0100 losetup: remove mount-specific headers Signed-off-by: Karel Zak mount/Makefile.am | 7 ++++--- mount/lomount.c | 48 +++++++++++++++++++++++------------------------- 2 files changed, 27 insertions(+), 28 deletions(-) commit de4acb053ef72da421396a4d0c43898ce795f899 Author: Karel Zak Date: Tue Dec 20 12:36:02 2011 +0100 losetup: remove unnecessary header files Signed-off-by: Karel Zak mount/lomount.c | 10 +++++++--- mount/lomount.h | 20 -------------------- mount/loop.h | 54 ------------------------------------------------------ 3 files changed, 7 insertions(+), 77 deletions(-) commit 846985f74373799953f213fb22ed744bfb681313 Author: Karel Zak Date: Tue Dec 20 12:20:51 2011 +0100 losetup: remove 32-bit ioctls ... kernel 2.4 ?! Who cares? Signed-off-by: Karel Zak mount/lomount.c | 85 ++---------------------------------------------------- mount/loop.h | 15 ---------- 2 files changed, 4 insertions(+), 96 deletions(-) commit 6541e717d9ca4f58e2398a2c7132e5766e6def90 Author: Karel Zak Date: Tue Dec 20 12:13:06 2011 +0100 losetup: remove #ifdef LOOP_SET_FD nonsense It's build-system task to enable/disable utils according to accessible system features. Signed-off-by: Karel Zak mount/lomount.c | 52 ---------------------------------------------------- 1 files changed, 0 insertions(+), 52 deletions(-) commit 653290586f5d119caa77397ebd33dd0de9070b58 Author: Karel Zak Date: Tue Dec 20 11:41:24 2011 +0100 losetup: remove obsolete #ifdef MAIN Signed-off-by: Karel Zak mount/Makefile.am | 2 -- mount/lomount.c | 12 ++---------- 2 files changed, 2 insertions(+), 12 deletions(-) commit 937266598f21747d7bd84fdd332ee66c8452ba3e Author: Karel Zak Date: Mon Dec 19 22:51:38 2011 +0100 libmount: don't use "new" in header file Reported-by: ben Signed-off-by: Karel Zak libmount/src/libmount.h.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 6b310edc5aea8ac5e387da1a4bedfec392b5b077 Author: Francesco Cosoleto Date: Thu Dec 15 20:02:49 2011 +0100 tests: update fdisk tests Signed-off-by: Francesco Cosoleto tests/expected/fdisk/align-512-4K | 12 ++++++------ tests/expected/fdisk/align-512-4K-63 | 12 ++++++------ tests/expected/fdisk/align-512-4K-md | 24 ++++++++++++------------ tests/expected/fdisk/align-512-512 | 6 +++--- tests/expected/fdisk/align-512-512-topology | 6 +++--- tests/expected/fdisk/oddinput | 1 - 6 files changed, 30 insertions(+), 31 deletions(-) commit dae488050872e2ea90d461d19d6446477ea1d421 Author: Francesco Cosoleto Date: Thu Dec 15 20:02:48 2011 +0100 fdisk: improve some messages Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 2 +- fdisk/fdisksgilabel.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit 8db8295d824cd0c8cba9385e4635d6e311d69d3f Author: Francesco Cosoleto Date: Thu Dec 15 20:02:47 2011 +0100 fdisk: Fix bad invalid flag 0x00000 warning message This splits check_dos_label() and dos_init() off from get_boot() and gets rid of the invalid flag 0x00000 warning message due to a check for MBR signs in zeroized buffer: memset(MBRbuffer, 0, 512); if (what == create_empty_dos) goto got_dos_table; [...] got_dos_table: if (!valid_part_table_flag(MBRbuffer)) { [...] if (!valid_part_table_flag(pe->sectorbuffer)) fprintf(stderr, _("Warning: invalid flag 0x%04x of partition " [...] Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 161 +++++++++++++++++++++++++++------------------------------ fdisk/fdisk.h | 2 +- 2 files changed, 78 insertions(+), 85 deletions(-) commit 4a96a62a093b1f07164334a5523e5942077a87e7 Author: Francesco Cosoleto Date: Thu Dec 15 20:02:46 2011 +0100 fdisk: avoid an intermediate variable in command_prompt() Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) commit b152082db3f516a54ed4855f90aabd361a2e069e Author: Francesco Cosoleto Date: Thu Dec 15 20:02:45 2011 +0100 fdisk: don't use get_existing_partition() if disk label isn't dos Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 27 +++++++++------------------ 1 files changed, 9 insertions(+), 18 deletions(-) commit 058fdbba0f88e6d8353bf70cdbac2221d9614c6f Author: Francesco Cosoleto Date: Thu Dec 15 20:02:44 2011 +0100 fdisk: remove unused guess_device_type() function Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 1 - fdisk/fdisksunlabel.c | 38 -------------------------------------- fdisk/fdisksunlabel.h | 1 - 3 files changed, 0 insertions(+), 40 deletions(-) commit ad30333e1d44119a366ae9db368a94d26557f2c8 Author: Francesco Cosoleto Date: Thu Dec 15 20:02:43 2011 +0100 fdisk: get rid of get_boot(create_empty_sun) call create_sunlabel() should create a new empty SUN disklabel without checking data itself writes to memory and initialize internal related fdisk variables. Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 7 ++----- fdisk/fdisk.h | 3 +-- fdisk/fdisksunlabel.c | 17 +++++++++++------ 3 files changed, 14 insertions(+), 13 deletions(-) commit 97a2f1b8bac177eb7ccfb21d3f6be9c654fba0c8 Author: Francesco Cosoleto Date: Thu Dec 15 20:02:42 2011 +0100 fdisk: get rid of type_open global variable Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 11 +++-------- 1 files changed, 3 insertions(+), 8 deletions(-) commit ea4824f1ad7940bb950d55ba50ae5bee916a888d Author: Francesco Cosoleto Date: Thu Dec 15 20:02:41 2011 +0100 fdisk: rename try() and tryprocpt() functions Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) commit e27b42d56fba1d107bfac019fde5e6740c6d69da Author: Francesco Cosoleto Date: Thu Dec 15 20:02:40 2011 +0100 fdisk: drop one parameter from try() function Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) commit 883c5f715833b32137eac78f63b3517e9d1bda17 Author: Francesco Cosoleto Date: Thu Dec 15 20:02:39 2011 +0100 fdisk: move code for renaming SGI bootfile to SGI module This moves the code for renaming SGI bootfile from command_prompt() to sgi_set_bootfilename() function. Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 12 +++--------- fdisk/fdisksgilabel.c | 21 +++++++++++---------- fdisk/fdisksgilabel.h | 3 +-- 3 files changed, 15 insertions(+), 21 deletions(-) commit bd83de2d664eab8ada91dd628f5d6bd9ee28229f Author: Francesco Cosoleto Date: Thu Dec 15 20:02:38 2011 +0100 fdisk: remove possibly_osf_label variable that is only assigned Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit 1025b5ab0830a8633c5a6d6fc4d8b59296bef7c4 Author: Francesco Cosoleto Date: Thu Dec 15 20:02:37 2011 +0100 fdisk: remove unused 'require' member in enum action Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 2 -- fdisk/fdisk.h | 2 +- 2 files changed, 1 insertions(+), 3 deletions(-) commit 1a204cd2160d95ae1c4998811313bae0a97e8fe8 Author: Francesco Cosoleto Date: Thu Dec 15 20:02:06 2011 +0100 agetty: add static and const qualifiers Remove also a static qualifier in main() function. Signed-off-by: Francesco Cosoleto term-utils/agetty.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 3b159691aed4a7c8919b9ccab0527449869b4012 Author: Francesco Cosoleto Date: Thu Dec 15 20:01:40 2011 +0100 libblkid: minor docs changes Signed-off-by: Francesco Cosoleto libblkid/src/partitions/partitions.c | 4 ++-- libblkid/src/probe.c | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) commit a2f5c22173f6af9a181646a90f5f5f009450661c Author: Davidlohr Bueso Date: Wed Dec 14 18:56:57 2011 +0100 wipefs: use xalloc lib Signed-off-by: Davidlohr Bueso misc-utils/wipefs.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) commit 5b9df0280a8a9e34421f5ad26e2b6d09336fc8a0 Author: Davidlohr Bueso Date: Mon Dec 12 23:52:26 2011 +0100 lists: add list sorting routine We need a list sorting function, just to mention one example user that could benefit is the lib/tt code to sort columns. This patch adds list_sort() which uses the Merge Sort algorithm, behaving nicely in O(nlog(n)), heavily based on the kernel's implementation[1]. The private data (void *priv) passed to the comparison function as been removed to adopt a qsort(3)-like syntax, and IMHO we don't really need it anyways. [1]: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=lib/list_sort.c;h=d7325c6b103f0be078ff3672c35c468ed35738f1;hb=HEAD [kzak@redhat.com: - use size_t in list_sort()] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak include/c.h | 8 +++ include/list.h | 132 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 140 insertions(+), 0 deletions(-) commit d466c6a1fe66603227b3ff73a21a45abd77ee826 Author: Dave Reisner Date: Sun Dec 11 13:58:05 2011 -0500 findmnt: support alternative location of fstab Signed-off-by: Dave Reisner Signed-off-by: Karel Zak misc-utils/findmnt.8 | 6 ++++-- misc-utils/findmnt.c | 9 +++++---- 2 files changed, 9 insertions(+), 6 deletions(-) commit b1b9f1c136a2529d8c648a0f19add4eebccd919b Author: Dave Reisner Date: Sun Dec 11 13:58:04 2011 -0500 findmnt: use warnx for libmnt error callback libmount doesn't set errno appropriately here: $ findmnt -s findmnt: /etc/fstab: parse error at line 20: Success Signed-off-by: Dave Reisner misc-utils/findmnt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 115bfafafe5168424f46a7a996a51aef173d5111 Author: Jari Aalto Date: Sun Dec 11 13:09:31 2011 +0200 setterm: order man page items alphabetically Signed-off-by: Jari Aalto term-utils/setterm.1 | 152 ++++++++++++++++++++++---------------------------- 1 files changed, 67 insertions(+), 85 deletions(-) commit 16fb9b3d111eb29b330f7f6602e1c7d495894dc8 Author: Davidlohr Bueso Date: Thu Dec 8 21:19:19 2011 +0100 prlimit: return proper type The add_prlim() function's definition currently returns a bogus structure. Signed-off-by: Davidlohr Bueso sys-utils/prlimit.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit aca9b5a6fb66544cdb885bcdb6f7c99d7ca293c4 Author: Karel Zak Date: Fri Dec 9 14:08:02 2011 +0100 docs: add hwclock -c to TODO file Signed-off-by: Karel Zak Documentation/TODO | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) commit 83ae4c2496faf6cbe478c9626616e51a7afed513 Author: Karel Zak Date: Thu Dec 8 14:22:04 2011 +0100 partx: don't treat empty partition table as error Phillip wrote: If a partition table was detected, but it had no partitions in it, a poorly worded error message was printed and further action halted. For partx -a, this gave an unnecessary error. Reported-by: Phillip Susi Signed-off-by: Karel Zak partx/partx.c | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) commit 8275b7326e535c6d745414baca680f03e9eccdf3 Author: Karel Zak Date: Thu Dec 8 14:14:28 2011 +0100 partx: cleanup usage() and man page, add undocumented --verbose Signed-off-by: Karel Zak partx/partx.8 | 22 ++++++++++++++-------- partx/partx.c | 13 +++++++++---- 2 files changed, 23 insertions(+), 12 deletions(-) commit ab025087f91b66ee8e23a16bc49eb0d9bd421d65 Author: Phillip Susi Date: Mon Dec 5 15:02:51 2011 -0500 partx: don't print error when partition already doesn't exist If you run partx -d to delete partitions, and there are gaps in the sequence ( partition 2 exists, but 1 doesn't ), then it would complain that it had errors trying to remove the partitions that already don't exist. Changed to ignore the error when errno == ENXIO. Signed-off-by: Phillip Susi partx/partx.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) commit 1593b134ebf596ae7a2b1e73f2dcc8c4e7febddd Author: Karel Zak Date: Thu Dec 8 11:39:05 2011 +0100 agetty: don't use log_err() for non-fatal errors The TIOCSCTTY ioctl requires that caller is session leader -- so it depends on initd (or we have to add setsid() to aggety). It seems that the traditional way is to setup tty in agetty and session in login(1). It means that all session related things (TIOCSCTTY, vhangup, ...) in the command agetty should be optional. (Note that vhangup() is called when --hangup is explicitly specified on command line, so log_err() makes sense there.) Reported-by: Andrew Walrond Signed-off-by: Karel Zak term-utils/agetty.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 86248cd28a27bdd9a437e389966b0415e106802e Author: Karel Zak Date: Thu Dec 8 10:20:22 2011 +0100 logger: fix remote logging Reported-by: Hervé Quillévéré Signed-off-by: Karel Zak misc-utils/logger.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 6e7e2c57d550a82ac59b3a12b691b6fc1318e094 Author: Karel Zak Date: Fri Dec 2 18:31:20 2011 +0100 build-sys: add log_err to smatch non-return functions Signed-off-by: Karel Zak tools/smatch-data/no_return_funcs | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit e11a5e6375441d2734402b68066e5f16b3c22f2a Author: Sami Kerola Date: Thu Dec 1 23:10:21 2011 +0100 build-sys: check HAVE_ definitions with #ifdef [smatch scan] Fix to `warning: undefined preprocessor identifier' messages. [kzak@redhat.com: replace "#ifdef XXX #ifdef YYY" with "#if defined(XXX) && defined(YYY)"] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak term-utils/script.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) commit fbc333fec09394bf4e47707de08a65e8c0e9c288 Author: Sami Kerola Date: Thu Dec 1 23:10:21 2011 +0100 build-sys: check HAVE_ definitions with #ifdef [smatch scan] Fix to `warning: undefined preprocessor identifier' messages. Signed-off-by: Sami Kerola include/blkdev.h | 2 +- include/md5.h | 2 +- lib/env.c | 2 +- lib/ismounted.c | 2 +- libblkid/src/cache.c | 2 +- libblkid/src/devname.c | 8 ++++---- libblkid/src/devno.c | 10 +++++----- libblkid/src/llseek.c | 6 +++--- libblkid/src/read.c | 4 ++-- libblkid/src/resolve.c | 2 +- libblkid/src/version.c | 2 +- misc-utils/cal.c | 2 +- term-utils/script.c | 10 +++++++--- 13 files changed, 29 insertions(+), 25 deletions(-) commit 8a3f94862caaa363c018b5d80551ac5a1ad192a6 Author: Sami Kerola Date: Thu Dec 1 23:10:20 2011 +0100 build-sys: add missing headers to dist Signed-off-by: Sami Kerola include/Makefile.am | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit d2c97887fee6cdb44378190b04c3dd6d059d3fad Author: Karel Zak Date: Fri Dec 2 18:20:34 2011 +0100 libmount: add support for mount -a --fork Signed-off-by: Karel Zak libmount/samples/mount.c | 51 ++++++++++------ libmount/src/context.c | 137 +++++++++++++++++++++++++++++++++++++++++- libmount/src/context_mount.c | 28 +++++++-- libmount/src/libmount.h.in | 8 +++ libmount/src/libmount.sym | 5 ++ libmount/src/mountP.h | 16 ++++- 6 files changed, 217 insertions(+), 28 deletions(-) commit ede8a60e05598ce1cf27889ce9293f8facf94278 Author: Karel Zak Date: Thu Dec 1 18:28:42 2011 +0100 libmount: add "+" prefix for options pattern (e.g findmnt -O) Examples: * findmnt --fstab -O noauto Returns all entries where is not "auto" option (including entries with "noauto" option. * findmnt --fstab -O +noauto Returns all entries where is literally "noauto" option. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=758457 Signed-off-by: Karel Zak libmount/src/utils.c | 15 ++++++++++++++- misc-utils/findmnt.8 | 6 +++--- 2 files changed, 17 insertions(+), 4 deletions(-) commit 190c342a838b24eda4dacf722f3aae133eff7ab2 Author: Karel Zak Date: Thu Dec 1 16:47:26 2011 +0100 libmount: add -a to umount(8) sample Signed-off-by: Karel Zak libmount/samples/.gitignore | 1 + libmount/samples/umount.c | 39 ++++++++++++++++++++++++++++++++++++--- 2 files changed, 37 insertions(+), 3 deletions(-) commit 085f163b52a7a2d9d5618b784e3c499f78833889 Author: Karel Zak Date: Thu Dec 1 16:45:53 2011 +0100 libmount: add mnt_context_umount_next() This is "umount -a" backend. Signed-off-by: Karel Zak libmount/src/context.c | 2 +- libmount/src/context_umount.c | 137 +++++++++++++++++++++++++++++++++++------ libmount/src/libmount.h.in | 3 + libmount/src/libmount.sym | 5 ++ 4 files changed, 126 insertions(+), 21 deletions(-) commit b3f7a0ec3eea12bd0c7eb421d14d074c1a8896f9 Author: Karel Zak Date: Thu Dec 1 16:42:42 2011 +0100 libmount: improve verbose message Signed-off-by: Karel Zak libmount/samples/mount.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 914c8b7102f31f48678e88ccffa90d4c4a4c299c Merge: db216e6 5818a4a Author: Karel Zak Date: Tue Nov 29 19:02:42 2011 +0100 Merge branch 'login-utils' of https://github.com/kerolasa/lelux-utiliteetit * 'login-utils' of https://github.com/kerolasa/lelux-utiliteetit: (23 commits) last: fix few compiler warnings setpwnam: remove non-ANSI definitions [smatch scan] last: possible buffer overflow fixed [smatch scan] vipw: fix coding style setpwnam: fix coding style selinux_utils: fix coding style newgrp: fix coding style logindefs: fix coding style islocal: fix coding style chsh: fix coding style chfn: fix coding style chfn, setpwnam: let config.h be in control of extensions in use chfn, chsh: new file pamfail.h for error printing chsh: build bug: do not override config.h definition chfn, chsh, setpwnam: get true/false from stdbool.h login: add version printing option newgrp: add version and help options vipw: stop printing non-sense version string vipw: use libc error printing facilities chsh: use libc error printing facilities ... commit db216e68faeec0653f646f116e311b4233723454 Author: Karel Zak Date: Tue Nov 29 19:02:27 2011 +0100 libmount: add new exprimental umount(8) Signed-off-by: Karel Zak libmount/samples/Makefile.am | 3 +- libmount/samples/umount.c | 253 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 255 insertions(+), 1 deletions(-) commit 732a631126a00ee52b9582e8adb7cc64bbcbaec0 Author: Karel Zak Date: Tue Nov 29 18:21:49 2011 +0100 include,optutils: add option_to_longopt() Signed-off-by: Karel Zak include/optutils.h | 15 +++++++++++++++ libmount/samples/mount.c | 15 +++------------ 2 files changed, 18 insertions(+), 12 deletions(-) commit e4c92d0617f5e73d6590083762fae328b865cb31 Author: Karel Zak Date: Tue Nov 29 18:06:21 2011 +0100 libmount: use USAGE_* from mount(8) sample Signed-off-by: Karel Zak libmount/samples/mount.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) commit 5818a4aa9ee35b69130e3eb7d021ae6e53ee4c00 Author: Sami Kerola Date: Sat Nov 19 21:52:38 2011 +0100 last: fix few compiler warnings Calling abort() as default seems appropriate as the default should be impossible to reach. last.c:355:3: warning: switch missing default case [-Wswitch-default] And simple line removals. last.c:110:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] last.c:111:15: warning: redundant redeclaration of 'optarg' [-Wredundant-decls] Signed-off-by: Sami Kerola login-utils/last.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 0d132731806ed83d105c3fc1f07c98c9ba7be6ae Author: Sami Kerola Date: Sun Nov 13 21:21:39 2011 +0100 setpwnam: remove non-ANSI definitions [smatch scan] Signed-off-by: Sami Kerola login-utils/setpwnam.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 889df821e3c64cea30f2d7d92cbf0ea5c0f27a2c Author: Sami Kerola Date: Sun Nov 13 21:20:13 2011 +0100 last: possible buffer overflow fixed [smatch scan] last.c +447 ttyconv(11) error: buffer overflow '(arg)' 3 <= 3 Signed-off-by: Sami Kerola login-utils/last.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 06eafe470d6bca7605ae2de7244e75e8e0bd0383 Author: Sami Kerola Date: Sun Nov 13 20:03:48 2011 +0100 vipw: fix coding style Signed-off-by: Sami Kerola login-utils/vipw.c | 167 ++++++++++++++++++++++++++-------------------------- 1 files changed, 83 insertions(+), 84 deletions(-) commit 7ff9c2aa8fd985a6c48241ce955c2ea30e7b635e Author: Sami Kerola Date: Sun Nov 13 19:54:14 2011 +0100 setpwnam: fix coding style Signed-off-by: Sami Kerola login-utils/setpwnam.c | 333 ++++++++++++++++++++++++------------------------ 1 files changed, 169 insertions(+), 164 deletions(-) commit fd2940f58d5874fc5de32f89840fad8dd9b5eb14 Author: Sami Kerola Date: Sun Nov 13 19:46:03 2011 +0100 selinux_utils: fix coding style Signed-off-by: Sami Kerola login-utils/selinux_utils.c | 91 +++++++++++++++++++++---------------------- 1 files changed, 44 insertions(+), 47 deletions(-) commit b7cfaaf85bce0f6b1c1bb2e81da545bdb0a9d1da Author: Sami Kerola Date: Sun Nov 13 19:40:23 2011 +0100 newgrp: fix coding style Signed-off-by: Sami Kerola login-utils/newgrp.c | 232 ++++++++++++++++++++++++++------------------------ 1 files changed, 119 insertions(+), 113 deletions(-) commit 3f9c237dcb96ac324a2eef822aabbed02fb63a03 Author: Sami Kerola Date: Sun Nov 13 19:34:46 2011 +0100 logindefs: fix coding style Signed-off-by: Sami Kerola login-utils/logindefs.c | 42 ++++++++++++++++++++++-------------------- 1 files changed, 22 insertions(+), 20 deletions(-) commit 43b53f57c180bfe0c25d9fc1a1597d720bd1e44d Author: Sami Kerola Date: Sun Nov 13 19:32:10 2011 +0100 islocal: fix coding style Signed-off-by: Sami Kerola login-utils/islocal.c | 79 ++++++++++++++++++++++++------------------------- 1 files changed, 39 insertions(+), 40 deletions(-) commit 0a065b7ae692e4eabfae5994f728023c5772fb8c Author: Sami Kerola Date: Wed Nov 23 23:04:12 2011 +0100 chsh: fix coding style Signed-off-by: Sami Kerola login-utils/chsh.c | 565 +++++++++++++++++++++++++++------------------------- 1 files changed, 290 insertions(+), 275 deletions(-) commit 3ca1029905dff5273da1e8ad2be4eaf4bd039db1 Author: Sami Kerola Date: Wed Nov 23 22:57:31 2011 +0100 chfn: fix coding style Signed-off-by: Sami Kerola login-utils/chfn.c | 695 +++++++++++++++++++++++++++------------------------- 1 files changed, 367 insertions(+), 328 deletions(-) commit e55b7a8f2fe19966c281d6cb26e98d3835d4d591 Author: Sami Kerola Date: Wed Nov 23 22:36:57 2011 +0100 chfn, setpwnam: let config.h be in control of extensions in use The autotools will set _GNU_SOURCE which removes necessity to have any _*_SOURCE definition in *.c files. Signed-off-by: Sami Kerola login-utils/chfn.c | 2 -- login-utils/setpwnam.c | 3 --- 2 files changed, 0 insertions(+), 5 deletions(-) commit 57b35f3ba7db5d5b7cec04312c7e9055a74b0406 Author: Sami Kerola Date: Sun Nov 13 18:18:33 2011 +0100 chfn, chsh: new file pamfail.h for error printing Signed-off-by: Sami Kerola include/Makefile.am | 1 + include/pamfail.h | 16 ++++++++++++++++ login-utils/chfn.c | 30 +++++++++--------------------- login-utils/chsh.c | 30 +++++++++--------------------- 4 files changed, 35 insertions(+), 42 deletions(-) commit 6189ace369dc9eaa8e8129c8bcfb62b337a224f1 Author: Karel Zak Date: Tue Nov 29 17:36:39 2011 +0100 libmount: add sanitize_env() to mount(8) sample Signed-off-by: Karel Zak libmount/samples/Makefile.am | 2 ++ libmount/samples/mount.c | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) commit 2492f71341ff835fbc19d2955158d3ad67ff2c87 Author: Karel Zak Date: Tue Nov 29 16:58:44 2011 +0100 libmount: remove magic constatnt from mount(8) Signed-off-by: Karel Zak libmount/samples/mount.c | 43 +++++++++++++++++++++++++++---------------- 1 files changed, 27 insertions(+), 16 deletions(-) commit 21fd9cb0d740398f048f5875324e6f3f502d5703 Author: Karel Zak Date: Tue Nov 29 14:57:28 2011 +0100 docs: add x-mount-mkdir to TODO file Signed-off-by: Karel Zak Documentation/TODO | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 9c62a2326e6e39a5e759830b0b9d91696166fb45 Author: Dennis Jensen Date: Thu Nov 24 18:55:57 2011 +0100 agetty: map NL to CR-NL on output in initial termiossettings From: Jacoby Hickerson Signed-off-by: Dennis Jensen term-utils/agetty.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 5018dc3d864e784b5a7d30408937b9dc002d7f49 Merge: b483deb 57ba402 Author: Karel Zak Date: Mon Nov 28 10:23:04 2011 +0100 Merge branch 'master' of https://github.com/maurizio-lombardi/util-linux * 'master' of https://github.com/maurizio-lombardi/util-linux: mkfs.minix: The total number of zones is limited to 65536 only on V1 filesystems mkfs.minix: Some bug fixes: mkfs.minix: The s_blocksize field of the MinixV3 superblock must be initialized with a valid block size, not the total number of blocks of the device! mkfs.minix: inode numbers are 32-bit wide in V3 filesystems mkfs.minix: In Minix V3 filesystems the maximum filename lenght is 60 chars and the dirsize is 64 bytes. mkfs.minix: Fix super_set_nzones() mkfs.minix: remove redundant code commit b483debb64a22105f6af10c35e52e46221e96243 Author: Karel Zak Date: Mon Nov 28 10:19:32 2011 +0100 libmount: fix compiler warning [-Wimplicit-function-declaration] Signed-off-by: Karel Zak libmount/src/utils.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit d27ff34944eaaf294c26455a089333d435c938e6 Author: Karel Zak Date: Fri Nov 25 10:38:16 2011 +0100 do: fix czech LABEL= translation Signed-off-by: Karel Zak po/cs.po | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7299ca031dd1316d0f3e47402bf632e81ea24112 Author: Sami Kerola Date: Sun Nov 13 17:47:00 2011 +0100 chsh: build bug: do not override config.h definition The ONLY_LISTED_SHELLS is defined by --disable-chsh-only-listed configuration option. Signed-off-by: Sami Kerola login-utils/chsh.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) commit 8187b555df56bdb8bcc63ce8fb39e99564408e62 Author: Sami Kerola Date: Sun Nov 13 17:36:55 2011 +0100 chfn, chsh, setpwnam: get true/false from stdbool.h Requires C99, which should not be a problem. Signed-off-by: Sami Kerola login-utils/chfn.c | 19 ++++++++----------- login-utils/chsh.c | 11 ++++------- login-utils/setpwnam.c | 8 ++------ 3 files changed, 14 insertions(+), 24 deletions(-) commit 0effd19e00081fcadb81ba77e912862f27180aff Author: Sami Kerola Date: Sun Nov 13 17:14:51 2011 +0100 login: add version printing option Signed-off-by: Sami Kerola login-utils/login.1 | 3 +++ login-utils/login.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletions(-) commit e947e273603d0fb9e9fdfa4ed7538a68d46c240e Author: Sami Kerola Date: Sun Nov 13 15:56:20 2011 +0100 newgrp: add version and help options Signed-off-by: Sami Kerola login-utils/newgrp.c | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) commit 92ba78e24dafcb750d0db89475baee229f692e57 Author: Sami Kerola Date: Sun Nov 13 15:14:33 2011 +0100 vipw: stop printing non-sense version string Signed-off-by: Sami Kerola login-utils/vipw.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) commit 81c8a46f576c26465e2a1b21c3f08ed728d18ee2 Author: Sami Kerola Date: Sun Nov 13 15:12:44 2011 +0100 vipw: use libc error printing facilities Signed-off-by: Sami Kerola login-utils/vipw.c | 49 +++++++++++++++++-------------------------------- 1 files changed, 17 insertions(+), 32 deletions(-) commit 8fed34e5a17548423aae212586d1cf210fb2c7fe Author: Sami Kerola Date: Sun Nov 13 14:41:38 2011 +0100 chsh: use libc error printing facilities Signed-off-by: Sami Kerola login-utils/chsh.c | 81 +++++++++++++++++++++------------------------------ 1 files changed, 33 insertions(+), 48 deletions(-) commit fbff9d7996c8767cdb023719f6fce3173167aba4 Author: Sami Kerola Date: Sun Nov 13 14:31:03 2011 +0100 chsh: align with howto-usage-function.txt Signed-off-by: Sami Kerola login-utils/chsh.c | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) commit b9364124f857890a5ff91831e0de24fdd99ca1a7 Author: Sami Kerola Date: Sun Nov 13 14:17:25 2011 +0100 chfn: use libc error printing facilities Signed-off-by: Sami Kerola login-utils/chfn.c | 65 ++++++++++++++++++++------------------------------- 1 files changed, 26 insertions(+), 39 deletions(-) commit 85b6104da5b9b7e9ba63d69cdca7badebf2368a4 Author: Sami Kerola Date: Sun Nov 13 14:06:24 2011 +0100 chfn: align with howto-usage-function.txt Signed-off-by: Sami Kerola login-utils/chfn.c | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) commit f75b8e5cdfa40b81a0b631b02491a99115409371 Author: Karel Zak Date: Wed Nov 23 15:19:20 2011 +0100 fallocate: clean up fallbacks for FALLOC_FL_* flags Reported-by: Voelker, Bernhard Signed-off-by: Karel Zak sys-utils/fallocate.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) commit 13b3e7796bac9346d59ecd6fd3e2e902aa89c0df Author: Karel Zak Date: Wed Nov 23 14:10:51 2011 +0100 tests: add mkfs.carmfs test for small FS with duplicate files Signed-off-by: Karel Zak tests/expected/cramfs/doubles | 3 ++ tests/ts/cramfs/doubles | 53 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 0 deletions(-) commit 8b472bfa73e07e333fbb1aa4abb64ec5a2b4810b Author: Arnaud Mouiche Date: Thu Nov 17 18:03:04 2011 +0100 small bug in mkfs.cramfs + patch mkfs.cramfs on version v2.17.2 has a small bug when dealing with very small filesystems. look at upstream code on git, and the issue is still here. ex: $ cd /tmp $ mkdir content $ echo hello > content/a $ echo hello > content/b $ mkfs.cramfs content content.cramfs not enough space allocated for ROM image (4090 allocated, 4096 used) Here is a patch for fixing (simply rounding to page size AFTER eleminating doubles). Signed-off-by: Arnaud Mouiche Signed-off-by: Karel Zak disk-utils/mkfs.cramfs.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 411fd3c27aed72c50677aaf006ebfa6df39a1cfc Author: Cong Wang Date: Fri Nov 18 16:51:37 2011 +0800 fallocate: add FALLOC_FL_PUNCH_HOLE support Recent Linux kernel supports FALLOC_FL_PUNCH_HOLE in fallocate(2). This patch adds FALLOC_FL_PUNCH_HOLE support to fallocate utility, by introducing a new option -p|--punch-hole. [kzak@redhat.com: - fix merge conflict in fallocate.1] Cc: Karel Zak Cc: Eric Sandeen Signed-off-by: Cong Wang Signed-off-by: Karel Zak sys-utils/fallocate.1 | 3 +++ sys-utils/fallocate.c | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletions(-) commit 1023db5015346a13c0065c92467a691bdc1578ad Author: Jim Meyering Date: Thu Nov 17 08:44:48 2011 +0100 prlimit: s/amount/number/ sys-utils/prlimit.1 | 18 +++++++++--------- sys-utils/prlimit.c | 10 +++++----- 2 files changed, 14 insertions(+), 14 deletions(-) commit 53e1f461f9a86a4c979b2bd719b8ccd1b608980e Author: Bernhard Voelker Date: Wed Nov 16 17:57:27 2011 +0100 prlimit: add support for executing a command prlimit.c: Alternatively to applying the limits to an existing process via the --pid option, allow a command to be executed. Adapted usage() accordingly. prlimit.1: mention new syntax. Signed-off-by: Bernhard Voelker sys-utils/prlimit.1 | 14 +++++++++++++- sys-utils/prlimit.c | 17 +++++++++++++---- 2 files changed, 26 insertions(+), 5 deletions(-) commit 0459a7b3896119a2491b6f78cb495af33cb9deda Author: Francesco Cosoleto Date: Tue Nov 22 16:12:42 2011 +0100 libblkid: fix mac partition detection This fixes the buffer length passed to blkid_probe_get_buffer() calls, and the block size byte order (on little-endian systems). Signed-off-by: Francesco Cosoleto libblkid/src/partitions/mac.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) commit d8ebc83ff2e9f879ac60a663c1685011a048f603 Author: Masatake YAMATO Date: Mon Nov 14 22:47:53 2011 +0900 mount: enable fstab.d This patch makes mount command read fstab.d/*.fstab if the command is built with --enable-libmount-mount. [kzak@redhat.com: - add some info to fstab.5 and mount.8 man pages - use error callback for tab parser] Signed-off-by: Masatake YAMATO Signed-off-by: Karel Zak mount/fstab.5 | 19 ++++++++++++++++++- mount/fstab.c | 40 ++++++++++++++++++++++++++++++++-------- mount/mount.8 | 14 +++++++++++++- 3 files changed, 63 insertions(+), 10 deletions(-) commit 57ba4027a591becd0264e8672b2ce2efd45bf5b3 Author: Maurizio Lombardi Date: Mon Nov 21 20:30:40 2011 +0100 mkfs.minix: The total number of zones is limited to 65536 only on V1 filesystems disk-utils/mkfs.minix.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) commit de5326095a0f064820bffacfbd455d8822a90614 Author: Maurizio Lombardi Date: Mon Nov 21 20:16:57 2011 +0100 mkfs.minix: Some bug fixes: - Fix root inode initialization - In V3 filesystems the maximum number of inodes is not 65536 but 2^32. disk-utils/mkfs.minix.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) commit a54d258f8cbb0c8b5de10231bc2f7ec8804940e3 Author: Maurizio Lombardi Date: Mon Nov 21 20:00:48 2011 +0100 mkfs.minix: The s_blocksize field of the MinixV3 superblock must be initialized with a valid block size, not the total number of blocks of the device! disk-utils/mkfs.minix.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit caa9cc8613e403a59ffe48a6abc77faac1369a66 Author: Maurizio Lombardi Date: Mon Nov 21 19:52:03 2011 +0100 mkfs.minix: inode numbers are 32-bit wide in V3 filesystems disk-utils/mkfs.minix.c | 27 +++++++++++++++++++-------- 1 files changed, 19 insertions(+), 8 deletions(-) commit 3c5075e37bea408b956ff8131a9073b5d22f10a9 Author: Maurizio Lombardi Date: Mon Nov 21 19:46:26 2011 +0100 mkfs.minix: In Minix V3 filesystems the maximum filename lenght is 60 chars and the dirsize is 64 bytes. disk-utils/mkfs.minix.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 75ab0b36a37e16dab0bf93417a8ab2a46ec1bfc7 Author: Maurizio Lombardi Date: Mon Nov 21 19:42:42 2011 +0100 mkfs.minix: Fix super_set_nzones() Write the total number of zones in Super3.n_zones when dealing with v3 filesystems. disk-utils/mkfs.minix.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 01a1fcc85ece1600637ffd2bcbe14415ec402ee6 Author: Maurizio Lombardi Date: Mon Nov 21 19:35:40 2011 +0100 mkfs.minix: remove redundant code disk-utils/mkfs.minix.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit eb742a1f66d5e3a7c5b43efce741c113f51bef3b Author: Karel Zak Date: Mon Nov 21 17:12:33 2011 +0100 flock: use O_RDWR as fallback if O_RDONLY returns EIO The commit 75aaee08f06b92d119ed827c53d1af5474eb16ff introduces regression: $ echo '#!/bin/sh' > test.sh $ chmod a+rx test.sh $ flock -eon ./test.sh ./test.sh flock: ./test.sh: Text file busy The lock file cannot be opened in read-write mode by default, because then we cannot use flock(1) to lock executable files. The read-write mode for lock files is necessary on NFSv4 where flock(2) is emulated by by fcntl() -- this situation is possible to detect by flock(2) EIO error. This patch reverts the default to O_RDONLY and use O_RDWR only if EIO error is detected. Reported-by: Mike Frysinger Signed-off-by: Karel Zak sys-utils/flock.c | 68 +++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 48 insertions(+), 20 deletions(-) commit bc3ae4c6fc66bcfec3ed9933e698a5ede853869d Author: Karel Zak Date: Mon Nov 21 15:02:56 2011 +0100 flock: timer code refactoring Signed-off-by: Karel Zak sys-utils/flock.c | 33 ++++++++++++++++++++------------- 1 files changed, 20 insertions(+), 13 deletions(-) commit a40f08ef79d9bc0c45e32bd8ca7afd495bbcd444 Author: Karel Zak Date: Fri Nov 18 13:19:21 2011 +0100 login: fix compiler warning [-Wreturn-type] Signed-off-by: Karel Zak login-utils/login.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) commit 5018dc3da56cff2fb96a9f211377244eedc88bce Author: Karel Zak Date: Fri Nov 18 13:12:18 2011 +0100 build-sys: add missing BUILD_PRLIMIT Reported-by: Thorsten Kukuk Signed-off-by: Karel Zak sys-utils/Makefile.am | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) commit 34f7ea15c10fb72db73257c697156797832337c6 Author: Karel Zak Date: Fri Nov 18 12:26:19 2011 +0100 login: improve pam_setcred() usage Reported-by: Thorsten Kukuk Signed-off-by: Karel Zak login-utils/login.c | 25 +++++++++++++++++++++++-- 1 files changed, 23 insertions(+), 2 deletions(-) commit 26ae00a72b6cfb030a637d7a85ec06afac6f5d1a Author: Jim Meyering Date: Wed Nov 16 20:10:39 2011 +0100 column: avoid memory overrun and/or use of uninitialized buffer * text-utils/column.c (maketbl): Use the right starting point and the right length when zeroing new memory after xrealloc. text-utils/column.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 8b6e4503882a3ffe8c7b2b47c58f41d364b09ef4 Author: Karel Zak Date: Wed Nov 16 13:30:05 2011 +0100 prlimit: don't share pointer for old and new in prlimit(2) This patch makes the code more robust. We should not share the same pointer for old and new arguments for prlimit(2) syscall. Reported-by: Bernhard Voelker Signed-off-by: Karel Zak sys-utils/prlimit.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) commit 94c0166257748110181f1a18d5851d931c2d1a12 Author: Karel Zak Date: Wed Nov 16 13:21:40 2011 +0100 prlimit: avoid segfault due to array-out-of-bounds error Example: $ prlimit -l -l -l -l -l -l -l -l -l -l -l -l -l -l -l -l -l -l -l RESOURCE DESCRIPTION SOFT HARD UNITS MEMLOCK max locked-in-memory address space 65536 262144 bytes MEMLOCK max locked-in-memory address space 65536 262144 bytes ... Segmentation fault Reported-by: Bernhard Voelker Signed-off-by: Karel Zak sys-utils/prlimit.c | 102 +++++++++++++++++++++++++++++++------------------- 1 files changed, 63 insertions(+), 39 deletions(-) commit f7fe8a9ba03cb6d50b082d6da8292d7f83cbe894 Author: Bernhard Voelker Date: Mon Nov 14 02:48:33 2011 +0100 prlimit: fix typo in man page, option --verbose Signed-off-by: Bernhard Voelker sys-utils/prlimit.1 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 2f0948b18d0d5652ba66534b6462dc085afc550d Author: Karel Zak Date: Wed Nov 16 12:04:52 2011 +0100 prlimit: replace lims[i] with pointer Signed-off-by: Karel Zak sys-utils/prlimit.c | 25 +++++++++++++------------ 1 files changed, 13 insertions(+), 12 deletions(-) commit 044bc8de2d22a06f7253888460e7a32d4b367c8e Author: Bernhard Voelker Date: Wed Nov 16 11:55:43 2011 +0100 prlimit: fix case when PID is given later # prlimit --nofile=:4000 --pid $$ When the PID is given later than a partially given limit, then prlimit used the current PID for getting the missing part (hard, soft) of the limit. Factored out the retrieval of the unknown limit from parse_prlim() to new get_unknown_hardsoft() which is to be called by do_prlimit() based on the struct prlimit member 'modify' set by add_prlim(). [kzak@redhat.com: - use prlimit->mofify as mask - add soft vs. hard limit check from another Bernhard's patch] Signed-off-by: Bernhard Voelker Signed-off-by: Karel Zak sys-utils/prlimit.c | 62 +++++++++++++++++++++++++++----------------------- 1 files changed, 33 insertions(+), 29 deletions(-) commit f88e44be572d255d4b67843ae1cb32da3409bf8e Author: Karel Zak Date: Wed Nov 16 10:54:07 2011 +0100 prlimit: fix error message - differentiate between set and get operations - add limit name to the error message - remove PID from the message (whole util works always with only one PID, so this info is superfluous) Reported-by: Bernhard Voelker Signed-off-by: Karel Zak sys-utils/prlimit.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 8f71d37bc5c98ee209dcaa14356546724a95c541 Author: Bernhard Voelker Date: Mon Nov 14 02:47:57 2011 +0100 prlimit: show all limits if called without options Fix option parsing: prlimit ran into usage() if called without arguments which should only be done for surplus arguments. Instead, it should display all limits. Signed-off-by: Bernhard Voelker sys-utils/prlimit.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit f126cd4694908db5e01d66f2c206d42312bb64c2 Author: Karel Zak Date: Tue Nov 15 15:19:28 2011 +0100 wipefs: add -t option Signed-off-by: Karel Zak misc-utils/Makefile.am | 4 +++- misc-utils/wipefs.8 | 32 ++++++++++++++++++++++++++------ misc-utils/wipefs.c | 13 ++++++++++++- 3 files changed, 41 insertions(+), 8 deletions(-) commit 12089155210f8d84054cc8413d79cd2800d26929 Author: Karel Zak Date: Tue Nov 15 15:17:19 2011 +0100 lib,match: split match_fstype() from libmount Signed-off-by: Karel Zak include/match.h | 12 ++++++++++ lib/match.c | 51 ++++++++++++++++++++++++++++++++++++++++++++++ libmount/src/Makefile.am | 1 + libmount/src/utils.c | 30 +-------------------------- 4 files changed, 65 insertions(+), 29 deletions(-) commit e13fe2063c5f7dd7b4ae7427e4dce72312b5e953 Author: Karel Zak Date: Tue Nov 15 12:49:31 2011 +0100 libblkid: export PTMAGIC also if only PTTYPE requested Reported-by: David Zeuthen Signed-off-by: Karel Zak libblkid/src/partitions/gpt.c | 8 ++++---- libblkid/src/partitions/ultrix.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) commit 47104bae8975511383bcef5c96545f03bb4e4cce Author: Francesco Cosoleto Date: Mon Nov 14 14:47:19 2011 +0100 fdisk: split delete_partition() off from dos_delete_partition() This accidentally fixes a mistake printing the "Partition n is deleted" message as the 'i' variable get decremented or incremented in case of logical partitions. Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 36 ++++++++++++++++++++++-------------- 1 files changed, 22 insertions(+), 14 deletions(-) commit 798d621c3bb5a84592c58fb6176d0d91017e1223 Author: Francesco Cosoleto Date: Mon Nov 14 14:47:18 2011 +0100 fdisk: avoid segfault validating a sgi label (boot/swap not set) swap_part or boot_part can be set to -1 when they don't exist. Signed-off-by: Francesco Cosoleto fdisk/fdisksgilabel.c | 8 ++++---- fdisk/fdisksgilabel.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) commit a8c6fddb2e5a2f7a10fcc7ac6f271c917afb748a Author: Francesco Cosoleto Date: Mon Nov 14 14:47:17 2011 +0100 fdisk: use ngettext() in str_units() for plural forms Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 944de78b5d83e548f7c428ef5c08c69e6984cc4f Author: Harald Hoyer Date: Mon Nov 14 14:11:01 2011 +0100 switch_root: umount mount points we cannot move with MNT_DETACH If a mount point cannot be moved to the new root, umount it with MNT_DETACH, so that it is lazy umounted and does not show up in /proc/mounts anymore. [kzak@redhat.com: - add MNT_DETACH macro fallback] Signed-off-by: Harald Hoyer Signed-off-by: Karel Zak sys-utils/switch_root.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit 7c54823c821cc57e65a68d667acacbb567c92c25 Author: Francesco Cosoleto Date: Fri Nov 11 11:12:11 2011 +0100 fdisk: enable expert menu with SGI label This allows the creation of a new label if the disk already has an existing SGI disklabel without working around this problem such as creating a DOS disklabel or overwriting with zero the partition table (problem reported in 'Gentoo Linux/MIPS Handbook'). Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 11 +++-------- 1 files changed, 3 insertions(+), 8 deletions(-) commit c482303ef791590b56444723385c16d8d4be696f Author: Francesco Cosoleto Date: Wed Nov 9 19:04:12 2011 +0100 fdisk: rewrite print menu system DOS and SGI label menus are unchanged. BSD label command descriptions change slightly to use a common form. This also removes an useless menu entry in SUN label menu to edit bsd disklabel. Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 210 ++++++++++++++++-------------------------------- fdisk/fdisk.h | 19 +++-- fdisk/fdiskbsdlabel.c | 23 +----- 3 files changed, 84 insertions(+), 168 deletions(-) commit 56c07b96098ffff338780c733c4bf7457221a5f4 Author: Francesco Cosoleto Date: Fri Nov 11 11:12:09 2011 +0100 fdisk: move command prompt code to a separate function Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 243 +++++++++++++++++++++++++++++---------------------------- 1 files changed, 125 insertions(+), 118 deletions(-) commit e97a991afff6570f6709e9a9a7bac9f215e996ad Author: Francesco Cosoleto Date: Fri Nov 11 11:12:08 2011 +0100 fdisk: rename bselect, xselect functions Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 9 +++++---- fdisk/fdisk.h | 2 +- fdisk/fdiskbsdlabel.c | 3 ++- 3 files changed, 8 insertions(+), 6 deletions(-) commit 10b7b6439ada717f54075f53d530bacb7711b5cc Author: Karel Zak Date: Mon Nov 14 13:30:12 2011 +0100 lib,tt: fix compiler warning [-Wreturn-type] Signed-off-by: Karel Zak lib/tt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit cda9acbe35ade35676f54d8842b34a9fb9c45547 Author: Karel Zak Date: Mon Nov 14 13:28:50 2011 +0100 readprifile: remove unnecessary optstring array Signed-off-by: Karel Zak sys-utils/readprofile.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit 115b8b7ce31feda296bf19cd9e355cb1c71ca2a9 Merge: 44765fd ba64bbd Author: Karel Zak Date: Mon Nov 14 13:25:36 2011 +0100 Merge branch 'sys-utils-3rd' of https://github.com/kerolasa/lelux-utiliteetit * 'sys-utils-3rd' of https://github.com/kerolasa/lelux-utiliteetit: ldattach: add default case to switches ldattach: convert debug macro to function ldattach: check numeric user inputs with strtol_or_err ldattach: align with howto-usage-function.txt ldattach: fix coding style docs: add long options to readprofile.8 readprofile: fix coding style readprofile: use libc error printing facilities readprofile: add long options docs: align tunelp.8 with howto-man-page.txt docs: add long options to tunelp.8 tunelp: add long options and align with howto-usage-function.txt tunelp: use libc error printing facilities tunelp: use symbolic exit values tunelp: fix coding style switch_root: add nls support switch_root: align with howto-usage-function.txt unshare: align with howto-usage-function.txt rtcwake: align with howto-usage-function.txt setsid: add long options and fix coding style commit 44765fdd841fb1369cf68f360131ed076f3a2771 Author: Karel Zak Date: Sun Nov 13 21:25:12 2011 +0100 libblkid: export info about PT magic strings Signed-off-by: Karel Zak libblkid/src/partitions/gpt.c | 5 ++ libblkid/src/partitions/partitions.c | 16 ++++++-- libblkid/src/partitions/ultrix.c | 6 +++ libblkid/src/probe.c | 23 ++++++++-- misc-utils/wipefs.c | 73 ++++++++++++++++++---------------- 5 files changed, 80 insertions(+), 43 deletions(-) commit 3c83b3b22f33fc7b17b504158e4a4db7b567bbe8 Author: Karel Zak Date: Fri Nov 11 15:13:33 2011 +0100 libblkid: add BLKID_PARTS_MAGIC Signed-off-by: Karel Zak libblkid/src/blkid.h.in | 1 + libblkid/src/blkidP.h | 2 + libblkid/src/probe.c | 33 ++++++++++++++++++++++++++++++++ libblkid/src/superblocks/superblocks.c | 15 -------------- libblkid/src/superblocks/superblocks.h | 2 - 5 files changed, 36 insertions(+), 17 deletions(-) commit 979f1dd5fe8cc27ade759af4a6e6abb6cfa45767 Author: Karel Zak Date: Fri Nov 11 13:33:51 2011 +0100 mkswap: wipe all old signatures mkswap(8) zaps the begin of the device (1024 bytes) only. This is not enough, because for example ReiserFS superblock is outside this area. This patch add blkid_do_wipe() call to mkswap(8) and all block device is scanned and all signature are removed. Reported-by: Martin Pitt Signed-off-by: Karel Zak disk-utils/mkswap.c | 67 +++++++++++++++++++++++++++++++++++--------------- 1 files changed, 47 insertions(+), 20 deletions(-) commit 1c50a7cd941e18ec1ff0799ccfca15e2253a64ad Author: Karel Zak Date: Fri Nov 11 12:58:59 2011 +0100 docs: update TODO file Signed-off-by: Karel Zak Documentation/TODO | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit 6611a3dd783006fd8c6b924a76c4820287278d36 Author: Karel Zak Date: Fri Nov 11 12:48:38 2011 +0100 wipefs: improve -a, use blkid_do_wipe() Some filesystems (e.g. FAT) is possible to detect in many ways -- for example if a magic string is stored on more places on the device. The current implementation always removes from the device only the firstly detected possibility. # wipefs /dev/sdb1 offset type ---------------------------------------------------------------- 0x36 vfat [filesystem] UUID: D203-A7F4 # wipefs -a /dev/sdb1 8 bytes [46 41 54 31 36 20 20 20] erased at offset 0x36 (vfat) # wipefs /dev/sdb1 offset type ---------------------------------------------------------------- 0x0 vfat [filesystem] UUID: D203-A7F4 This patch fixes this issue: # wipefs -a /dev/sdb1 8 bytes were erased at offset 0x00000036 (vfat): 46 41 54 31 36 20 20 20 1 bytes were erased at offset 0x00000000 (vfat): eb 2 bytes were erased at offset 0x000001fe (vfat): 55 aa Signed-off-by: Karel Zak misc-utils/wipefs.c | 158 +++++++++++++++++++++++++++++--------------------- 1 files changed, 92 insertions(+), 66 deletions(-) commit 2b89be6c802bdbdf6830dbd060c96e33f179b135 Author: Karel Zak Date: Fri Nov 11 12:41:35 2011 +0100 libblkid: add blkid_do_wipe() Signed-off-by: Karel Zak libblkid/src/blkid.h.in | 2 + libblkid/src/blkid.sym | 8 ++++ libblkid/src/probe.c | 86 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+), 0 deletions(-) commit a3ab71cfd3f2b2240e05df3e9cc0800ab4578744 Author: Karel Zak Date: Thu Nov 10 20:18:54 2011 +0100 libblkid: don't call CDROM_GET_CAPABILITY for partitions Reported-by: Jeff Moyer Signed-off-by: Karel Zak libblkid/src/probe.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit f8209a0f66fcda7e4902808e55b8f864afba983c Author: Francesco Cosoleto Date: Wed Nov 9 16:57:28 2011 +0100 fsck.minix: fix zone_map memory allocation failure check Signed-off-by: Francesco Cosoleto disk-utils/fsck.minix.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7aa69cf2e39b00181e645dd2e33913ed7be0afa6 Author: Karel Zak Date: Thu Nov 10 02:02:38 2011 +0100 lib,tt: add TT_FL_NOEXTREMES If you mark a column with TT_FL_NOEXTREMES flag then extremely large fields will no have effect to column width. Foe example: without the TT_FL_NOEXTREMES flag for the 'AAA' column: AAA BBB CCC DDD aa bbb ccc ddd aaaaaaaaaaa bb ccc ddd aa bb ccc ddd aa bb ccc ddd with the flags: AAA BBB CCC DDD aa bbb ccc dddddddddd aaaaaaaaaaa bb ccc dddddddd aa bb ccc dddddd aa bb ccc ddddddddd Signed-off-by: Karel Zak include/tt.h | 14 +++-- lib/tt.c | 165 +++++++++++++++++++++++++++++++++++++------------ misc-utils/findmnt.c | 4 +- misc-utils/lsblk.c | 2 +- 4 files changed, 136 insertions(+), 49 deletions(-) commit 18c5bee13b506f9591c36564e9b1c8a6b51c9001 Author: Bernhard Voelker Date: Wed Nov 9 13:33:54 2011 +0100 prlimit: fix noheadings option in man page Signed-off-by: Bernhard Voelker sys-utils/prlimit.1 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit ebdd79c9ee97249a021258e0b0b6d06396945259 Author: Karel Zak Date: Wed Nov 9 11:53:49 2011 +0100 prlimit: fix SYS_ macro Reported-by: "Voelker, Bernhard" Signed-off-by: Karel Zak sys-utils/prlimit.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 26e42d8123843d09926f989040dec8169c1de62f Author: Petr Uzel Date: Wed Nov 9 10:10:52 2011 +0100 libmount: fix trivial typos in debugging output Signed-off-by: Petr Uzel libmount/src/cache.c | 2 +- libmount/src/context.c | 2 +- libmount/src/context_mount.c | 4 ++-- libmount/src/context_umount.c | 2 +- libmount/src/optstr.c | 2 +- libmount/src/tab_update.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) commit 3c6e035e1acad7d1b6faef67c809fa41efc49c48 Author: Francesco Cosoleto Date: Tue Nov 8 23:14:54 2011 +0100 whereis: remove unused value warning Signed-off-by: Francesco Cosoleto misc-utils/whereis.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 07ce7003b9276ae9aa3481d69cbf914fd1364f96 Author: Francesco Cosoleto Date: Tue Nov 8 23:14:53 2011 +0100 libblkid: silence a format string warning [-Wformat] Fix the following clang warning: exfat.c:130:41: warning: conversion specifies type 'unsigned short' but the argument has type 'uint8_t' (aka 'unsigned char') [-Wformat] blkid_probe_sprintf_version(pr, "%hu.%hu", ~~^ %c Signed-off-by: Francesco Cosoleto libblkid/src/superblocks/exfat.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d73af2ac4bf2cbac9d73650b3e1fdc5b85204d58 Author: Francesco Cosoleto Date: Tue Nov 8 23:14:52 2011 +0100 fsck.minix: remove unnecessary memset calls The program aborts without using this unintialized allocated memory, setting to zero doesn't look needed. memset calls with sizeof() of pointer as argument (reported by clang). [kzak@redhat.com: - replace malloc with calloc for {zone,inode}_count to make code more robust] Signed-off-by: Francesco Cosoleto Signed-off-by: Karel Zak disk-utils/fsck.minix.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) commit 6b44ec173b4b91292e2a84e83225c6a02df2becb Author: Davidlohr Bueso Date: Wed Nov 9 00:39:46 2011 +0100 mount: fix build With the new build changes when libmount is not defined the compilation breaks: fstab.c:440: undefined reference to `streq_except_trailing_slash' collect2: ld returned 1 exit status make[2]: *** [mtab_lock_test] Error 1 make[2]: Leaving directory `/home/dave/projects/ut/mount' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/dave/projects/ut' make: *** [all] Error 2 This patch adds strutils to the fstab.c rule. Signed-off-by: Davidlohr Bueso mount/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 6107377322d5d6866c3aa363def656fdf68311e6 Author: Karel Zak Date: Tue Nov 8 21:47:23 2011 +0100 libmount: fix chdir to parent for restricted (user) umounts Reported-by: Petr Uzel Signed-off-by: Karel Zak libmount/src/utils.c | 41 +++++++++++++++++++++++++---------------- 1 files changed, 25 insertions(+), 16 deletions(-) commit 614601052eeee9c3083fbf0b239dcdeda686a95b Author: Karel Zak Date: Tue Nov 8 16:38:56 2011 +0100 docs: refresh TODO file Signed-off-by: Karel Zak Documentation/TODO | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit b106d052383083b80c0dc41f1555d2661db00374 Author: Petr Uzel Date: Tue Nov 8 16:25:01 2011 +0100 libmount: ignore tailing slash in netfs source paths Addresses: https://bugzilla.novell.com/show_bug.cgi?id=728480 Signed-off-by: Petr Uzel Signed-off-by: Karel Zak include/strutils.h | 2 ++ lib/strutils.c | 32 ++++++++++++++++++++++++++++++++ libmount/src/fs.c | 5 +++-- libmount/src/tab.c | 17 ++++++++++++----- libmount/src/tab_parse.c | 11 +++++++++-- mount/fstab.c | 3 ++- 6 files changed, 60 insertions(+), 10 deletions(-) commit 0b14bf7af1f13b9bb0f3952af264c114bac83665 Author: Karel Zak Date: Mon Nov 7 16:45:11 2011 +0100 lib,loopdev: add LOOP_CTL_GET_FREE support Signed-off-by: Karel Zak include/loopdev.h | 10 +++++++++- include/pathnames.h | 2 ++ lib/loopdev.c | 36 +++++++++++++++++++++++++++++------- 3 files changed, 40 insertions(+), 8 deletions(-) commit 790a26b945247fdb2fb8fbcff78ff860b0fdb624 Author: Karel Zak Date: Mon Nov 7 11:31:47 2011 +0100 docs: add note about config-gen purpose Signed-off-by: Karel Zak Documentation/howto-build-sys.txt | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit f2278b63b802020a5b14e5202f1bb281bcb1b0d7 Author: Karel Zak Date: Mon Nov 7 11:18:09 2011 +0100 docs: refresh TODO file Signed-off-by: Karel Zak Documentation/TODO | 30 ------------------------------ 1 files changed, 0 insertions(+), 30 deletions(-) commit f950752b90a5d9f2a6733aeaa30569459514ff9f Author: Karel Zak Date: Mon Nov 7 11:04:44 2011 +0100 login: clean FAIL_DELAY usage ... with this patch: login(1) always uses sleep(FAIL_DELAY) before exit() if user is not authenticated or his PAM session is not fully initialized. Note that user has three attempts to write his password before login(1) is terminated. Reported-by: Francesco Cosoleto Signed-off-by: Karel Zak login-utils/login.1 | 4 ++-- login-utils/login.c | 20 +++++++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) commit d254c1dbae5790d0c5a36c3a4620a8109b2b2e59 Author: Karel Zak Date: Mon Nov 7 09:57:46 2011 +0100 prlimit: add --{raw,noheadings} options Signed-off-by: Karel Zak sys-utils/prlimit.1 | 6 +++++- sys-utils/prlimit.c | 28 +++++++++++++++++++++------- 2 files changed, 26 insertions(+), 8 deletions(-) commit d76f904af3781c00dfc02a49c94f95db444f5842 Author: Davidlohr Bueso Date: Wed Nov 2 18:40:19 2011 +0100 prlimit: add a units column Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak sys-utils/prlimit.c | 39 +++++++++++++++++++++++---------------- 1 files changed, 23 insertions(+), 16 deletions(-) commit 3db444cbffaf3f795f1f3070796b3b52fbfde0d2 Author: Karel Zak Date: Fri Nov 4 20:59:52 2011 +0100 docs: add notes about tools/config-gen Signed-off-by: Karel Zak Documentation/howto-build-sys.txt | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) commit adc8c80f428de798db664c2a161842184bfbe927 Author: Karel Zak Date: Fri Nov 4 20:58:21 2011 +0100 tests: add build-sys regression test Signed-off-by: Karel Zak tests/Makefile.am | 2 +- tests/expected/build-sys/config-all | 127 ++++++++++++++++++++++++++ tests/expected/build-sys/config-all-devel | 120 ++++++++++++++++++++++++ tests/expected/build-sys/config-all-non-nls | 127 ++++++++++++++++++++++++++ tests/expected/build-sys/config-audit | 113 +++++++++++++++++++++++ tests/expected/build-sys/config-core | 108 ++++++++++++++++++++++ tests/expected/build-sys/config-devel | 126 +++++++++++++++++++++++++ tests/expected/build-sys/config-non-libblkid | 85 +++++++++++++++++ tests/expected/build-sys/config-non-libmount | 104 +++++++++++++++++++++ tests/expected/build-sys/config-non-libs | 81 ++++++++++++++++ tests/expected/build-sys/config-non-libuuid | 104 +++++++++++++++++++++ tests/expected/build-sys/config-non-nls | 108 ++++++++++++++++++++++ tests/expected/build-sys/config-selinux | 113 +++++++++++++++++++++++ tests/expected/build-sys/config-slang | 108 ++++++++++++++++++++++ tests/expected/build-sys/config-static | 114 +++++++++++++++++++++++ tests/functions.sh | 4 +- tests/ts/build-sys/config | 61 ++++++++++++ 17 files changed, 1603 insertions(+), 2 deletions(-) commit 432227764f83c8c0815d8c82c420afea3d3a5257 Author: Karel Zak Date: Fri Nov 4 20:56:52 2011 +0100 build-sys: remove redundant flags from mount/Makefile.am Signed-off-by: Karel Zak mount/Makefile.am | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 9221fb85f6f5dc97d5a4810c2e87e8882fa85f02 Author: Karel Zak Date: Fri Nov 4 12:12:20 2011 +0100 build-sys: add tools/config-gen and basic compilation scenarios Signed-off-by: Karel Zak tools/config-gen | 31 +++++++++++++++++++++++++++++++ tools/config-gen-functions.sh | 33 +++++++++++++++++++++++++++++++++ tools/config-gen.d/all-non-nls.conf | 2 ++ tools/config-gen.d/all.conf | 6 ++++++ tools/config-gen.d/audit.conf | 4 ++++ tools/config-gen.d/core.conf | 2 ++ tools/config-gen.d/devel.conf | 8 ++++++++ tools/config-gen.d/non-libblkid.conf | 3 +++ tools/config-gen.d/non-libmount.conf | 3 +++ tools/config-gen.d/non-libs.conf | 4 ++++ tools/config-gen.d/non-libuuid.conf | 3 +++ tools/config-gen.d/non-nls.conf | 3 +++ tools/config-gen.d/selinux.conf | 4 ++++ tools/config-gen.d/slang.conf | 3 +++ tools/config-gen.d/static.conf | 3 +++ 15 files changed, 112 insertions(+), 0 deletions(-) commit 9ecd720f2cef66fceae2d429caf4141f5e0f4c24 Author: Karel Zak Date: Fri Nov 4 14:08:30 2011 +0100 build-sys: fix UL_INIT_BUILD macro Signed-off-by: Karel Zak m4/ul.m4 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 949cf64bbc4febc35a254a132dabaaeb9e0e0fbe Author: Karel Zak Date: Thu Nov 3 13:20:24 2011 +0100 tests: fix options evaluation, add support for optional tests Signed-off-by: Karel Zak tests/functions.sh | 2 + tests/run.sh | 53 +++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 40 insertions(+), 15 deletions(-) commit fa7be20eb91265d27b6b594fb2c0249e94a5a7be Author: Karel Zak Date: Fri Oct 28 00:33:41 2011 +0200 build-sys: fix libuuid initialization Signed-off-by: Karel Zak configure.ac | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 945ac25080493126d094731510b85bc2d90a1170 Author: Karel Zak Date: Fri Oct 28 00:23:59 2011 +0200 prlimit: add add falbacks Signed-off-by: Karel Zak configure.ac | 9 +++++++++ sys-utils/prlimit.c | 14 ++++++++++++++ 2 files changed, 23 insertions(+), 0 deletions(-) commit 8890b9138b62dcf6579f461131e899cf91d9401a Author: Karel Zak Date: Thu Oct 27 23:28:05 2011 +0200 libuuid: fix includes in man pages Signed-off-by: Karel Zak libuuid/man/uuid.3 | 2 +- libuuid/man/uuid_clear.3 | 2 +- libuuid/man/uuid_compare.3 | 2 +- libuuid/man/uuid_copy.3 | 2 +- libuuid/man/uuid_generate.3 | 2 +- libuuid/man/uuid_is_null.3 | 2 +- libuuid/man/uuid_parse.3 | 2 +- libuuid/man/uuid_time.3 | 2 +- libuuid/man/uuid_unparse.3 | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) commit 61a074f712303b08b3fd1e1564faed860370e0ab Author: Karel Zak Date: Thu Oct 27 17:46:47 2011 +0200 build-sys: add UL_BUILD_INIT macro Signed-off-by: Karel Zak configure.ac | 71 +++++++++++++++++++++++++++------------------------------- m4/ul.m4 | 28 ++++++++++++++++++---- 2 files changed, 56 insertions(+), 43 deletions(-) commit e09ebf22253b2c1b48ba80110a88b01935c94cc3 Author: Karel Zak Date: Thu Oct 27 17:04:49 2011 +0200 build-sys: cleanup BUILD_HWCLOCK Signed-off-by: Karel Zak configure.ac | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) commit f089811625f27fe04d4d638d6a513b17046bdea8 Author: Karel Zak Date: Thu Oct 27 16:50:54 2011 +0200 build-sys: cleanup BUILD_{WALL,WRITE} Signed-off-by: Karel Zak configure.ac | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 17d5e11bf85990031c310c9abe549e3e7225f080 Author: Karel Zak Date: Thu Oct 27 16:49:32 2011 +0200 build-sys: cleanup BUILD_SCHEDUTILS Signed-off-by: Karel Zak configure.ac | 62 ++++++++++++++++++++++++++++++----------------- schedutils/Makefile.am | 6 +--- 2 files changed, 41 insertions(+), 27 deletions(-) commit 75ad4910e338a1507e3e4e1d488c7da3ac27e86f Author: Karel Zak Date: Thu Oct 27 16:31:36 2011 +0200 build-sys: move --with-* before --enable-* Signed-off-by: Karel Zak configure.ac | 258 +++++++++++++++++++++++++++++----------------------------- 1 files changed, 130 insertions(+), 128 deletions(-) commit ff0cb84ddbd6f8e3b613a284479955222265bdff Author: Karel Zak Date: Thu Oct 27 16:28:35 2011 +0200 build-sys: cleanup BUILD_LOGIN_UTILS Signed-off-by: Karel Zak Documentation/TODO | 2 ++ configure.ac | 11 +++++------ 2 files changed, 7 insertions(+), 6 deletions(-) commit d11715422af5abf1dd9b87f19fee1cc2f401c3d6 Author: Karel Zak Date: Thu Oct 27 16:19:14 2011 +0200 build-sys: cleanup BUILD_{RENAME,RESET} Signed-off-by: Karel Zak configure.ac | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 2dc685290a34bef9f9c9b83e24137da9b5b25dd9 Author: Karel Zak Date: Thu Oct 27 16:18:12 2011 +0200 build-sys: cleanup BUILD_{LAST,LINE,MESG} Signed-off-by: Karel Zak configure.ac | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) commit 4be753aa4ce37179aba8858d670a5e5cab4f6ed0 Author: Karel Zak Date: Thu Oct 27 16:16:02 2011 +0200 build-sys: cleanup BUILD_KILL, enable kill(1) by default Signed-off-by: Karel Zak configure.ac | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit b8d8c653b18bd22e8efba88b362472018afab828 Author: Karel Zak Date: Thu Oct 27 16:10:55 2011 +0200 build-sys: cleanup BUILD_ELVTUNE Signed-off-by: Karel Zak configure.ac | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 9f63266727c3116fbab03262690255f18f6bef35 Author: Karel Zak Date: Thu Oct 27 16:07:50 2011 +0200 build-sys: cleanup BUILD_PIVOT_ROOT Signed-off-by: Karel Zak configure.ac | 21 +++------------------ 1 files changed, 3 insertions(+), 18 deletions(-) commit a3d3b7702ad23cb002e8ac9d5cb95118c46782f2 Author: Karel Zak Date: Thu Oct 27 16:05:41 2011 +0200 build-sys: cleanup BUILD_SWITCH_ROOT Signed-off-by: Karel Zak configure.ac | 22 +++++----------------- 1 files changed, 5 insertions(+), 17 deletions(-) commit d81b5a5217395850df7c5d49890f2177710449db Author: Karel Zak Date: Thu Oct 27 16:02:29 2011 +0200 build-sys: cleanup BUILD_CRAMFS Signed-off-by: Karel Zak configure.ac | 14 +++----------- disk-utils/Makefile.am | 3 ++- 2 files changed, 5 insertions(+), 12 deletions(-) commit 0fc74be1ab153936bbfdc41478df3daa2be45210 Author: Karel Zak Date: Thu Oct 27 15:57:18 2011 +0200 build-sys: cleanup BUILD_{DDATE,AGETTY} Signed-off-by: Karel Zak configure.ac | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) commit 3c6e292ca3dc558a7b6949028167cdc3bcf04db8 Author: Karel Zak Date: Thu Oct 27 15:56:05 2011 +0200 build-sys: cleanup BUILD_ARCH Signed-off-by: Karel Zak configure.ac | 26 +++++++++++++++----------- 1 files changed, 15 insertions(+), 11 deletions(-) commit a2ea6670bb3e1993385639e9d99b69f797486002 Author: Karel Zak Date: Thu Oct 27 15:51:28 2011 +0200 build-sys: cleanup BUILD_UNSHARE Signed-off-by: Karel Zak configure.ac | 40 +++++++++++----------------------------- 1 files changed, 11 insertions(+), 29 deletions(-) commit 10e56b49a8ded17991bc6807111656c974884d96 Author: Karel Zak Date: Thu Oct 27 15:48:51 2011 +0200 build-sys: cleanup BUILD_FALLOCATE Signed-off-by: Karel Zak configure.ac | 64 +++++++++++++++++++++------------------------------------ 1 files changed, 24 insertions(+), 40 deletions(-) commit 8d35bdc917b6dd0f2411cd1ea6ee33dac77265f6 Author: Karel Zak Date: Thu Oct 27 15:13:40 2011 +0200 build-sys: cleanup HAVE_LIBCRYPT Signed-off-by: Karel Zak configure.ac | 68 ++++++++++++++++++++++------------------------ login-utils/Makefile.am | 2 +- 2 files changed, 34 insertions(+), 36 deletions(-) commit cc0d0cba56b728211fc6bf767b5323634a841c20 Author: Karel Zak Date: Thu Oct 27 15:09:59 2011 +0200 chsh: remove non-PAM code Signed-off-by: Karel Zak login-utils/chsh.c | 20 ++------------------ 1 files changed, 2 insertions(+), 18 deletions(-) commit 5c47aa72f200a4f2579f6566f79f16a18e6d9c5c Author: Karel Zak Date: Thu Oct 27 15:06:49 2011 +0200 chfn: remove non-PAM code Signed-off-by: Karel Zak login-utils/chfn.c | 20 ++------------------ 1 files changed, 2 insertions(+), 18 deletions(-) commit 684b8860de7157dad540f815cec4c9756719cdf2 Author: Karel Zak Date: Thu Oct 27 14:59:20 2011 +0200 login: remove unnecessary ifdef HAVE_CRYPT_H Signed-off-by: Karel Zak login-utils/login.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) commit a67387b7caf8383b4302b1dc81ee9038ee05a875 Author: Karel Zak Date: Thu Oct 27 14:53:06 2011 +0200 build-sys: move structs, types, descs checks before --enable-* Signed-off-by: Karel Zak configure.ac | 95 +++++++++++++++++++++++++++++---------------------------- 1 files changed, 48 insertions(+), 47 deletions(-) commit 3aecf79deab24f985a393d996ca10cab70a5cbd2 Author: Karel Zak Date: Thu Oct 27 14:48:49 2011 +0200 build-sys: move type checks before --enable-* Signed-off-by: Karel Zak configure.ac | 68 ++++++++++++++++++++++++++++----------------------------- 1 files changed, 33 insertions(+), 35 deletions(-) commit 09734b00f87d94514911724bd7466b326201d4f2 Author: Karel Zak Date: Thu Oct 27 14:44:30 2011 +0200 build-sys: move gettext check before --enable-* Signed-off-by: Karel Zak configure.ac | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) commit da396d88367845c61cf88b52cff98dfbdc9e12ce Author: Karel Zak Date: Thu Oct 27 14:40:00 2011 +0200 build-sys: cleanup BUILD_{LS,CH}CPU Signed-off-by: Karel Zak configure.ac | 12 ++++++++++++ sys-utils/Makefile.am | 8 +++++--- 2 files changed, 17 insertions(+), 3 deletions(-) commit a9127bc15821ed5d783084403540d3870793bb85 Author: Karel Zak Date: Thu Oct 27 14:31:34 2011 +0200 build-sys: cleanup BUILD_MOUNTPOINT Signed-off-by: Karel Zak configure.ac | 15 +-------------- 1 files changed, 1 insertions(+), 14 deletions(-) commit fd404bd4f0c35924055f073f5effaa69c17a719c Author: Karel Zak Date: Thu Oct 27 14:28:59 2011 +0200 build-sys: cleanup misc-utils/Makefile.am Signed-off-by: Karel Zak misc-utils/Makefile.am | 40 ++++++++++++++++++++-------------------- 1 files changed, 20 insertions(+), 20 deletions(-) commit 30f9fbb488eac6cd3f2d1bd72e7491d4bf69b2ce Author: Karel Zak Date: Thu Oct 27 14:28:27 2011 +0200 docs: add note about BUILD_* macros Signed-off-by: Karel Zak Documentation/howto-build-sys.txt | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit a13cdb7a2d493777588dd98ba4c7ad4f280319c0 Author: Karel Zak Date: Thu Oct 27 14:20:35 2011 +0200 build-sys: cleanup BUILD_LSBLK Signed-off-by: Karel Zak configure.ac | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) commit bcdab497df60efd55878ee98b5694c3babfd6412 Author: Karel Zak Date: Thu Oct 27 14:17:00 2011 +0200 build-sys: cleanup BUILD_UUIDD Signed-off-by: Karel Zak configure.ac | 17 +++++------------ misc-utils/Makefile.am | 3 ++- 2 files changed, 7 insertions(+), 13 deletions(-) commit 13f5473e10a1a21d811d61c27eef2f7b327c2be4 Author: Karel Zak Date: Thu Oct 27 13:45:42 2011 +0200 build-sys: cleanup BUILD_LIBMOUNT Signed-off-by: Karel Zak configure.ac | 98 +++++++++++++++++++++++++++------------------------------ 1 files changed, 46 insertions(+), 52 deletions(-) commit 4f3b364bec160fea2c7ec16da073df18abe25a66 Author: Karel Zak Date: Thu Oct 27 12:55:05 2011 +0200 build-sys: use $build_libblkid Signed-off-by: Karel Zak configure.ac | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit ecde25362e59dab4c79367296b19852a1062475b Author: Karel Zak Date: Thu Oct 27 12:52:01 2011 +0200 build-sys: cleanup BUILD_PARTX Signed-off-by: Karel Zak configure.ac | 15 ++------------- 1 files changed, 2 insertions(+), 13 deletions(-) commit 1d12ed5780972c8784206b0016d576e908701fbd Author: Karel Zak Date: Thu Oct 27 12:44:06 2011 +0200 build-sys: cleanup BUILD_FSCK Signed-off-by: Karel Zak configure.ac | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) commit 9ead6701a13c3de60304e7b45c290b3fd81e36fb Author: Karel Zak Date: Thu Oct 27 12:39:30 2011 +0200 build-sys: cleanup BUILD_MOUNT Signed-off-by: Karel Zak configure.ac | 41 +++++++++++++++-------------------------- mount/Makefile.am | 11 +++-------- 2 files changed, 18 insertions(+), 34 deletions(-) commit 16ba8d58938f521e2452874fa84a8dff361be440 Author: Karel Zak Date: Thu Oct 27 12:08:01 2011 +0200 build-sys: cleanup BUILD_RAW Signed-off-by: Karel Zak configure.ac | 14 +++++++++----- disk-utils/Makefile.am | 2 -- 2 files changed, 9 insertions(+), 7 deletions(-) commit 2897f50a6a6d1aab653c7017f7542d26ac2a8a0b Author: Karel Zak Date: Thu Oct 27 11:10:53 2011 +0200 build-sys: remove unnecessary perl check Signed-off-by: Karel Zak configure.ac | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit aa594805265a1f2d0978e3e4bd2f1ec6a6c770f0 Author: Karel Zak Date: Thu Oct 27 11:06:08 2011 +0200 docs: add howto-build-sys.txt Signed-off-by: Karel Zak Documentation/howto-build-sys.txt | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) commit b17e82065e2ceaf7c7c0d108483a0a09f260030c Author: Karel Zak Date: Thu Oct 27 10:45:04 2011 +0200 build-sys: add UL_REQUIRES_* macros UL_REQUIRES_{LINUX,BUILD,HAVE} macros check for dependence between --enable-* state and OS type, another build (e.g. libblkid), function or library. Signed-off-by: Karel Zak m4/ul.m4 | 127 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 127 insertions(+), 0 deletions(-) commit 1dbbde662f210dd13471387849d789c5a9cb9489 Author: Karel Zak Date: Thu Oct 27 10:32:24 2011 +0200 build-sys: move --enable-lib{mount,uuid,blkid} before others --enable-* Signed-off-by: Karel Zak configure.ac | 126 +++++++++++++++++++++++++++++++-------------------------- 1 files changed, 68 insertions(+), 58 deletions(-) commit 132ea94136060df518ad12e2e2a83bbe4585fe63 Author: Karel Zak Date: Tue Oct 25 17:00:32 2011 +0200 build-sys: rename and move macros - use m4/ul.m4 for util-linux macros - use UL_ prefix for all util-linux macros Signed-off-by: Karel Zak .gitignore | 3 + configure.ac | 184 ++++++++++++---------------------------------------------- m4/ul.m4 | 126 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 166 insertions(+), 147 deletions(-) commit ba64bbd224ee65122c47d78629ebf231de0c01e9 Author: Sami Kerola Date: Wed Nov 2 19:15:27 2011 +0100 ldattach: add default case to switches The warnings bellow are about impossible case, so makign abort() as default seems correct. ldattach.c:305:2: warning: switch missing default case [-Wswitch-default] ldattach.c:313:2: warning: switch missing default case [-Wswitch-default] ldattach.c:321:2: warning: switch missing default case [-Wswitch-default] Signed-off-by: Sami Kerola sys-utils/ldattach.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit 3a134012040d2d9f42398a393a3217e1ad86155b Author: Sami Kerola Date: Wed Nov 2 19:07:34 2011 +0100 ldattach: convert debug macro to function warning: ISO C does not permit named variadic macros Signed-off-by: Sami Kerola sys-utils/ldattach.c | 24 +++++++++++++++++------- 1 files changed, 17 insertions(+), 7 deletions(-) commit 7b2d3de475b6812252d97960cc831c707f9712bf Author: Sami Kerola Date: Tue Nov 1 21:32:54 2011 +0100 ldattach: check numeric user inputs with strtol_or_err Signed-off-by: Sami Kerola sys-utils/Makefile.am | 1 + sys-utils/ldattach.c | 25 +++++++------------------ 2 files changed, 8 insertions(+), 18 deletions(-) commit a8023b9aec6f03d3e9ddab22ef814a6a657cd201 Author: Sami Kerola Date: Tue Nov 1 21:17:58 2011 +0100 ldattach: align with howto-usage-function.txt Signed-off-by: Sami Kerola sys-utils/ldattach.c | 37 +++++++++++++++++++++++++------------ 1 files changed, 25 insertions(+), 12 deletions(-) commit 28e91b8395cacdd361fad85243a92e3868770451 Author: Sami Kerola Date: Tue Nov 1 20:45:19 2011 +0100 ldattach: fix coding style Signed-off-by: Sami Kerola sys-utils/ldattach.c | 445 +++++++++++++++++++++++++------------------------ 1 files changed, 227 insertions(+), 218 deletions(-) commit c74138a1e57a1e87e07b01767354332ae8739e4f Author: Sami Kerola Date: Mon Oct 31 22:13:24 2011 +0100 docs: add long options to readprofile.8 Additionally align with with howto-man-page.txt Signed-off-by: Sami Kerola sys-utils/readprofile.8 | 148 +++++++++++++++++++++-------------------------- 1 files changed, 66 insertions(+), 82 deletions(-) commit a3f0ea51e4a2fda5e03c287be46efba8cac874a3 Author: Sami Kerola Date: Mon Oct 31 21:52:56 2011 +0100 readprofile: fix coding style Signed-off-by: Sami Kerola sys-utils/readprofile.c | 155 ++++++++++++++++++++++++----------------------- 1 files changed, 78 insertions(+), 77 deletions(-) commit c416814a6b1494a18a828a20aa83e2760900c3e7 Author: Sami Kerola Date: Mon Oct 31 21:38:11 2011 +0100 readprofile: use libc error printing facilities This commit also changes all exit values to be symbolic. Signed-off-by: Sami Kerola sys-utils/readprofile.c | 79 +++++++++++++++------------------------------- 1 files changed, 26 insertions(+), 53 deletions(-) commit 443f7313036757aa58ad03c554901789bb67b147 Author: Sami Kerola Date: Mon Oct 31 21:12:30 2011 +0100 readprofile: add long options Signed-off-by: Sami Kerola sys-utils/readprofile.c | 72 ++++++++++++++++++++++++++++++++--------------- 1 files changed, 49 insertions(+), 23 deletions(-) commit 8de4751a3fb31da266c56884143fdc141d10950c Author: Sami Kerola Date: Sun Oct 30 16:41:21 2011 +0100 docs: align tunelp.8 with howto-man-page.txt Signed-off-by: Sami Kerola sys-utils/tunelp.8 | 182 +++++++++++++++++++++++----------------------------- 1 files changed, 80 insertions(+), 102 deletions(-) commit 42eb213e280eacc5714fa818cf0709923abd48e6 Author: Sami Kerola Date: Sun Oct 30 16:25:16 2011 +0100 docs: add long options to tunelp.8 Signed-off-by: Sami Kerola sys-utils/tunelp.8 | 45 +++++++++++++-------------------------------- 1 files changed, 13 insertions(+), 32 deletions(-) commit a21108babf7ab385444fc69d77e0363d16b20529 Author: Sami Kerola Date: Sun Oct 30 16:03:19 2011 +0100 tunelp: add long options and align with howto-usage-function.txt Signed-off-by: Sami Kerola sys-utils/tunelp.c | 65 ++++++++++++++++++++++++++++++++++++++------------- 1 files changed, 48 insertions(+), 17 deletions(-) commit 915b4bacae839a698f6cd9741de9b0f25cbc3769 Author: Sami Kerola Date: Sun Oct 30 15:19:59 2011 +0100 tunelp: use libc error printing facilities Signed-off-by: Sami Kerola sys-utils/tunelp.c | 47 +++++++++++++++++------------------------------ 1 files changed, 17 insertions(+), 30 deletions(-) commit 0720766e3bbe1b047da1569de9d308a710e383e8 Author: Petr Uzel Date: Tue Nov 1 16:29:42 2011 +0100 dmesg: fix printing of multibyte characters Also make it compile if HAVE_WIDECHAR is not defined. Addresses: https://bugzilla.novell.com/show_bug.cgi?id=725993 Reported-by: Harald Koenig Signed-off-by: Petr Uzel sys-utils/dmesg.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) commit fe208f9e78755b13a3e48de4f8586ee39be2ce50 Author: Davidlohr Bueso Date: Wed Oct 26 16:26:49 2011 +0200 docs: update TODO file Signed-off-by: Davidlohr Bueso Documentation/TODO | 11 ----------- 1 files changed, 0 insertions(+), 11 deletions(-) commit 4ded382332149a9608252c6f2f62c8b2db78a0f1 Author: Davidlohr Bueso Date: Wed Nov 2 16:22:44 2011 +0100 partx: use USAGE_ macros Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak partx/partx.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 507d39c28765a2769ecb394dc644bf914e615576 Author: Davidlohr Bueso Date: Wed Oct 26 15:58:18 2011 +0200 lsblk: remove __NCOLUMNS We use ARRAY_SIZE() instead to define the amount of available columns. [kzak@redhat.com: - fix compiler warnings [-Wsign-compare]] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak misc-utils/lsblk.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) commit 10ebfeeaf4cd093e25488bf4d95bebf10157ec62 Author: Davidlohr Bueso Date: Wed Oct 26 15:57:38 2011 +0200 partx: remove __NCOLUMNS We use ARRAY_SIZE() instead to define the amount of available columns. [kzak@redhat.com: - fix compiler warnings [-Wsign-compare]] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak partx/partx.c | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) commit e31741980762744352890d37522cbf4dd0ced9c4 Author: Karel Zak Date: Wed Nov 2 15:51:45 2011 +0100 fsck: use FS blacklist for non-all mode too Reported-by: Lennart Poettering Signed-off-by: Karel Zak fsck/fsck.c | 43 +++++++++++++++++++++++++++++++++++++++---- 1 files changed, 39 insertions(+), 4 deletions(-) commit 130314aa70616237082a6b68ffac8faae438cb6f Author: Sami Kerola Date: Sun Oct 30 15:08:18 2011 +0100 tunelp: use symbolic exit values Signed-off-by: Sami Kerola sys-utils/tunelp.c | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) commit 61319c6e3e3915bc917bcd2d62521bb2d266320d Author: Sami Kerola Date: Sun Oct 30 15:02:00 2011 +0100 tunelp: fix coding style Signed-off-by: Sami Kerola sys-utils/tunelp.c | 429 +++++++++++++++++++++++++++------------------------- 1 files changed, 225 insertions(+), 204 deletions(-) commit 0fbd4c8572da26879b4cad8dbc8d040811aa1350 Author: Sami Kerola Date: Sun Oct 30 14:47:31 2011 +0100 switch_root: add nls support Signed-off-by: Sami Kerola sys-utils/switch_root.c | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-) commit ed8d2938f36c7094ec3ba1dca821b5ded02ba1a5 Author: Sami Kerola Date: Sun Oct 30 14:45:14 2011 +0100 switch_root: align with howto-usage-function.txt Signed-off-by: Sami Kerola sys-utils/switch_root.c | 27 +++++++++++++++------------ 1 files changed, 15 insertions(+), 12 deletions(-) commit 6a87798a5351d45f17305048a16373dd6e680263 Author: Sami Kerola Date: Sun Oct 30 14:35:06 2011 +0100 unshare: align with howto-usage-function.txt Signed-off-by: Sami Kerola sys-utils/unshare.c | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) commit 0e00261d2eb3bcc557d96e2743077fdf6548f17d Author: Sami Kerola Date: Sun Oct 30 14:23:54 2011 +0100 rtcwake: align with howto-usage-function.txt Signed-off-by: Sami Kerola sys-utils/rtcwake.c | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) commit cbfa325318dc9ed7f47bffa9e0f3b823fbbb003c Author: Sami Kerola Date: Sun Oct 30 14:08:33 2011 +0100 setsid: add long options and fix coding style Signed-off-by: Sami Kerola sys-utils/setsid.c | 73 +++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 52 insertions(+), 21 deletions(-) commit ee74f262bc4f67868d17cf1ea4a91ce9f4840cf7 Author: Karel Zak Date: Fri Oct 7 17:56:27 2011 +0200 login: cosmetic changes in docs Signed-off-by: Karel Zak login-utils/login.1 | 4 +++- login-utils/login.c | 3 +++ 2 files changed, 6 insertions(+), 1 deletions(-) commit 9f7293ea88d8fdbd58f66949ec5d230d09bed50d Author: Karel Zak Date: Thu Oct 6 00:56:32 2011 +0200 login: use ENV_PATH and ENV_{ROOT,SU}PATH from login.defs Signed-off-by: Karel Zak login-utils/login.1 | 12 ++++++++++++ login-utils/login.c | 10 +++++++++- 2 files changed, 21 insertions(+), 1 deletions(-) commit 92e386cac11b128ed2386df555478a79c6f5998e Author: Karel Zak Date: Thu Oct 6 00:56:32 2011 +0200 login: add -H option for compatibility with Suse Note that our login(1) uses hostname without domain, so: "foo login: " this is compatible with the default agetty(8) behavior. Signed-off-by: Karel Zak login-utils/login.1 | 10 +++++++- login-utils/login.c | 66 +++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 65 insertions(+), 11 deletions(-) commit cea8ec53de95a08d2503706f40d8dfafc14a15e8 Author: Karel Zak Date: Thu Oct 6 00:30:45 2011 +0200 login: use LOG_UNKFAIL_ENAB from login.defs, improve logging Signed-off-by: Karel Zak login-utils/login.1 | 9 ++++++++- login-utils/login.c | 29 +++++++++++++++++++++++------ 2 files changed, 31 insertions(+), 7 deletions(-) commit 91d0a913574f77fcb49d6ce950e497bd6b41014e Author: Karel Zak Date: Wed Oct 5 23:50:12 2011 +0200 login: use DEFAULT_HOME from login.defs Signed-off-by: Karel Zak login-utils/login.1 | 8 ++++++++ login-utils/login.c | 3 +++ 2 files changed, 11 insertions(+), 0 deletions(-) commit 84d3c9ffb3df124a078555d35fa7c8acd73dad01 Author: Karel Zak Date: Wed Oct 5 23:39:14 2011 +0200 login: use HUSHLOGIN_FILE from login.defs Note that Suse login(1) does not use any default for HUSHLOGIN_FILE. We use /etc/hushlogins and ~/.hushlogin as default. The another difference is that *empty* global (e.g. /etc/hushlogins) means that hushed mode will be enabled for all accounts. Signed-off-by: Karel Zak login-utils/login.1 | 16 ++++++++++++++++ login-utils/login.c | 15 ++++++++++++++- 2 files changed, 30 insertions(+), 1 deletions(-) commit 45d0a30ea385fc8e32caba256c93d44c3f2b535c Author: Karel Zak Date: Wed Oct 5 23:07:45 2011 +0200 login: use TTYGROUP from login.defs Note that Suse login(1) does not use any default for TTYGROUP, it means that TTYGROUP has to be explicitly defined otherwise user\'s primary group is used. The util-linux login(1) uses 'tty' group name as a default value. Signed-off-by: Karel Zak login-utils/login.1 | 9 +++++++++ login-utils/login.c | 15 +++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) commit 738246edbaa0c8f763acf0d6bca9f354a9d59647 Author: Karel Zak Date: Wed Oct 5 13:56:09 2011 +0200 login: use TTYPERM from login.defs Signed-off-by: Karel Zak login-utils/login.1 | 6 ++++++ login-utils/login.c | 18 +++++++++++------- 2 files changed, 17 insertions(+), 7 deletions(-) commit ca5ee2a83d1fe408dc5d8ca2271b7dafcb7a5f45 Author: Karel Zak Date: Wed Oct 5 13:41:40 2011 +0200 login: use FAIL_DELAY from login.defs Signed-off-by: Karel Zak login-utils/login.1 | 7 ++++++- login-utils/login.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) commit 9abd9cded9682414071a8468ff6fbd653edf7829 Author: Karel Zak Date: Wed Oct 5 13:38:15 2011 +0200 login: use LOGIN_TIMEOUT from login.defs Signed-off-by: Karel Zak login-utils/login.1 | 5 +++++ login-utils/login.c | 2 ++ 2 files changed, 7 insertions(+), 0 deletions(-) commit 4d8fc09c27d178eb187544270eeeebb0cd16ab36 Author: Karel Zak Date: Wed Oct 5 13:30:52 2011 +0200 login: rewrite motd(), use MOTD_FILE from login.defs Note that Suse login(1) does not use any default for MOTD_FILE, so MOTD_FILE item in login.defs is required otherwise nothing is printed. We use (for backward compatibility) /etc/motd as default. Signed-off-by: Karel Zak login-utils/Makefile.am | 3 +- login-utils/login.1 | 20 +++++++++++++++++ login-utils/login.c | 53 +++++++++++++++++++++++++++------------------- 3 files changed, 53 insertions(+), 23 deletions(-) commit 7d6b450d7b12a8073845d52b9f2fafb970b79c4d Author: Karel Zak Date: Wed Oct 5 13:16:30 2011 +0200 login: remove obsolete info from man page Signed-off-by: Karel Zak login-utils/login.1 | 301 ++++++++++----------------------------------------- 1 files changed, 60 insertions(+), 241 deletions(-) commit 565330a3388b47dda8b9028723baa7bf4b7d3d4f Author: Karel Zak Date: Wed Oct 5 12:15:50 2011 +0200 tests: remove obsolete checktty test Signed-off-by: Karel Zak tests/expected/login/checktty | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) commit c82d9c977c7fdf28ede2db15601edde1a5819511 Author: Karel Zak Date: Wed Oct 5 12:10:26 2011 +0200 login: add login.defs code and tests The new logindefs.c file contains /etc/login.defs parser and functions for searching in the list of the login default variables. The patch also contains a new regression test for the code. Based on pam_login-4.0 from Suse. Signed-off-by: Karel Zak include/pathnames.h | 2 + login-utils/.gitignore | 1 + login-utils/Makefile.am | 5 +- login-utils/logindefs.c | 246 ++++++++++++++++++++++++++++++++++++++++ login-utils/logindefs.h | 9 ++ tests/commands.sh.in | 1 + tests/expected/login/logindefs | 14 +++ tests/ts/login/logindefs | 24 ++++ tests/ts/login/logindefs.data | 16 +++ 9 files changed, 317 insertions(+), 1 deletions(-) commit c293a7e8aeaa09032faf8648f01205a30575232a Author: Karel Zak Date: Tue Oct 4 23:45:45 2011 +0200 tests: cleanup islocal test Signed-off-by: Karel Zak login-utils/.gitignore | 2 +- login-utils/Makefile.am | 7 +++---- login-utils/islocal.c | 6 +++--- tests/commands.sh.in | 3 ++- tests/ts/login/islocal | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) commit cbbd5185943fcd964dafff2f64ec8eb583436620 Author: Karel Zak Date: Mon Oct 3 17:45:36 2011 +0200 login: host{name,address} initialization refactoring Signed-off-by: Karel Zak login-utils/login.c | 83 ++++++++++++++++++++++++++------------------------ 1 files changed, 43 insertions(+), 40 deletions(-) commit fc32d43e06667af31f416d038e6ccfe952dfc87b Author: Karel Zak Date: Mon Oct 3 17:28:57 2011 +0200 login: remove unnecessary variables Signed-off-by: Karel Zak login-utils/login.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) commit 9abc9dabc53fa46ea93f75d9e5ccad2ed19656a9 Author: Karel Zak Date: Mon Oct 3 17:23:43 2011 +0200 login: move signal stuff to the one place Signed-off-by: Karel Zak login-utils/login.c | 166 +++++++++++++++++++++++++-------------------------- 1 files changed, 82 insertions(+), 84 deletions(-) commit 516b00c4283fbc0880cf019bc7ff09e371175132 Author: Karel Zak Date: Mon Oct 3 17:21:04 2011 +0200 login: log good logins refactoring Signed-off-by: Karel Zak login-utils/login.c | 50 ++++++++++++++++++++++++++------------------------ 1 files changed, 26 insertions(+), 24 deletions(-) commit a2e84c7dbe1b6a4263d40ba3435fa1371f53c018 Author: Karel Zak Date: Mon Oct 3 17:06:08 2011 +0200 login: use xalloc.h Signed-off-by: Karel Zak login-utils/login.c | 17 +++++------------ 1 files changed, 5 insertions(+), 12 deletions(-) commit 241e45651598438ac42f21437673f056c8999ebd Author: Karel Zak Date: Mon Oct 3 17:04:05 2011 +0200 login: env initialization refactoring Signed-off-by: Karel Zak login-utils/login.c | 98 +++++++++++++++++++++++---------------------------- 1 files changed, 44 insertions(+), 54 deletions(-) commit a169a454e9da2cbc1e728993e5ef45243d25920d Author: Karel Zak Date: Mon Oct 3 16:41:10 2011 +0200 login: fork & session initialization refactoring Signed-off-by: Karel Zak login-utils/login.c | 200 +++++++++++++++++++++++++++------------------------ 1 files changed, 106 insertions(+), 94 deletions(-) commit 4ab0df0ae2c64fe9e6e00c6417d80ce31bc14167 Author: Karel Zak Date: Tue Sep 13 12:51:55 2011 +0200 login: remove pam_handle_t from main() Signed-off-by: Karel Zak login-utils/login.c | 30 +++++++++++++++++------------- 1 files changed, 17 insertions(+), 13 deletions(-) commit 59a184d93a7e3a82fbb0064e8158d5ad1731fd6e Author: Karel Zak Date: Tue Sep 13 12:45:48 2011 +0200 login: PAM session initialization refactoring Signed-off-by: Karel Zak login-utils/login.c | 29 ++++++++++++++++++++--------- 1 files changed, 20 insertions(+), 9 deletions(-) commit 98306fc5fe99cd179d55ed08d1e99eef39c282e2 Author: Karel Zak Date: Tue Sep 13 12:40:58 2011 +0200 login: PAM account checks refactoring Signed-off-by: Karel Zak login-utils/login.c | 61 +++++++++++++++++++++++++++++--------------------- 1 files changed, 35 insertions(+), 26 deletions(-) commit a2de61779a44a02117cbb1d3e97b46303d078ddd Author: Karel Zak Date: Tue Sep 13 12:32:24 2011 +0200 login: PAM auth refactoring Signed-off-by: Karel Zak login-utils/login.c | 140 ++++++++++++++++++++++++++------------------------ 1 files changed, 73 insertions(+), 67 deletions(-) commit eab72c4e056c1934eeb8fc510245d4264500cfd1 Author: Karel Zak Date: Tue Sep 13 12:04:18 2011 +0200 login: PAM initialization refactoring Signed-off-by: Karel Zak login-utils/login.c | 106 +++++++++++++++++++++++++++++---------------------- 1 files changed, 60 insertions(+), 46 deletions(-) commit 721bbc66a50e4fcac1ccaf747095fce8529a6c99 Author: Karel Zak Date: Tue Sep 13 11:37:32 2011 +0200 login: remove unused code and tests Signed-off-by: Karel Zak login-utils/Makefile.am | 2 +- login-utils/login.c | 10 ++++------ login-utils/login.h | 9 --------- tests/commands.sh.in | 1 - tests/ts/login/checktty | 26 -------------------------- 5 files changed, 5 insertions(+), 43 deletions(-) commit 918b1a9ddd063bf080eda683f4d25c2c65bd6fc6 Author: Karel Zak Date: Mon Aug 29 10:30:42 2011 +0200 login: improve hushed mode (merge suse changes) Signed-off-by: Karel Zak include/pathnames.h | 1 + login-utils/login.c | 122 +++++++++++++++++++++++++++++++++++++------------- 2 files changed, 91 insertions(+), 32 deletions(-) commit a750743648b2f0f1bd075f08ae88d0fa948fb7be Author: Karel Zak Date: Fri Aug 26 14:41:03 2011 +0200 login: use setgroups(0, NULL) for root Signed-off-by: Karel Zak login-utils/login.c | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) commit ff0392a05566f0d5d1d005f889b519d0963a9cb4 Author: Karel Zak Date: Fri Aug 26 13:25:13 2011 +0200 login: tty chown.chmod refactoring Signed-off-by: Karel Zak login-utils/login.c | 58 +++++++++++++++++++++++++++++++++----------------- 1 files changed, 38 insertions(+), 20 deletions(-) commit 67e7076149b0028b69d1105b1c3dd8cb40f460a1 Author: Karel Zak Date: Fri Aug 26 12:56:07 2011 +0200 login: use getpwnam_r() rather than manually copy passwd struct Signed-off-by: Karel Zak login-utils/login.c | 84 ++++++++++++++++++++++++++++++++------------------- 1 files changed, 53 insertions(+), 31 deletions(-) commit 6e3bc8a67ad30991ea22b7bd691a1533d864b53e Author: Karel Zak Date: Fri Aug 26 12:15:09 2011 +0200 login: utmp code refactoring Signed-off-by: Karel Zak configure.ac | 1 - login-utils/login.c | 170 +++++++++++++++++++++++---------------------------- 2 files changed, 77 insertions(+), 94 deletions(-) commit 3761d0bb1247d70025f15788f0fc1725661cd616 Author: Karel Zak Date: Thu Aug 25 18:05:33 2011 +0200 login: lastlog code refactoring Signed-off-by: Karel Zak login-utils/login.c | 103 ++++++++++++++++++++++++++------------------------ 1 files changed, 54 insertions(+), 49 deletions(-) commit c3f974a13a75a7162c5116cb6b07d2b50ae6bbac Author: Karel Zak Date: Thu Aug 25 17:54:59 2011 +0200 login: use login_context struct in audit stuff Signed-off-by: Karel Zak login-utils/login.c | 36 ++++++++++++++++++++---------------- 1 files changed, 20 insertions(+), 16 deletions(-) commit 3eb8b79796c8677bd6d600a1b02db39a4f87642a Author: Karel Zak Date: Thu Aug 25 17:49:00 2011 +0200 login: add username to login_context struct Signed-off-by: Karel Zak login-utils/login.c | 59 +++++++++++++++++++++++++-------------------------- 1 files changed, 29 insertions(+), 30 deletions(-) commit 0180264f41dd5c2687f3e47080e30799acc4e24a Author: Karel Zak Date: Thu Aug 25 17:41:00 2011 +0200 login: add pid to login_context struct Signed-off-by: Karel Zak login-utils/login.c | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) commit d20337edc1ea8d5a39959e23268654fd47a385b6 Author: Karel Zak Date: Thu Aug 25 17:38:16 2011 +0200 login: add hostname to login_context struct Signed-off-by: Karel Zak login-utils/login.c | 71 ++++++++++++++++++++++++++------------------------ 1 files changed, 37 insertions(+), 34 deletions(-) commit 99f7c1312c340183fefeb54ac04bb50cd5f475cb Author: Karel Zak Date: Thu Aug 25 16:13:36 2011 +0200 login: add struct login_context, consolidate tty code - move all tty_* variables to struct login_context - move all tty initialization code to init_tty() - LOG_ERR on failed tty ch{mod,own} [based on SUSE pam_login - note that we don't write any this error to stderr] Signed-off-by: Karel Zak login-utils/login.c | 228 +++++++++++++++++++++++++++------------------------ 1 files changed, 122 insertions(+), 106 deletions(-) commit ab71156cfb080d29e2bf498f1ccebb462c8145bc Author: Karel Zak Date: Thu Aug 25 12:38:47 2011 +0200 login: indent -linux Yeah, this patch is horrible, but necessary before a real changes to the code... Signed-off-by: Karel Zak login-utils/login.c | 1591 ++++++++++++++++++++++++++------------------------- 1 files changed, 806 insertions(+), 785 deletions(-) commit 48f097880b9dc19892f3d44ad23db9d92f79d73b Author: Karel Zak Date: Thu Aug 25 12:27:40 2011 +0200 login: remove obsolete code, clean up macros names Signed-off-by: Karel Zak login-utils/login.c | 50 +++++++++++--------------------------------------- 1 files changed, 11 insertions(+), 39 deletions(-) commit cb5acd69aaf7397d56e58d566f1f2663e86eeb6c Author: Karel Zak Date: Thu Aug 25 12:09:38 2011 +0200 login: cleanup begin of the login.c file Signed-off-by: Karel Zak login-utils/login.c | 27 ++++++++++----------------- 1 files changed, 10 insertions(+), 17 deletions(-) commit 52b7b4876c03168ab19d6f5bbd02d1aa09f100fd Author: Karel Zak Date: Thu Aug 25 12:07:12 2011 +0200 lib: cleanup setproctitle.c Signed-off-by: Karel Zak include/setproctitle.h | 10 +++--- lib/setproctitle.c | 75 +++++++++++++----------------------------------- 2 files changed, 25 insertions(+), 60 deletions(-) commit 905045d49d69b996cf31ea8aaddae3911a993903 Author: Karel Zak Date: Thu Aug 25 11:48:06 2011 +0200 login: remove PAM_FAIL_CHECK and PAM_END macros * use function rather than horrible macros * rename get_pam_username -> loginpam_get_username Signed-off-by: Karel Zak login-utils/login.c | 80 +++++++++++++++++++++++++++++--------------------- 1 files changed, 46 insertions(+), 34 deletions(-) commit c94b3604f794c3e3794f055e43dd47526dffa9d7 Author: Karel Zak Date: Mon Aug 15 12:45:20 2011 +0200 build-sys: require PAM for login-utils Signed-off-by: Karel Zak configure.ac | 15 ++++----------- 1 files changed, 4 insertions(+), 11 deletions(-) commit 9244d3c2a60c39c7dd6250a8a6bf13d58bb76414 Author: Karel Zak Date: Fri Aug 12 14:07:18 2011 +0200 login: remove non-PAM code If you need non-PAM login(1) then use shadow-utils or busybox. Signed-off-by: Karel Zak login-utils/.gitignore | 1 - login-utils/Makefile.am | 11 +- login-utils/checktty.c | 585 ----------------------------------------------- login-utils/login.c | 240 +------------------- 4 files changed, 6 insertions(+), 831 deletions(-) commit 5d1a454ac93e69d7ae805f99e6c65c6167776760 Author: Karel Zak Date: Fri Aug 12 12:30:17 2011 +0200 login: move _PATH_BTMP to pathnames.h Signed-off-by: Karel Zak include/pathnames.h | 4 ++++ login-utils/login.c | 1 - 2 files changed, 4 insertions(+), 1 deletions(-) commit 0d28a157033f97fa7f34dba904641b7818255f50 Author: Karel Zak Date: Fri Aug 12 12:28:28 2011 +0200 login: remove dead code and comments Signed-off-by: Karel Zak login-utils/login.c | 103 ++++---------------------------------------------- 1 files changed, 9 insertions(+), 94 deletions(-) commit 9677febc182dddf3e91104126132449d7ae542fb Author: Karel Zak Date: Fri Aug 12 11:18:03 2011 +0200 login: remove kerberos specific code The code has not been used ever. If you want to use kerberos then us PAM... Signed-off-by: Karel Zak login-utils/login.c | 24 ------------------------ 1 files changed, 0 insertions(+), 24 deletions(-) commit 01095ae33c50d5e4c435d21f9a1003feb3047661 Author: Karel Zak Date: Fri Aug 5 13:47:22 2011 +0200 agetty: pass hostname to login(1) Signed-off-by: Karel Zak term-utils/agetty.8 | 4 ++++ term-utils/agetty.c | 25 ++++++++++++++++++------- 2 files changed, 22 insertions(+), 7 deletions(-) commit 6bac2825af7216c5471148e219dbcf62ec5ede84 Author: Davidlohr Bueso Date: Wed Oct 19 16:02:35 2011 -0400 prlimit: new command This program uses the prlimit() system call to get and/or set resource limits for a given process. [kzak@redhat,com: - improve parsing, - use short cmdline options compatible with ulimits - add --verbose mode - fix gcc warnings] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak sys-utils/.gitignore | 1 + sys-utils/Makefile.am | 7 +- sys-utils/prlimit.1 | 108 ++++++++++ sys-utils/prlimit.c | 571 +++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 685 insertions(+), 2 deletions(-) commit 6a2f2f58a428890a33b382876bab78c608cc7c1c Author: Karel Zak Date: Fri Oct 21 00:12:47 2011 +0200 blkid: print ID_PART_ENTRY_* for small devices The current optimization for small devices (1.4MiB) is broken. It checks for partition table, but if nothing is detected then details (ID_PART_ENTRY_*) about the current partition are not gathered. The optimization should be enabled for small *whole* disks only. Reported-by: David Zeuthen Signed-off-by: Karel Zak misc-utils/blkid.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) commit acb03ad46a0f5160fe7a1c9d9ec09c35494d3051 Author: Harald Hoyer Date: Thu Oct 20 10:05:20 2011 +0200 switch_root: handle /run and do not mount over existing mounts Handle /run just like /dev, /sys and /proc Do not mount move, if there is already something mounted on the destination folder. Signed-off-by: Harald Hoyer Signed-off-by: Karel Zak sys-utils/switch_root.c | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) commit 918e4271252ac49cf2d9f8ab56a55ba4dd74b583 Author: Karel Zak Date: Mon Oct 17 18:58:03 2011 +0200 mount: remounting tmpfs read-write hangs (selinux) Reported-by: Petr Pisar Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=746705 Signed-off-by: Karel Zak mount/mount.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit ff4c00f94a82addaa8b8ca67dec1ea7a5283ae5b Author: Karel Zak Date: Mon Oct 17 13:27:21 2011 +0200 libmount: unable to umount nfs shares using the force option Reported-by: Federico Simoncelli Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=745746 Signed-off-by: Karel Zak libmount/src/context_umount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit af7df9ee67248029aa47a3e5b2db6e8cbe1915fd Author: Davidlohr Bueso Date: Fri Oct 14 16:32:15 2011 -0400 lib,strutils: add default value to parse_range() This function currently sets the low or high values to 0 when the string doesn't contain a value, like '123:' or ':123'. In order to make it more flexible, we allow it to be passed an arbitrary value. Signed-off-by: Davidlohr Bueso include/strutils.h | 2 +- lib/strutils.c | 7 ++++--- partx/partx.c | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) commit cf48ee22d12f028198a857538369e346d9008a27 Author: Petr Uzel Date: Thu Oct 13 15:10:45 2011 +0200 fstrim: fix section number in referral to manpage Reported-by: Roeland Jansen Addresses: https://bugzilla.novell.com/show_bug.cgi?id=723877 Signed-off-by: Petr Uzel sys-utils/fstrim.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 8cbe756a6373c0ee10e125b012ae7490720b982f Author: Petr Uzel Date: Thu Oct 13 14:40:31 2011 +0200 rtcwake: fix crash (invalid free) ~ $ rtcwake -d X -s 10 *** glibc detected *** rtcwake: munmap_chunk(): invalid pointer: 0x00007fff839253c3 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x733b6)[0x7f582677a3b6] rtcwake[0x4022d5] /lib64/libc.so.6(__libc_start_main+0xfd)[0x7f5826725bfd] rtcwake[0x4016b9] ======= Memory map: ======== Signed-off-by: Petr Uzel sys-utils/rtcwake.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 8176a344041c7a2b7bf6f05353bf9414c9d3b254 Author: Karel Zak Date: Wed Oct 12 10:15:58 2011 +0200 fdisk: don't shorten long path to disk device Reported-by: Petr Uzel Signed-off-by: Karel Zak fdisk/partname.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit a883c6349c21a0cab209e100d936340c50e087d2 Author: Davidlohr Bueso Date: Tue Oct 11 23:18:12 2011 -0400 lib,strutils: share parse_range() This function is currently only being used by partx(8), but it's handy and generic enough that we can use it elsewhere as well. Signed-off-by: Davidlohr Bueso include/strutils.h | 2 ++ lib/strutils.c | 45 ++++++++++++++++++++++++++++++++++++++++++++- partx/partx.c | 35 ----------------------------------- 3 files changed, 46 insertions(+), 36 deletions(-) commit c8ea35145ededf5979e820d76b7e6f194999fcf8 Author: Dave Reisner Date: Tue Oct 11 14:27:47 2011 -0400 include/loopdev.h: add missing function prototype Signed-off-by: Dave Reisner include/loopdev.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 66388d95fc45c05ea14bf23d6a360a1757e9d9a8 Author: Karel Zak Date: Tue Oct 11 16:41:34 2011 +0200 docs: update TODO Signed-off-by: Karel Zak Documentation/TODO | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit 3d27b76ac19e9e3b219024cc10be8a55357b0e8d Author: Karel Zak Date: Tue Oct 11 12:23:23 2011 +0200 lscpu: add columns description to help, fix header for parsable output Signed-off-by: Karel Zak sys-utils/lscpu.c | 69 +++++++++++++++++++++++++++++++--------------------- 1 files changed, 41 insertions(+), 28 deletions(-) commit 67f1d481a46b2bcef18e2c6605a16278a10ff6dd Author: Heiko Carstens Date: Mon Oct 10 10:59:44 2011 +0200 lscpu: man page update Rather large man page update which adds more information. Signed-off-by: Heiko Carstens Signed-off-by: Karel Zak sys-utils/lscpu.1 | 136 +++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 97 insertions(+), 39 deletions(-) commit 5f2ce404673852cfc6370b08aa103035569d364b Author: Heiko Carstens Date: Mon Oct 10 10:59:43 2011 +0200 chcpu: man page update Move chcpu man page to section 8 (admin commands) where it belongs. Also update the contents of the man page. Signed-off-by: Heiko Carstens sys-utils/Makefile.am | 2 +- sys-utils/chcpu.8 | 115 ++++++++++++++++++++++-------------------------- 2 files changed, 54 insertions(+), 63 deletions(-) commit 6dafef65561beb9b61065a28a00e918b693180e6 Author: Heiko Carstens Date: Mon Oct 10 10:59:42 2011 +0200 lscpu: add s390 kvm test case Signed-off-by: Heiko Carstens tests/expected/lscpu/lscpu-s390-kvm | 21 +++++++++++++++++++++ tests/ts/lscpu/dumps/s390-kvm.tar.gz | Bin 0 -> 2275 bytes 2 files changed, 21 insertions(+), 0 deletions(-) commit f23608b892175d517227474a86bcbeed70430f69 Author: Heiko Carstens Date: Mon Oct 10 10:59:40 2011 +0200 lscpu: fix typo in help text Add missing 'n' in help text for extended output line. Signed-off-by: Heiko Carstens sys-utils/lscpu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 847b982ee321f05c3d01c2bbf2e155d19aab6c62 Author: Heiko Carstens Date: Mon Oct 10 10:59:39 2011 +0200 lscpu: switch Yes/No output to lower case Some people complained about the first letter of Yes/No as seen in the online and configured column in the human readabe output being a capital letter instead of the expected lower case letter. So let's try to make everbody happy and convert them to lower case. Signed-off-by: Heiko Carstens sys-utils/lscpu.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit eb9d3706aa70492dc859939a1403906d08ccdc57 Author: Karel Zak Date: Tue Oct 11 11:26:31 2011 +0200 mountpoint: support symbolic and relative paths Reported-by: Dave Reisner Signed-off-by: Karel Zak sys-utils/mountpoint.c | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) commit b031befc25ef0bcce64b73b51f60e2c00b6f30a1 Author: Karel Zak Date: Tue Oct 11 11:14:31 2011 +0200 Revert "mountpoint: refactor exit path" This change is unnecessary, we can use libmount stuff for everything. This reverts commit b16b56ec55507b6b83e0d35e3cefeb16367f3363. sys-utils/mountpoint.c | 26 ++++++++++---------------- 1 files changed, 10 insertions(+), 16 deletions(-) commit b16b56ec55507b6b83e0d35e3cefeb16367f3363 Author: Dave Reisner Date: Mon Oct 10 19:14:15 2011 -0400 mountpoint: refactor exit path There's only one condition for which we declare success, but many for failure. Initialize rc as failure and set to success on this single condition. In all cases, jump to a label to exit instead of exiting immediately. This will be used later on to ease cleanup of any heap allocations. Signed-off-by: Dave Reisner Signed-off-by: Karel Zak sys-utils/mountpoint.c | 26 ++++++++++++++++---------- 1 files changed, 16 insertions(+), 10 deletions(-) commit dfd2c7146849120ed7576771135299047a929c09 Author: Karel Zak Date: Tue Oct 11 10:47:44 2011 +0200 mountpoint: fallback on stat when /proc isn't mounted Reported-by: Signed-off-by: Karel Zak sys-utils/mountpoint.c | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) commit 7982e85a61889a739c6b3116293e89ba767955dd Author: Dave Reisner Date: Sat Oct 8 23:31:50 2011 -0400 mountpoint: return dev_t from dir_to_device The string returned from this function was never of much use other than to stat the path when the user requested a major:minor pair beyond the true/false exit. Save some processing and directly returning the dev_t on success, and an impossible value on failure. [kzak@redhat.com: - use 0 as dir_to_device() return value on failure] Signed-off-by: Dave Reisner Signed-off-by: Karel Zak sys-utils/mountpoint.c | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) commit f65b3bb6257bb0885fd8bfe3bd6f0f4b2739d4b4 Author: Sami Kerola Date: Wed Oct 5 15:37:48 2011 +0200 lsblk: inform about depencency to /sys/dev/block The lsblk depends on /sys/dev/block/ symlinks, which appeared in kernel 2.6.27. Users with old, or non-sysfs configured, kernel got ealier message lsblk: md0: failed to initialize sysfs handler lsblk: xvda: failed to initialize sysfs handler [...] that I found a little too difficult to understand. This patch will change the message to lsblk: failed to access sysfs directory: /sys/dev/block: No such file or directory and informs in manual page what could be reason to that. [kzak@redhat.com: - use access() rather than opendir()] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/lsblk.8 | 9 +++++++++ misc-utils/lsblk.c | 9 +++++++++ 2 files changed, 18 insertions(+), 0 deletions(-) commit 640fc1b8194e9d7f10302f19cba8d7671c8b1e9d Author: Karel Zak Date: Sat Oct 1 15:33:53 2011 +0200 build-sys: check scanf %ms modifier Without the check libmount builds on systems that has older than 2.7 glibc are silently unsuccessful. The missing %ms modifier will, at least, result on such system missing output of findmnt and lsblk commands. If either %ms or %as modifiers are present the libmount build is disabled. Based on patch from: Sami Kerola Signed-off-by: Karel Zak configure.ac | 38 ++++++++++++++++++++++++++++++++++++++ include/c.h | 9 +++++++++ libmount/src/tab_parse.c | 23 ++++++++++++----------- 3 files changed, 59 insertions(+), 11 deletions(-) commit bfda68fdb11d4473684077392e42f7a81a0e5a75 Author: Sami Kerola Date: Sat Oct 1 13:58:51 2011 +0200 build-sys: rename BUILD_BUG_ON_ZERO definition Definition name is changed to UL_BUILD_BUG_ON_ZERO to avoid collision with a system header. ../include/c.h:72:1: warning: "BUILD_BUG_ON_ZERO" redefined In file included from /usr/include/sys/sysinfo.h:25, from dmesg.c:16: /usr/include/linux/kernel.h:34:1: warning: this is the location of the previous definition Signed-off-by: Sami Kerola include/c.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 13ba1df87ddd91bdd14c6df33bbdc39791f90fd7 Author: Sami Kerola Date: Sat Oct 1 13:18:17 2011 +0200 build-sys: enhance error message for missing libtoolize The commit will will use `You must have libtool version...' message when libtoolize is missing. Earlier the error message less helpful. ./autogen.sh: line 59: test: =: unary operator expected Signed-off-by: Sami Kerola autogen.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit e05da02020144f3d58dccb807d54df90bd96c3f8 Merge: 34f9b68 7570e15 Author: Karel Zak Date: Mon Oct 10 13:27:40 2011 +0200 Merge branch 'manuals' of https://github.com/kerolasa/lelux-utiliteetit * 'manuals' of https://github.com/kerolasa/lelux-utiliteetit: docs: align hexdump.1 with howto-man-page.txt docs: align ul.1 with howto-man-page.txt docs: align rev.1 with howto-man-page.txt docs: align more.1 with howto-man-page.txt docs: align colrm.1 with howto-man-page.txt docs: align colcrt.1 with howto-man-page.txt docs: align col.1 with howto-man-page.txt docs: align wall.1 with howto-man-page.txt docs: align scriptreplay.1 with howto-man-page.txt docs: align script.1 with howto-man-page.txt docs: align renice.1 with howto-man-page.txt docs: align logger.1 with howto-man-page.txt docs: align vipw.8 with howto-man-page.txt docs: fix return value table in fsck.8 docs: chcpu and readprofile are sysadmin utils commit 7570e15a1d9b3714c7440a9f367bf612191049da Author: Sami Kerola Date: Sun Sep 18 14:26:07 2011 +0200 docs: align hexdump.1 with howto-man-page.txt Signed-off-by: Sami Kerola text-utils/hexdump.1 | 525 +++++++++++++++++++++++++------------------------- 1 files changed, 259 insertions(+), 266 deletions(-) commit e6ed925d41d0e31bca2e3cd8bf4acbd420bd885b Author: Sami Kerola Date: Sun Sep 18 13:24:10 2011 +0200 docs: align ul.1 with howto-man-page.txt Signed-off-by: Sami Kerola text-utils/ul.1 | 137 +++++++++++++++++++++++++++---------------------------- 1 files changed, 68 insertions(+), 69 deletions(-) commit 5987d1a93016f11a2f0a690b50169adf030e3288 Author: Sami Kerola Date: Sun Sep 18 13:10:27 2011 +0200 docs: align rev.1 with howto-man-page.txt Signed-off-by: Sami Kerola text-utils/rev.1 | 40 +++++++++++++++++++--------------------- 1 files changed, 19 insertions(+), 21 deletions(-) commit f4ddf6ff17f08a4a77098a328e446b5a66d61627 Author: Sami Kerola Date: Sun Sep 18 13:06:44 2011 +0200 docs: align more.1 with howto-man-page.txt Signed-off-by: Sami Kerola text-utils/more.1 | 285 ++++++++++++++++++++++++++++++----------------------- 1 files changed, 163 insertions(+), 122 deletions(-) commit 960531fff590600abb53a11520cc55672d94e275 Author: Sami Kerola Date: Sun Sep 18 12:20:54 2011 +0200 docs: align colrm.1 with howto-man-page.txt Signed-off-by: Sami Kerola text-utils/colrm.1 | 69 ++++++++++++++++++++++++++------------------------- 1 files changed, 35 insertions(+), 34 deletions(-) commit 8220d6ca89c8207816619635d9f3b1feebc89d50 Author: Sami Kerola Date: Sun Sep 18 12:09:10 2011 +0200 docs: align colcrt.1 with howto-man-page.txt Signed-off-by: Sami Kerola text-utils/colcrt.1 | 119 +++++++++++++++++++++++---------------------------- 1 files changed, 53 insertions(+), 66 deletions(-) commit d1daf8e1ddcff2e5ab88fba1dc9c540538095b5b Author: Sami Kerola Date: Sun Sep 18 11:49:08 2011 +0200 docs: align col.1 with howto-man-page.txt Signed-off-by: Sami Kerola text-utils/col.1 | 180 +++++++++++++++++++++++++++++------------------------- 1 files changed, 97 insertions(+), 83 deletions(-) commit 7dab96af415273ae3155b7afd919423dc1e51da2 Author: Sami Kerola Date: Sat Sep 17 23:55:37 2011 +0200 docs: align wall.1 with howto-man-page.txt Signed-off-by: Sami Kerola term-utils/wall.1 | 92 ++++++++++++++++++++++++++--------------------------- 1 files changed, 45 insertions(+), 47 deletions(-) commit 1aa1fbaee16d3c89b995b057e31d1d5fcea2cd67 Author: Sami Kerola Date: Sat Sep 17 23:44:33 2011 +0200 docs: align scriptreplay.1 with howto-man-page.txt Signed-off-by: Sami Kerola term-utils/scriptreplay.1 | 195 +++++++------------------------------------- 1 files changed, 31 insertions(+), 164 deletions(-) commit c5e7b9fa70ea539f1b394ad45fb5a51190f0957a Author: Sami Kerola Date: Sat Sep 17 23:12:17 2011 +0200 docs: align script.1 with howto-man-page.txt Signed-off-by: Sami Kerola term-utils/script.1 | 189 ++++++++++++++++++++++++-------------------------- 1 files changed, 91 insertions(+), 98 deletions(-) commit 9ef94a604a37968a040f5450c58943a33365c830 Author: Sami Kerola Date: Sat Sep 17 22:48:04 2011 +0200 docs: align renice.1 with howto-man-page.txt Signed-off-by: Sami Kerola sys-utils/renice.1 | 186 +++++++++++++++++++++++----------------------------- 1 files changed, 82 insertions(+), 104 deletions(-) commit c047c42d7adcad820fa2663b10f8cf7291935b30 Author: Sami Kerola Date: Sat Sep 17 22:09:37 2011 +0200 docs: align logger.1 with howto-man-page.txt Signed-off-by: Sami Kerola misc-utils/logger.1 | 176 +++++++++++++++++++++++++++------------------------ 1 files changed, 94 insertions(+), 82 deletions(-) commit 6e34af1bcda0018fa3c50c19b2875c6f08f95c4a Author: Sami Kerola Date: Sat Sep 17 21:28:12 2011 +0200 docs: align vipw.8 with howto-man-page.txt Signed-off-by: Sami Kerola login-utils/vipw.8 | 76 +++++++++++++++++++++++++-------------------------- 1 files changed, 37 insertions(+), 39 deletions(-) commit fdbc250904d12065652fd6fc9b604278d3690043 Author: Sami Kerola Date: Sat Sep 17 21:11:51 2011 +0200 docs: fix return value table in fsck.8 Commint also has few alignments with howto-man-page.txt Signed-off-by: Sami Kerola fsck/fsck.8 | 58 +++++++++++++++++++++++++++++++++++++--------------------- 1 files changed, 37 insertions(+), 21 deletions(-) commit 34f9b684c0b77030b8d318b5949b60e790d1b654 Author: Petr Uzel Date: Fri Sep 30 12:05:26 2011 +0200 losetup: new -D option to delete all used loop devices Signed-off-by: Petr Uzel Signed-off-by: Karel Zak mount/lomount.c | 45 +++++++++++++++++++++++++++++++++++++++++---- mount/losetup.8 | 6 ++++++ 2 files changed, 47 insertions(+), 4 deletions(-) commit c6455a945c7fd2b423257e4f0727f437014b36ce Author: Petr Uzel Date: Fri Sep 30 12:05:25 2011 +0200 losetup: print verbose messages if requested verbose can't be > 1 Signed-off-by: Petr Uzel mount/lomount.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit ffbe3270f10e1e808b03ec4b1844ea62b945652d Merge: f17f5f4 a26acdd Author: Karel Zak Date: Mon Oct 3 15:40:15 2011 +0200 Merge branch 'sys-utils-again' of https://github.com/kerolasa/lelux-utiliteetit * 'sys-utils-again' of https://github.com/kerolasa/lelux-utiliteetit: cytune: fix printf type warning docs: mention long options in cytune.8 cytune: coding style fixes cytune: refactor main(), new function query_tty_stats() cytune: use libc error printing facilities cytune: check numeric user inputs cytune: add long options and usage() docs: restructure flock.1 manual page flock: simplify strtotimeval() lib: [strutils] add strtod_or_err() function flock: use strutils.h to check numeric user input flock: use sysexit.h for all exit values flock: use function attributes flock: align with howto-usage-function.txt flock: use libc error printing facilities flock: move long_options struct to function scope flock: fix coding style docs: align fallocate.1 with howto-man-page.txt commit f17f5f481a1c1d61853f1e01858311b38f7ee6ab Author: Ilias Mamedov Date: Mon Oct 3 14:22:42 2011 +0200 lsblk: add udev support [kzak@redhat.com: - enable udev support by default - don't check for libudev.h - minor udev code refactoring in lsblk.c] Signed-off-by: Ilias Mamedov Signed-off-by: Karel Zak configure.ac | 19 +++++++++++++++++- misc-utils/Makefile.am | 3 ++ misc-utils/lsblk.c | 49 ++++++++++++++++++++++++++++++++++++++++++++--- 3 files changed, 66 insertions(+), 5 deletions(-) commit fd96508a27d60abbe2574ce852cc1526d6529029 Author: Karel Zak Date: Fri Sep 30 12:40:44 2011 +0200 docs: add prlimit to the TODO file Signed-off-by: Karel Zak Documentation/TODO | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit f991d6b542a0d1c3d345006593a24d95609fc676 Author: Karel Zak Date: Fri Sep 30 11:26:07 2011 +0200 umount: add warning It's better to inform users about reason why their request does not makes sense :-) Signed-off-by: Karel Zak mount/umount.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit d5688130715fcf40cd95058061cf119ba157c075 Author: Karel Zak Date: Fri Sep 30 11:09:38 2011 +0200 umount: use new lib/loopdev.c code Signed-off-by: Karel Zak include/loopdev.h | 1 + lib/loopdev.c | 40 ++++++++++++++++++++++++++++++++++++++++ mount/Makefile.am | 30 ++++++++++++++++-------------- mount/umount.c | 29 +++++++++++++---------------- 4 files changed, 70 insertions(+), 30 deletions(-) commit eaa1c9525265655b3762cfeff4da504e67cd6ab4 Author: Karel Zak Date: Fri Sep 30 11:05:37 2011 +0200 mount: fix loopdev deinitialization Signed-off-by: Karel Zak mount/mount.c | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) commit f0d3ff0a6f3c5b0bd891f7ab6f2bdeb4431b1aa6 Author: Karel Zak Date: Fri Sep 30 01:38:38 2011 +0200 libmount: support -o loop= Signed-off-by: Karel Zak libmount/src/context_loopdev.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) commit 8fbbe528a7912dea26fd5e1669e960f49e18acfe Author: Karel Zak Date: Fri Sep 30 01:28:02 2011 +0200 mount: use new lib/loopdev.c code Signed-off-by: Karel Zak lib/loopdev.c | 3 +- mount/Makefile.am | 18 ++++++--- mount/mount.c | 112 ++++++++++++++++++++++++++++++++++------------------ 3 files changed, 87 insertions(+), 46 deletions(-) commit 12218ccde2d422ed425b7a5b0d9ab81769148419 Author: Dave Reisner Date: Thu Sep 29 14:56:42 2011 -0400 include,xalloc: fix whitespace to be consistent We use spaces for the rest of this file, so the random tabs within xstrdup stand out. Signed-off-by: Dave Reisner include/xalloc.h | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) commit 8ddb6b0caee7eb8699aef7ccd67316d241448e7e Author: Dave Reisner Date: Thu Sep 29 14:56:41 2011 -0400 include,xalloc: check for NULL before calling strdup This fixes a segfault in mount (and possibly elsewhere) when invoked without a -t parameter. Broken in 7ef9fd7 when the common xalloc.h libs were introduced. Signed-off-by: Dave Reisner include/xalloc.h | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit 269943ff0f00bbd348f495c4e691467bb879d154 Author: Karel Zak Date: Fri Sep 30 00:22:22 2011 +0200 tests: add missing file Signed-off-by: Karel Zak tests/expected/libmount/context-mount-loopdev | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 365e5a7c54d6684d03bc92e82202da68bab345a9 Author: Karel Zak Date: Thu Sep 29 23:29:46 2011 +0200 libmount: use loopdev debug facility Signed-off-by: Karel Zak libmount/src/context_loopdev.c | 3 +++ libmount/src/mountP.h | 15 +++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) commit aee31ddc598853670c850cf3c1424191bee5ad02 Author: Karel Zak Date: Thu Sep 29 23:28:36 2011 +0200 lib,loopdev: add debugu messages Signed-off-by: Karel Zak include/loopdev.h | 2 + lib/loopdev.c | 126 +++++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 111 insertions(+), 17 deletions(-) commit 16311847aee2400e2e4091bc7ebe022220d33497 Author: Sami Kerola Date: Sat Sep 17 20:46:34 2011 +0200 docs: chcpu and readprofile are sysadmin utils Signed-off-by: Sami Kerola sys-utils/Makefile.am | 2 +- sys-utils/chcpu.1 | 94 -------------------------- sys-utils/chcpu.8 | 94 ++++++++++++++++++++++++++ sys-utils/readprofile.1 | 169 ----------------------------------------------- sys-utils/readprofile.8 | 168 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 263 insertions(+), 264 deletions(-) commit a26acddbb797ef6fbe87c95f7e36276a3bf55278 Author: Sami Kerola Date: Sun Sep 25 22:49:52 2011 +0200 cytune: fix printf type warning conversion specifies type 'unsigned long' but the argument has type 'unsigned long *' Signed-off-by: Sami Kerola sys-utils/cytune.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 834eb52124d00e6bf55acd2de9886dec46d8608d Author: Sami Kerola Date: Sun Sep 25 22:28:51 2011 +0200 docs: mention long options in cytune.8 Signed-off-by: Sami Kerola sys-utils/cytune.8 | 111 ++++++++++++++++++++++++---------------------------- 1 files changed, 51 insertions(+), 60 deletions(-) commit 6607ec58f37d69d45e80626b44c6c1f832c194bf Author: Sami Kerola Date: Sun Sep 25 22:16:53 2011 +0200 cytune: coding style fixes Signed-off-by: Sami Kerola sys-utils/cytune.c | 676 +++++++++++++++++++++++++++------------------------- 1 files changed, 347 insertions(+), 329 deletions(-) commit b126827452d2a5c4d9928e325452248534a12579 Author: Sami Kerola Date: Sun Sep 25 22:13:14 2011 +0200 cytune: refactor main(), new function query_tty_stats() This commit also moves global variables to the beginning of the file, or to function scope where they belong. Signed-off-by: Sami Kerola sys-utils/cytune.c | 251 ++++++++++++++++++++++++++-------------------------- 1 files changed, 127 insertions(+), 124 deletions(-) commit 0b7f50384de0fc7bd88eb96e7d381a7530344bdc Author: Sami Kerola Date: Sun Sep 25 22:10:37 2011 +0200 cytune: use libc error printing facilities Signed-off-by: Sami Kerola sys-utils/cytune.c | 90 +++++++++++++++------------------------------------ 1 files changed, 27 insertions(+), 63 deletions(-) commit 29d2e044e7766b9ecb323522c6551d0f78d9d539 Author: Sami Kerola Date: Sun Sep 25 22:09:29 2011 +0200 cytune: check numeric user inputs Checks use strtol_or_err() from strutils.h Signed-off-by: Sami Kerola sys-utils/Makefile.am | 2 +- sys-utils/cytune.c | 21 +++++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) commit ace84ba0f002570b1b4fedde3adab375268e7342 Author: Sami Kerola Date: Sun Sep 25 22:08:42 2011 +0200 cytune: add long options and usage() Signed-off-by: Sami Kerola sys-utils/cytune.c | 51 +++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 45 insertions(+), 6 deletions(-) commit e9da7722a01758d7e6fc06ff0fd6592929f9a81d Author: Sami Kerola Date: Sun Sep 25 13:00:15 2011 +0200 docs: restructure flock.1 manual page The commit aligns manual page with howto-man-page.txt, and adds example section which I hope makes usage of this command easier. Signed-off-by: Sami Kerola sys-utils/flock.1 | 124 +++++++++++++++++++++++++++++++++++------------------ 1 files changed, 82 insertions(+), 42 deletions(-) commit 605325b23b36238c8f3ae165e37cab9064553cf7 Author: Sami Kerola Date: Sun Sep 25 12:03:30 2011 +0200 flock: simplify strtotimeval() Retire private string to number conversion and use strtod_or_err() instead. Signed-off-by: Sami Kerola sys-utils/flock.c | 34 ++++++++-------------------------- 1 files changed, 8 insertions(+), 26 deletions(-) commit a9f97001c3fc420d1433d253539800cbb4864003 Author: Sami Kerola Date: Sun Sep 25 11:03:07 2011 +0200 lib: [strutils] add strtod_or_err() function Signed-off-by: Sami Kerola include/strutils.h | 1 + lib/strutils.c | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 0 deletions(-) commit 37bb0ce8129f0ff7a0d7ff0d8d5d6708bbf00277 Author: Sami Kerola Date: Wed Sep 21 22:26:05 2011 +0200 flock: use strutils.h to check numeric user input Signed-off-by: Sami Kerola sys-utils/Makefile.am | 1 + sys-utils/flock.c | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) commit 56d45cfabe8a63bb31ad4d799abf32a993bdee74 Author: Sami Kerola Date: Wed Sep 21 21:56:45 2011 +0200 flock: use sysexit.h for all exit values Additionally enhance readability of complex double "if shorthand's" by making the segment to be few normal "if's". Signed-off-by: Sami Kerola sys-utils/flock.c | 23 ++++++++++++++--------- 1 files changed, 14 insertions(+), 9 deletions(-) commit e8cea669662c562e6ffd9af7cb7a2590734c7b27 Author: Sami Kerola Date: Wed Sep 21 21:38:08 2011 +0200 flock: use function attributes Signed-off-by: Sami Kerola sys-utils/flock.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) commit dc36ee2a4ced80460d23d9f5c8cb584f0562e0c1 Author: Sami Kerola Date: Wed Sep 21 21:27:42 2011 +0200 flock: align with howto-usage-function.txt Signed-off-by: Sami Kerola sys-utils/flock.c | 31 ++++++++++++++++--------------- 1 files changed, 16 insertions(+), 15 deletions(-) commit d4eafec4d2a8fcc1442a3dee983fb32d1c076274 Author: Sami Kerola Date: Wed Sep 21 21:15:53 2011 +0200 flock: use libc error printing facilities Retire global progname variable and use warn{,x} and err{,x} functions. As a side effect of using err function the occurences of err variable had to be converted to referrals to errno variable. Signed-off-by: Sami Kerola sys-utils/flock.c | 65 ++++++++++++++++++----------------------------------- 1 files changed, 22 insertions(+), 43 deletions(-) commit d89bfedff594a25d59f639c09308b2d1b4d97134 Author: Sami Kerola Date: Wed Sep 21 20:55:50 2011 +0200 flock: move long_options struct to function scope Signed-off-by: Sami Kerola sys-utils/flock.c | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) commit 75332f0f2bbd20d6e0de496ebb6f0983dacd6465 Author: Sami Kerola Date: Wed Sep 21 20:52:31 2011 +0200 flock: fix coding style Sanitize indentation, spacing, brace positions, comment line lenghts and positions etc. This commit does not change a thing in code. Signed-off-by: Sami Kerola sys-utils/flock.c | 562 +++++++++++++++++++++++++++-------------------------- 1 files changed, 282 insertions(+), 280 deletions(-) commit 1d803460f7d00d8e8e995b50bb2f3aecfa87a38b Author: Sami Kerola Date: Mon Sep 19 21:19:47 2011 +0200 docs: align fallocate.1 with howto-man-page.txt Add also earlierly missing --version to the manual. Signed-off-by: Sami Kerola sys-utils/fallocate.1 | 26 ++++++++++++++++---------- 1 files changed, 16 insertions(+), 10 deletions(-) commit faa9d6431f831bcf6b6f3d962da7451a4d3e9e7f Author: Karel Zak Date: Thu Sep 29 20:50:27 2011 +0200 tests: add loopdev libmount test Signed-off-by: Karel Zak tests/ts/libmount/context | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit b9fd334035175d3d575152ea4735a50b1b5a7f9e Author: Karel Zak Date: Thu Sep 29 20:50:08 2011 +0200 libmount: support {offset,sizelimit}= foor loopdevs Signed-off-by: Karel Zak libmount/src/context_loopdev.c | 69 +++++++++++++++++++++++++++++---------- 1 files changed, 51 insertions(+), 18 deletions(-) commit fd1eb7a72977f5bd054e25a864207786512e26af Author: Karel Zak Date: Thu Sep 29 17:48:03 2011 +0200 libmount: add function to parse offsets/sizes libmount/src/context_umount.c | 16 +++++----------- libmount/src/mountP.h | 2 ++ libmount/src/utils.c | 18 ++++++++++++++++++ 3 files changed, 25 insertions(+), 11 deletions(-) commit d916761f3e06fad1af40c3ffa738cdde0da65774 Author: Francesco Cosoleto Date: Wed Sep 28 16:25:31 2011 +0200 ipcrm: fix wrong subject in error messages for -m, -q, -s id options This makes error messages print 'id' instead of 'key' using id options. Signed-off-by: Francesco Cosoleto sys-utils/ipcrm.c | 23 ++++++++--------------- 1 files changed, 8 insertions(+), 15 deletions(-) commit 91b4ce6a736729fb68e4bf1f7102975ebc74d689 Author: Francesco Cosoleto Date: Wed Sep 28 16:25:30 2011 +0200 ipcrm: use ternary operator in "(key|id) failed" message Signed-off-by: Francesco Cosoleto sys-utils/ipcrm.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) commit 14cbdb85dd587fc9c27686e897870002bd7685a5 Author: Francesco Cosoleto Date: Wed Sep 28 16:25:29 2011 +0200 ipcrm: add static keyword to some functions Signed-off-by: Francesco Cosoleto sys-utils/ipcrm.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 960cf5737e58c03b0d29797c0d4bd3461f1fdeff Author: Petr Uzel Date: Thu Sep 22 12:12:37 2011 +0200 misc: use %m in format string instead of %s and strerror(errno) Signed-off-by: Petr Uzel Documentation/TODO | 3 --- disk-utils/fsck.minix.c | 2 +- disk-utils/raw.c | 14 ++++++-------- fdisk/fdisk.c | 4 ++-- fdisk/gpt.c | 3 +-- hwclock/cmos.c | 16 ++++++++-------- include/c.h | 2 +- libblkid/src/devname.c | 3 +-- libblkid/src/verify.c | 8 ++++---- libmount/src/context.c | 2 +- login-utils/login.c | 3 +-- login-utils/vipw.c | 3 +-- misc-utils/blkid.c | 2 +- misc-utils/uuidd.c | 25 +++++++++---------------- mount/fstab.c | 2 +- mount/lomount.c | 3 +-- mount/mount.c | 7 +++---- mount/umount.c | 10 ++++------ sys-utils/chcpu.c | 12 ++++-------- sys-utils/readprofile.c | 8 ++++---- term-utils/ttymsg.c | 2 +- 21 files changed, 55 insertions(+), 79 deletions(-) commit 587aa6fca1ba3dab101dc2a753adf60b60d73364 Author: Petr Uzel Date: Thu Sep 22 12:12:08 2011 +0200 docs: update TODO TODO items already done by Sami Kerola Signed-off-by: Petr Uzel Documentation/TODO | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit 4310e47adc6805c0069897c62fce040d5d991364 Author: Petr Uzel Date: Mon Sep 19 15:29:15 2011 +0200 sfdisk: warn if partition exceeds partition table limits Warn the user if the partition to be created exceeds limits imposed by the DOS partition table, which is: * partition has to start on sector < 2^32 * partition size has to be < 2^32 sectors For 512-byte logical sector size, these limits are ~2.2 TiB. Signed-off-by: Petr Uzel fdisk/sfdisk.c | 44 +++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 41 insertions(+), 3 deletions(-) commit 6c709b57a36a92db4ea78e821464aa2e1c547c85 Author: Petr Uzel Date: Mon Sep 19 15:29:14 2011 +0200 sfdisk: use unsigned long long to internally represent sector number Unsigned long is only 4 bytes long on i586, which is not enough to represent sector number on todays large disks. Use unsigned long long, which is 8 bytes long, to store the sector numbers internally, so that we could later make some sanity checks and warn the user if the sector numbers exceed the limits imposed by DOS partition table format. Signed-off-by: Petr Uzel fdisk/sfdisk.c | 58 ++++++++++++++++++++++++++++---------------------------- 1 files changed, 29 insertions(+), 29 deletions(-) commit b7767afc630d04b859428fbb23ee8d45a58822a8 Author: Petr Uzel Date: Mon Sep 19 15:29:13 2011 +0200 sfdisk: introduce get_ull() function Signed-off-by: Petr Uzel fdisk/sfdisk.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) commit c4730f108e4fa9869739a457d55ba19d450675e2 Author: Petr Uzel Date: Mon Sep 19 15:29:12 2011 +0200 sfdisk: get_disksize() returns long long unsigned long is 4 bytes long on i586, which is not enough for big HDD's with 512B sectors. Use unsigned long long, which is 8 bytes. Signed-off-by: Petr Uzel fdisk/sfdisk.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 26f0feac990cbd93d3f3b903bb4c9376ae8cb5f7 Author: Petr Uzel Date: Mon Sep 19 15:29:11 2011 +0200 sfdisk: make the cylinder boundary check less fatal If the specified format is not cylinders, make the cylinder boundary check only print a warning and proceed anyways. Signed-off-by: Petr Uzel fdisk/sfdisk.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit bb92c8ea2d1a0a7cfc182679c32acd75f0343f4b Author: Petr Uzel Date: Mon Sep 19 15:29:10 2011 +0200 sfdisk: fix weird indentation in msdos_partition() Signed-off-by: Petr Uzel fdisk/sfdisk.c | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) commit 8c4c0268a66d51b94bb4bd4bae5a497d717c7d97 Author: Petr Uzel Date: Mon Sep 19 15:29:09 2011 +0200 sfdisk: file descriptor is of int type Signed-off-by: Petr Uzel fdisk/sfdisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 4103720894b26cff318f56c1108e5134ee995ada Author: Dave Reisner Date: Sat Sep 17 17:20:47 2011 -0400 blkid: fix unfinished sentence for -l option in blkid.8 Signed-off-by: Dave Reisner misc-utils/blkid.8 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b747e88698b236f8f16421d7f7e3610629226227 Author: Eric Sandeen Date: Fri Sep 16 19:53:50 2011 -0500 uuidd: Add missing break to option case statement Specifying the "-n" option to uuidd would incorrectly fall through to the "-p" case, and assign that number to the pidfile_path. Signed-off-by: Eric Sandeen misc-utils/uuidd.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit a03fd94b57abaa9211300088c454c0cb65a36786 Author: Francesco Cosoleto Date: Thu Sep 15 16:17:46 2011 +0200 libmount: fix use of logical '&&' with constant operand Found by clang. Signed-off-by: Francesco Cosoleto libmount/src/context_loopdev.c | 2 +- libmount/src/context_mount.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 82b4082e8012dab2fba079de991a2d0c8fc12a38 Author: Francesco Cosoleto Date: Thu Sep 15 16:17:45 2011 +0200 lib,loopdev: fix use of logical '&&' with constant operand Found by clang. Signed-off-by: Francesco Cosoleto lib/loopdev.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 87d83b6ad2e52a3c867fe2f758e4eccaea145a10 Author: Petr Uzel Date: Thu Sep 15 10:19:17 2011 +0200 flock: make flock(1) work on NFSv4 To pleace an exclusive lock on a file, NFSv4 requires the file to be opened RW because of the emulation of flock() by fcntl(): http://www.spinics.net/lists/linux-nfs/msg18502.html So instead of O_RDONLY, open the file in O_RDWR if access() indicates it is possible (unless shared lock is requested). From: Michal Kubecek Signed-off-by: Petr Uzel sys-utils/flock.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) commit 716e6f5c9a2fcbd549191a00962abb59cf15ca20 Author: Karel Zak Date: Tue Sep 27 14:59:57 2011 +0200 build-sys: add path.h to Makefile.am Signed-off-by: Karel Zak include/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 7bbb7829ca33fe2baf6e068485e72bc94f8b0188 Author: Heiko Carstens Date: Thu Sep 15 08:52:34 2011 +0200 lscpu: stricter command line parsing Disallow superfluous commands for lscpu like e.g. "lscpu bla" and let it fail print the help text instead. Signed-off-by: Heiko Carstens sys-utils/lscpu.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 7afc23874e2d477dd5140167c5320499ab2cc0a0 Author: Heiko Carstens Date: Thu Sep 15 08:52:33 2011 +0200 lscpu: add --offline option Implement "--offline" option which only prints offline cpus. As a side effect we can get rid of the internal "allcpus" flag, since if we want to print informations for online and offline cpus we simply set both flags. When reading sysfs attributes of cpus this is now done for all cpus, since e.g. the topology informations of the online cpus may influence the topology informations of the offline cpus. This mainly because online cpus may contain masks which include offline cpus while offline cpus have a missing topology directory. Signed-off-by: Heiko Carstens sys-utils/lscpu.1 | 9 ++++++--- sys-utils/lscpu.c | 34 ++++++++++++++++++++++------------ 2 files changed, 28 insertions(+), 15 deletions(-) commit 81137d1c0b717ea973cef7fa9322d643f226a5b1 Author: Heiko Carstens Date: Thu Sep 15 08:52:32 2011 +0200 lscpu: fix -e output The modifier mod->allcpus must be set earlier and also must be used earlier. The current code only reads sysfs attributes from online cpus but skips offline cpus. So initialize mod->allcpus earlier. Signed-off-by: Heiko Carstens sys-utils/lscpu.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 5b88ce6a17e1e0e32b8b7c8ebcee4126b52af4b1 Author: Heiko Carstens Date: Thu Sep 15 08:52:31 2011 +0200 chcpu: provide better user feedback Instead of printing error messages like "I/O resource busy" which are supplied by strerror, give better feedback if the reason of failure is known. E.g. taking the last cpu offline cannot succeed, therefore print a message that gives this "hint". Signed-off-by: Heiko Carstens sys-utils/chcpu.c | 51 ++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 40 insertions(+), 11 deletions(-) commit 25dea0b56595d04d9ef9e1eb554b9047ef12dedd Author: Heiko Carstens Date: Fri Sep 16 10:28:43 2011 +0200 lib,path: use write_all() From: Heiko Carstens Since write() doesn't necessarily write the complete buffer with one call we better use write_all() which takes care of this. Signed-off-by: Heiko Carstens lib/path.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 9bc2b4b1852f549e8d4ff446e85f8bc5239eb26d Author: Heiko Carstens Date: Thu Sep 15 08:52:30 2011 +0200 chcpu: convert to use lib/path.c Use the common path access functions. In order to simplify chcpu also implement and use path_writestr() which writes a string to the path specified. Signed-off-by: Heiko Carstens include/path.h | 2 + lib/path.c | 26 +++++++++++++++++ sys-utils/Makefile.am | 3 +- sys-utils/chcpu.c | 73 +++++++++++-------------------------------------- 4 files changed, 46 insertions(+), 58 deletions(-) commit 8148217b5bfc9a84ffc7b2936ea2dfecd87e723c Author: Heiko Carstens Date: Thu Sep 15 08:52:29 2011 +0200 lib,path: move path access functions from lscpu into lib/path.c A couple of these functions already have been copied to chcpu.c, so it makes sense to move these functions into an own file. Signed-off-by: Heiko Carstens include/path.h | 15 ++++ lib/path.c | 191 +++++++++++++++++++++++++++++++++++++++++++++++ sys-utils/Makefile.am | 3 +- sys-utils/lscpu.c | 199 ++++++------------------------------------------- 4 files changed, 231 insertions(+), 177 deletions(-) commit b7fcd7ab6aecf192bc5b65c48dc430c3b38e0726 Author: Karel Zak Date: Tue Sep 27 13:26:59 2011 +0200 setarch: minor changes to usage() Signed-off-by: Karel Zak sys-utils/setarch.c | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) commit 431772c5a94fb284b3e4c042391a8388e4e03bd6 Author: Karel Zak Date: Tue Sep 27 13:26:45 2011 +0200 pivot_root: minor changes to usage() Signed-off-by: Karel Zak sys-utils/pivot_root.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d0983578b4e5d7dfcb1064b69582bc9afd7039bf Author: Karel Zak Date: Tue Sep 27 13:26:26 2011 +0200 ipcs: minor changes to usage() Signed-off-by: Karel Zak sys-utils/ipcs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 667229ae6a4e1722689cb2458c2917d5cda95336 Author: Karel Zak Date: Tue Sep 27 13:26:06 2011 +0200 ctrlaltdel: minor changes to usage() Signed-off-by: Karel Zak sys-utils/ctrlaltdel.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 1a3cfe8800d34bcff089c1f82378ed705fbe5071 Author: Karel Zak Date: Tue Sep 27 13:25:53 2011 +0200 arch: minor changes to usage() Signed-off-by: Karel Zak sys-utils/arch.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) commit 9fc7bf00adbb4a9abf5c16d2419c07aef26ba56d Merge: 7ef9fd7 0c12134 Author: Karel Zak Date: Tue Sep 27 12:56:48 2011 +0200 Merge branch 'sys-utils' of https://github.com/kerolasa/lelux-utiliteetit * 'sys-utils' of https://github.com/kerolasa/lelux-utiliteetit: (29 commits) docs: add non-return function and if shorthand tips build-sys: fixes to USAGE_* macros ipcrm: check IPC syscalls ipcrm: add --verbose option ipcmk: allow high speed ipc creation ipcrm: add --all option docs: add long options to ipcs.1 man page docs: add long options to ipcrm.1 man page docs: add long options to ipcmk.1 man page docs: add --version to setarch.8 docs: mention long options in ctrlaltdel.8 ctrlaltdel: add version & help options docs: mention long options in pivot_root.8 pivot_root: add version & help option ipcs: comment & white space clean up ipcs: include-what-you-use header check ipcs: add long options ipcrm: include-what-you-use header check ipcrm: refactor new and old main to share code ipcrm: exit if unknown error occurs ... commit 7ef9fd7cdb34304c96e4d86c91bf86671495582b Author: Davidlohr Bueso Date: Wed Sep 14 15:07:06 2011 -0300 mount: use common libs Get rid of the local xmalloc.[c/h] files by using the global xalloc and strutils libraries. Signed-off-by: Davidlohr Bueso mount/Makefile.am | 2 +- mount/fstab.c | 2 +- mount/lomount.c | 1 - mount/mount.c | 1 - mount/sundries.c | 1 - mount/sundries.h | 6 ++++-- mount/umount.c | 1 + mount/xmalloc.c | 48 ------------------------------------------------ mount/xmalloc.h | 14 -------------- 9 files changed, 7 insertions(+), 69 deletions(-) commit b9d18bc3f82fe9373aef0f1bebfe015a68bac38b Author: Karel Zak Date: Tue Sep 27 12:45:42 2011 +0200 lscpu: add column names to --help * use uppercase by default (only -p uses lowercase) * a little cleanup usage() Signed-off-by: Karel Zak sys-utils/lscpu.c | 48 +++++++++++++++++++++++++++++++----------------- 1 files changed, 31 insertions(+), 17 deletions(-) commit 50c6ee4cb47c4dffed5c601b76c5bb52a5b9df09 Author: Karel Zak Date: Tue Sep 27 12:26:02 2011 +0200 lscpu: gettextize two columns Signed-off-by: Karel Zak sys-utils/lscpu.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit b9261127260ff2a8efbdc6e5f9d00ec7f736b445 Author: Karel Zak Date: Mon Sep 26 12:34:10 2011 +0200 agetty: test ECHO on c_lflag Reported-by: xinglp Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=739522 Signed-off-by: Karel Zak term-utils/agetty.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 0c121348742d1f59751a72d37c4f656b21a08068 Author: Sami Kerola Date: Sat Sep 17 14:35:15 2011 +0200 docs: add non-return function and if shorthand tips Non-return functions should not be combined with `else' clause. The if shorthands `var = e ? t : f;' need to fit to single line, and if that does not look good use normal "if else" syntax. Both tips are mentioned in email bellow. http://www.spinics.net/lists/util-linux-ng/msg05152.html Signed-off-by: Sami Kerola Documentation/howto-contribute.txt | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) commit 6f162034d0fc9a49ab1dcf2b773fa9677215cba3 Author: Sami Kerola Date: Sat Sep 17 12:52:32 2011 +0200 build-sys: fixes to USAGE_* macros The USAGE_BEGIN_TAIL is removed as unnecessary. In between command specific options and --help & --version USAGE_SEPARATOR is inserted. For now the separator is empty line. The USAGE_MAN_TAIL is changed to take an argument. Signed-off-by: Sami Kerola Documentation/howto-usage-function.txt | 6 +++--- include/c.h | 4 ++-- sys-utils/arch.c | 5 ++--- sys-utils/ctrlaltdel.c | 4 ++-- sys-utils/ipcmk.c | 4 ++-- sys-utils/ipcrm.c | 4 ++-- sys-utils/ipcs.c | 3 +-- sys-utils/pivot_root.c | 4 ++-- 8 files changed, 16 insertions(+), 18 deletions(-) commit 7678c735b200d80b888810f4a72a31a51425b8eb Author: Davidlohr Bueso Date: Wed Sep 14 14:02:15 2011 -0300 ipcrm: check IPC syscalls It's not enough to check errno for errors as the variable is not reset, we also need to check the last syscall return value to verify a problem. This addresses bogus msgqueue errors when deleting keys. Signed-off-by: Davidlohr Bueso Signed-off-by: Sami Kerola sys-utils/ipcrm.c | 46 ++++++++++++++++++++++++---------------------- 1 files changed, 24 insertions(+), 22 deletions(-) commit 99e89eded22cb26a989a4b9ba5ef87d0d0b1b500 Author: Sami Kerola Date: Tue Sep 13 22:00:13 2011 +0200 ipcrm: add --verbose option Signed-off-by: Sami Kerola sys-utils/ipcrm.c | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) commit b332ef44cfaf226140c7e47e4fefbbe602676519 Author: Sami Kerola Date: Mon Sep 12 22:01:03 2011 +0200 ipcmk: allow high speed ipc creation This commit will allow user to create quickly plenty of ipc resources. Earlier the line bellow gave no satisfaction. for i in $(seq 0 42); do ipcmk -Q; done Signed-off-by: Sami Kerola sys-utils/ipcmk.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 3d0fc72d65ab3d0b69443d9832821f3dcf81701e Author: Sami Kerola Date: Mon Sep 12 18:56:30 2011 +0200 ipcrm: add --all option An --all option will remove all ipc entries. The option takes optional resource argument, which limits the removal to be applied only the given resource entries. Signed-off-by: Sami Kerola sys-utils/ipcrm.1 | 8 +++++ sys-utils/ipcrm.c | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 97 insertions(+), 3 deletions(-) commit 5ccc85be827386ce8107156bbfd5fe97598c1763 Author: Sami Kerola Date: Mon Sep 5 22:05:37 2011 +0200 docs: add long options to ipcs.1 man page Includes few style fixes from Documentation/howto-man-page.txt and align information by what is being said by The Open Group. http://pubs.opengroup.org/onlinepubs/009604599/utilities/ipcs.html Signed-off-by: Sami Kerola sys-utils/ipcs.1 | 101 ++++++++++++++++++++++++++++++++---------------------- 1 files changed, 60 insertions(+), 41 deletions(-) commit 9a9ff6bd59629d09f7b3e001cc84aa3d01936fe2 Author: Sami Kerola Date: Mon Sep 5 21:29:54 2011 +0200 docs: add long options to ipcrm.1 man page Includes few style fixes from Documentation/howto-man-page.txt Signed-off-by: Sami Kerola sys-utils/ipcrm.1 | 57 +++++++++++++++++----------------------------------- 1 files changed, 19 insertions(+), 38 deletions(-) commit cbeb42614451c508c7ce701e3a77aea9dbdf0410 Author: Sami Kerola Date: Mon Sep 5 21:16:08 2011 +0200 docs: add long options to ipcmk.1 man page Includes few style fixes from Documentation/howto-man-page.txt Signed-off-by: Sami Kerola sys-utils/ipcmk.1 | 52 ++++++++++++++++++++++++++-------------------------- 1 files changed, 26 insertions(+), 26 deletions(-) commit e0771cf881e53195c7be199ee3a9a00d999ddd00 Author: Sami Kerola Date: Mon Sep 5 20:56:30 2011 +0200 docs: add --version to setarch.8 Includes few style fixes from Documentation/howto-man-page.txt Signed-off-by: Sami Kerola sys-utils/setarch.8 | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-) commit 1222d818090248ce92387d8847447ef18bad22f6 Author: Sami Kerola Date: Wed Aug 31 20:59:48 2011 +0200 docs: mention long options in ctrlaltdel.8 Includes other manual page maintenance fixes. Signed-off-by: Sami Kerola sys-utils/ctrlaltdel.8 | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) commit 028f7ed83f92105b39ee0c8e3ffdb89157c182de Author: Sami Kerola Date: Wed Aug 31 20:52:01 2011 +0200 ctrlaltdel: add version & help options Including other necessary changes to usage(). Signed-off-by: Sami Kerola sys-utils/ctrlaltdel.c | 39 +++++++++++++++++++++++++++++++++++---- 1 files changed, 35 insertions(+), 4 deletions(-) commit 8d3abdc0ae016b95b5657eb954a31def47665998 Author: Sami Kerola Date: Wed Aug 31 20:37:29 2011 +0200 docs: mention long options in pivot_root.8 Signed-off-by: Sami Kerola sys-utils/pivot_root.8 | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) commit 922eafb28ab4331e7183901a1eb2e5e2269629db Author: Sami Kerola Date: Wed Aug 31 20:33:27 2011 +0200 pivot_root: add version & help option Including other necessary changes to usage(). Signed-off-by: Sami Kerola sys-utils/pivot_root.8 | 1 + sys-utils/pivot_root.c | 60 ++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 51 insertions(+), 10 deletions(-) commit 1e13900a3b3e7ea1a7577e42883fd1f30b3fc9c5 Author: Sami Kerola Date: Mon Aug 29 21:47:36 2011 +0200 ipcs: comment & white space clean up Add to multiline comments to have left side stars, convert spaces to tabs and indent preprocessor directives Signed-off-by: Sami Kerola sys-utils/ipcs.c | 169 ++++++++++++++++++++++++++--------------------------- 1 files changed, 83 insertions(+), 86 deletions(-) commit 3ab18da8a7884f51b51a1fb6d94f12136e74000e Author: Sami Kerola Date: Mon Aug 29 21:34:48 2011 +0200 ipcs: include-what-you-use header check Two includes added & a sort to alphabetical order. ipcs.c should add these lines: #include // for __GLIBC__ #include // for size_t Signed-off-by: Sami Kerola sys-utils/ipcs.c | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) commit 09f53dab0c96a1dfb312e821f2eef2fdb19770ff Author: Sami Kerola Date: Mon Aug 29 21:15:36 2011 +0200 ipcs: add long options Includes necessary usage() changes. Signed-off-by: Sami Kerola sys-utils/ipcs.c | 90 +++++++++++++++++++++++++++++------------------------ 1 files changed, 49 insertions(+), 41 deletions(-) commit 79092062a426a7d321c0f541716d79d6c248cb4a Author: Sami Kerola Date: Mon Aug 29 20:12:41 2011 +0200 ipcrm: include-what-you-use header check Three removes & a sort to alphabetical order. ipcrm.c should remove these lines: - #include // lines 29-29 - #include // lines 18-18 - #include // lines 27-27 Signed-off-by: Sami Kerola sys-utils/ipcrm.c | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) commit 8b69b6d6de3dc2aa1a4678e0c8c5053efd279c2f Author: Sami Kerola Date: Sun Aug 28 20:24:07 2011 +0200 ipcrm: refactor new and old main to share code The code is now much more tidy, and as a bonus old main has shares error printing with the `new' code. Signed-off-by: Sami Kerola sys-utils/Makefile.am | 1 + sys-utils/ipcrm.c | 338 ++++++++++++++++++++++++++++--------------------- 2 files changed, 194 insertions(+), 145 deletions(-) commit 6054d3a7741fce0f1f96562db21ffa46ab8bc02a Author: Sami Kerola Date: Sun Aug 28 19:01:56 2011 +0200 ipcrm: exit if unknown error occurs Previously for instance lack of memory space caused unknown reason to be printed, and ipcrm tried to continue. Signed-off-by: Sami Kerola sys-utils/ipcrm.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) commit 277a6dd53569a409e05316a7bdaed0e78e326762 Author: Karel Zak Date: Tue Sep 13 22:59:39 2011 +0200 mount: check for target before source on remount Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=737091 Reported-by: Eric Paris Signed-off-by: Karel Zak mount/fstab.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit 3a18db62e661fbb307ad3a53c18afabc92d3c63e Author: Petr Uzel Date: Tue Sep 13 11:08:46 2011 +0200 lib: do not attempt to close(0) in sysfs_deinit() If the 'open' fails we 'goto err' which runs 'sysfs_deinit()' on a 'cxt' which hasn't been fully initialised. The 'dir_fd' is still 0, so sysfs_deinit calls "close(0)". Addresses: https://bugzilla.novell.com/show_bug.cgi?id=714151 Reported-by: Diego Ercolani Analysed-by: Neil Brown Signed-off-by: Petr Uzel lib/sysfs.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 5b66cfae9113a79645890a389c862deda35acbe2 Author: Karel Zak Date: Tue Sep 13 11:21:47 2011 +0200 chfn: remove non-ANSI definitions [smatch scan] Signed-off-by: Karel Zak login-utils/chfn.c | 30 ++++++++---------------------- 1 files changed, 8 insertions(+), 22 deletions(-) commit 913f560b9879bef6e3e92aaf5d392fa819e9d76f Author: Karel Zak Date: Tue Sep 13 11:15:43 2011 +0200 build-sys: add err and errx to smatch no_return_funcs Signed-off-by: Karel Zak tools/smatch-data/no_return_funcs | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 57970842cc081be55c5c6ef4703c690bfb2f5e7f Author: Karel Zak Date: Tue Sep 13 11:10:18 2011 +0200 build-sys: add smatch data Signed-off-by: Karel Zak config/include-Makefile.am | 2 +- tools/smatch-data/no_return_funcs | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletions(-) commit 1b3b3f9fb96de625eb8ebf0c2a676e72ae336a3e Author: Sami Kerola Date: Sun Aug 28 18:30:23 2011 +0200 ipcrm: add long options With long options usage function had to be changed. The change also takes libc error printing facilities to use, primarily to get rid of execname & progname variables. Signed-off-by: Sami Kerola sys-utils/ipcrm.c | 105 ++++++++++++++++++++++++++++------------------------- 1 files changed, 56 insertions(+), 49 deletions(-) commit c20b68231cfc17fc07217db3abc9e43fe49c91a6 Author: Sami Kerola Date: Sun Aug 28 13:30:36 2011 +0200 ipcmk: include-what-you-use header check Three removes & a sort to alphabetical order. ipcmk.c should remove these lines: - #include // lines 24-24 - #include // lines 30-30 - #include // lines 29-29 Signed-off-by: Sami Kerola sys-utils/ipcmk.c | 17 +++++++---------- 1 files changed, 7 insertions(+), 10 deletions(-) commit 0eeec4152a295e8107d658788943541206683e34 Author: Sami Kerola Date: Sun Aug 28 13:24:32 2011 +0200 ipcmk: remove camel casing Signed-off-by: Sami Kerola sys-utils/ipcmk.c | 40 ++++++++++++++++++++-------------------- 1 files changed, 20 insertions(+), 20 deletions(-) commit c821a1256b3da34a4baf340f051eff853a239836 Author: Sami Kerola Date: Sun Aug 28 13:16:23 2011 +0200 ipcmk: validate numeric option arguments Use strtoul_or_err() instead of atoi(). Signed-off-by: Sami Kerola sys-utils/Makefile.am | 1 + sys-utils/ipcmk.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) commit f5b0684e34124282c58e1d46971f22c71d196f16 Author: Sami Kerola Date: Sun Aug 28 13:09:03 2011 +0200 ipcmk: remove useless code Checking same return value twice does not make command any better. Secondly the program_invocation_short_name is known to work, so global progname variable does not add anything extra. Signed-off-by: Sami Kerola sys-utils/ipcmk.c | 32 ++++---------------------------- 1 files changed, 4 insertions(+), 28 deletions(-) commit 003f49760498ed276d7f6341d60dd7e1ed508c16 Author: Sami Kerola Date: Sun Aug 28 12:39:59 2011 +0200 ipcmk: add long options & fix usage() Signed-off-by: Sami Kerola sys-utils/ipcmk.c | 50 +++++++++++++++++++++++++++++++------------------- 1 files changed, 31 insertions(+), 19 deletions(-) commit d36ee054cac7ea4643d7e81ed327eec432d311d1 Author: Karel Zak Date: Mon Sep 12 16:18:16 2011 +0200 script: non-ANSI definition [smatch scan] Signed-off-by: Karel Zak term-utils/script.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) commit ac9b7477d257f987e5f09b3007f43e5349abdde9 Author: Karel Zak Date: Mon Sep 12 16:15:19 2011 +0200 whereis: non-ANSI definition [smatch scan] Signed-off-by: Karel Zak misc-utils/whereis.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f3970c99b72ebe72a46e9b46fb34dd0a211bf943 Author: Karel Zak Date: Mon Sep 12 16:13:58 2011 +0200 logger: non-ANSI definition [smatch scan] Signed-off-by: Karel Zak misc-utils/logger.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) commit 2985e3833b7c51b34aabe51beca7989548c7b5ac Author: Karel Zak Date: Mon Sep 12 16:12:45 2011 +0200 cal: non-ANSI definition [smatch scan] Signed-off-by: Karel Zak misc-utils/cal.c | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) commit 54a00b5c79c2d98f038c734f66fad54d7392bbe0 Author: Karel Zak Date: Mon Sep 12 16:10:45 2011 +0200 blkid: potential null derefence [smatch scan] Signed-off-by: Karel Zak misc-utils/blkid.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 96bc8588b238deccfc1b0204327a53f32b0f52ea Author: Karel Zak Date: Mon Sep 12 16:01:42 2011 +0200 libmount: previously assumed null pointer [smatch scan] Signed-off-by: Karel Zak libmount/src/tab.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 84ce5761e93a63cdde3a7b6a86eea8c92e151972 Author: Karel Zak Date: Mon Sep 12 15:40:24 2011 +0200 kill: potential null derefence [smatch scan] Signed-off-by: Karel Zak misc-utils/procs.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) commit fc8b1f36fecce949b14a452bb6e3ba9b67d362c7 Author: Karel Zak Date: Mon Sep 12 15:35:33 2011 +0200 libmount: potential null derefence [smatch scan] Signed-off-by: Karel Zak lib/loopdev.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 8726371fb8e54ca473df3369a6c4692b7588807c Author: Karel Zak Date: Mon Sep 12 15:33:04 2011 +0200 libmount: variable dereferenced before check [smatch scan] Signed-off-by: Karel Zak libmount/src/tab_update.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit ad84aaaa6cfdd9bd3aaec774abbf868faaa35b5b Author: Karel Zak Date: Mon Sep 12 15:32:35 2011 +0200 libmount: redundant null check on calling free() [smatch scan] Signed-off-by: Karel Zak libmount/src/context.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit 88d7d36ff2bb5b74f8af4419ce28b11a2d89a016 Author: Karel Zak Date: Mon Sep 12 15:28:42 2011 +0200 libmount: use unsigned int for bitfields [smatch scan] Signed-off-by: Karel Zak libmount/src/lock.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit b29a641219f647d389ae782f3d7a0cd8b1051bed Author: Karel Zak Date: Mon Sep 12 15:22:51 2011 +0200 libblkid: remove unnecessary position check from list_for_each_safe loops The position pointer is dereferenced before the check in the for() in the list_for_each_safe macro. Note that struct list_head should not contain NULL pointers. See INIT_LIST_HEAD() macro. Signed-off-by: Karel Zak libblkid/src/cache.c | 2 -- libblkid/src/devname.c | 5 +---- 2 files changed, 1 insertions(+), 6 deletions(-) commit b94fecf587b935c42cb10666ff554461042092f7 Author: Karel Zak Date: Mon Sep 12 14:46:35 2011 +0200 build-sys: don't use full paths for smatch Signed-off-by: Karel Zak config/include-Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 36601b23430c3e13fed3c454effdd349dd05715a Author: Karel Zak Date: Mon Sep 12 14:24:27 2011 +0200 agetty: add --nohints Reported-by: "Gabor Z. Papp" Signed-off-by: Karel Zak term-utils/agetty.8 | 3 +++ term-utils/agetty.c | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletions(-) commit 0bf2dd3a0aaaf09ddc903555c718b9af9e1d5292 Author: Karel Zak Date: Mon Sep 12 14:12:43 2011 +0200 build-sys: use --enable-most-builds for distcheck Signed-off-by: Karel Zak Makefile.am | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) commit e9d00e66fb60df0e1ba3e45d756f06afa44d0855 Author: Karel Zak Date: Mon Sep 12 13:53:10 2011 +0200 include,c.h: include fcntl.h before check for O_CLOEXEC [smatch scan] Signed-off-by: Karel Zak include/c.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 56a987c99838c748311f02bc98ae863fb15e5e5f Author: Karel Zak Date: Mon Sep 12 13:52:14 2011 +0200 build-sys: add checksmatch target config/include-Makefile.am | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 7e0f5b592a30e51ffa145ebe08b7b2824db51375 Author: Heiko Carstens Date: Sun Sep 11 08:23:35 2011 +0200 lscpu: remove unneeded file As noted by Sami I accidentally added a garbage file. Just remove it again. Cc: Sami Kerola Signed-off-by: Heiko Carstens tests/ts/lscpu/bla.tar.gz | Bin 2573 -> 0 bytes 1 files changed, 0 insertions(+), 0 deletions(-) commit 8c40f48195b118d81bfda71f0ad51a8a9ec073a7 Author: Francesco Cosoleto Date: Sat Sep 10 19:06:09 2011 +0200 fdformat: fix uninitialized variable Spotted by EKOPath compiler. Signed-off-by: Francesco Cosoleto disk-utils/fdformat.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 2511b248fa9b8a1640609c0ffa5609d087ae78b1 Merge: e43fc13 d4dffe7 Author: Karel Zak Date: Mon Sep 12 12:42:46 2011 +0200 Merge branch 'smatch' of https://github.com/kerolasa/lelux-utiliteetit * 'smatch' of https://github.com/kerolasa/lelux-utiliteetit: kill: fix issue warned by smatch last: fix smatch warning libblkid: fix smatch warning column: fix error reported by smatch build-sys: ddate typo fixed build-sys: add --enable-most-builds commit e43fc13e7675445a76305e4f5e52352b3fc2203a Author: Heiko Carstens Date: Sat Sep 10 12:25:04 2011 +0200 lscpu: s/Y/Yes/ s/N/No/ However I'd like to see one change if you don't object: printing just "N" or "Y" instead of "No" and "Yes" in the human readable output looks a bit ugly to me. Signed-off-by: Heiko Carstens sys-utils/lscpu.c | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) commit b446402b79f5058e85e3313f0f9acb9050a9871e Author: Sami Kerola Date: Sun Aug 28 12:04:15 2011 +0200 setarch: add version printing Signed-off-by: Sami Kerola sys-utils/setarch.c | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) commit cf1377a4314b91f63f05fe1f9dd565166607f348 Author: Sami Kerola Date: Sun Aug 28 12:01:51 2011 +0200 setarch: use program_invocation_short_name Trust that the c.h is setting program name correctly. Signed-off-by: Sami Kerola sys-utils/setarch.c | 15 ++------------- 1 files changed, 2 insertions(+), 13 deletions(-) commit 745627993ba07411e15badf5eb03a7b7e660f26c Author: Sami Kerola Date: Sun Aug 28 12:01:09 2011 +0200 setarch: move options struct to function scope Signed-off-by: Sami Kerola sys-utils/setarch.c | 42 +++++++++++++++++++++--------------------- 1 files changed, 21 insertions(+), 21 deletions(-) commit d4dffe762255324e34fe4af75353a03e0ad95603 Author: Sami Kerola Date: Sat Sep 10 16:50:47 2011 +0200 kill: fix issue warned by smatch misc-utils/procs.c +82 get_pids(52) error: potential null derefence 'pids'. Signed-off-by: Sami Kerola misc-utils/procs.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 889f1215f60d043f026c3134d0ae1a0312319f6e Author: Sami Kerola Date: Sat Sep 10 16:49:58 2011 +0200 last: fix smatch warning login-utils/last.c +447 ttyconv(11) error: buffer overflow '(arg)' 3 <= 3 Signed-off-by: Sami Kerola login-utils/last.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d6d11fa5c636c9900b922717dfc6492aaad89b7f Author: Sami Kerola Date: Sat Sep 10 16:49:03 2011 +0200 libblkid: fix smatch warning libblkid/src/probe.c +798 blkid_probe_get_idmag(32) error: we previously assumed 'id' could be null. Signed-off-by: Sami Kerola libblkid/src/probe.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 6a41edfa5bb215fb878d5f7e68951fe39c2ad515 Author: Sami Kerola Date: Sat Sep 10 16:48:12 2011 +0200 column: fix error reported by smatch column.c:201:2: error: 'for' loop initial declarations are only allowed in C99 mode Signed-off-by: Sami Kerola text-utils/column.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 564cea2b28bfe49bc628a5c295371585df2dac65 Author: Sami Kerola Date: Sat Sep 10 10:38:05 2011 +0200 build-sys: ddate typo fixed Signed-off-by: Sami Kerola configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d17584b63563451a5310e703cb87437e9ae2ced3 Author: Sami Kerola Date: Sat Sep 10 16:46:53 2011 +0200 build-sys: add --enable-most-builds The --enable-most-builds will build everything else but experimental code. Signed-off-by: Sami Kerola configure.ac | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) commit 4e9b3bfda20ebbaf5d925dedad6ce8e2b678b563 Author: Karel Zak Date: Sat Sep 10 00:02:00 2011 +0200 lib,cpuset: fix compiler warning [-Wuninitialized] Signed-off-by: Karel Zak lib/cpuset.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 59fb133a029fea29e38a98b5177fc760a0c8dc17 Author: Heiko Carstens Date: Fri Sep 9 11:19:34 2011 +0200 chcpu,cpuset: reduce code duplication for cpu list parsing Reduce code duplication and print better error message if an unsupported cpu number was passed. Signed-off-by: Heiko Carstens lib/cpuset.c | 7 ++++++- sys-utils/chcpu.c | 28 ++++++++++++++++------------ 2 files changed, 22 insertions(+), 13 deletions(-) commit f27ce0711cb9b2611a4bf679f83607439462cbb0 Author: Heiko Carstens Date: Fri Sep 9 11:19:33 2011 +0200 lib,cpuset: enforce stricter parsing of cpu lists The current cpulist_parse() function ignores extra non-parsable characters at the end of the to be parsed cpu list string. E.g. it would accept something like "0bla" and just set bit 0 in the cpu set. Since such a string is invalid implement stricter parsing that makes sure that everything of the string has been succesfully parsed. Signed-off-by: Heiko Carstens lib/cpuset.c | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) commit 72232a267a8b021c5170419062f8ae831f18ca0e Author: Heiko Carstens Date: Fri Sep 9 11:19:32 2011 +0200 lib,cpuset: fix stride handling in cpulist_parse() If cpulist_parse() gets passed a cpu list with a stride value of 0 it will be stuck in an endless loop. E.g. the following cpu list will cause an endless loop: "0-2:0". Fix this by causing a parse error if the stride value is 0. Signed-off-by: Heiko Carstens lib/cpuset.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 289127f52ddaeec8484d5321a3169a2bb5026b58 Author: Heiko Carstens Date: Fri Sep 9 11:19:31 2011 +0200 lib,cpuset: fix odd placed braces in cpulist_parse() The opening and closing braces for two following if statements within cpulist_parse() are placed in an odd manner. Just fix this to prevent broken code in the future. Signed-off-by: Heiko Carstens lib/cpuset.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 68845fed01fc1dfc97ace4a78f15c12bda4aa9b7 Author: Heiko Carstens Date: Fri Sep 9 11:19:30 2011 +0200 lib,cpuset: fix comments for cpu mask/list functions The comments for cpumask_parse() and cpulist_parse() each describe the wrong function. Just exchange the comments. Signed-off-by: Heiko Carstens lib/cpuset.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit cbdf0a8165807dfe24b43b9c9c7a457c466b5e58 Author: Frederik \"Freso\" S. Olesen Date: Wed Sep 7 23:02:19 2011 +0200 mount: remove superfluous "an" under ext4 mount options in mount.8 Signed-off-by: Frederik "Freso" S. Olesen mount/mount.8 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 10829cd73c0f0e226d10d75c8b8e00260a7708e8 Author: Heiko Carstens Date: Tue Sep 6 02:53:02 2011 +0200 lscpu: add Hypervisor to output Some vendors have several hypervisors. Therefore it makes sense to not only print out the hypervisor vendor but also the name of the hypervisor. Signed-off-by: Heiko Carstens Signed-off-by: Karel Zak sys-utils/lscpu.c | 20 ++++++++++++++++++++ tests/expected/lscpu/lscpu-s390-lpar | 1 + tests/expected/lscpu/lscpu-s390-zvm | 1 + 3 files changed, 22 insertions(+), 0 deletions(-) commit 603e7f10f11d759290ac95a8312b537a5e73a8ab Author: Heiko Carstens Date: Tue Sep 6 02:53:01 2011 +0200 lscpu: add s390 test case Signed-off-by: Heiko Carstens tests/expected/lscpu/lscpu-s390-lpar | 35 +++++++++++++++++++++++++++++++++ tests/expected/lscpu/lscpu-s390-zvm | 21 +++++++++++++++++++ tests/ts/lscpu/bla.tar.gz | Bin 0 -> 2573 bytes tests/ts/lscpu/dumps/s390-lpar.tar.gz | Bin 0 -> 6611 bytes tests/ts/lscpu/dumps/s390-zvm.tar.gz | Bin 0 -> 2582 bytes tests/ts/lscpu/mk-input.sh | 4 +++ 6 files changed, 60 insertions(+), 0 deletions(-) commit 23e9e95ac34c9eb317c2963765e78d12b263ab85 Author: Karel Zak Date: Fri Sep 9 22:59:47 2011 +0200 lscpu: add --online option Signed-off-by: Karel Zak sys-utils/lscpu.1 | 5 ++++- sys-utils/lscpu.c | 20 +++++++++++++++----- 2 files changed, 19 insertions(+), 6 deletions(-) commit 0ad29ff6b0f616450178a891f010c6b3c80ecb58 Author: Heiko Carstens Date: Tue Sep 6 02:53:00 2011 +0200 lscpu: add --all option The parsable output includes only lines of online CPUs. To also include lines for all offline CPUs the "--all" option can be specified. Signed-off-by: Heiko Carstens sys-utils/lscpu.1 | 4 +++- sys-utils/lscpu.c | 15 ++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) commit a7e5300c9714db147a3a700b7ebc55e391922d7d Author: Heiko Carstens Date: Tue Sep 6 02:52:59 2011 +0200 lscpu: add online state to output lscpu only prints lines for online CPUs. At least for the human readable list the offline CPUs are of interest as well. In order to distinguish between online and offline CPUs introduce the "Online" column. By default the human readable output now displays online and offline CPUs. The parsable output is not changed. It will print only lines for online CPUs as it used to do. [kzak@redhat.com: - minor changes] Signed-off-by: Heiko Carstens Signed-off-by: Karel Zak sys-utils/lscpu.1 | 2 +- sys-utils/lscpu.c | 22 ++++++++++++++++------ 2 files changed, 17 insertions(+), 7 deletions(-) commit d231eea114e61e5237f482c3477fc8de6b6a7c43 Author: Heiko Carstens Date: Tue Sep 6 02:52:58 2011 +0200 lscpu: add configured state to output CPUs may be in a configured or deconfigured state depending if the CPU resource may be used by the guest. If a CPU is in configured state the guest may use it (i.e. set it online). It it is in deconfigured state it cannot use it before changing its state to configured. Display this CPU attribute as well. Signed-off-by: Heiko Carstens sys-utils/lscpu.1 | 2 +- sys-utils/lscpu.c | 25 +++++++++++++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) commit ba45d8c1ea4f1226033adc2c9446690bef69a806 Author: Karel Zak Date: Fri Sep 9 20:59:59 2011 +0200 lscpu: add human readable extended cpu table output Based on patch from Heiko Carstens : lscpu currently only supports a parsable output which contains a row for each cpu and its attributes. This output contains only comas as separators and is hard to read for humans. Therefore add a new option "-e | --extended" which outputs the rows in a much more readable (and non-parsable) form. Just like for the -p option a list of columns can be specified that shall be included in the output. By default this option will print all columns that contain data. Signed-off-by: Heiko Carstens Signed-off-by: Karel Zak sys-utils/Makefile.am | 5 ++- sys-utils/lscpu.1 | 29 +++++++++---- sys-utils/lscpu.c | 113 +++++++++++++++++++++++++++++++++++++++++------- 3 files changed, 121 insertions(+), 26 deletions(-) commit e3b3a2f3f863a3849bd1e59430b3e46db40d5441 Author: Karel Zak Date: Fri Sep 9 20:08:52 2011 +0200 lscpu: use buffer for data and headers Signed-off-by: Karel Zak sys-utils/lscpu.c | 113 +++++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 83 insertions(+), 30 deletions(-) commit e9d659ea8578c5a7175e9200868fc5da8148fbe7 Author: Karel Zak Date: Fri Sep 9 08:19:24 2011 +0200 lscpu: use function to search in cpu masks arrays Signed-off-by: Karel Zak include/cpuset.h | 20 ++++++++++++++++++ sys-utils/lscpu.c | 57 +++++++++++++++++++--------------------------------- 2 files changed, 41 insertions(+), 36 deletions(-) commit 8005924a89ef2d242fd7b595c6d1658118e702aa Author: Karel Zak Date: Fri Sep 9 07:25:21 2011 +0200 lscpu: cleanup output modes Signed-off-by: Karel Zak sys-utils/lscpu.c | 118 ++++++++++++++++++++++++++++++---------------------- 1 files changed, 68 insertions(+), 50 deletions(-) commit 44de912cdfc21f734e6556f6f65822d89ae74c72 Author: Heiko Carstens Date: Tue Sep 6 02:52:56 2011 +0200 lscpu: add --version option Add a --version option like most other tools have it. Signed-off-by: Heiko Carstens Signed-off-by: Karel Zak sys-utils/lscpu.1 | 5 ++++- sys-utils/lscpu.c | 10 ++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) commit dcdead4271232c5638afdc8bc99cf792383eb27f Author: Heiko Carstens Date: Tue Sep 6 02:52:55 2011 +0200 lscpu: allow read_cache() to be called for offline cpus First check path before accessing files to be sure they actually exist. This is necessary when also informations for offline CPUs will be printed. Since we do not necessarily know if "cpu is offline" means the same as "path does not exist" just check for it. Signed-off-by: Heiko Carstens sys-utils/lscpu.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit f6512068b2d0d424dc5aa125c0ba2fe411acd305 Author: Heiko Carstens Date: Tue Sep 6 02:52:54 2011 +0200 lscpu: simplify cache column output function Simplify the logic to "always print a ',' for each cache except if it is the last one. This is also a preparation patch for printing the cache column for offline CPUs where it would print one colon too much because of the current logic. Signed-off-by: Heiko Carstens sys-utils/lscpu.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) commit 08cd09415ade0956484170fc6e0d7b22677dcbd1 Author: Heiko Carstens Date: Tue Sep 6 02:52:53 2011 +0200 lscpu: fix cache output for extended parsable output The extended parsable output prints a colon instead of comma between each item. The case where a CPU doesn't belong to any cache was not converted. Just fix this. Signed-off-by: Heiko Carstens sys-utils/lscpu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit c403ae6a1a50e11e99f42c6f7728368bbec34abc Author: Heiko Carstens Date: Tue Sep 6 02:52:52 2011 +0200 lscpu: remove comma operator Fix typo where the comma operator has been introduced. Use a semicolon instead so we end up with simple assignment expressions. Signed-off-by: Heiko Carstens sys-utils/lscpu.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit bb6f91636c66ab963d37ef81d38202956b7a79e0 Author: Karel Zak Date: Thu Sep 8 19:54:22 2011 +0200 mount: fix compiler warning [-Wunused-parameter] Signed-off-by: Karel Zak mount/fstab.c | 39 ++++++++++++++++++++++++++++++++------- mount/mount.c | 6 +++++- 2 files changed, 37 insertions(+), 8 deletions(-) commit c672220f1c236c0440a9972638b4df6dbeacd0e2 Author: Karel Zak Date: Thu Sep 8 19:40:34 2011 +0200 dmesg: add --file option This new option is mostly for testing (to test raw logs from another boxes/kernels). Signed-off-by: Karel Zak sys-utils/dmesg.1 | 2 + sys-utils/dmesg.c | 111 +++++++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 101 insertions(+), 12 deletions(-) commit 4d84fcb4c764c904e90c04cd167b523ed2786cd4 Author: Karel Zak Date: Wed Sep 7 16:29:56 2011 +0200 script: libintl.h included in nls.h Signed-off-by: Karel Zak term-utils/script.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) commit 1e03bc3beb6c86eac7c7088ae83d3d6f8007af0d Author: Philipp Marek Date: Wed Aug 31 09:41:01 2011 +0200 libblkid: DRBD proxy data-log identification. Signed-off-by: Philipp Marek Signed-off-by: Karel Zak libblkid/src/superblocks/Makefile.am | 1 + libblkid/src/superblocks/drbdproxy_datalog.c | 55 ++++++++++++++++++++++++++ libblkid/src/superblocks/superblocks.c | 1 + libblkid/src/superblocks/superblocks.h | 1 + 4 files changed, 58 insertions(+), 0 deletions(-) commit 8f2b1e841102ff76811ff0dba41778844d17c501 Author: Philipp Marek Date: Thu Sep 1 14:16:21 2011 +0200 libblkid: new magic for 8.4 style (unclean) activity log. Signed-off-by: Philipp Marek libblkid/src/superblocks/drbd.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 8f4bdfaced467bf3530456f487483581e9abb5a9 Author: maximilian attems Date: Wed Sep 7 00:41:25 2011 +0200 libuuid: add limits.h include for OPEN_MAX Needed as definition for usage in close_all_fds(). Noticed on klibc build. Signed-off-by: maximilian attems libuuid/src/gen_uuid.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 89aed1c950376d828e1e0ddef94909a028e0517d Author: Karel Zak Date: Wed Sep 7 07:37:03 2011 +0200 agetty: double equals sign typo in opentty() Reported-by: Francesco Cosoleto Signed-off-by: Karel Zak term-utils/agetty.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 3c911718df6df8d4b8fe31c9441cac6ff3d9e765 Author: Natanael Copa Date: Tue Aug 30 11:50:28 2011 +0000 script: fix building with --disable-nls We should only include the libintl.h when NLS is requested. This fixes issue when building util-linux with uClibc. Signed-off-by: Natanael Copa term-utils/script.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit b89fdd9c05a6e5f12ab56441389e5ee9d1d7f30f Author: Karel Zak Date: Tue Sep 6 03:18:46 2011 +0200 write: fix path for freopen() Reported-by: xinglp Signed-off-by: Karel Zak term-utils/write.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 31c9099a81d3a9c70fdceb198eebed678173d954 Author: Karel Zak Date: Fri Sep 2 14:42:04 2011 +0200 dmesg: remove extra space only after time stamp Signed-off-by: Karel Zak sys-utils/dmesg.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) commit 9637c8ac7e72d3bcc4c9a1974835a2a6a81d301d Author: Karel Zak Date: Wed Aug 31 17:10:31 2011 +0200 build-sys: remove redundant __progname check Signed-off-by: Karel Zak configure.ac | 9 --------- 1 files changed, 0 insertions(+), 9 deletions(-) commit 0e9381133e2d4a79715d5b9e2326198f8ed72d35 Author: Davidlohr Bueso Date: Tue Aug 16 09:20:07 2011 -0400 partx: support loop devices Add support for loop devices to add partitions. For now we make use of the max_part parameter from the loop kernel module, otherwise the feature is disabled. Below an example output: root@offbook:~/projects/util-linux/partx# ./partx -a -n 1:5 images-pt/dos+bsd.img root@offbook:~/projects/util-linux/partx# ls /dev/loop0* -ltr brw-rw---- 1 root disk 7, 0 2011-08-15 00:07 /dev/loop0 brw-rw---- 1 root disk 7, 5 2011-08-15 00:07 /dev/loop0p5 brw-rw---- 1 root disk 7, 2 2011-08-15 00:07 /dev/loop0p2 brw-rw---- 1 root disk 7, 1 2011-08-15 00:07 /dev/loop0p1 Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak partx/Makefile.am | 2 + partx/partx.c | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 79 insertions(+), 2 deletions(-) commit 22f69825778f992ff98ed100252bf5e00a15d9d1 Author: Karel Zak Date: Wed Aug 31 12:28:39 2011 +0200 dmesg: fix for non-CONFIG_PRINTK_TIME kernels * dmesg(1) incorrectly assumes that lines like "<6>\n" are broken. * it's more robust to assume the end of the record is "\n<" * print \n for empty lines Reported-by: "Gabor Z. Papp" Signed-off-by: Karel Zak sys-utils/dmesg.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) commit cc69f339c13238a4c153e0f4805c59c4c1d01ddf Author: Karel Zak Date: Wed Aug 31 11:58:01 2011 +0200 whereis: fix gcc warnings [-Wsign-compare] Signed-off-by: Karel Zak misc-utils/whereis.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b82c15bd193c1a66445c61baf9a3fcd36dff4578 Merge: da96299 0b57c6c Author: Karel Zak Date: Wed Aug 31 11:49:27 2011 +0200 Merge branch 'chcpu' of git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util-linux * 'chcpu' of git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util-linux: chcpu: new tool cpuset: add option to allow cpulist_parse() to fail commit da9629917d3b5b1aad12eaff99f33579d6f60128 Author: Karel Zak Date: Wed Aug 31 11:12:17 2011 +0200 docs: use .LGPL extension for file with GNU Lesser License Signed-off-by: Karel Zak Documentation/licenses/COPYING.GPLv2.1 | 510 ------------------------------- Documentation/licenses/COPYING.LGPLv2.1 | 510 +++++++++++++++++++++++++++++++ Documentation/licenses/COPYING.getopt | 5 - getopt/COPYING | 5 + libblkid/COPYING | 2 +- libmount/COPYING | 2 +- 6 files changed, 517 insertions(+), 517 deletions(-) commit fa25f2289cf7eea29f00053cd3c34f95d7c736be Merge: e8a728d ce0efc4 Author: Karel Zak Date: Wed Aug 31 11:04:15 2011 +0200 Merge branch 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetit * 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetit: docs: remove duplicated text docs: require kernel support before accepting use of it docs: note about independent super block structs docs: add libmount & libblkid debug instructions Documentation: add debugging doc arch: start using arch as a usage() example docs: new file Documentation/release-schedule.txt docs: move setuid information from reame to hwclock.8 docs: clean up old readme files docs: copy contributors from legacy files to AUTHORS docs: new file Documentation/howto-man-page.txt docs: new file Documentation/source-code-management.txt docs: new file Documentation/howto-contribute.txt docs: new file Documentation/howto-compilation.txt docs: tell what the Documentation/ is about docs: add usage() howto for contributors docs: Documentation directory added docs: remove README.clear commit ce0efc40a16ab6509c169c488de721d8898d5788 Author: Sami Kerola Date: Tue Aug 30 19:39:42 2011 +0200 docs: remove duplicated text Duplicate text is dealt by referring to license files. The `pg' command does not need separated license file because the source file has same text at top of it. http://www.spinics.net/lists/util-linux-ng/msg05069.html Signed-off-by: Sami Kerola Documentation/licenses/COPYING.BSD-3 | 25 ++ Documentation/licenses/COPYING.GPL | 339 -------------------- Documentation/licenses/COPYING.GPLv2 | 339 ++++++++++++++++++++ Documentation/licenses/COPYING.GPLv2.1 | 510 +++++++++++++++++++++++++++++++ Documentation/licenses/COPYING.getopt | 342 +-------------------- Documentation/licenses/COPYING.libblkid | 510 ------------------------------- Documentation/licenses/COPYING.libmount | 508 ------------------------------ Documentation/licenses/COPYING.libuuid | 25 -- Documentation/licenses/LICENSE.pg | 28 -- libblkid/COPYING | 8 + libmount/COPYING | 8 + libuuid/COPYING | 5 + 12 files changed, 899 insertions(+), 1748 deletions(-) commit e8a728df316487fd4624c6dbf4f7050954c04bd7 Merge: 8489587 596b884 Author: Karel Zak Date: Tue Aug 30 12:05:05 2011 +0200 Merge branch 'lscpu' of git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util-linux * 'lscpu' of git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util-linux: lscpu: add physical cpu address to parseable output lscpu: add cpu polarization to parseable output lscpu: show dispatching mode lscpu: use hypervisor generated topology information lscpu: detect IBM hypervisor lscpu: fix fallback nthreads calculation lscpu: fix cpu map array sizes lscpu: fix s390 bogomips detection coding style commit 84895878d0650290af61d6169d7baa1039ec5441 Author: Petr Uzel Date: Tue Aug 30 10:17:24 2011 +0200 sfdisk.8: fix formatting Signed-off-by: Petr Uzel fdisk/sfdisk.8 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 89c5005380714d54aa0d5734221fad0aa7c67e0a Author: maximilian attems Date: Mon Aug 29 18:59:35 2011 +0200 raw: fix shadowing of minor function Noticed while compiling against klibc: raw.c: In function ‘query’: raw.c:219:16: error: called object ‘minor’ is not a function Rename variable from minor to minor_raw. While at it mark the functions as static and small whitespace fixes as asked by checkpatch. [kzak@redhat.com: - rename variable at line 241 too] Signed-off-by: maximilian attems Signed-off-by: Karel Zak disk-utils/raw.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) commit 4ff826f68a7d9bd1239644ab53be9b81fc8b7a37 Author: Karel Zak Date: Tue Aug 30 11:44:15 2011 +0200 whereis: search in path for binaries only Signed-off-by: Karel Zak misc-utils/whereis.c | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) commit f51be85982c0e926bc3b161fd742855194713d4d Author: Davidlohr Bueso Date: Fri Aug 12 13:55:42 2011 -0400 whereis: search in path Currently this tool only uses the hardcoded paths for looking up strings for binaries, man pages and source code. Adding directories found in $PATH makes a nice little enhancement to support a wider range of lookups. This feature was also discussed previously here (http://www.spinics.net/lists/util-linux-ng/msg03429.html) Signed-off-by: Davidlohr Bueso misc-utils/whereis.c | 69 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 68 insertions(+), 1 deletions(-) commit 41fc17521d5c2765701762697c9b79bbfee513bc Author: Francesco Cosoleto Date: Wed Aug 17 00:19:06 2011 +0200 tests: update fdisk and blkid MD tests Signed-off-by: Francesco Cosoleto tests/expected/blkid/md-raid0-whole | 11 +++++++---- tests/expected/blkid/md-raid1-part | 11 +++++++---- tests/expected/blkid/md-raid1-whole | 13 ++++++++----- tests/expected/fdisk/align-512-4K | 24 ++++++++++++++++-------- tests/expected/fdisk/align-512-4K-63 | 24 ++++++++++++++++-------- tests/expected/fdisk/align-512-4K-md | 24 +++++++++++++++--------- tests/expected/fdisk/align-512-512 | 24 ++++++++++++++++-------- tests/expected/fdisk/align-512-512-topology | 24 ++++++++++++++++-------- tests/functions.sh | 1 + 9 files changed, 102 insertions(+), 54 deletions(-) commit d0bcd9b32284dbfeec9d76f4adf046fd68528398 Author: Francesco Cosoleto Date: Wed Aug 17 00:19:05 2011 +0200 tests: add ts_fdisk_clean function to make fdisk output comparable Signed-off-by: Francesco Cosoleto tests/functions.sh | 7 +++++++ tests/ts/blkid/md-raid0-whole | 5 ++--- tests/ts/blkid/md-raid1-part | 6 ++---- tests/ts/blkid/md-raid1-whole | 5 ++--- tests/ts/fdisk/align-512-4K | 5 +---- tests/ts/fdisk/align-512-4K-63 | 5 +---- tests/ts/fdisk/align-512-4K-md | 5 +---- tests/ts/fdisk/align-512-512 | 4 +--- tests/ts/fdisk/align-512-512-topology | 5 +---- 9 files changed, 18 insertions(+), 29 deletions(-) commit 9777759ad67014273a1499fe4c55544434157eab Author: Francesco Cosoleto Date: Wed Aug 17 00:19:04 2011 +0200 fdisk: print welcome message This adds a welcome message with util-linux version number, information about fdisk behaviour that doesn't write to disk after a command (unlike gparted) and a warning about possible data loss. The message appears just before the first command prompt. Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 10 +++++----- fdisk/fdisksgilabel.c | 4 +--- fdisk/fdisksunlabel.c | 4 +--- 3 files changed, 7 insertions(+), 11 deletions(-) commit a75ba1319e8443cd54d19d08b2b9904c4be5e958 Author: Francesco Cosoleto Date: Wed Aug 17 00:19:03 2011 +0200 fdisk: print partition deleted message Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 18 +++++------------- 1 files changed, 5 insertions(+), 13 deletions(-) commit 20aa2570e81b3254e492f4ec7ccaaa4933603081 Author: Francesco Cosoleto Date: Wed Aug 17 13:21:12 2011 +0200 fdisk: print a message with size and type of created partition Signed-off-by: Francesco Cosoleto fdisk/Makefile.am | 2 +- fdisk/fdisk.c | 13 +++++++++++++ fdisk/fdisk.h | 1 + fdisk/fdisksgilabel.c | 9 ++++++++- fdisk/fdisksunlabel.c | 4 ++++ 5 files changed, 27 insertions(+), 2 deletions(-) commit 484881ebdee8b1f339135a57958b6be8bc443a5d Author: Karel Zak Date: Tue Aug 30 09:46:10 2011 +0200 build-sys: don't install ru/ddate.1 if ddate disabled Signed-off-by: Karel Zak man/ru/Makefile.am | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit 464e11b8f52d0b5c139a327c8211e2b908dd4dc2 Author: Sami Kerola Date: Sat Aug 27 21:46:36 2011 +0200 docs: require kernel support before accepting use of it http://www.spinics.net/lists/kernel/msg1228993.html Signed-off-by: Sami Kerola Documentation/howto-contribute.txt | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit c0dcd7d0b829d717f334c6d8e25a53b92ebd7593 Author: Sami Kerola Date: Thu Aug 25 21:01:01 2011 +0200 docs: note about independent super block structs It's normal that we use our own (on kernel independent) copy of FS superbloks. -- K. Zak http://www.spinics.net/lists/util-linux-ng/msg04812.html Signed-off-by: Sami Kerola Documentation/howto-contribute.txt | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 7ec51ba998c7a5a4870451fc538b571f79ec633b Author: Sami Kerola Date: Thu Aug 25 20:54:34 2011 +0200 docs: add libmount & libblkid debug instructions Signed-off-by: Sami Kerola Documentation/howto-debug.txt | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) commit 2e88e3c6ccd2d7ce11bb9f1908174a157164b6a3 Author: Davidlohr Bueso Date: Sat Aug 6 20:59:32 2011 -0400 Documentation: add debugging doc Layout the base for tips on debugging util-linux programs/wrappers. [kerolasa@iki.fi: - rename file README.debug -> howto-debug.txt - wrap over 80 chars wide lines - change example commands to be relative to util-linux root - indent command examples ] Signed-off-by: Davidlohr Bueso Signed-off-by: Sami Kerola Documentation/howto-debug.txt | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) commit cd7accd4465ba51d3435ca90c8a474d5784747d1 Author: Sami Kerola Date: Sat Aug 20 19:25:46 2011 +0200 arch: start using arch as a usage() example The arch command is hijacked to be example of howto write usage as defined in Documentation/howto-usage-function.txt Signed-off-by: Sami Kerola include/c.h | 13 +++++++++++ sys-utils/arch.c | 62 ++++++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 64 insertions(+), 11 deletions(-) commit b6459b515832c06a76b64cc013440604800d59d5 Author: Sami Kerola Date: Mon Aug 15 21:37:54 2011 +0200 docs: new file Documentation/release-schedule.txt Signed-off-by: Sami Kerola Documentation/release-schedule.txt | 39 ++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) commit a6ccf39bf88dccebea17bfc9c971d99584918883 Author: Sami Kerola Date: Fri Aug 12 22:43:16 2011 +0200 docs: move setuid information from reame to hwclock.8 Signed-off-by: Sami Kerola Documentation/hwclock.txt | 14 -------------- hwclock/hwclock.8 | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-) commit 1a06cbf4f60bd11654daab6ba572a2d4680b871d Author: Sami Kerola Date: Fri Aug 12 22:00:13 2011 +0200 docs: clean up old readme files Removal of information which is simply wrong. Signed-off-by: Sami Kerola Documentation/cfdisk.txt | 10 ------ Documentation/col.txt | 7 ---- Documentation/fdisk.txt | 16 ++++----- Documentation/getopt.txt | 50 ---------------------------- Documentation/pg.txt | 10 ------ Documentation/poeigl.txt | 80 ---------------------------------------------- 6 files changed, 7 insertions(+), 166 deletions(-) commit 0420105003a593cd125b7aa9235df4abca78a904 Author: Sami Kerola Date: Fri Aug 12 21:36:40 2011 +0200 docs: copy contributors from legacy files to AUTHORS See bellow who where found to contribute to former packages that has been merged to util-linux. The list is very likely to be incomplete. cfdisk Kevin E. Martin getopt Volker Kuhlmann Bob Proulx agetty Peter Orbaek mount/umount Doug Quale H.J. Lu Rick Sladkey Stephen Tweedie pg Gunnar Ritter init/getty/login Erik Troan Sander van Malssen Jesse Thilo David Holland Marek Michalkiewicz Randolph Bentson Gerhard Schneider Gabriel M. Schuyler Christoph Lameter Steve Philp Eric Rasmussen Alan Wendt Ron Sommeling Juha Laiho Rickard Faith Alvaro M. Echevarria Daniel Quinlan Ross Biro Peter Tobias Scott Telford Jeremy Fitzhardinge Nicolai Langfeldt Jaakko Hyvätti Bill Reynolds Christian von Roques Mitchum DSouza Daniel Thumim Lars Wirzenius John Paul Morrison Jun Hamano Werner Almesberger Rick Sladkey Anthony Rumble Linus Torvalds Steven S. Dick Ed Carp Miquel van Smoorenburg Humberto Zuazaga Pietro Castelli Douglas E. Quale Stephen Gallimore Tommy Thorn Michael Glad W.Z. Venema Peter Orbaek Signed-off-by: Sami Kerola AUTHORS | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 51 insertions(+), 0 deletions(-) commit 05620dd47ef3562a36a1c9f3fe3a81ad139b4c2f Author: Sami Kerola Date: Fri Aug 12 21:23:58 2011 +0200 docs: new file Documentation/howto-man-page.txt The howto-man-page.txt is an example of good groff syntax and document about man page at the same time. Signed-off-by: Sami Kerola Documentation/howto-man-page.txt | 161 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 161 insertions(+), 0 deletions(-) commit bbe204588e8db9f050dcbfec7046f59f4bd3d5d0 Author: Sami Kerola Date: Fri Aug 12 20:48:31 2011 +0200 docs: new file Documentation/source-code-management.txt Signed-off-by: Sami Kerola Documentation/README.devel | 33 ------------------------------ Documentation/source-code-management.txt | 29 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 33 deletions(-) commit 90a1baf6cbf2c74cda719f920ab8c1de32438105 Author: Sami Kerola Date: Fri Aug 12 20:47:42 2011 +0200 docs: new file Documentation/howto-contribute.txt The file contens are mostly from former README.devel. Signed-off-by: Sami Kerola Documentation/README.devel | 88 ---------------------------------- Documentation/howto-contribute.txt | 92 ++++++++++++++++++++++++++++++++++++ README | 6 +-- 3 files changed, 93 insertions(+), 93 deletions(-) commit 22a3b8c9bd0e784cf3924b070ff22d9618884aa9 Author: Sami Kerola Date: Fri Aug 12 20:45:51 2011 +0200 docs: new file Documentation/howto-compilation.txt Signed-off-by: Sami Kerola Documentation/howto-compilation.txt | 64 +++++++++++++++++++++++++++++++++++ README | 43 ----------------------- 2 files changed, 64 insertions(+), 43 deletions(-) commit 28a6074b4cd50b78d169e10c78d4c96ace2c28f9 Author: Sami Kerola Date: Fri Aug 12 20:37:55 2011 +0200 docs: tell what the Documentation/ is about Signed-off-by: Sami Kerola Documentation/00-about-docs.txt | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit e1271f8ddc1cc387a44860db5ac9925a0182baba Author: Sami Kerola Date: Fri Aug 12 20:35:27 2011 +0200 docs: add usage() howto for contributors Style instructions to usage() writers. Discussion about this; http://www.spinics.net/lists/util-linux-ng/index.html#04983 Signed-off-by: Sami Kerola Documentation/howto-usage-function.txt | 147 ++++++++++++++++++++++++++++++++ 1 files changed, 147 insertions(+), 0 deletions(-) commit 0b57c6c22998996508db6ddbb38ec711fd12f8dc Author: Heiko Carstens Date: Mon Aug 15 07:52:49 2011 +0200 chcpu: new tool chcpu can modify the logical state of CPUs. It can enable and disable CPUs, scan for new CPUs, change the CPU dispatching mode of the underlying hypervisor and request (configure) or give logical CPUs back (deconfigure) to the the underlying hypervisor. This is quite useful if you work a lot with virtual servers, since doing all the configuration stuff directly via sysfs becomes a pain. Signed-off-by: Heiko Carstens sys-utils/.gitignore | 1 + sys-utils/Makefile.am | 3 + sys-utils/chcpu.1 | 94 ++++++++++++++ sys-utils/chcpu.c | 337 +++++++++++++++++++++++++++++++++++++++++++++++++ sys-utils/lscpu.1 | 2 + 5 files changed, 437 insertions(+), 0 deletions(-) commit b16f615afb8339b46e343e5dc292d1090ebff807 Author: Heiko Carstens Date: Mon Aug 15 07:52:44 2011 +0200 cpuset: add option to allow cpulist_parse() to fail This is a preparation patch for chcpu. If a cpu should be added to a cpu_set where the cpu doesn't fit into the cpu_set this got silently ignored. Since the cpu-list is user space provided it should be checked if cpus are specified that are completely out of range of the system. In order to do that add a parameter which specifies if cpulist_parse() should fail if it parses a cpu-list with "impossible" cpus. The current callers have been converted so they behave like before. Signed-off-by: Heiko Carstens include/cpuset.h | 2 +- lib/cpuset.c | 7 +++++-- schedutils/taskset.c | 2 +- sys-utils/lscpu.c | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) commit 596b884510f9e8958ce3c6c8f159cb58f0e273e0 Author: Heiko Carstens Date: Wed Aug 10 10:34:34 2011 +0200 lscpu: add physical cpu address to parseable output Print also the physical cpu address for each logical cpu in parsable output if selected and present via sysfs. Signed-off-by: Heiko Carstens sys-utils/lscpu.1 | 5 +++-- sys-utils/lscpu.c | 22 ++++++++++++++++++++-- 2 files changed, 23 insertions(+), 4 deletions(-) commit 2b8fcb8138ab8d6455c60b23bf75b7b3e687c6d7 Author: Heiko Carstens Date: Wed Aug 10 10:34:33 2011 +0200 lscpu: add cpu polarization to parseable output When running in different dispatching mode the virtual cpus may have different polarizations. E.g. in "vertical" mode cpus may have a polarization of "vertical:high" which means the virtual cpu has dedicated physical cpu assigned. Print this information in the parsable output. Note that this breaks the current rule that a) the parseable output contains only numbers b) these numbers are equal or increased in each line Since however this new item must be selected with the "list" argument this shouldn't be a problem. Signed-off-by: Heiko Carstens sys-utils/lscpu.1 | 2 +- sys-utils/lscpu.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 52 insertions(+), 3 deletions(-) commit a0fff77e932b704b3d2ab0ad789d466cb42047ed Author: Heiko Carstens Date: Wed Aug 10 10:34:32 2011 +0200 lscpu: show dispatching mode A virtual guest my run in either "horiziontal" or "vertical" mode which is the mode in which the underlying hypervisor schedules the guest cpu. Since this is of interest print this in the readable output. Signed-off-by: Heiko Carstens sys-utils/lscpu.c | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) commit 8648ca961f64b81194fe20dc88a5d64196198a79 Author: Heiko Carstens Date: Wed Aug 10 10:34:31 2011 +0200 lscpu: use hypervisor generated topology information The readable output prints also informations like cores per socket etc. On newer kernel versions on s390 this information is available via /proc/sysinfo. However it does not contain the layout of the guest but the layout of the real machine. Nevertheless this is better than random guessing with completely broken numbers like we have it now on s390. If the information is not available we fall back to old mechanism with more or less random numbers. Signed-off-by: Heiko Carstens sys-utils/lscpu.c | 33 +++++++++++++++++++++++++++++---- 1 files changed, 29 insertions(+), 4 deletions(-) commit b8ec7bdfeb75cff8a4374e87d06783b121e0ecd5 Author: Heiko Carstens Date: Wed Aug 10 10:34:30 2011 +0200 lscpu: detect IBM hypervisor Detect if the hypervisor on s390 is from KVM or IBM. Signed-off-by: Heiko Carstens sys-utils/lscpu.c | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) commit 32a46618bc615200829864210a906cd39f99e02e Author: Heiko Carstens Date: Wed Aug 10 10:34:29 2011 +0200 lscpu: fix fallback nthreads calculation The fallback calculation of nthreads did not consider books. In order to avoid division/multiply by/with zero make sure each number used is at least "1". Signed-off-by: Heiko Carstens sys-utils/lscpu.c | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) commit 9d1a3a18f31388c0a4587943e63cdf2c8a490387 Author: Heiko Carstens Date: Wed Aug 10 10:34:28 2011 +0200 lscpu: fix cpu map array sizes Completely virtualized architectures like s390 may have multiple virtual sockets and/or cores where each of them has a different number of cores and cpus. So the general assumption within the allocation scheme that e.g. each socket contains the same number of cores is not necessarily true. To make sure the arrays are always large enough we simply allocate enough memory so that each array could hold cpu masks for all present cpus. Signed-off-by: Heiko Carstens sys-utils/lscpu.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) commit abcd6368e65084c328c4d3b8cb05a31c55c7d478 Author: Heiko Carstens Date: Wed Aug 10 10:34:27 2011 +0200 lscpu: fix s390 bogomips detection coding style Just make the s390 bogomips detection line look like all others. Signed-off-by: Heiko Carstens sys-utils/lscpu.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit f98d4f766e39efd255c9b70d3780feea9c7a7898 Author: Sami Kerola Date: Fri Aug 12 20:19:52 2011 +0200 docs: Documentation directory added Move readme, licence, change log, relese notes and other supplementary files to a Documentation directory. This commit does not change contents of any other but few Makefile.am files. Signed-off-by: Sami Kerola DEPRECATED | 46 -- Documentation/README.devel | 121 ++++ Documentation/TODO | 292 ++++++++++ Documentation/blkid.txt | 78 +++ Documentation/cal.txt | 42 ++ Documentation/cfdisk.txt | 45 ++ Documentation/col.txt | 48 ++ Documentation/ddate.txt | 73 +++ Documentation/deprecated.txt | 46 ++ Documentation/example.files/filesystems | 7 + Documentation/example.files/fstab | 15 + Documentation/example.files/motd | 10 + Documentation/example.files/securetty | 5 + Documentation/example.files/shells | 4 + Documentation/example.files/udev-raw.rules | 7 + Documentation/fdisk.txt | 583 +++++++++++++++++++ Documentation/getopt.txt | 81 +++ Documentation/getopt_changelog.txt | 38 ++ Documentation/howto-tests.txt | 27 + Documentation/hwclock.txt | 17 + Documentation/licenses/COPYING.GPL | 339 +++++++++++ Documentation/licenses/COPYING.UCB | 32 + Documentation/licenses/COPYING.getopt | 339 +++++++++++ Documentation/licenses/COPYING.libblkid | 510 +++++++++++++++++ Documentation/licenses/COPYING.libmount | 508 +++++++++++++++++ Documentation/licenses/COPYING.libuuid | 25 + Documentation/licenses/LICENSE.pg | 28 + Documentation/modems-with-agetty.txt | 76 +++ Documentation/mount.txt | 17 + Documentation/pg.txt | 23 + Documentation/poeigl.txt | 583 +++++++++++++++++++ Documentation/releases/v2.13-ReleaseNotes | 460 +++++++++++++++ Documentation/releases/v2.14-ReleaseNotes | 418 ++++++++++++++ Documentation/releases/v2.15-ReleaseNotes | 675 ++++++++++++++++++++++ Documentation/releases/v2.16-ReleaseNotes | 182 ++++++ Documentation/releases/v2.17-ReleaseNotes | 526 +++++++++++++++++ Documentation/releases/v2.18-ReleaseNotes | 468 +++++++++++++++ Documentation/releases/v2.19-ReleaseNotes | 660 ++++++++++++++++++++++ Documentation/releases/v2.20-ReleaseNotes | 848 ++++++++++++++++++++++++++++ Documentation/sfdisk.txt | 264 +++++++++ Makefile.am | 7 +- NEWS | 52 +- README.devel | 121 ---- TODO | 292 ---------- docs/v2.13-ReleaseNotes | 460 --------------- docs/v2.14-ReleaseNotes | 418 -------------- docs/v2.15-ReleaseNotes | 675 ---------------------- docs/v2.16-ReleaseNotes | 182 ------ docs/v2.17-ReleaseNotes | 526 ----------------- docs/v2.18-ReleaseNotes | 468 --------------- docs/v2.19-ReleaseNotes | 660 ---------------------- docs/v2.20-ReleaseNotes | 848 ---------------------------- example.files/filesystems | 7 - example.files/fstab | 15 - example.files/motd | 10 - example.files/securetty | 5 - example.files/shells | 4 - example.files/udev-raw.rules | 7 - fdisk/Makefile.am | 2 +- fdisk/README.cfdisk | 45 -- fdisk/README.fdisk | 583 ------------------- fdisk/sfdisk.examples | 264 --------- getopt/COPYING | 339 ----------- getopt/Changelog | 38 -- getopt/Makefile.am | 3 - getopt/README | 81 --- hwclock/Makefile.am | 2 - hwclock/README.hwclock | 17 - libblkid/COPYING.libblkid | 510 ----------------- libblkid/Makefile.am | 2 +- libblkid/README.blkid | 78 --- libmount/COPYING.libmount | 508 ----------------- libmount/Makefile.am | 2 +- libuuid/COPYING.libuuid | 25 - libuuid/Makefile.am | 2 +- licenses/COPYING.GPL | 339 ----------- licenses/COPYING.UCB | 32 - login-utils/Makefile.am | 2 - login-utils/README.poeigl | 583 ------------------- misc-utils/Makefile.am | 2 - misc-utils/README.cal | 42 -- misc-utils/README.ddate | 73 --- mount/Makefile.am | 2 - mount/README.mount | 17 - term-utils/Makefile.am | 4 +- term-utils/README.modems-with-agetty | 76 --- tests/Makefile.am | 1 - tests/README | 27 - text-utils/LICENSE.pg | 28 - text-utils/Makefile.am | 4 - text-utils/README.col | 48 -- text-utils/README.pg | 23 - 92 files changed, 8552 insertions(+), 8575 deletions(-) commit fbcdec48e4482cbfa6ee9cca680cdc6f3b589fee Author: Sami Kerola Date: Fri Aug 12 20:16:22 2011 +0200 docs: remove README.clear The clear command has not been part of util-linux since 2.13-pre4 which is Sep 2005 in human format. Signed-off-by: Sami Kerola text-utils/Makefile.am | 2 +- text-utils/README.clear | 7 ------- 2 files changed, 1 insertions(+), 8 deletions(-)