Changes between v2.19 and v2.20-rc1 ----------------------------------- commit e6adc7714340902a53a7d13af053799be3e36f6a Author: Karel Zak Date: Fri Jul 29 22:44:47 2011 +0200 build-sys: fix configure.ac for uuidd Signed-off-by: Karel Zak configure.ac | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 54e10ad15f1c4f1797814758752752a47a8c25db Author: Karel Zak Date: Fri Jul 29 16:12:05 2011 +0200 build-sys: fix git-version-gen for -rc tags The current version have a problem to support "v2.20-rc1" format of the tags. Signed-off-by: Karel Zak tools/git-version-gen | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) commit d6fc523d285d28e76f3b3934d67b6ca44bde277f Author: Karel Zak Date: Fri Jul 29 15:14:52 2011 +0200 build-sys: release++ (v2.20-rc1) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) commit ce99998cc1b5db143c373b15aa294ef3e83a6840 Author: Karel Zak Date: Fri Jul 29 13:45:20 2011 +0200 docs: add 2.20 ReleaseNotes Signed-off-by: Karel Zak docs/v2.20-ReleaseNotes | 847 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 847 insertions(+), 0 deletions(-) commit 9feec79cc5bff9e0eb09153cc35c344176eb1094 Author: Karel Zak Date: Fri Jul 29 10:51:06 2011 +0200 misc: use unsigned int for bit-fileds Reported-by: Sami Kerola Signed-off-by: Karel Zak include/loopdev.h | 8 ++++---- misc-utils/lsblk.c | 8 ++++---- schedutils/taskset.c | 2 +- sys-utils/dmesg.c | 14 +++++++------- 4 files changed, 16 insertions(+), 16 deletions(-) commit 38a7157908ead160be137fde2c06e0b725cb9a15 Author: Karel Zak Date: Thu Jul 28 14:15:38 2011 +0200 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) commit f85112497e6659a358b45ade58b7195b50b6a994 Author: Karel Zak Date: Thu Jul 28 14:03:48 2011 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 9106 ++++++++++++++++++++++---------------- po/cs.po | 9961 ++++++++++++++++++++++++----------------- po/da.po | 9661 +++++++++++++++++++++++---------------- po/de.po |12834 +++++++++++++++++++++++++++++----------------------- po/es.po | 9112 ++++++++++++++++++++++---------------- po/et.po |10401 ++++++++++++++++++++++++------------------- po/eu.po |10599 ++++++++++++++++++++++++-------------------- po/fi.po | 9130 ++++++++++++++++++++++---------------- po/fr.po |10042 +++++++++++++++++++++++++----------------- po/gl.po | 9398 +++++++++++++++++++++------------------ po/hu.po |12940 +++++++++++++++++++++++++++++------------------------ po/id.po | 9332 ++++++++++++++++++++++---------------- po/it.po | 9051 +++++++++++++++++++++---------------- po/ja.po | 9213 ++++++++++++++++++++++---------------- po/nl.po | 9217 ++++++++++++++++++++++---------------- po/pl.po | 8922 +++++++++++++++++++++--------------- po/pt_BR.po | 8910 +++++++++++++++++++++---------------- po/ru.po | 8983 +++++++++++++++++++++---------------- po/sl.po | 8943 +++++++++++++++++++++---------------- po/sv.po | 9096 ++++++++++++++++++++++---------------- po/tr.po | 8962 +++++++++++++++++++++---------------- po/uk.po | 8978 +++++++++++++++++++++---------------- po/util-linux.pot | 8723 +++++++++++++++++++----------------- po/vi.po | 9345 ++++++++++++++++++++++---------------- po/zh_CN.po | 9530 +++++++++++++++++++++------------------ po/zh_TW.po | 9266 ++++++++++++++++++++++---------------- 26 files changed, 142365 insertions(+), 107290 deletions(-) commit a504b92c237fa4ee2cb89f0aa71905d6b0aa8236 Author: David Prévot Date: Thu Jul 28 13:51:11 2011 +0200 po: update fr.po (from translationproject.org) po/fr.po | 4226 ++++++++++++++++++++++---------------------------------------- 1 files changed, 1458 insertions(+), 2768 deletions(-) commit a69e16b74230b68ec29adebbadcfcd8c5c537015 Author: Joe Hansen Date: Thu Jul 28 13:51:11 2011 +0200 po: update da.po (from translationproject.org) po/da.po | 2107 ++++++++++++++++++++++++-------------------------------------- 1 files changed, 817 insertions(+), 1290 deletions(-) commit 7f435b8f67de365e73f419426525ef568ff0990d Author: Petr Písař Date: Thu Jul 28 13:51:11 2011 +0200 po: update cs.po (from translationproject.org) po/cs.po | 1574 ++++++++++++++++++++++++++------------------------------------ 1 files changed, 646 insertions(+), 928 deletions(-) commit 58ca4ed1b41ef03b44477afcfd547380f3bacaf8 Author: Karel Zak Date: Thu Jul 28 13:47:56 2011 +0200 build-sys: remove and ignore generated files Signed-off-by: Karel Zak libblkid/docs/.gitignore | 1 + libmount/docs/.gitignore | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) commit 15fbd83f3b0d9df6a7012a62289de2233fcee6cb Author: Karel Zak Date: Thu Jul 28 13:46:22 2011 +0200 cfdisk: fix compilation with slang Signed-off-by: Karel Zak fdisk/cfdisk.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 842f917664389931d00585dfb176ad84bc35d894 Author: Karel Zak Date: Thu Jul 28 13:24:26 2011 +0200 hwclock: tiny change in comment ... to keep 'make checkconfig' happy. Signed-off-by: Karel Zak hwclock/hwclock.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit ce75b60528aaa287d8208f063c4cfd020dcfb360 Author: Karel Zak Date: Thu Jul 28 13:21:00 2011 +0200 build-sys: fix 'make checkincludes' warnings Signed-off-by: Karel Zak fsck/fsck.c | 1 - include/sysfs.h | 2 -- lib/loopdev.c | 2 -- lib/procutils.c | 2 -- login-utils/checktty.c | 2 -- sys-utils/mountpoint.c | 2 -- 6 files changed, 0 insertions(+), 11 deletions(-) commit b18830295d8f976473b5daafc90031fc63066f1a Author: Karel Zak Date: Thu Jul 28 13:16:31 2011 +0200 docs: update TODO file Signed-off-by: Karel Zak TODO | 145 +++++++++++++++++++++++++++++++---------------------------------- 1 files changed, 69 insertions(+), 76 deletions(-) commit cd2ac5b9596d66dc4b7be629b6c9d1571f41bca4 Author: Karel Zak Date: Wed Jul 27 23:41:10 2011 +0200 tests: update lscpu tests Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-i386-amdshanghai | 2 +- tests/expected/lscpu/lscpu-i386-dellpe700 | 2 +- tests/expected/lscpu/lscpu-i386-intels5000phb | 2 +- tests/expected/lscpu/lscpu-ia64-512cpus | 2 +- tests/expected/lscpu/lscpu-ia64-hpmatterhorn | 2 +- tests/expected/lscpu/lscpu-ia64-hprx1620 | 2 +- tests/expected/lscpu/lscpu-ia64-pg0 | 2 +- tests/expected/lscpu/lscpu-ppc64-POWER7 | 2 +- tests/expected/lscpu/lscpu-sparc64-UltraSparc-T1 | 2 +- tests/expected/lscpu/lscpu-x86_64-dell_e4310 | 2 +- .../expected/lscpu/lscpu-x86_64-dell_poweredgeR610 | 2 +- tests/expected/lscpu/lscpu-x86_64-dellr710 | 2 +- tests/expected/lscpu/lscpu-x86_64-el5xen | 2 +- tests/expected/lscpu/lscpu-x86_64-hpdl585 | 2 +- tests/expected/lscpu/lscpu-x86_64-ibme326m | 2 +- tests/expected/lscpu/lscpu-x86_64-necem14 | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) commit 477251f8f5dab0edf94b88d7f2a1af15d5f6b8c0 Author: Karel Zak Date: Wed Jul 27 23:10:01 2011 +0200 lscpu: extend --parse functionality ... to allow define output columns, for example: $ lscpu --parse=CPU,CORE,NODE,CACHE # CPU,Core,Node,L1d:L1i:L2 0,0,0,0:0:0 1,1,0,1:1:0 Note that CPU caches are separated by ":" in the new format. The output for --parse (without the list of the columns) is backwardly compatible, it means: $ lscpu --parse # CPU,Core,Socket,Node,,L1d,L1i,L2 0,0,0,0,,0,0,0 1,1,0,0,,1,1,0 Signed-off-by: Karel Zak sys-utils/Makefile.am | 2 +- sys-utils/lscpu.1 | 15 +++- sys-utils/lscpu.c | 212 ++++++++++++++++++++++++++++++++++++------------- 3 files changed, 173 insertions(+), 56 deletions(-) commit c87638ad3076f5e7e0c80067631561c356148b79 Author: Karel Zak Date: Wed Jul 27 16:41:21 2011 +0200 include: [strutils.c] add list parsers Signed-off-by: Karel Zak include/strutils.h | 5 +++ lib/strutils.c | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++ lib/tt.c | 41 --------------------- misc-utils/findmnt.c | 6 +-- misc-utils/lsblk.c | 3 +- partx/partx.c | 3 +- sys-utils/dmesg.c | 47 +++--------------------- 7 files changed, 110 insertions(+), 90 deletions(-) commit bdc3ed6678f229819bd6ee583745e63c1714fe5d Author: Karel Zak Date: Wed Jul 27 16:21:11 2011 +0200 include; [tt.c] check for array size in columns parser Signed-off-by: Karel Zak include/tt.h | 2 +- lib/tt.c | 18 +++++++++++------- misc-utils/findmnt.c | 20 +++++++++++++------- misc-utils/lsblk.c | 7 +++++-- partx/partx.c | 7 +++++-- 5 files changed, 35 insertions(+), 19 deletions(-) commit 3fe1b06aba1e7cbb0e13e4bca83e9838a3727eed Author: Karel Zak Date: Wed Jul 27 14:22:36 2011 +0200 build-sys: fix gtk-doc distclean Signed-off-by: Karel Zak config/gtk-doc.make | 7 +++++-- libblkid/docs/Makefile.am | 4 ++-- libmount/docs/Makefile.am | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) commit 3d92ed40e69d2620f43fadce22af13a993fe9d78 Author: Karel Zak Date: Wed Jul 27 12:02:36 2011 +0200 build-sys: enable mountpoint, add dependence on libmout Signed-off-by: Karel Zak configure.ac | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) commit 36acca1e26a05b87174336e1b0284a3d350858fb Author: Karel Zak Date: Wed Jul 27 11:14:28 2011 +0200 hwclock: fix gcc warning (uninitialized variable) Signed-off-by: Karel Zak hwclock/hwclock.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a4863bdf6e60e643f2cb1aa942e609b75dd224fb Merge: c632883 4ac41d6 Author: Karel Zak Date: Wed Jul 27 09:56:39 2011 +0200 Merge branch 'hwclock' of https://github.com/kerolasa/lelux-utiliteetit commit 4ac41d6114d57a6b404185f055f796ccbf8e1967 Author: Sami Kerola Date: Tue Jul 26 00:04:34 2011 +0200 hwclock: validate numeric option arguments Instead atoi() use strtoul_or_err(). Signed-off-by: Sami Kerola hwclock/Makefile.am | 2 +- hwclock/clock.h | 2 +- hwclock/hwclock.c | 10 ++++++---- 3 files changed, 8 insertions(+), 6 deletions(-) commit 33ed2d02370dacc111cc9836e0dc7758828ed7d5 Author: Sami Kerola Date: Mon Jul 25 23:46:50 2011 +0200 hwclock: move long options away from global scope In addition `long only' options are made unreachable by using 8-bit characters. Signed-off-by: Sami Kerola hwclock/hwclock.c | 122 ++++++++++++++++++++++++++++++---------------------- 1 files changed, 70 insertions(+), 52 deletions(-) commit b618d6eedad4f051f4b1d3c9b2f9af7bbf40351a Author: Sami Kerola Date: Mon Jul 25 22:20:03 2011 +0200 hwclock: add variable initialization The only variable found causing `conditional jump or move depends on uninitialized value' is fixed. Signed-off-by: Sami Kerola hwclock/hwclock.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit ea0804b0c7deaf462ba5ce35289b773c054433a2 Author: Sami Kerola Date: Mon Jul 25 22:08:40 2011 +0200 hwclock: remove goto statement Signed-off-by: Sami Kerola hwclock/hwclock.c | 34 +++++++++++++++++++++------------- 1 files changed, 21 insertions(+), 13 deletions(-) commit 390c72eb23c49e0fc3e3ccec0ebcb99b6b86d676 Author: Sami Kerola Date: Mon Jul 25 21:33:39 2011 +0200 hwclock: fix compiler warnings hwclock.c: In function 'manipulate_epoch': hwclock.c:1299:29: warning: unused parameter 'getepoch' [-Wunused-parameter] hwclock.c:1299:50: warning: unused parameter 'setepoch' [-Wunused-parameter] hwclock.c:1300:14: warning: unused parameter 'epoch_opt' [-Wunused-parameter] hwclock.c:1300:36: warning: unused parameter 'testing' [-Wunused-parameter] hwclock.c: In function 'usage': hwclock.c:1373:1: warning: embedding a directive within macro arguments is not portable [enabled by default] hwclock.c:1377:1: warning: embedding a directive within macro arguments is not portable [enabled by default] hwclock.c:1383:1: warning: embedding a directive within macro arguments is not portable [enabled by default] hwclock.c:1385:1: warning: embedding a directive within macro arguments is not portable [enabled by default] cmos.c: In function 'outb': cmos.c:84:15: warning: unused parameter 'a' [-Wunused-parameter] cmos.c:84:22: warning: unused parameter 'b' [-Wunused-parameter] cmos.c: In function 'inb': cmos.c:88:13: warning: unused parameter 'c' [-Wunused-parameter] cmos.c: In function 'atomic': cmos.c:265:20: warning: unused parameter 'name' [-Wunused-parameter] cmos.c: In function 'i386_iopl': cmos.c:544:32: warning: unused parameter 'level' [-Wunused-parameter] cmos.c: In function 'get_permissions_cmos': cmos.c:565:8: warning: unused variable 'errsv' [-Wunused-variable] Signed-off-by: Sami Kerola hwclock/cmos.c | 31 +++++++++++++++++--------- hwclock/hwclock.c | 61 ++++++++++++++++++++++++++++++++-------------------- 2 files changed, 57 insertions(+), 35 deletions(-) commit 9d413ecb6ec828c141c6e86b026c54127643caa7 Author: Sami Kerola Date: Sun Jul 24 23:18:22 2011 +0200 hwclock: move path definitions to pathnames.h Signed-off-by: Sami Kerola hwclock/hwclock.c | 28 +++++++++------------------- include/pathnames.h | 9 +++++++++ 2 files changed, 18 insertions(+), 19 deletions(-) commit 111c05d36f489ef248c87227bb617c1192b5cdcc Author: Sami Kerola Date: Sun Jul 24 20:30:29 2011 +0200 hwclock: use libc error printing functions In addition numeric exit values are converted to defined strings. Signed-off-by: Sami Kerola hwclock/clock.h | 6 -- hwclock/cmos.c | 21 ++---- hwclock/hwclock.c | 223 ++++++++++++++++++++++------------------------------ hwclock/kd.c | 18 ++--- hwclock/rtc.c | 90 ++++++++++------------ 5 files changed, 151 insertions(+), 207 deletions(-) commit 998f392a1f7206282084e6df90cba4007cceea13 Author: Sami Kerola Date: Sun Jul 24 19:58:17 2011 +0200 hwclock: include-what-you-use header check One deletion, few adds and sort to include lists. Signed-off-by: Sami Kerola hwclock/cmos.c | 9 +++++++-- hwclock/hwclock.c | 18 +++++++++--------- hwclock/kd.c | 7 ++++--- hwclock/rtc.c | 11 ++++++++--- 4 files changed, 28 insertions(+), 17 deletions(-) commit ef71b8f1128b72bf072f1bd0a306b1bb06781a40 Author: Sami Kerola Date: Sun Jul 24 17:35:43 2011 +0200 hwclock: coding style clean up Despide amount of the change this change should be harmless. Everything is about indendation, comment restructuring etc not code changes. Signed-off-by: Sami Kerola hwclock/clock.h | 16 +- hwclock/cmos.c | 979 +++++++++++---------- hwclock/hwclock.c | 2453 +++++++++++++++++++++++++++-------------------------- hwclock/kd.c | 234 +++--- hwclock/rtc.c | 544 +++++++------ 5 files changed, 2159 insertions(+), 2067 deletions(-) commit c632883f309762857b40003136eed9fb8eb63615 Author: Karel Zak Date: Tue Jul 26 16:46:00 2011 +0200 libblkid: minor change in man page Signed-off-by: Karel Zak libblkid/libblkid.3 | 39 +++++++++++++++++---------------------- 1 files changed, 17 insertions(+), 22 deletions(-) commit aa097baacf1f05ff27ad744d9b41b78c5f166c51 Author: Karel Zak Date: Tue Jul 26 15:53:56 2011 +0200 tests: remove generated file Signed-off-by: Karel Zak 0 files changed, 0 insertions(+), 0 deletions(-) commit e96a05a9490cd1abf7043851d016db029ff85dcc Author: Karel Zak Date: Tue Jul 26 15:52:08 2011 +0200 build-sys: fix gtk-doc build Signed-off-by: Karel Zak config/gtk-doc.make | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 9ae45d23de3cb769fa272db44d9eb400d2da9534 Merge: 244bf85 5d6fb94 Author: Karel Zak Date: Tue Jul 26 14:41:28 2011 +0200 Merge branch 'cramfs' of https://github.com/kerolasa/lelux-utiliteetit * 'cramfs' of https://github.com/kerolasa/lelux-utiliteetit: include: move fsck return values to exitcodes.h include: move disk-utils/mkfs.h -> include/exitcodes.h mkfs.cramfs: coding style mkfs.cramfs: include-what-you-use header check mkfs.cramfs: error printing fixes mkfs.cramfs: convert spaces to tabs mkfs.cramfs: validate numeric user inputs mkfs.cramfs: few symbolic exit codes where missing md5: use symbolical digest length mkfs.cramfs: use program_invocation_short_name mkfs.cramfs: use xalloc.h fsck.cramfs: add missed strings to translation fsck.cramfs: coding style fsck.cramfs: use xalloc.h fsck.cramfs: retire die function cramfs.h: coding style cramfs: use stdint.h instead of u{8,16,32} cramfs_common: coding style Conflicts: disk-utils/Makefile.am Signed-off-by: Karel Zak commit 244bf8587c3a1cb6282d5f4c7afbcb07cc953fcf Author: Jindrich Makovicka Date: Sun Jul 24 14:13:07 2011 +0200 libblkid: vfat big endian fix when getting the next cluster id, clear the 4 most significant bits after converting to machine endian Signed-off-by: Jindrich Makovicka libblkid/src/superblocks/vfat.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5ec1ee6d8ef2d2f0abf64eb0a52d63a2f6bb8252 Author: Jindrich Makovicka Date: Sun Jul 24 14:12:06 2011 +0200 libblkid: use 64bit offset in search_fat_label to avoid truncation [kzak@redhat.com: - use %jd for the offset in debug message] Signed-off-by: Jindrich Makovicka Signed-off-by: Karel Zak libblkid/src/superblocks/vfat.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 739de076503015954ab869812e642c774c2b163e Author: Sami Kerola Date: Tue Jul 26 11:49:30 2011 +0200 scriptreplay: fix buffer overflow Signed-off-by: Sami Kerola Signed-off-by: Karel Zak term-utils/scriptreplay.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 0b542a94c466be5b146bb9a6fda228944f3325aa Author: Davidlohr Bueso Date: Sun Jul 24 11:11:19 2011 -0400 whereis: update coding style Like most 20th century Berkeley code, it's horrible: - declare global variables in only one place - add static attribute where it belongs - move funcion declarations so that it doesn't require defining them Signed-off-by: Davidlohr Bueso misc-utils/whereis.c | 360 ++++++++++++++++++++++++-------------------------- 1 files changed, 170 insertions(+), 190 deletions(-) commit 839c0259203b7048f6f560abf51dfbd216673d72 Author: Davidlohr Bueso Date: Sun Jul 24 10:59:25 2011 -0400 whereis: remove find() Because findv() can do the same job find() does, we can simply remove it and call findv() with the size of each array. Signed-off-by: Davidlohr Bueso misc-utils/whereis.c | 14 +++----------- 1 files changed, 3 insertions(+), 11 deletions(-) commit 08de16d003857f5ba0ceacc154dffca6407073de Author: Davidlohr Bueso Date: Sun Jul 24 14:39:15 2011 -0400 lscpu: use xalloc Signed-off-by: Davidlohr Bueso sys-utils/lscpu.c | 32 +++++++++----------------------- 1 files changed, 9 insertions(+), 23 deletions(-) commit 4190aaf619c6984226a9916fbb4bde3c70c3f2b4 Author: Davidlohr Bueso Date: Sun Jul 24 11:29:23 2011 -0400 partx: use sysfs_deinit Commit a88268b8cc124b6f721ba17ab01a3f6d5800c749 (get partition number with sysfs lib) recently added the sysfs library to partx without freeing resources once finished. Signed-off-by: Davidlohr Bueso partx/partx.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit fb4a9e54fc937d5e182f64ae2d0b09a1e05a3d1b Author: Davidlohr Bueso Date: Sun Jul 24 11:22:52 2011 -0400 sysfs: free used resources In the sysfs lib example, we should be using sysfs_deinit() to free used resources and for correct usage. Signed-off-by: Davidlohr Bueso lib/sysfs.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 94947a1971b5dbdf1414eb5356b9b554cdbf4ab5 Author: Karel Zak Date: Mon Jul 25 15:54:28 2011 +0200 tests: add -o remount to libmount tests Signed-off-by: Karel Zak tests/expected/libmount/context-mount-flags | 2 ++ tests/ts/libmount/context | 4 ++++ 2 files changed, 6 insertions(+), 0 deletions(-) commit de60d08e9381cf7a0e700a921bbcc320711c2c15 Author: Karel Zak Date: Mon Jul 25 15:44:16 2011 +0200 libmount: remove 'seclabel' on remount, improve for 2.6.39 Signed-off-by: Karel Zak libmount/src/context_mount.c | 36 +++++++++++++++++++++++++++++------- libmount/src/tab.c | 4 ++-- 2 files changed, 31 insertions(+), 9 deletions(-) commit 9267c0991d98eb4b09d76d9334e9608a99662781 Author: Karel Zak Date: Mon Jul 25 15:36:44 2011 +0200 libmount: improve apply_fstab debugging Signed-off-by: Karel Zak libmount/src/context.c | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) commit 9f06f52b7b13ffdfa44047fd4fd7932c2ee6b783 Author: Karel Zak Date: Mon Jul 25 14:16:26 2011 +0200 build-sys: use silent rules got gtkdoc, fix dependencies Signed-off-by: Karel Zak config/gtk-doc.make | 26 +++++++++++--------------- 1 files changed, 11 insertions(+), 15 deletions(-) commit fb46809f7da1a0556903290c924ce02a33e39783 Author: Karel Zak Date: Mon Jul 25 12:37:56 2011 +0200 mount: remove 'seclabel' mount option on remount Reported-by: Daniel Drake Signed-off-by: Karel Zak mount/mount.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 799b96d95780b8d9120e03389887bfb4e5bec3a1 Author: Karel Zak Date: Mon Jul 25 12:16:15 2011 +0200 libmount: add MOUNT_2.20 version to the API The API is officially stable since 2.20. Signed-off-by: Karel Zak libmount/src/libmount.sym | 29 ++++++++++++++++------------- 1 files changed, 16 insertions(+), 13 deletions(-) commit 486d3972972de4c3143e342a0a6aef819bb58f0b Author: Karel Zak Date: Mon Jul 25 11:57:28 2011 +0200 libmount: remove unnecessary includes, mask API as stable Signed-off-by: Karel Zak libmount/src/cache.c | 1 - libmount/src/context.c | 9 --------- libmount/src/context_mount.c | 9 --------- libmount/src/context_umount.c | 9 --------- libmount/src/fs.c | 7 +------ libmount/src/init.c | 1 - libmount/src/libmount.h.in | 4 ---- libmount/src/lock.c | 10 ---------- libmount/src/mountP.h | 12 +++++++----- libmount/src/optmap.c | 6 ------ libmount/src/optstr.c | 7 ------- libmount/src/tab.c | 11 ----------- libmount/src/tab_diff.c | 10 ---------- libmount/src/tab_parse.c | 6 ------ libmount/src/tab_update.c | 9 --------- libmount/src/utils.c | 6 ------ libmount/src/version.c | 3 --- misc-utils/findmnt.c | 1 - 18 files changed, 8 insertions(+), 113 deletions(-) commit e6ecd606ae2b3665b7f5a99e612a74979d8e8457 Author: Karel Zak Date: Mon Jul 25 10:42:08 2011 +0200 libmount: clean up docs Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 66 ++++++++++++++++++++++++++++------ libmount/src/context.c | 9 +++-- libmount/src/context_mount.c | 2 +- libmount/src/libmount.h.in | 9 ++++- libmount/src/optstr.c | 4 +- 5 files changed, 70 insertions(+), 20 deletions(-) commit 7d8ee8dad5392089cba182c5a0036160872da359 Author: Sami Kerola Date: Sun Jul 24 17:28:21 2011 +0200 hwclock: remove misleading information Signed-off-by: Sami Kerola hwclock/Makefile.am | 2 +- hwclock/README.hwclock | 10 ---------- 2 files changed, 1 insertions(+), 11 deletions(-) commit de980aba5751efab7f7e042da6dfdd79865feae2 Author: Sami Kerola Date: Sun Jul 24 17:27:12 2011 +0200 hwclock: remove clock-ppc.c There is no need to keep this file hanging around anymore. Signed-off-by: Sami Kerola hwclock/clock-ppc.c | 459 --------------------------------------------------- 1 files changed, 0 insertions(+), 459 deletions(-) commit 63de90d44f4f05a1f48942148edcf1740ba4a623 Author: Karel Zak Date: Sat Jul 23 01:27:39 2011 +0200 libmount: cleanup docs Signed-off-by: Karel Zak libmount/docs/Makefile.am | 2 +- libmount/docs/libmount-docs.xml | 18 ++- libmount/docs/libmount-sections.txt | 270 ++++++++++++++++++++--------------- libmount/src/cache.c | 8 +- libmount/src/context.c | 10 +- libmount/src/context_mount.c | 18 ++- libmount/src/context_umount.c | 6 + libmount/src/fs.c | 2 +- libmount/src/lock.c | 2 +- libmount/src/optstr.c | 3 +- libmount/src/tab.c | 5 +- libmount/src/tab_diff.c | 2 +- libmount/src/tab_update.c | 13 +- 13 files changed, 206 insertions(+), 153 deletions(-) commit fd7c9e350415e48a30d579b28997ac178ae2d4c8 Author: Karel Zak Date: Fri Jul 22 16:39:32 2011 +0200 libblkid: update docs Signed-off-by: Karel Zak libblkid/docs/Makefile.am | 2 +- libblkid/docs/libblkid-docs.xml | 2 +- libblkid/docs/libblkid-sections.txt | 45 ++++++++++++++++++++++++++++++++ libblkid/src/blkid.h.in | 12 ++++++++- libblkid/src/evaluate.c | 18 +++++++----- libblkid/src/partitions/partitions.c | 17 +++++++----- libblkid/src/probe.c | 2 +- libblkid/src/superblocks/superblocks.c | 15 +++++----- libblkid/src/superblocks/ubifs.c | 5 +-- libblkid/src/topology/topology.c | 3 -- 10 files changed, 88 insertions(+), 33 deletions(-) commit 99152a9535766d6f7cb89428422549ab48e2249d Author: Karel Zak Date: Fri Jul 22 16:39:32 2011 +0200 build-sys: use gtkdoc without tmpl dir Signed-off-by: Karel Zak config/gtk-doc.make | 68 +++++++++++++++++++++++++++++++++----------------- 1 files changed, 45 insertions(+), 23 deletions(-) commit cbc1dc969b83d7cca64297b78d32d337c7ba3414 Author: Karel Zak Date: Fri Jul 22 12:37:57 2011 +0200 ionice: make -t more tolerant * replace errx() with warnx() for unknown -c class The right place to check I/O scheduler features is in kernel. We should not try to be more smart than kernel. * make the code ready (robust) for unknown sched.classes * fix -t behavior old version: $ ionice -c 4 -t bash ionice: bad prio class 4 new version: $ ionice -c 4 -t bash Reported-by: Voelker, Bernhard" Signed-off-by: Karel Zak schedutils/ionice.c | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) commit fe040397f9f935188f97676ce0180ad0e76bb764 Author: Karel Zak Date: Fri Jul 22 11:39:06 2011 +0200 ionice: allow to use names for -c for example: $ ionice -c best-effort bash Signed-off-by: Karel Zak schedutils/ionice.1 | 13 ++++++++----- schedutils/ionice.c | 38 +++++++++++++++++++++++++++++--------- 2 files changed, 37 insertions(+), 14 deletions(-) commit fcc2b2da4ca5efcc82d31b11cdb9b16f90cd31c3 Author: Karel Zak Date: Fri Jul 22 11:15:28 2011 +0200 ionice: improve command line interpretation ionice : print the current I/O prio. ionice COMMAND : exec command with default (best-effort) class ionice -p PID [...] : return info about the PID(s) ionice -c CLASS COMMAND : exec command with the class ionice -c CLASS -p PID [...] : modify PID(s) class This should be backwardly compatible and also compatible with nice(1) from coreutils. Signed-off-by: Karel Zak schedutils/ionice.1 | 5 +++++ schedutils/ionice.c | 47 ++++++++++++++++++++++++++++------------------- 2 files changed, 33 insertions(+), 19 deletions(-) commit 5d6fb944bfb2b2837042338e2225b53261293255 Author: Sami Kerola Date: Fri Jul 22 00:34:12 2011 +0200 include: move fsck return values to exitcodes.h Signed-off-by: Sami Kerola disk-utils/fsck.cramfs.c | 10 +--------- include/exitcodes.h | 9 +++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) commit b8f040cdd4d94e524261fc0fb72aff7bc55b177b Author: Sami Kerola Date: Fri Jul 22 00:22:14 2011 +0200 include: move disk-utils/mkfs.h -> include/exitcodes.h Signed-off-by: Sami Kerola disk-utils/Makefile.am | 4 ++-- disk-utils/mkfs.cramfs.c | 2 +- disk-utils/mkfs.h | 9 --------- disk-utils/mkfs.minix.c | 2 +- include/Makefile.am | 1 + include/exitcodes.h | 9 +++++++++ 6 files changed, 14 insertions(+), 13 deletions(-) commit 18dad87a271b7e8319c7f8aa0f4665e293075353 Author: Sami Kerola Date: Fri Jul 22 00:07:40 2011 +0200 mkfs.cramfs: coding style Clean up to two if clauses and fix to a version print out format. Signed-off-by: Sami Kerola disk-utils/mkfs.cramfs.c | 54 +++++++++++++++++++++++----------------------- 1 files changed, 27 insertions(+), 27 deletions(-) commit 2b760a594bd70215b3b07a5d59e1ea48bf1ff1b6 Author: Sami Kerola Date: Wed Jul 20 22:23:33 2011 +0200 mkfs.cramfs: include-what-you-use header check add these lines: #include // for size_t #include // for Bytef, uLongf Signed-off-by: Sami Kerola disk-utils/mkfs.cramfs.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 16154b1fcf07bf5608577c0320ff296622cb7bca Author: Sami Kerola Date: Wed Jul 20 22:21:09 2011 +0200 mkfs.cramfs: error printing fixes The patch will fix few starange looking errors such as: $ mkfs.cramfs -N foo invalid endianness given. Must be 'big', 'little', or 'host': Success to be more sensible: mkfs.cramfs: invalid endianness given. Must be 'big', 'little', or 'host' And there are couple new return value checks to stop command if out file cannot be opened, or an IO error occurs. Signed-off-by: Sami Kerola disk-utils/mkfs.cramfs.c | 116 ++++++++++++++++++---------------------------- 1 files changed, 45 insertions(+), 71 deletions(-) commit 11bcb6523a242059aa124a1fb2ffcfdb3cd777a4 Author: Sami Kerola Date: Wed Jul 20 22:19:49 2011 +0200 mkfs.cramfs: convert spaces to tabs The conversion is applied only to the line beginnings. Signed-off-by: Sami Kerola disk-utils/mkfs.cramfs.c | 88 +++++++++++++++++++++++----------------------- 1 files changed, 44 insertions(+), 44 deletions(-) commit 64ab88d7701ff4fb43f18e4faa92605c785ece98 Author: Sami Kerola Date: Wed Jul 20 22:17:02 2011 +0200 mkfs.cramfs: validate numeric user inputs Signed-off-by: Sami Kerola disk-utils/Makefile.am | 2 +- disk-utils/mkfs.cramfs.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) commit 9d9fb355a1ad6f381a5db44157bfd3ee6384cecc Author: Sami Kerola Date: Wed Jul 20 22:16:08 2011 +0200 mkfs.cramfs: few symbolic exit codes where missing This makes commit 89f56db1842e78bea0c6bc75028c3754489a9ad3 complete. Signed-off-by: Sami Kerola disk-utils/mkfs.cramfs.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit e429d141061d47c567b6790f3c7d9e51e8a356a7 Author: Sami Kerola Date: Wed Jul 20 22:13:32 2011 +0200 md5: use symbolical digest length Magic hash lenght number 16 is turned to a definition MD5LENGTH, and put into use everywhere where md5 checksum is in use. Signed-off-by: Sami Kerola disk-utils/mkfs.cramfs.c | 4 ++-- include/md5.h | 4 +++- lib/md5.c | 4 ++-- libblkid/src/superblocks/hfs.c | 6 +++--- misc-utils/mcookie.c | 4 ++-- tests/helpers/test_md5.c | 4 ++-- 6 files changed, 14 insertions(+), 12 deletions(-) commit 5260748c28a8efd18e50c7942b001160c02bfb93 Author: Sami Kerola Date: Wed Jul 20 22:12:40 2011 +0200 mkfs.cramfs: use program_invocation_short_name Signed-off-by: Sami Kerola disk-utils/mkfs.cramfs.c | 13 +++---------- 1 files changed, 3 insertions(+), 10 deletions(-) commit ccaa52754eb1f13a5aa440eaa8e316cc87296478 Author: Sami Kerola Date: Wed Jul 20 22:11:28 2011 +0200 mkfs.cramfs: use xalloc.h Before this commit two strdup calls, in line 366 and 374, where able to fail silently and cause a rare bug. Signed-off-by: Sami Kerola disk-utils/mkfs.cramfs.c | 41 ++++++++--------------------------------- 1 files changed, 8 insertions(+), 33 deletions(-) commit 6de1396e6ab615d068bf89650e9dbafe9020e612 Author: Sami Kerola Date: Wed Jul 20 22:10:44 2011 +0200 fsck.cramfs: add missed strings to translation Signed-off-by: Sami Kerola disk-utils/fsck.cramfs.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 6ffd9b03f2297a313d623a70abb8e325ee5a4d44 Author: Sami Kerola Date: Wed Jul 20 22:08:48 2011 +0200 fsck.cramfs: coding style Lots of braces got to be removed, which can cause something to break even everything is double checked. Signed-off-by: Sami Kerola disk-utils/fsck.cramfs.c | 399 +++++++++++++++++++++------------------------- 1 files changed, 180 insertions(+), 219 deletions(-) commit fc8dc41054fc5303d41a4e98f899ea7f14c58532 Author: Sami Kerola Date: Wed Jul 20 22:03:47 2011 +0200 fsck.cramfs: use xalloc.h Signed-off-by: Sami Kerola disk-utils/fsck.cramfs.c | 40 ++++++++++++++++------------------------ 1 files changed, 16 insertions(+), 24 deletions(-) commit 11b7698c272e5e36581d17f77f3dc72910350483 Author: Sami Kerola Date: Wed Jul 20 22:03:08 2011 +0200 fsck.cramfs: retire die function Replaced with err{,x} from libc. Signed-off-by: Sami Kerola disk-utils/fsck.cramfs.c | 122 ++++++++++++++++++++-------------------------- 1 files changed, 53 insertions(+), 69 deletions(-) commit 22eef91a55cd276aef76eeac86a7e94248156ea6 Author: Sami Kerola Date: Wed Jul 20 22:01:02 2011 +0200 cramfs.h: coding style Signed-off-by: Sami Kerola disk-utils/cramfs.h | 45 +++++++++++++++++++++++++-------------------- 1 files changed, 25 insertions(+), 20 deletions(-) commit 270e66eca4a3c5b44d1d86619e36a6e76cede9c8 Author: Milan Broz Date: Thu Jul 21 22:56:20 2011 +0200 lsblk: ignore device if disappear while processing If lsblk runing on system where many devices appears and disappears during lsblk run, lsblk should not fail or crash but just ignore disappeared device. Let's detect context initialization failures and skip device instead of failing. Also fix possible dereferencing of NULL parent pointer and properly handle some error paths. Signed-off-by: Milan Broz Signed-off-by: Karel Zak misc-utils/lsblk.c | 71 +++++++++++++++++++++++++++++++++++----------------- 1 files changed, 48 insertions(+), 23 deletions(-) commit b59994b0eb9494cb2c8c440b2c685999c722c74c Author: Karel Zak Date: Thu Jul 21 22:29:26 2011 +0200 tests: add 'none' source to libmount update tests Signed-off-by: Karel Zak tests/expected/libmount/update-mtab-mount | 1 + tests/expected/libmount/update-mtab-move | 1 + tests/expected/libmount/update-mtab-remount | 1 + tests/expected/libmount/update-utab-mount | 1 + tests/expected/libmount/update-utab-move | 1 + tests/expected/libmount/update-utab-remount | 1 + tests/ts/libmount/update | 4 ++++ 7 files changed, 10 insertions(+), 0 deletions(-) commit bfbb12d24b77bc36a1c3adb5eefb633e08a5d0de Author: Davidlohr Bueso Date: Mon Jul 18 00:33:20 2011 -0400 swapon: use xalloc lib Signed-off-by: Davidlohr Bueso mount/swapon.c | 13 ++++--------- 1 files changed, 4 insertions(+), 9 deletions(-) commit a88268b8cc124b6f721ba17ab01a3f6d5800c749 Author: Davidlohr Bueso Date: Sun Jul 17 12:47:30 2011 -0400 partx: get partition number with sysfs lib Now that we have this feature, there's no need to manually parse sysfs in partx. Signed-off-by: Davidlohr Bueso partx/Makefile.am | 1 + partx/partx.c | 22 +++++----------------- 2 files changed, 6 insertions(+), 17 deletions(-) commit 0cbeee27a304e13e00f72ffe57a2a16d2dee8ca9 Author: Karel Zak Date: Thu Jul 21 17:45:04 2011 +0200 docs: update TODO file Signed-off-by: Karel Zak TODO | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit 87bf92337a4f7971ee48924214172d5122bce655 Author: Sami Kerola Date: Sun Jul 17 20:22:15 2011 +0200 docs: update TODO file Signed-off-by: Sami Kerola TODO | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 8a44fb011d452b44c23d18b7d343266d08cd0dd1 Author: Sami Kerola Date: Sun Jul 17 20:21:40 2011 +0200 chrt: add strings to use NLS Signed-off-by: Sami Kerola Signed-off-by: Karel Zak schedutils/chrt.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 02ad010012a5b2cd2ad7b7d63d45d6281d8cec8c Author: Sami Kerola Date: Sun Jul 17 20:00:19 2011 +0200 taskset: coding style fixes Reindentation and deletion of few empty lines etc. There is no actual code changes in this patch. Signed-off-by: Sami Kerola schedutils/taskset.c | 34 +++++++++++++++++----------------- 1 files changed, 17 insertions(+), 17 deletions(-) commit 6f45c0e9ff04db97550eada4a3e115613c7cf150 Author: Sami Kerola Date: Sun Jul 17 19:59:16 2011 +0200 taskset: include-what-you-use header check taskset.c should add these lines: #include for sched_getaffinity, etc #include for size_t #include for memset Signed-off-by: Sami Kerola schedutils/taskset.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 4033fbe3e6158410f9c4c1a883d52f3cddafc88d Author: Sami Kerola Date: Thu Jul 21 17:28:32 2011 +0200 docs: mention long options in ionice.1 Signed-off-by: Sami Kerola Signed-off-by: Karel Zak schedutils/ionice.1 | 44 ++++++++++++++++++++++++++++---------------- 1 files changed, 28 insertions(+), 16 deletions(-) commit a5e9b75fac965883515d94fdd0451868d240d9c9 Author: Sami Kerola Date: Thu Jul 21 17:09:28 2011 +0200 ionice: coding style fixes Signed-off-by: Sami Kerola Signed-off-by: Karel Zak schedutils/ionice.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) commit abd57eb3e3eb4707e7eb35cae6e540bdbf4ad7b0 Author: Sami Kerola Date: Sun Jul 17 19:55:45 2011 +0200 ionice: fix -V output Signed-off-by: Sami Kerola schedutils/ionice.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7ab08ba3e5e6f161b93ff2b3b7d5b18dc7b44510 Author: Karel Zak Date: Thu Jul 21 16:44:55 2011 +0200 ionice: fix -p $ ionice 123 none: prio 4 none: prio 4 It calls ioprio_get(0x1, 0) and ioprio_get(0x1, 123), because the code does not check it the "-p" options was specified. The proper command line syntax is: $ ionice -p 123 and the ioprio_get() should be called only once. Signed-off-by: Karel Zak schedutils/ionice.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) commit 560cdabbfab344605c7960839214e63f44e8c1d3 Author: Karel Zak Date: Thu Jul 21 16:33:20 2011 +0200 ionice: IOPRIO_PRIO_* macros * make the code more robust * follow kernel conventions for variable names (data = classdata, ioprio = classdata | class) Signed-off-by: Karel Zak schedutils/ionice.c | 53 ++++++++++++++++++++++++++++---------------------- 1 files changed, 30 insertions(+), 23 deletions(-) commit 976b7580e00d8edc3b689c1d5d0b298223626de4 Author: Sami Kerola Date: Sun Jul 17 19:54:08 2011 +0200 ionice: add long options Signed-off-by: Sami Kerola Signed-off-by: Karel Zak schedutils/ionice.c | 54 +++++++++++++++++++++++++++++++++++--------------- 1 files changed, 38 insertions(+), 16 deletions(-) commit 110d680af8cc2ddb79063fa485f1c7f0026f7018 Author: Sami Kerola Date: Sun Jul 17 19:52:37 2011 +0200 chrt: coding style fix Make horizontal list vertical and few other enhancements to readability. Signed-off-by: Sami Kerola schedutils/chrt.c | 46 ++++++++++++++++++++++++++-------------------- 1 files changed, 26 insertions(+), 20 deletions(-) commit 90b7d261b9acaaacc0266f9b9ea1ffb934c4da4e Author: Sami Kerola Date: Sun Jul 17 19:51:46 2011 +0200 chrt: data type compiler warning fixed chrt.c:158:16: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] Signed-off-by: Sami Kerola schedutils/chrt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 06c0375ce37cd78cd6e589fbc343a6e1cb240d26 Author: Karel Zak Date: Thu Jul 21 13:00:40 2011 +0200 fsck.minix: fix "array subscript is above array bounds" fsck.minix.c: In function ‘map_block2’: fsck.minix.c:486:9: warning: array subscript is above array bounds [-Warray-bounds] The 'blknr' has to be bigger than 7 + 256 + (256 * 256) for i_zone[9]. Signed-off-by: Karel Zak disk-utils/fsck.minix.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0dca7bd54a961d08628e52bc17bee80ae10e19d5 Author: Karel Zak Date: Thu Jul 21 12:41:25 2011 +0200 minix: remove unnecessary initializations Signed-off-by: Karel Zak disk-utils/fsck.minix.c | 36 +++++++++++++++++------------------- disk-utils/mkfs.minix.c | 26 +++++++++++++------------- 2 files changed, 30 insertions(+), 32 deletions(-) commit c1d26b19818b0caf2aff06f133a1cfa2d2442c61 Author: Karel Zak Date: Thu Jul 21 12:22:46 2011 +0200 minix: add MINIX_ prefix to some global macros ... and remove some tailing whitespaces. Signed-off-by: Karel Zak disk-utils/fsck.minix.c | 12 ++++++------ disk-utils/mkfs.minix.c | 10 +++++----- include/minix.h | 13 +++++++------ 3 files changed, 18 insertions(+), 17 deletions(-) commit 058cda4c1de90ca4fc3293a3bb5b859d87315d4d Author: Karel Zak Date: Thu Jul 21 12:13:33 2011 +0200 minix: cleanup global variables and macros Signed-off-by: Karel Zak disk-utils/fsck.minix.c | 15 +++++++++++++++ disk-utils/minix_programs.h | 15 ++++++++++----- disk-utils/mkfs.minix.c | 15 ++++++++++++++- include/minix.h | 16 ---------------- 4 files changed, 39 insertions(+), 22 deletions(-) commit e844147d17337ffa492ad8ca4887e1e0112ec409 Merge: b596211 e9ab36a Author: Karel Zak Date: Thu Jul 21 11:26:42 2011 +0200 Merge branch 'minix' of https://github.com/kerolasa/lelux-utiliteetit * 'minix' of https://github.com/kerolasa/lelux-utiliteetit: libblkid: move MINIX_MAXPARTITIONS to minix.h minix: move globals and inline functions to minix_programs.h libblkid: use MINIX_BLOCK_SIZE from minix.h libblkid: use superblock structure from minix.h include: move minix.h to include directory include: remove kernel headers from minix.h include: minix.h: use data types from stdint.h Conflicts: disk-utils/Makefile.am Signed-off-by: Karel Zak commit d51f37a3688c786478d24507f24508471672e821 Author: Sami Kerola Date: Wed Jul 20 22:00:02 2011 +0200 cramfs: use stdint.h instead of u{8,16,32} Signed-off-by: Sami Kerola disk-utils/cramfs.h | 32 +++++++++++++++----------------- disk-utils/cramfs_common.c | 2 +- disk-utils/fsck.cramfs.c | 9 +++++---- disk-utils/mkfs.cramfs.c | 4 ++-- 4 files changed, 23 insertions(+), 24 deletions(-) commit fc2798c50b66617b8b0555ec1e063744a9946aa4 Author: Sami Kerola Date: Wed Jul 20 21:57:11 2011 +0200 cramfs_common: coding style Fix line lengths and white spaces. Signed-off-by: Sami Kerola disk-utils/cramfs_common.c | 44 ++++++++++++++++++++++++-------------------- 1 files changed, 24 insertions(+), 20 deletions(-) commit b5962110d274b06388d83f7bcee6b72ebc442170 Author: Karel Zak Date: Wed Jul 20 21:24:20 2011 +0200 libmount: fix mtab update for "none" source tab_parse.c:mnt_parse_mountinfo_line parses "none" in src as NULL, tab_update.c:fprintf_mtab_fs sets m1 to NULL instead of "none" and returns -ENOMEM tab_update.c:update_table says "write entry failed: Success", as errno hasn't been set, and gotos to leave, leaving mtab not updated. Addresses-debian-bug: 634871 Reported-by: Tomas Janousek Signed-off-by: Karel Zak libmount/src/tab_update.c | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) commit 5af0769de62f25f39199fb0df677d185ed8492ce Author: Karel Zak Date: Wed Jul 20 21:15:43 2011 +0200 libmount: cleanup code for "none" source and fstype, fix mem leak Signed-off-by: Karel Zak libmount/src/fs.c | 9 ++++++--- libmount/src/tab_parse.c | 10 ++-------- 2 files changed, 8 insertions(+), 11 deletions(-) commit e9ab36a73ad6291aa9848d3910eb3400c0ef7766 Author: Sami Kerola Date: Wed Jul 20 20:39:01 2011 +0200 libblkid: move MINIX_MAXPARTITIONS to minix.h Signed-off-by: Sami Kerola include/minix.h | 5 +++++ libblkid/src/partitions/minix.c | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) commit 7cc112d92704211654d0447877dc9759fadea660 Author: Sami Kerola Date: Wed Jul 20 20:28:55 2011 +0200 minix: move globals and inline functions to minix_programs.h Global variables and inline functions are moved from minix.h to minix_programs.h which is included in mkfs.minix and fsck.minix. The minix.h will have only struct definitions etc generic contents which is reasonable to share with utilities and libraries. Signed-off-by: Sami Kerola disk-utils/Makefile.am | 4 +- disk-utils/fsck.minix.c | 1 + disk-utils/minix_programs.h | 113 +++++++++++++++++++++++++++++++++++++++++++ disk-utils/mkfs.minix.c | 1 + include/minix.h | 99 ------------------------------------- 5 files changed, 117 insertions(+), 101 deletions(-) commit 63883af765609743b7031faa4f33d6e2a0b2b156 Author: Sami Kerola Date: Wed Jul 20 20:13:08 2011 +0200 libblkid: use MINIX_BLOCK_SIZE from minix.h In the minix.h two definitions where renamed, so that the single definition is reusable in fsck.minix, mkfs.minix and libblkid. BLOCK_SIZE_BITS -> MINIX_BLOCK_SIZE_BITS BLOCK_SIZE -> MINIX_BLOCK_SIZE Signed-off-by: Sami Kerola disk-utils/fsck.minix.c | 98 +++++++++++++++++++------------------- disk-utils/mkfs.minix.c | 76 +++++++++++++++--------------- include/minix.h | 12 ++-- libblkid/src/superblocks/minix.c | 3 - 4 files changed, 93 insertions(+), 96 deletions(-) commit a38887352ae94ea0055c2895892755ee8df6bb7d Author: Sami Kerola Date: Thu Jul 14 17:27:33 2011 +0200 libblkid: use superblock structure from minix.h Signed-off-by: Sami Kerola libblkid/src/superblocks/minix.c | 30 +----------------------------- 1 files changed, 1 insertions(+), 29 deletions(-) commit 532055e2e68ac2697b98006dc990e5c3a247ab0a Author: Sami Kerola Date: Thu Jul 14 17:26:16 2011 +0200 include: move minix.h to include directory Signed-off-by: Sami Kerola disk-utils/Makefile.am | 4 +- disk-utils/minix.h | 191 ------------------------------------------------ include/Makefile.am | 1 + include/minix.h | 191 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 194 insertions(+), 193 deletions(-) commit d997b7ef5e7207a9843aeb50763bc6e6fd5fb4fb Author: Sami Kerola Date: Thu Jul 14 17:25:07 2011 +0200 include: remove kernel headers from minix.h This clean up is purely cosmetic. Perprocessor could never use the includes as KERNEL_INCLUDES_ARE_CLEAN variable does not get set anywhere. Signed-off-by: Sami Kerola disk-utils/minix.h | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) commit 2788d8417b1c5e66842ca138117081dc0bc8a3ac Author: Sami Kerola Date: Thu Jul 14 17:24:10 2011 +0200 include: minix.h: use data types from stdint.h The kernel types (e.g. u32, s64) are unexpected in util-linux. Signed-off-by: Sami Kerola disk-utils/minix.h | 89 +++++++++++++++++++++++++--------------------------- 1 files changed, 43 insertions(+), 46 deletions(-) commit 608d45015f78d85510b22181e7afd189876ac6c6 Author: Karel Zak Date: Wed Jul 20 17:03:24 2011 +0200 dmesg: allow to print time delta without timestamp Signed-off-by: Karel Zak sys-utils/dmesg.1 | 3 ++- sys-utils/dmesg.c | 13 +++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) commit 641986cf92221e4329d1a2978cabbbed27a7a746 Author: Karel Zak Date: Wed Jul 20 15:50:34 2011 +0200 dmesg: mark some options mutually exclusive Reported-by: "Voelker, Bernhard" Signed-off-by: Karel Zak sys-utils/dmesg.c | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) commit 42fac79a215bddd4102a6e3c7dbb60b42832120d Author: Karel Zak Date: Wed Jul 20 14:26:45 2011 +0200 dmesg: add --ctime to print human readable timestamps Based on patch from "corentin.labbe" . Signed-off-by: Karel Zak sys-utils/dmesg.1 | 4 ++++ sys-utils/dmesg.c | 51 ++++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 48 insertions(+), 7 deletions(-) commit bd304d92ff9a592db2c1e736e7adbd1e09e7446d Author: Karel Zak Date: Wed Jul 20 12:52:15 2011 +0200 dmesg: add --show-delta option Signed-off-by: Karel Zak sys-utils/dmesg.1 | 6 ++- sys-utils/dmesg.c | 92 +++++++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 79 insertions(+), 19 deletions(-) commit a7ee94f2204011f26232ed3133514bf6e0d4a62c Author: Karel Zak Date: Tue Jul 19 21:37:34 2011 +0200 dmesg: print_buffer() refactoring Signed-off-by: Karel Zak sys-utils/dmesg.c | 135 ++++++++++++++++++++++++++++++++++++---------------- 1 files changed, 93 insertions(+), 42 deletions(-) commit aca1633a3e4d05c8eb8c4d5516e1f90edc53c2f2 Author: Karel Zak Date: Tue Jul 19 20:00:54 2011 +0200 dmesg: variables refactoring Signed-off-by: Karel Zak sys-utils/dmesg.c | 72 +++++++++++++++++++++++++--------------------------- 1 files changed, 35 insertions(+), 37 deletions(-) commit 7ef8c5bc9e872adf07c38a08f32be7f3084c9dda Author: Karel Zak Date: Tue Jul 19 00:30:42 2011 +0200 docs: update TODO Signed-off-by: Karel Zak TODO | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 730d5e7761e738983e4df1e34d80fd2b06e575e6 Author: Marc-Antoine Perennou Date: Mon Jul 18 19:37:22 2011 +0200 dmesg: fix segfault An element declared as size_t cannot be detected as negative (len < 0) is always false. This can lead to an infinite loop causing a segmentation fault. Check if len is equal to -1 or -2 instead Signed-off-by: Marc-Antoine Perennou sys-utils/dmesg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7148256802364dc13549c7f4026de45ae0a52bb6 Author: Karel Zak Date: Mon Jul 18 17:15:00 2011 +0200 mkfs.bfs: cleanu p --version output Signed-off-by: Karel Zak disk-utils/mkfs.bfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e5794f549dc3cd2cf893dcd0c64c446f25a791f5 Author: Karel Zak Date: Mon Jul 18 17:08:45 2011 +0200 mkfs.bfs: use err() instead of errx() Signed-off-by: Karel Zak disk-utils/mkfs.bfs.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) commit 853ffe21a52474d23d109781437fb959a4afe3cd Merge: 3160fcf 4e46e95 Author: Karel Zak Date: Mon Jul 18 17:00:52 2011 +0200 Merge remote-tracking branch 'sami/mkfs.bfs' * sami/mkfs.bfs: docs: add long options to mkfs.bfs.8 mkfs.bfs: coding style fix mkfs.bfs: include-what-you-use header check mkfs.bfs: validate numeric user inputs mkfs.bfs: use xstrdup from xalloc.h mkfs.bfs: add long options mkfs.bfs: use libc error facilities commit 3160fcf3268a3e7d0bec0d20b4221d0ada8215d5 Author: Karel Zak Date: Mon Jul 18 16:57:55 2011 +0200 fdformat: cleanup error messages Signed-off-by: Karel Zak disk-utils/fdformat.c | 19 +++++++------------ 1 files changed, 7 insertions(+), 12 deletions(-) commit 117d15a9364160a036274e5eec2db351c541f01a Merge: e55beb5 99ba55e Author: Karel Zak Date: Mon Jul 18 16:48:22 2011 +0200 Merge remote-tracking branch 'sami/fdformat' * sami/fdformat: docs: add long options to fdformat.8 fdformat: coding style fdformat: include-what-you-use header check fdformat: use xalloc.h fdformat: integer comparisons & unused parameter fdformat: use long options fdformat: use libc error printing facilities commit e55beb56b106d2e785fb713343260506819ce0e1 Merge: d74b8df 0e9d0af Author: Karel Zak Date: Mon Jul 18 16:43:51 2011 +0200 Merge remote-tracking branch 'sami/isosize' * sami/isosize: docs: isosize.8 add long options isosize: fix coding style isosize: include-what-you-use header check isosize: check user input to be numeric isosize: use long options isosize: remove global variables commit d74b8dfc705216330f755519676524a57fe454c4 Author: Karel Zak Date: Mon Jul 18 11:48:41 2011 +0200 dmesg: add -t option to suppress timestamps Signed-off-by: Karel Zak sys-utils/dmesg.1 | 2 ++ sys-utils/dmesg.c | 25 +++++++++++++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) commit 250001801107c4647c92f15210ba88a9f0fc272d Author: Karel Zak Date: Mon Jul 18 11:28:15 2011 +0200 dmesg: add -u and -k options -u : print kernel messages -k : print userspace message The options could be mixed together or with --facility option too. Signed-off-by: Karel Zak sys-utils/dmesg.1 | 4 ++++ sys-utils/dmesg.c | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 1 deletions(-) commit 56baaa4e1fb9e98d62beb48ac41aa3ed8528e890 Author: Heiko Carstens Date: Wed Jul 13 09:16:18 2011 +0530 lscpu: add support for books This patch adds support for books in cpu topology output. Books are currently only present on the s390 architecture, however it looks like others will follow to use the extra scheduling domain of the kernel. Books are logically between sockets and nodes. In order to not break any existing tools that might parse the output of lscpu the output is changed so that books will follow nodes: CPU,Core,Socket,Node,Book In addition the readable output is changed from "CPU socket(s):" to "Socket(s) per book:" or simply "Socket(s):" in the absence of books. Signed-off-by: Heiko Carstens sys-utils/lscpu.c | 46 +++++++++++++++++++++++++++++++++++++++------- 1 files changed, 39 insertions(+), 7 deletions(-) commit 64c9e22aa47ea262f8e01c2aff1d48890d6e4e8b Author: Milan Broz Date: Sat Jul 9 15:24:04 2011 +0200 lsblk: add queue request size attribute Add queue request size parameter. Very useful for tuning multipath performance. Signed-off-by: Milan Broz Signed-off-by: Karel Zak misc-utils/lsblk.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit 24563aea022cf94d1589c22f694f636a8dd2078d Author: Karel Zak Date: Fri Jul 15 15:35:48 2011 +0200 include: [tt.c] always truncate if TT_FL_TRUNC Signed-off-by: Karel Zak lib/tt.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) commit 01e487c02085a2a4efbc8b1475cd22052e32de2d Author: Milan Broz Date: Tue Jul 5 23:29:30 2011 +0200 lsblk: add state attribute Add device state column. For normal disk it could be running or offline, for device-mapper devices running or suspended. Signed-off-by: Milan Broz Signed-off-by: Karel Zak misc-utils/lsblk.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) commit 872a1575e81f5ed1e871d4ed9558f43effe96423 Author: Karel Zak Date: Thu Jul 14 13:46:13 2011 +0200 dmesg: fix typo in usage() Signed-off-by: Karel Zak sys-utils/dmesg.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit b7271b68ec76cfa127360cc56740917be5b27da5 Author: Karel Zak Date: Thu Jul 14 13:32:31 2011 +0200 docs: update TODO file Signed-off-by: Karel Zak TODO | 24 ------------------------ 1 files changed, 0 insertions(+), 24 deletions(-) commit 5ef053699bbe8893c08d99756d80b3ed863698a3 Author: Karel Zak Date: Thu Jul 14 13:31:53 2011 +0200 dmesg: reorder options, add comments Signed-off-by: Karel Zak sys-utils/dmesg.1 | 27 ++++++++------ sys-utils/dmesg.c | 104 ++++++++++++++++++++++++++++++++--------------------- 2 files changed, 79 insertions(+), 52 deletions(-) commit 0e24df3b10e156b3f05c4bc04d6e2ace17faff38 Author: Karel Zak Date: Thu Jul 14 12:48:07 2011 +0200 dmesg: add --facility option Signed-off-by: Karel Zak sys-utils/dmesg.1 | 8 +++++++ sys-utils/dmesg.c | 54 +++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 58 insertions(+), 4 deletions(-) commit 85f3cc55f7a50643095a5ea311a6ab8f12d34552 Author: Karel Zak Date: Thu Jul 14 12:19:00 2011 +0200 dmesg: add --decode to print readable facility and level # dmesg --decode ... kern :info : [53335.743185] PM: resume of devices complete after 2496.795 msecs kern :debug : [53335.743593] PM: Finishing wakeup. kern :warn : [53335.743595] Restarting tasks ... done. kern :info : [53335.790452] video LNXVIDEO:00: Restoring backlight state kern :debug : [53336.418576] e1000e 0000:00:19.0: irq 45 for MSI/MSI-X Signed-off-by: Karel Zak sys-utils/dmesg.1 | 2 + sys-utils/dmesg.c | 66 +++++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 61 insertions(+), 7 deletions(-) commit 3ca43386bd75023a5e340d6b20733a955e62bb8d Author: Davidlohr Bueso Date: Wed Jul 13 00:05:31 2011 -0400 minix: remove fs state For v3 minix superblocks the state flag (s_state) has been removed, so drop it from the structure in accordance with the kernel's representation. Reported-by: Sami Kerola Signed-off-by: Davidlohr Bueso disk-utils/minix.h | 1 - disk-utils/mkfs.minix.c | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) commit 636a6207d954db32fbf4bfaa70ca4741d13b465c Author: Karel Zak Date: Wed Jul 13 15:50:47 2011 +0200 dmesg: add --level= For example dmesg --level=err,warn will print only error and warning messages. Signed-off-by: Karel Zak sys-utils/dmesg.1 | 6 +++ sys-utils/dmesg.c | 102 ++++++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 95 insertions(+), 13 deletions(-) commit 5c8f6bc6dfad42379e0489c3de6d67a15fedb2dc Author: Karel Zak Date: Wed Jul 13 15:06:53 2011 +0200 dmesg: consolidate level parsiig code Signed-off-by: Karel Zak sys-utils/dmesg.c | 39 +++++++++++++++++++++++++-------------- 1 files changed, 25 insertions(+), 14 deletions(-) commit b8300c0a1e744a4f958e2edd1ab2208c13fbbec2 Author: Karel Zak Date: Wed Jul 13 15:00:49 2011 +0200 dmesg: don't print non-printable chars, parse records All non-printable chars, non-printable multibyte sequences or invalid multibyte sequences will be replaced with \x strings. Signed-off-by: Karel Zak sys-utils/dmesg.c | 111 +++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 99 insertions(+), 12 deletions(-) commit 4e46e9581f7936e864312baa7fb99730ffd37d6c Author: Sami Kerola Date: Mon Jul 11 22:36:03 2011 +0200 docs: add long options to mkfs.bfs.8 Signed-off-by: Sami Kerola disk-utils/mkfs.bfs.8 | 38 ++++++++++++++++++++++---------------- 1 files changed, 22 insertions(+), 16 deletions(-) commit 6496cb07b0f036526bb092e0f9466ed3e2c21826 Author: Sami Kerola Date: Mon Jul 11 22:27:09 2011 +0200 mkfs.bfs: coding style fix Sync with README.devel Signed-off-by: Sami Kerola disk-utils/mkfs.bfs.c | 108 +++++++++++++++++++++++++------------------------ 1 files changed, 55 insertions(+), 53 deletions(-) commit fa620557cf0cce56f5fd66126987c15e0285fb29 Author: Sami Kerola Date: Mon Jul 11 21:25:08 2011 +0200 mkfs.bfs: include-what-you-use header check The limits.h is added for CHAR_MAX Signed-off-by: Sami Kerola disk-utils/mkfs.bfs.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit b7e271170477798b527e2914fb082da023e0d112 Author: Sami Kerola Date: Mon Jul 11 21:08:12 2011 +0200 mkfs.bfs: validate numeric user inputs Signed-off-by: Sami Kerola disk-utils/Makefile.am | 2 +- disk-utils/mkfs.bfs.c | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) commit e0c67b83c338ad145cbb13e5ecf7c1b1b4281dbe Author: Sami Kerola Date: Mon Jul 11 20:59:01 2011 +0200 mkfs.bfs: use xstrdup from xalloc.h Signed-off-by: Sami Kerola disk-utils/mkfs.bfs.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit de8b064b8fd6444b04ab3c77d136849a8e74d9c8 Author: Sami Kerola Date: Mon Jul 11 20:57:36 2011 +0200 mkfs.bfs: add long options Includes new usage output. Signed-off-by: Sami Kerola disk-utils/mkfs.bfs.c | 71 +++++++++++++++++++++++++++++++----------------- 1 files changed, 46 insertions(+), 25 deletions(-) commit c36f105df75d82f7fd3caa66ac0ea61a1c839af2 Author: Sami Kerola Date: Mon Jul 11 20:32:37 2011 +0200 mkfs.bfs: use libc error facilities Signed-off-by: Sami Kerola disk-utils/mkfs.bfs.c | 65 +++++++++++++++++------------------------------- 1 files changed, 23 insertions(+), 42 deletions(-) commit 99ba55ef3d98686d9a5e36a840ca8458ccd964ed Author: Sami Kerola Date: Mon Jul 11 18:57:39 2011 +0200 docs: add long options to fdformat.8 Signed-off-by: Sami Kerola disk-utils/fdformat.8 | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) commit 8d18d3531196424064e299510cf37283054e9392 Author: Sami Kerola Date: Mon Jul 11 18:34:45 2011 +0200 fdformat: coding style Reindent the file to match with README.devel instructions. Signed-off-by: Sami Kerola disk-utils/fdformat.c | 246 +++++++++++++++++++++++++------------------------ 1 files changed, 124 insertions(+), 122 deletions(-) commit 183feb0288b8eee11795d5cedc8e033e4bc564df Author: Sami Kerola Date: Mon Jul 11 18:03:46 2011 +0200 fdformat: include-what-you-use header check Signed-off-by: Sami Kerola disk-utils/fdformat.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit a53b31d0bd8ec5d23d2a250b2f45143be83ee02e Author: Sami Kerola Date: Mon Jul 11 18:01:24 2011 +0200 fdformat: use xalloc.h Signed-off-by: Sami Kerola disk-utils/fdformat.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 40c077a53d360dca1451634d37b36616ee109787 Author: Sami Kerola Date: Mon Jul 11 17:52:55 2011 +0200 fdformat: integer comparisons & unused parameter Fix compiler warnings about mismatching types and unused parameter. Signed-off-by: Sami Kerola disk-utils/fdformat.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) commit a8f364805bfc28fba8676da05c57e9bfa0a47edd Author: Sami Kerola Date: Mon Jul 11 17:50:17 2011 +0200 fdformat: use long options Signed-off-by: Sami Kerola disk-utils/fdformat.c | 80 ++++++++++++++++++++++++++++--------------------- 1 files changed, 46 insertions(+), 34 deletions(-) commit b7889ba89592ef3d60dc4f9397e9193d11d1af9b Author: Sami Kerola Date: Mon Jul 11 17:35:55 2011 +0200 fdformat: use libc error printing facilities Signed-off-by: Sami Kerola disk-utils/fdformat.c | 41 +++++++++++++++++++++++------------------ 1 files changed, 23 insertions(+), 18 deletions(-) commit bfa8d39b5826b928deb6d84aee3a4a1d6557364c Author: Marc-Antoine Perennou Date: Mon Jul 11 14:46:27 2011 +0200 build-sys: fix spaces versus tabs conflict For some reason, tabs were replaced by spaces in commit 73ae0d5be6e070afe83d1a2324ac79941629201e Signed-off-by: Marc-Antoine Perennou term-utils/Makefile.am | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 400459e897045b40eb3711fa4814176f7422a76a Author: Kirill Elagin Date: Mon Jul 11 12:53:43 2011 +0200 mount: fix double free in mount.c with SELinux enabled append_context reallocates memory, invalidating extra_opts1. As a result my_free(extra_opts1) crashes. Signed-off-by: Kirill Elagin Signed-off-by: Nikita Ofitserov Signed-off-by: Karel Zak mount/mount.c | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) commit 365acc97654d33a01698ada9bf18fbbdce7d88cc Author: Francesco Cosoleto Date: Sun Jul 3 12:01:21 2011 +0200 fdisk: use a single variable for the current disklabel Using a variable for each supported partition table type doesn't seem necessary. This fixes also a minor bug in switching from SGI label to SUN label: the expert menu isn't available as sgi_label variable remains set to true. Code a bit more clear as *_label names have similarity with names such as "sgilabel", "struct sun_label". Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 142 ++++++++++++++++++++++++------------------------- fdisk/fdisk.h | 15 ++++-- fdisk/fdiskaixlabel.c | 5 +-- fdisk/fdiskmaclabel.c | 5 +-- fdisk/fdisksgilabel.c | 6 +-- fdisk/fdisksunlabel.c | 4 +- 6 files changed, 85 insertions(+), 92 deletions(-) commit 34483418db724bc8e56e7f61a0cf6aa019bd4b71 Author: Petr Uzel Date: Fri Jul 1 15:51:45 2011 +0200 mount: fix typos in mount.8 From: Nicolas Francois Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530681#15 Signed-off-by: Petr Uzel mount/mount.8 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 702e4aa3f4389a39dab83e4ecaa42451366280d0 Author: Petr Uzel Date: Fri Jul 1 15:51:44 2011 +0200 mount: make the error message clear Reported-by: Micah Anderson Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=558653 Signed-off-by: Petr Uzel mount/mount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 58eb89af437dfbe148b30cff83a926b3ea2aa4b8 Author: Petr Uzel Date: Fri Jul 1 15:51:43 2011 +0200 mount: fix typo in mount.8 Reported-by: Reuben Thomas Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=603096 Signed-off-by: Petr Uzel mount/mount.8 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b2fb098e536710f50b6682557d34f988f923c490 Author: Petr Uzel Date: Fri Jul 1 15:51:42 2011 +0200 mount: fix typo in mount.8 Reported-by: Lars Wirzenius Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=605007 Signed-off-by: Petr Uzel mount/mount.8 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 40d779c86f93453ebda75e65de74b235a01deb29 Author: Petr Uzel Date: Fri Jul 1 15:51:41 2011 +0200 mount: remove accidental extra word in ext4 documentation in mount.8 Reported-by: Francis Russell Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599550 Signed-off-by: Petr Uzel mount/mount.8 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 72494cb6daf35e5df304db3a758c60cc35db4bbb Author: Mike Hommey Date: Fri Jul 1 15:51:40 2011 +0200 mount: fix reference to sharedsubtree documentation in mount.8 Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508572 Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572403 Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508412 Signed-off-by: Petr Uzel mount/mount.8 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 73ae0d5be6e070afe83d1a2324ac79941629201e Author: Marc-Antoine Perennou Date: Thu Jun 30 02:26:32 2011 +0200 build-sys: don't try to chgrp write or wall if they are not built Fix regression from commit 4aa9d65bfa76afd0d886ca410ae83428a490d4ea Signed-off-by: Marc-Antoine Perennou term-utils/Makefile.am | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) commit 5267600baef72653a1e6ce9c5e241316f136f271 Merge: e76cbb7 baaa447 Author: Karel Zak Date: Mon Jul 11 10:56:57 2011 +0200 Merge branch 'blockdev' of https://github.com/kerolasa/lelux-utiliteetit * 'blockdev' of https://github.com/kerolasa/lelux-utiliteetit: blockdev: coding style fix blockdev: type mismatch fix blockdev: broken compiler warning circumvention removed blockdev: use pathnames.h to find partitions blockdev: use libc error facilities blockdev: add --help option blockdev: remove progname blockdev: set options read only commit e76cbb7c8aee5dedbfc457ff1022fbe3a599435d Author: Davidlohr Bueso Date: Wed Jun 29 13:01:10 2011 -0400 mkfs.minix: document -3 option Signed-off-by: Davidlohr Bueso disk-utils/mkfs.minix.8 | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit a2657ae3ffb56616ac9c921886bcca8ef242499f Author: Davidlohr Bueso Date: Wed Jun 29 12:55:49 2011 -0400 mkfs.minix: add minix v3 support We can now create minix v3 filesystems. Support for this fs was added a few years ago in the Linux kernel. One of the most important benefits is the ability to handle file names up to 60 characters long. With this change we also introduce the -3 option which naturally indicates which version to create. Version 1 is still left as the default one for backwards compatibility reasons. [kzak@redhat.com: - fix gcc warnings: mkfs.minix.c: In function ‘super_set_state_ptr’: mkfs.minix.c:174:1: warning: no return statement in function returning non-void [-Wreturn-type] mkfs.minix.c: In function ‘write_tables’: mkfs.minix.c:182:7: warning: unused variable ‘state’ [-Wunused-variable] mkfs.minix.c: At top level: mkfs.minix.c:111:27: warning: ‘blksz’ defined but not used [-Wunused-variable] ] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak disk-utils/Makefile.am | 2 +- disk-utils/mkfs.minix.c | 139 ++++++++++++++++++++++++++++++++++++----------- 2 files changed, 108 insertions(+), 33 deletions(-) commit 0ccdb35b7a7e11d4084c1259acc1ef8fc1ee3903 Author: Davidlohr Bueso Date: Wed Jun 29 12:55:18 2011 -0400 minix: add version 3 layout Create a specific minix v3 superblock structure and adjust the attribute wrapper functions to handle it. Signed-off-by: Davidlohr Bueso disk-utils/minix.h | 83 +++++++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 72 insertions(+), 11 deletions(-) commit 1f72ddb656794393f2e040e677dbbf77e6650f47 Merge: f06ec64 02b1c21 Author: Karel Zak Date: Mon Jul 11 10:21:02 2011 +0200 Merge branch 'mkfs' of git://github.com/kerolasa/lelux-utiliteetit * 'mkfs' of git://github.com/kerolasa/lelux-utiliteetit: mkfs: coding style fixes mkfs: include-what-you-use header check docs: add long options to mkfs.8 mkfs: add long options commit f06ec64fda9b6b5075dd1f01c013f2aea139b9dc Author: Karel Zak Date: Fri Jul 1 16:33:34 2011 +0200 dmesg; support level names (e.g. --console-level=alert) Signed-off-by: Karel Zak sys-utils/dmesg.1 | 12 +++++++++- sys-utils/dmesg.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 64 insertions(+), 3 deletions(-) commit 2170174ee39d19f795aef4c549efb2c715a9113d Author: Karel Zak Date: Fri Jul 1 15:30:16 2011 +0200 dmesg: add --console-on and --console-off Signed-off-by: Karel Zak sys-utils/dmesg.1 | 11 ++++++++++- sys-utils/dmesg.c | 24 ++++++++++++++++++------ 2 files changed, 28 insertions(+), 7 deletions(-) commit 0506537a1044f68981e7f153c019a6d7b8748b08 Author: Karel Zak Date: Fri Jul 1 14:56:22 2011 +0200 dmesg: cleanup options and man page Signed-off-by: Karel Zak sys-utils/dmesg.1 | 22 +++++++++++++--------- sys-utils/dmesg.c | 14 ++++++++++++-- 2 files changed, 25 insertions(+), 11 deletions(-) commit 0419986053aefbe91afebbc66440b8d6c50290ea Author: Karel Zak Date: Fri Jul 1 14:33:27 2011 +0200 dmesg: add --clear (SYSLOG_ACTION_CLEAR) Signed-off-by: Karel Zak sys-utils/dmesg.1 | 2 ++ sys-utils/dmesg.c | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletions(-) commit 48c5c662127ec673ccaa444e773aa34923ee1027 Author: Karel Zak Date: Fri Jul 1 14:26:19 2011 +0200 dmesg: refactoring - cleanup main() code Signed-off-by: Karel Zak sys-utils/dmesg.c | 35 +++++++++++++++++++---------------- 1 files changed, 19 insertions(+), 16 deletions(-) commit 65e3eed92420fd6c05c7496af2f27bd97432984d Author: Karel Zak Date: Fri Jul 1 14:15:07 2011 +0200 dmesg: refactoring - cleanup read buffer code Signed-off-by: Karel Zak sys-utils/dmesg.c | 51 +++++++++++++++++++++++++++++++-------------------- 1 files changed, 31 insertions(+), 20 deletions(-) commit f4fa5b44df8d2ad12175f3fe2b98f9839e841a7b Author: Karel Zak Date: Fri Jul 1 13:57:36 2011 +0200 dmesg: refactoring - cleanup print buffer code Signed-off-by: Karel Zak sys-utils/dmesg.c | 46 ++++++++++++++++++++++++++++------------------ 1 files changed, 28 insertions(+), 18 deletions(-) commit eed99b2a7ce195835b252833a4f07823f57b0a03 Author: Karel Zak Date: Fri Jul 1 13:49:25 2011 +0200 dmesg: refactoring - cleanup get bufsize code Signed-off-by: Karel Zak sys-utils/dmesg.c | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) commit 59a1489968943e609f7efc4231dd5f479aa83942 Author: Karel Zak Date: Fri Jul 1 13:41:56 2011 +0200 dmesg: use SYSLOG_ACTION_* macros rather than magic constatnts Signed-off-by: Karel Zak sys-utils/dmesg.c | 55 ++++++++++++++++++++++++++++------------------------ 1 files changed, 30 insertions(+), 25 deletions(-) commit 4a3b794968ae5b327f4a62a85afedd3b86a9373d Author: Karel Zak Date: Fri Jul 1 13:24:04 2011 +0200 dmesg: add long options, --help and --version Signed-off-by: Karel Zak sys-utils/dmesg.1 | 42 +++++++++++++++++------------------------- sys-utils/dmesg.c | 44 +++++++++++++++++++++++++++++++++++--------- 2 files changed, 52 insertions(+), 34 deletions(-) commit d945f469caf7ead0884b8363ee0937cadcd0b203 Author: Karel Zak Date: Fri Jul 1 13:13:46 2011 +0200 libblkid: add docs for new PART_ENTRY_* values Signed-off-by: Karel Zak libblkid/src/partitions/partitions.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 9b07eb9245e303a9b7e60067b8e0c54160f6ed3b Author: Karel Zak Date: Fri Jul 1 13:13:13 2011 +0200 docs: update TODO file Signed-off-by: Karel Zak TODO | 27 +-------------------------- 1 files changed, 1 insertions(+), 26 deletions(-) commit 0e9d0af3626a624244e53c655f9c914db75397b8 Author: Sami Kerola Date: Thu Jun 30 21:59:15 2011 +0200 docs: isosize.8 add long options Signed-off-by: Sami Kerola disk-utils/isosize.8 | 16 +++++++--------- 1 files changed, 7 insertions(+), 9 deletions(-) commit 6f81751a85da9d69beaa95a836e2539be8db6b0f Author: Sami Kerola Date: Thu Jun 30 21:49:36 2011 +0200 isosize: fix coding style Signed-off-by: Sami Kerola disk-utils/isosize.c | 167 +++++++++++++++++++++++++------------------------- 1 files changed, 83 insertions(+), 84 deletions(-) commit e457fb854eb4092c228c132ee9fc12e83049870a Author: Sami Kerola Date: Thu Jun 30 21:48:20 2011 +0200 isosize: include-what-you-use header check Signed-off-by: Sami Kerola disk-utils/isosize.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit ab3a34ffc9d84f8c16cff29874e46456b26bf00a Author: Sami Kerola Date: Thu Jun 30 21:27:42 2011 +0200 isosize: check user input to be numeric Signed-off-by: Sami Kerola disk-utils/Makefile.am | 1 + disk-utils/isosize.c | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) commit 4eba43a7681f906b8fbf9863ada3656ee042adca Author: Sami Kerola Date: Thu Jun 30 20:54:55 2011 +0200 isosize: use long options Signed-off-by: Sami Kerola disk-utils/isosize.c | 39 ++++++++++++++++++++++++--------------- 1 files changed, 24 insertions(+), 15 deletions(-) commit 67a450ceaf3df0c57ae9e5fcf67d6196bb7b5e43 Author: Sami Kerola Date: Thu Jun 30 20:30:24 2011 +0200 isosize: remove global variables Signed-off-by: Sami Kerola disk-utils/isosize.c | 19 ++++++++----------- 1 files changed, 8 insertions(+), 11 deletions(-) commit baaa4479110a50724b7e2eac8dd76713eabb878c Author: Sami Kerola Date: Thu Jun 30 00:32:09 2011 +0200 blockdev: coding style fix Sync with README.devel Signed-off-by: Sami Kerola disk-utils/blockdev.c | 60 +++++++++++++++++++++++++----------------------- 1 files changed, 31 insertions(+), 29 deletions(-) commit 75737ad645e4f9914d96d9e7c0fd00c85a4aaaab Author: Sami Kerola Date: Wed Jun 29 23:26:27 2011 +0200 blockdev: type mismatch fix Signed-off-by: Sami Kerola disk-utils/blockdev.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit b763186fb4f984f81dc18a9377214f8af5d48649 Author: Sami Kerola Date: Wed Jun 29 23:21:17 2011 +0200 blockdev: broken compiler warning circumvention removed Signed-off-by: Sami Kerola disk-utils/blockdev.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit 14c76d8b51e4bf906605025cb91e0fa072227050 Author: Sami Kerola Date: Wed Jun 29 23:17:09 2011 +0200 blockdev: use pathnames.h to find partitions Signed-off-by: Sami Kerola disk-utils/blockdev.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) commit 6b515d0b2463e87325b5cb29abaf4bcd143e3a45 Author: Sami Kerola Date: Wed Jun 29 22:54:30 2011 +0200 blockdev: use libc error facilities Favour symbolic return values and use {err,warn}{,x} where ever applies. Signed-off-by: Sami Kerola disk-utils/blockdev.c | 20 +++++++++----------- 1 files changed, 9 insertions(+), 11 deletions(-) commit bded204c49951e1412fe9b4c6bc1ba9ba62d0b7d Author: Sami Kerola Date: Wed Jun 29 22:44:35 2011 +0200 blockdev: add --help option The option is also accepted in format `-h'. As a side effect usage function is now able to return success, and since it had to be touched the printing is cleaned up. Signed-off-by: Sami Kerola disk-utils/blockdev.c | 45 ++++++++++++++++++++++----------------------- 1 files changed, 22 insertions(+), 23 deletions(-) commit cc4d8d72061648c8f93a83ebba840d26581a7c1b Author: Sami Kerola Date: Wed Jun 29 22:33:47 2011 +0200 blockdev: remove progname Use errx, warnx or program_invocation_short_name instead. Signed-off-by: Sami Kerola disk-utils/blockdev.c | 34 ++++++++++------------------------ 1 files changed, 10 insertions(+), 24 deletions(-) commit 00239f33ed044d1e1de7ce9ef73b10e48853d9e6 Author: Sami Kerola Date: Wed Jun 29 22:31:03 2011 +0200 blockdev: set options read only Signed-off-by: Sami Kerola disk-utils/blockdev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 02b1c216168fa049cbecfb4fb65248f453cb5f14 Author: Sami Kerola Date: Wed Jun 29 00:24:27 2011 +0200 mkfs: coding style fixes The patch includes two symbolic exit values and a main argv notation change, none of which should cause any side effects. Signed-off-by: Sami Kerola disk-utils/mkfs.c | 154 +++++++++++++++++++++++++++-------------------------- 1 files changed, 78 insertions(+), 76 deletions(-) commit d786727a06617a9be8b47e66c5a5aebc927bba2a Author: Sami Kerola Date: Wed Jun 29 00:23:01 2011 +0200 mkfs: include-what-you-use header check Two headers added #include // for CHAR_MAX #include // for exit, EXIT_SUCCESS, getenv, etc Rest sorted, and nls.h recategorized to be local header. Signed-off-by: Sami Kerola disk-utils/mkfs.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) commit 63ab95247a06e6dd2081a6a4c193b76183e74d9d Author: Sami Kerola Date: Tue Jun 28 23:49:34 2011 +0200 docs: add long options to mkfs.8 Two switches -c and -l where removed from manual, they might be supported by the real file system builder but not necessarily. The -v option was also corrected to be -V. Signed-off-by: Sami Kerola disk-utils/mkfs.8 | 44 ++++++++++++++++++++------------------------ 1 files changed, 20 insertions(+), 24 deletions(-) commit 316cad616561837a2d99f54539c792add23f8f38 Author: Sami Kerola Date: Tue Jun 28 23:22:47 2011 +0200 mkfs: add long options Includes new help output. Signed-off-by: Sami Kerola disk-utils/mkfs.c | 60 ++++++++++++++++++++++++++++++++++++++++------------ 1 files changed, 46 insertions(+), 14 deletions(-) commit 37b94458bd0f4a178233ad0366a727bf5bde879f Author: Karel Zak Date: Wed Jun 29 12:44:30 2011 +0200 sfdisk: fix coding style. The style in the file is really horrible and unreadable. This patch uses: indent -linux -i4 -psl -brf sfdisk.c to fix the style. The ideal solution is to call the indent with only -linux option, but it's too invasive... Signed-off-by: Karel Zak fdisk/sfdisk.c | 1916 +++++++++++++++++++++++++++++--------------------------- 1 files changed, 998 insertions(+), 918 deletions(-) commit fa41c8b5308c14a166224beee010b119bd31d90c Merge: 05644da 4140670 Author: Karel Zak Date: Wed Jun 29 12:12:48 2011 +0200 Merge branch 'sfdisk' of git://github.com/kerolasa/lelux-utiliteetit * 'sfdisk' of git://github.com/kerolasa/lelux-utiliteetit: Merge branch 'master', remote-tracking branch 'upstream/master' sfdisk: fix for data type mismatches sfdisk: fix implicit overflow docs: sfdisk manual update sfdisk: previously undocumented options to usage sfdisk: help screen format sfdisk: declare unused function attributes commit 05644dabb4b1b43b2f7c95a0f095dff6c89d77c0 Author: Sami Kerola Date: Tue Jun 28 12:43:26 2011 +0200 script: remove magic constants and a type mismatch fix The type mismatch; doinput: int -> ssize_t [kzak@redhat.com: - int -> pid_t, - remove "register" keyword] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak term-utils/script.c | 74 ++++++++++++++++++++++++++------------------------ 1 files changed, 38 insertions(+), 36 deletions(-) commit 8fb810ff26429ad6cfd3348d63d055a40a157063 Author: Sami Kerola Date: Tue Jun 28 12:43:25 2011 +0200 script: include-what-you-use header check The tool proposed; script.c should add these lines: script.c should remove these lines: - #include // lines 53-53 - #include // lines 48-48 - #include "c.h" // lines 61-61 and the change nearly did what the tool told. We should keep on using c.h, not err.h. The config.h is not needed, it's added automaticly. Signed-off-by: Sami Kerola term-utils/script.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) commit 0f81d3289fb1e84ce217659bb4f6fe1b61788d5b Author: Sami Kerola Date: Tue Jun 28 12:43:24 2011 +0200 script: remove unnecessary void casting Signed-off-by: Sami Kerola term-utils/script.c | 56 +++++++++++++++++++++++++------------------------- 1 files changed, 28 insertions(+), 28 deletions(-) commit fd4c1f632fb627c335bd2bf465451abfcffd171d Author: Sami Kerola Date: Tue Jun 28 12:43:23 2011 +0200 script: option --force added The --force will allow default output destination, e.g. typescript file, to be hard or symbolic link. [kzak@redhat.com: - remove "error:" prefix from errx()] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak term-utils/script.1 | 3 +++ term-utils/script.c | 21 ++++++++++++++------- 2 files changed, 17 insertions(+), 7 deletions(-) commit b3b0c657818aa6191e6494f88d671601dd9d837d Author: Petr Uzel Date: Wed Jun 29 10:24:09 2011 +0200 umount: do not hang with disconnected NFS mounts Since util-linux commit f4612577c942a3683b97632ad0b49671897c2070, umount stat(2)s its argument to check whether it can be associated with some loop device. This could hang with broken NFS mounts. Fix by first checking mtab if umount's argument is mounted and only if we fail, check if there is a loop device associated. http://marc.info/?l=util-linux-ng&m=130924963804836&w=2 Reported-by: Konstantin Khlebnikov Signed-off-by: Petr Uzel mount/umount.c | 42 ++++++++++++++++++++++-------------------- 1 files changed, 22 insertions(+), 20 deletions(-) commit 067e9b4934372f72b89b2c0442a3d28290834537 Author: Karel Zak Date: Wed Jun 29 09:02:50 2011 +0200 mount: first look for mountpoint # mount The current code looks for a device and then for a mountpoint in /etc/fstab. This is not user friendly solution. People usually use # mount /dir to mount any filesystem. It makes more sense to check for mountpoint and if not found then for device. This is also important for bind mounts, for example if you have in your fstab: /dev/sda1 /mnt/foo auto defaults /mnt/foo /mnt/bar none bind then # mount /mnt/foo should be interpreted as the first entry and /dev/sda1 should be mounted. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=716483 Signed-off-by: Karel Zak mount/mount.8 | 11 +++++++++++ mount/mount.c | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) commit 159fb11ebe89339460455327b000f48b8a0d56b8 Merge: 1f5b7d4 735a660 Author: Karel Zak Date: Mon Jun 27 17:21:57 2011 +0200 Merge branch 'wknd23' of git://github.com/kerolasa/lelux-utiliteetit * 'wknd23' of git://github.com/kerolasa/lelux-utiliteetit: (41 commits) getopt: fix coding style getopt: options struct, usage and version outputs build-sys: remove unnecessary files from getopt getopt: make user getopt_long parsing to use function pointer getopt: remove unnecessary free() getopt: use xalloc.h docs: look.1 manual rewrote look: add long options docs: mention long options in uuidd.8 manual page uuidd: coding style fixes uuidd: remove goto statement uuidd: use symbolic exit and return values uuidd: die() function removed uuidd: long options & new usage docs: uuidgen.1 mention long options uuidgen: add long options wipefs: add version printing & compiler warning write: maintenance fixes write: long options & new usage build-sys: move write to term-utils directory ... commit 1f5b7d4b87e4311de7b56eb383a7753028866e61 Author: Heiko Carstens Date: Tue Jun 21 13:24:33 2011 +0200 lscpu: fix bogomips detection for s390 s390 has a "bogomips per cpu" string instead of a "bogomips" string in /proc/sysinfo. So add a second bogomips lookup which detects the s390 variant. Signed-off-by: Heiko Carstens sys-utils/lscpu.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 4f1384353e89132b9fc0b2a160fc3351aaa6973e Author: Davidlohr Bueso Date: Mon Jun 20 23:10:13 2011 -0400 mkfs.minix: check for misalignment Produce a warning if the device is misaligned. [kzak@redhat.com: - use it for block devices only] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak disk-utils/mkfs.minix.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit c2e05a498c611bf96e1f532cc5f6d66dc82adcb9 Author: Karel Zak Date: Mon Jun 27 16:09:56 2011 +0200 lib: [blkdev.c] remove kernel version check from blkdev_get_sector_size() Signed-off-by: Karel Zak disk-utils/mkfs.minix.c | 3 +-- lib/blkdev.c | 13 +++---------- 2 files changed, 4 insertions(+), 12 deletions(-) commit 6678c06f5d15814a982397977c7e9f14c219137f Author: Karel Zak Date: Mon Jun 27 15:57:14 2011 +0200 lib: [blkdev.c] more robust blkdev_is_misaligned() Signed-off-by: Karel Zak lib/blkdev.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit 0e75337c31c9e3a963aecd440c8698994464324c Author: Davidlohr Bueso Date: Mon Jun 20 22:51:47 2011 -0400 lib: [blkdev.c] add blkdev_get_physector_size() This function uses the BLKPBSZGET ioctl to get the physical block size of the device. Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak include/blkdev.h | 3 +++ lib/blkdev.c | 37 +++++++++++++++++++++++++++++++++---- 2 files changed, 36 insertions(+), 4 deletions(-) commit 5dfc98439280aedd3df095276df5e20f1bf7a2d2 Author: Karel Zak Date: Mon Jun 27 13:31:48 2011 +0200 libmount: minor fixes Signed-off-by: Karel Zak libmount/src/context_umount.c | 4 ++-- libmount/src/fs.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) commit 41406709ac381b7541b2890f7adf2cfc4c01d73f Merge: 3c1fe7e 735a660 Author: Sami Kerola Date: Sat Jun 25 18:33:21 2011 +0200 Merge branch 'wknd23' into sfdisk commit 3c1fe7ec5ca05dabd79bc8f9b16c7270c4d4cf17 Merge: d525127 797d538 Author: Sami Kerola Date: Sat Jun 25 18:32:34 2011 +0200 Merge branch 'master' into sfdisk commit 797d5388c47de7cbe11f067b9c29e872db13d730 Author: Sami Kerola Date: Sat Jun 25 17:35:59 2011 +0200 Merge branch 'master', remote-tracking branch 'upstream/master' commit 735a6603354d7cfebbec2c7ae0f31d7e76806235 Author: Sami Kerola Date: Sat Jun 25 16:32:11 2011 +0200 getopt: fix coding style This patch is purely reindentation, spacing, tabing, comment line lenght and so on style fix. The only potential cause of havok is two fixed ambiguous assignments which very likely did not break. indent: getopt.c:147: Warning:old style assignment ambiguity in "=*". Assuming "= *" indent: getopt.c:151: Warning:old style assignment ambiguity in "=*". Assuming "= *" Signed-off-by: Sami Kerola getopt/getopt.c | 364 ++++++++++++++++++++++++++++--------------------------- 1 files changed, 186 insertions(+), 178 deletions(-) commit 283f8f0256655b73071290b92c58d998e883260a Author: Sami Kerola Date: Mon Jun 13 13:47:29 2011 +0200 getopt: options struct, usage and version outputs Move commands own option structure from global scope into main(), and make it as read-only. The usage() ouput mechanims is made to look more like other commands. Misleading old version string `getopt (enhanced) 1.1.4' is replaced to look like the other util-linux version outputs. If anyone is relying on identifying the command by that string he should use -T option instead. Signed-off-by: Sami Kerola getopt/getopt.c | 74 +++++++++++++++++++++++++++++-------------------------- 1 files changed, 39 insertions(+), 35 deletions(-) commit 8796caca6f5d22563c7e021844073b2abd4e5d90 Author: Sami Kerola Date: Mon Jun 13 01:10:11 2011 +0200 build-sys: remove unnecessary files from getopt The Linux Software Map (lsm) file is not maintained, and the test scripts where more confusing than advicing. Signed-off-by: Sami Kerola getopt/Makefile.am | 3 +-- getopt/getopt-1.1.3.lsm | 16 ---------------- getopt/getopt-test.bash | 6 ------ getopt/getopt-test.tcsh | 7 ------- 4 files changed, 1 insertions(+), 31 deletions(-) commit 4a898108c0b079b29024f44955e4a4853b191e91 Author: Sami Kerola Date: Mon Jun 13 00:49:08 2011 +0200 getopt: make user getopt_long parsing to use function pointer Signed-off-by: Sami Kerola getopt/getopt.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) commit a0320b25e0cf4efd9b49d2a3356cf8530a1820fe Author: Sami Kerola Date: Mon Jun 13 00:11:56 2011 +0200 getopt: remove unnecessary free() Signed-off-by: Sami Kerola getopt/getopt.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit d1d03b54d9c9be592d9a35194360368bf2cbffac Author: Sami Kerola Date: Sun Jun 12 23:31:59 2011 +0200 getopt: use xalloc.h The xalloc fix requires exit codes to symbolical refrences to overwrite default value on error. Signed-off-by: Sami Kerola getopt/getopt.c | 76 +++++++++++++++++++++---------------------------------- 1 files changed, 29 insertions(+), 47 deletions(-) commit a5463f78f819cb0e24d3fd39ee0905151d76b326 Author: Sami Kerola Date: Sun Jun 12 20:33:08 2011 +0200 docs: look.1 manual rewrote Mention long options in manual page. The nroff syntax is also re-wrote to be more similar to other manual pages. Signed-off-by: Sami Kerola misc-utils/look.1 | 121 +++++++++++++++++++++++++--------------------------- 1 files changed, 58 insertions(+), 63 deletions(-) commit a35f7505808d5b37ff45625390f330bf1c76941c Author: Sami Kerola Date: Sun Jun 12 19:41:31 2011 +0200 look: add long options Including new help screen. Additionally unused includes are removed. Signed-off-by: Sami Kerola misc-utils/look.c | 51 +++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 37 insertions(+), 14 deletions(-) commit a7ec307306fd791831d166b2aa1fbedcbd199391 Author: Sami Kerola Date: Sun Jun 12 17:42:39 2011 +0200 docs: mention long options in uuidd.8 manual page Options in manual page are ordered to match help output. I also added example section now when the synopsis section is less verbose. Signed-off-by: Sami Kerola misc-utils/uuidd.8 | 88 +++++++++++++++++++++++++--------------------------- 1 files changed, 42 insertions(+), 46 deletions(-) commit f7c297b839fd53d3c05fbabe5a256d63d4ce2001 Author: Sami Kerola Date: Sat Jun 25 15:13:24 2011 +0200 uuidd: coding style fixes Few unnecessary void casts removed, rest is about spacing. Signed-off-by: Sami Kerola misc-utils/uuidd.c | 47 +++++++++++++++++++++++++---------------------- 1 files changed, 25 insertions(+), 22 deletions(-) commit 2fb35353fd78e93ab9c44c5acfc4beef3d7011e0 Author: Sami Kerola Date: Sat Jun 25 14:58:35 2011 +0200 uuidd: remove goto statement Signed-off-by: Sami Kerola misc-utils/uuidd.c | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) commit 41dc5bc097159ea13bdfb21e157dbad8c349b69d Author: Sami Kerola Date: Sat Jun 25 14:53:50 2011 +0200 uuidd: use symbolic exit and return values Signed-off-by: Sami Kerola misc-utils/uuidd.c | 34 +++++++++++++++++----------------- 1 files changed, 17 insertions(+), 17 deletions(-) commit ea091bed6350c9ee925fdb707ad779a411470cc8 Author: Sami Kerola Date: Sat Jun 25 14:44:35 2011 +0200 uuidd: die() function removed The function is replaced with err(). Signed-off-by: Sami Kerola misc-utils/uuidd.c | 23 +++++++++-------------- 1 files changed, 9 insertions(+), 14 deletions(-) commit f0ef0b58dc961ec6867a2e8918e8611b239bd489 Author: Sami Kerola Date: Sat Jun 25 14:36:34 2011 +0200 uuidd: long options & new usage Signed-off-by: Sami Kerola misc-utils/uuidd.c | 55 ++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 45 insertions(+), 10 deletions(-) commit 309e6a4915150df409e2a83af47bc030dd9ebe17 Author: Sami Kerola Date: Sun Jun 12 15:22:18 2011 +0200 docs: uuidgen.1 mention long options Signed-off-by: Sami Kerola misc-utils/uuidgen.1 | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) commit 0379a55d9f00b45db64b96787cee08d34176849e Author: Sami Kerola Date: Sun Jun 12 15:17:07 2011 +0200 uuidgen: add long options Affects to help output as well. Signed-off-by: Sami Kerola misc-utils/uuidgen.c | 36 ++++++++++++++++++++++++++++++------ 1 files changed, 30 insertions(+), 6 deletions(-) commit 094678122ecfeba6cb2e7f180eeb7b5bb8a38f50 Author: Sami Kerola Date: Sun Jun 12 14:58:44 2011 +0200 wipefs: add version printing & compiler warning The --version option is added, and a storage type is fixed to correct a compiler warnings. Signed-off-by: Sami Kerola misc-utils/wipefs.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) commit 5f51b8b25de1c6c688d5172ed04008a94b241e05 Author: Sami Kerola Date: Sat Jun 25 14:25:40 2011 +0200 write: maintenance fixes Use libc error printing facilities, remove void casting, clean up unused headers and alignt coding style with README.devel. Signed-off-by: Sami Kerola term-utils/write.c | 193 ++++++++++++++++++++++++---------------------------- 1 files changed, 90 insertions(+), 103 deletions(-) commit aa44b95f1268f1b217ad9457669637d2c8eb4b8c Author: Sami Kerola Date: Sat Jun 25 14:22:33 2011 +0200 write: long options & new usage Signed-off-by: Sami Kerola term-utils/write.c | 37 ++++++++++++++++++++++++++++++++++--- 1 files changed, 34 insertions(+), 3 deletions(-) commit 4aa9d65bfa76afd0d886ca410ae83428a490d4ea Author: Sami Kerola Date: Sun Jun 12 00:19:45 2011 +0200 build-sys: move write to term-utils directory Signed-off-by: Sami Kerola misc-utils/.gitignore | 1 - misc-utils/Makefile.am | 15 -- misc-utils/write.1 | 102 -------------- misc-utils/write.c | 359 ------------------------------------------------ term-utils/.gitignore | 1 + term-utils/Makefile.am | 14 ++- term-utils/write.1 | 102 ++++++++++++++ term-utils/write.c | 359 ++++++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 473 insertions(+), 480 deletions(-) commit 8839c0f60fee018e5f051aab9e30cb83d3d64660 Author: Sami Kerola Date: Sun Jun 12 00:00:55 2011 +0200 misc-utils: remove misleading README files Clean up of files which primarily caused confusion. Signed-off-by: Sami Kerola misc-utils/Makefile.am | 4 ++-- misc-utils/README.flushb | 5 ----- misc-utils/README.namei2 | 14 -------------- misc-utils/README.reset | 20 -------------------- 4 files changed, 2 insertions(+), 41 deletions(-) commit 03b3d715ded40c44c074300b704be430aafbc1ae Author: Sami Kerola Date: Sat Jun 11 23:42:45 2011 +0200 docs: rename.1 verbose, long options and warning Add new verbose and long options to manual page. I also added warning section which hopefully gets read by people who run the command first time. It might be good idea to make the rename such that it would not overwrite by default, and have a --force option if an use wants that. In current state the rename is somewhat dangerous. Signed-off-by: Sami Kerola misc-utils/rename.1 | 36 ++++++++++++++++++++++-------------- 1 files changed, 22 insertions(+), 14 deletions(-) commit d200a926df885cbe054add38bc2e4be2c8c7b1a9 Author: Sami Kerola Date: Sat Jun 11 23:21:31 2011 +0200 rename: verbose option & maintenance fixes The rename has new verbose option which will print which files where renamed. Maintenance fixes includes long options, coding style and freeing memory after usage. Signed-off-by: Sami Kerola misc-utils/rename.c | 93 +++++++++++++++++++++++++++++++++----------------- 1 files changed, 61 insertions(+), 32 deletions(-) commit 4b5a1ab8e423c43cbd060d72c577b0c2ec289e60 Author: Sami Kerola Date: Sat Jun 11 22:27:18 2011 +0200 docs: inform about cal long options The parameters section is now split per a parameter, which I found more readable than the previous layout. In addition the nroff syntax is changed to be closer what help2man is suggesting it should be. Signed-off-by: Sami Kerola misc-utils/cal.1 | 94 +++++++++++++++++++++++++++--------------------------- 1 files changed, 47 insertions(+), 47 deletions(-) commit 33c173540099b8675e4ec0b889e103110eb885da Author: Sami Kerola Date: Sat Jun 25 13:44:12 2011 +0200 cal: clean up few coding style issues Signed-off-by: Sami Kerola misc-utils/cal.c | 100 ++++++++++++++++++++++++++++------------------------- 1 files changed, 53 insertions(+), 47 deletions(-) commit 21ba9798fb2f82969f51e065a0b591a7c41af811 Author: Sami Kerola Date: Sat Jun 25 13:43:14 2011 +0200 cal: fix compiler warnings Signed-off-by: Sami Kerola misc-utils/cal.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 022df321b1429c2947210d134e4523921b4029f4 Author: Sami Kerola Date: Sat Jun 25 13:38:47 2011 +0200 cal: argument checking, long options and argument checking Check numeric user inputs with strtol_on_err. Add long options with nice looking usage. Signed-off-by: Sami Kerola misc-utils/Makefile.am | 2 +- misc-utils/cal.c | 62 ++++++++++++++++++++++++++++++++++------------- 2 files changed, 46 insertions(+), 18 deletions(-) commit 30ad62d06fef4df3cd93a04c5061f8f2510fca90 Author: Sami Kerola Date: Sat Jun 25 13:29:59 2011 +0200 whereis: coding style Changes only placement of braces, spacing, tabs etc. Signed-off-by: Sami Kerola misc-utils/whereis.c | 148 +++++++++++++++++++++++++++----------------------- 1 files changed, 79 insertions(+), 69 deletions(-) commit 32ae96aecfa71634f9b8527ce5456520da627ad1 Author: Sami Kerola Date: Sat Jun 25 13:05:12 2011 +0200 whereis: warnings, exit values, braces and returns Compiler type mismatch warning fixed, symbolic exit value taken in use where missing, unnecessary single statement 'block' braces removed and return is not a function bracing fixed. Signed-off-by: Sami Kerola misc-utils/whereis.c | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) commit 12b806427da4f626176c1b28e2c4f377d296f0bd Author: Sami Kerola Date: Sat Jun 25 12:57:05 2011 +0200 whereis: remove goto statements Signed-off-by: Sami Kerola misc-utils/whereis.c | 85 +++++++++++++++++++++++++++---------------------- 1 files changed, 47 insertions(+), 38 deletions(-) commit 5851336376ee3b04e6f9dea5e8a571cfa97e57d8 Author: Sami Kerola Date: Sat Jun 25 12:48:26 2011 +0200 whereis: new usage output & version printing Signed-off-by: Sami Kerola misc-utils/whereis.c | 36 +++++++++++++++++++++++++++++++----- 1 files changed, 31 insertions(+), 5 deletions(-) commit e6ebab66d4c7056d98bd67d3c8f7bc52d86b470d Author: Sami Kerola Date: Sat Jun 11 19:14:59 2011 +0200 mcookie: change coding style Now in align with README.devel. Signed-off-by: Sami Kerola misc-utils/mcookie.c | 294 ++++++++++++++++++++++++++------------------------ 1 files changed, 152 insertions(+), 142 deletions(-) commit 177f48fa0c729058e4be84bb5d75d4026a2b3ae2 Author: Sami Kerola Date: Sat Jun 11 17:44:12 2011 +0200 docs: inform about mcookie long options Signed-off-by: Sami Kerola misc-utils/mcookie.1 | 27 +++++++++++++++++++-------- 1 files changed, 19 insertions(+), 8 deletions(-) commit e40f84b9d0f841ddbd8e61b553130c6f91ade885 Author: Sami Kerola Date: Sat Jun 11 17:08:34 2011 +0200 mcookie: use warnx, long options and help screen Help and version options added. Additionally one compiler warning got to be fixed. mcookie.c:115:18: warning: comparison of integers of different signs: 'int' and 'unsigned long' Signed-off-by: Sami Kerola misc-utils/mcookie.c | 57 +++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 47 insertions(+), 10 deletions(-) commit 5a0d9255698ba5e13e392bdef04d7a51269e6e3a Author: Sami Kerola Date: Sat Jun 11 16:45:53 2011 +0200 namei: fix to argument handling Missing pathname argument can only be checked after options are parsed. Earlier for example 'namei -l' print nothing and was successful. The option parsing is changed to be less POSIXLY_CORRECT and continue if nonoption argument is found, which allows users to define options and arguments in the order they prefer. Unknown short options, which earlier matched case '?' that was help option alias, are now made to indicate failure in return value. Signed-off-by: Sami Kerola misc-utils/namei.c | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) commit b977951749fcd30a11c5bff608ee5a18e41c65ee Author: Sami Kerola Date: Sat Jun 11 15:20:56 2011 +0200 namei: use xalloc.h Signed-off-by: Sami Kerola misc-utils/namei.c | 26 ++++++-------------------- 1 files changed, 6 insertions(+), 20 deletions(-) commit 64718fe7d9dd038c5d472c24cfa4be09e0bb45f7 Author: Sami Kerola Date: Sat Jun 11 15:07:10 2011 +0200 namei: add --version option Add to namei.1 man also the --help option along with the new --version. Signed-off-by: Sami Kerola misc-utils/namei.1 | 4 ++++ misc-utils/namei.c | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletions(-) commit 27ce27726468a18015da38e12b13d056122abe04 Author: Sami Kerola Date: Sat Jun 25 12:36:38 2011 +0200 login-utils: include fix Add missing and remove unneeded includes as reported by: http://code.google.com/p/include-what-you-use/ Signed-off-by: Sami Kerola login-utils/checktty.c | 8 ++++---- login-utils/islocal.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) commit 406ae26354d9760468c60133756657be9f8bfbbe Author: Sami Kerola Date: Sat Jun 25 12:27:43 2011 +0200 checktty: fix unused parameters Signed-off-by: Sami Kerola login-utils/checktty.c | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) commit 3b08f597c6c6ef30e377affaa5590975a24645cf Author: Sami Kerola Date: Sat Jun 25 12:11:50 2011 +0200 docs: tell mount/* is in maintenance mode Signed-off-by: Sami Kerola mount/README.mount | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit be55702e35ed57eb883d3d35a75834232b442016 Merge: 5fd18db 2576b4e Author: Sami Kerola Date: Thu Jun 23 22:04:24 2011 +0200 Merge branch 'master', remote-tracking branch 'upstream/master' commit 2576b4e7821339f79bc25660f86291b55c0c6486 Author: Karel Zak Date: Thu Jun 23 16:06:27 2011 +0200 libmount: allow to convert /dev/loopN to backing filename Signed-off-by: Karel Zak libmount/samples/mount.c | 7 +++-- libmount/src/cache.c | 51 ++++++++++++++++++++++++++++++++++++++++++++ libmount/src/libmount.h.in | 2 + libmount/src/libmount.sym | 1 + 4 files changed, 58 insertions(+), 3 deletions(-) commit 117545721aa54c1b50d62b038613de0011dbc941 Author: Karel Zak Date: Thu Jun 23 15:19:37 2011 +0200 libmount: cleanup return codes in mount sample Signed-off-by: Karel Zak libmount/samples/mount.c | 27 +++++++++------------------ 1 files changed, 9 insertions(+), 18 deletions(-) commit 9f7472b0b84f3238abe19fcbf5a2fb864fd2e71d Author: Karel Zak Date: Thu Jun 23 15:07:55 2011 +0200 libmount: add support for mount -a Signed-off-by: Karel Zak libmount/samples/mount.c | 88 +++++++++++++++++++++++-------- libmount/src/context.c | 96 +++++++++++++++++++++++++++++++--- libmount/src/context_mount.c | 117 +++++++++++++++++++++++++++++++++++++++++- libmount/src/libmount.h.in | 8 +++- libmount/src/libmount.sym | 14 +++-- libmount/src/optstr.c | 6 +- 6 files changed, 287 insertions(+), 42 deletions(-) commit 679f59dde22ead560bfebdd7011d254ce12fce36 Author: Karel Zak Date: Thu Jun 23 12:29:00 2011 +0200 libmount: fix fstype caching Signed-off-by: Karel Zak libmount/src/cache.c | 42 +++++++++++++++++++++++++++--------------- 1 files changed, 27 insertions(+), 15 deletions(-) commit 171b0fb4917edee41e72e0efbf3388deaf8ff966 Author: Karel Zak Date: Thu Jun 23 12:24:02 2011 +0200 libmount: rename in cache.c * don't use mnt_ prefix for static functions Signed-off-by: Karel Zak libmount/src/cache.c | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-) commit 8eef6df7900f87ba38c5d9e983bb6cbba4ca80aa Author: Karel Zak Date: Thu Jun 23 12:19:30 2011 +0200 libmount: clean up cache.c * rename fields in the cache entry to be more readable... Signed-off-by: Karel Zak libmount/src/cache.c | 101 +++++++++++++++++++++++++------------------------- 1 files changed, 51 insertions(+), 50 deletions(-) commit e5c5abaee3af04792975463fb4dbe49df7a559b9 Author: Karel Zak Date: Wed Jun 22 13:34:47 2011 +0200 libmount: add generic function to read table for context Signed-off-by: Karel Zak libmount/src/context.c | 52 +++++++++++++++++++++++++++++++++++++++++++- libmount/src/libmount.h.in | 3 ++ libmount/src/libmount.sym | 1 + 3 files changed, 55 insertions(+), 1 deletions(-) commit d84508cfbdba620d02e37dbd47c3065dfe7ab240 Author: Karel Zak Date: Tue Jun 21 14:58:37 2011 +0200 libmount: allow to set parser callback to context Signed-off-by: Karel Zak libmount/src/context.c | 28 ++++++++++++++++++++++++++++ libmount/src/fs.c | 8 +------- libmount/src/libmount.h.in | 2 ++ libmount/src/libmount.sym | 1 + libmount/src/mountP.h | 3 +++ 5 files changed, 35 insertions(+), 7 deletions(-) commit 0164c24595bd4209ab7b668fec34f5cdcdd1d5eb Author: Karel Zak Date: Tue Jun 21 11:46:36 2011 +0200 mountpoint: add new command This is libmount based re-implementation of the mountpoint(1) command. The original implementation is maintained in sysvinit suite. The mountpoint(1) in util-linux is not enabled by default (for now) -- use --enable-mountpoint to enable the util. Signed-off-by: Karel Zak configure.ac | 11 +++ libmount/samples/.gitignore | 1 - libmount/samples/Makefile.am | 2 +- libmount/samples/mountpoint.c | 174 ----------------------------------------- sys-utils/.gitignore | 1 + sys-utils/Makefile.am | 7 ++ sys-utils/mountpoint.1 | 43 ++++++++++ sys-utils/mountpoint.c | 174 +++++++++++++++++++++++++++++++++++++++++ 8 files changed, 237 insertions(+), 176 deletions(-) commit 5499b0d388fd9cf759d479c74184307b77ca0e74 Author: Karel Zak Date: Tue Jun 21 09:56:22 2011 +0200 docs: update TODO file Signed-off-by: Karel Zak TODO | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) commit 5fd18db818c009acee887dc8985a5c54623f6cb9 Merge: 156bfbb 70db6c7 Author: Sami Kerola Date: Mon Jun 20 19:54:39 2011 +0200 Merge branch 'master', remote-tracking branch 'upstream/master' commit 70db6c7ef464072d2314b5f7457868ebd96efc06 Author: Karel Zak Date: Mon Jun 20 16:42:03 2011 +0200 blkid: list all known filesystems/RAIDs (add -k option) Signed-off-by: Karel Zak libblkid/src/blkid.h.in | 2 ++ libblkid/src/blkid.sym | 1 + libblkid/src/superblocks/superblocks.c | 20 ++++++++++++++++++++ misc-utils/blkid.8 | 4 ++++ misc-utils/blkid.c | 12 +++++++++++- 5 files changed, 38 insertions(+), 1 deletions(-) commit f3464ff4edbc945835bff97b8cb37203e3bf69b1 Author: Karel Zak Date: Mon Jun 20 16:11:04 2011 +0200 libblkid: add debug message Signed-off-by: Karel Zak libblkid/src/superblocks/superblocks.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) commit e9c1a1fea750c0fd7e72b5449e9f36bf821b5172 Author: Karel Zak Date: Mon Jun 20 16:10:36 2011 +0200 docs: update TODO file Signed-off-by: Karel Zak TODO | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) commit 4ef26746158b26c89057e6be81bc88ce553ebcdb Author: Karel Zak Date: Mon Jun 20 13:58:41 2011 +0200 lib: [procutils.c] improve robustness Signed-off-by: Karel Zak lib/procutils.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 58a111bdb27623780208c7d5691298a42b9d88b5 Author: Karel Zak Date: Mon Jun 20 13:51:26 2011 +0200 build-sys: move BUILD_SCHEDUTILS to top-level Makefile Signed-off-by: Karel Zak Makefile.am | 5 ++++- schedutils/Makefile.am | 4 ---- 2 files changed, 4 insertions(+), 5 deletions(-) commit 85d5acb8d2c172b58eae01d04697f84ab843a37f Author: Karel Zak Date: Mon Jun 20 13:48:40 2011 +0200 lib: [linux_version.c] simplify version parsing Signed-off-by: Karel Zak lib/linux_version.c | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) commit 99fbc877e508ec0926c5d43903e2c17fec13e426 Author: Stephen Hemminger Date: Thu Jun 16 16:54:07 2011 -0400 lscpu: detect VMware hypervisor Add detection of VMware. Tested on VMware Workstation 7.1.4 Signed-off-by: Stephen Hemminger sys-utils/lscpu.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) commit 4585ec0b29c28a9c09f69c57ab0f40a69e2d641a Author: Samuel Thibault Date: Mon Jun 20 12:48:35 2011 +0200 misc: hurd build fixes * Make blkdev_is_misaligned return 0 when BLKALIGNOFF is not available. * Make procutils.c include c.h to get a PATH_MAX replacement. * Provide agetty.c USE_SYSLOG, DEFAULT_VCTERM and DEFAULT_STERM defaults for Hurd. * Make agetty.c only deal with OFDEL, XCASE and VSWTCH if they are available. Signed-off-by: Samuel Thibault Signed-off-by: Karel Zak lib/blkdev.c | 4 ++++ lib/procutils.c | 1 + term-utils/agetty.c | 20 +++++++++++++++++--- 3 files changed, 22 insertions(+), 3 deletions(-) commit 156bfbb775fee18779181406291c39e81ece5533 Merge: 376df2c 8c20c0a Author: Sami Kerola Date: Thu Jun 16 21:44:49 2011 +0200 Merge branch 'master', remote-tracking branch 'upstream/master' commit d5251274a9dc84730914e77156b7dfa20c61319e Merge: bdb8757 8c20c0a 376df2c Author: Sami Kerola Date: Thu Jun 16 21:44:24 2011 +0200 Merge branch 'master', remote-tracking branch 'upstream/master' into sfdisk commit 8c20c0ad4ae3c520f78faa190fb852bc1a3b8b16 Author: Karel Zak Date: Tue Jun 14 23:30:29 2011 +0200 mount: add ufstype=ufs2 to mount.8 Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=691338 Signed-off-by: Karel Zak mount/mount.8 | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 2d0b729208b6f5ecd9ff63bdeb8045d4acc68336 Author: Karel Zak Date: Tue Jun 14 23:20:12 2011 +0200 login: fix typos in man page Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=675181 Signed-off-by: Karel Zak login-utils/login.1 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit bdb8757e917d9bd86e1df50db7e4fb239baa2ca5 Author: Sami Kerola Date: Mon Jun 6 20:39:17 2011 +0200 sfdisk: fix for data type mismatches Signed-off-by: Sami Kerola fdisk/sfdisk.c | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) commit 376df2c9e67faa05665b6346e4a33bb44873f87b Merge: 42fe2b2 5bd223a Author: Sami Kerola Date: Tue Jun 14 20:26:37 2011 +0200 Merge branch 'master', remote-tracking branch 'upstream/master' commit 5bd223a04a512b4cf9c929cdaf6cb35557b4ca62 Author: Karel Zak Date: Tue Jun 14 17:10:53 2011 +0200 fsck.minix: remove unused variables Signed-off-by: Karel Zak disk-utils/fsck.minix.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit 55c22e9c82ae7e5d7e916480d0606bb3a414236b Author: Richard W.M. Jones Date: Mon Jun 13 17:43:11 2011 +0100 libblkid: don't ignore swap UUID if only first byte is zero [kzak@redhat.com: - remove memcmp(zero_uuid, ...), library already checks for empty UUIDs] Signed-off-by: "Richard W.M. Jones" Signed-off-by: Karel Zak libblkid/src/superblocks/swap.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 4bc4653e2a3251b8cc253fa022196af59608cf84 Author: Davidlohr Bueso Date: Thu Jun 9 12:41:12 2011 -0400 mkfs.minix: add fs version options Like the original minix mkfs, add the -1 and -2 argument options to specify the version of the filesystem to create. Signed-off-by: Davidlohr Bueso disk-utils/mkfs.minix.8 | 5 ++++- disk-utils/mkfs.minix.c | 8 ++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) commit 7a173d7f5c59a59297178b078ffffb566f986c19 Author: Davidlohr Bueso Date: Thu Jun 9 12:01:09 2011 -0400 mkfs.minix: standardize superblock attribute settings Because of the dependence of fs_version, some superblock attributes will vary, so simplify the logic of assigning values to maxsize and the amount of zones related to each filesystem, thus making setup_tables() more readable. Signed-off-by: Davidlohr Bueso disk-utils/mkfs.minix.c | 32 +++++++++++++++++++++++++++----- 1 files changed, 27 insertions(+), 5 deletions(-) commit aeefa8a4169f93d000cd0eca5dafb491eedd85f0 Author: Karel Zak Date: Tue Jun 14 14:22:58 2011 +0200 test_sysinfo: fix printf format Signed-off-by: Karel Zak tests/helpers/test_sysinfo.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 363ce07137ca8e5be1ff24763e34679b9dd9c3e2 Author: Josiah Worcester Date: Wed Jun 8 16:52:48 2011 -0600 hwclock: Don't use asm/io.h if sys/io.h can't be found [kzak@redhat.com: - check for obsolete asm/io.h in configure.ac] Signed-off-by: Josiah Worcester Signed-off-by: Karel Zak configure.ac | 1 + hwclock/cmos.c | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) commit 416723f0899d617325da6f2d9f49a368e227fed4 Author: Josiah Worcester Date: Wed Jun 8 16:52:47 2011 -0600 test_sysinfo: Use CHAR_BIT*sizeof(void*) instead of __WORDSIZE. Signed-off-by: Josiah Worcester tests/helpers/test_sysinfo.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit eab0c74daa4f5f77ef524565a228f49465150f88 Author: Josiah Worcester Date: Wed Jun 8 16:52:46 2011 -0600 lib: [tt.c] Fix mbs_width macro for systems without WIDECHAR Signed-off-by: Josiah Worcester lib/tt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit dcb43836be7a2451f929445f013c67254993bf52 Author: Josiah Worcester Date: Wed Jun 8 16:52:45 2011 -0600 checktty: Use NGROUPS_MAX instead of NGROUPS Signed-off-by: Josiah Worcester login-utils/checktty.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit d78104d14ed835af362e9b6cb0021f357d8b01b0 Author: Josiah Worcester Date: Wed Jun 8 16:52:44 2011 -0600 fsck, checktty, flock: Use more portable includes. Signed-off-by: Josiah Worcester fsck/fsck.c | 2 +- login-utils/checktty.c | 3 +++ sys-utils/flock.c | 2 ++ 3 files changed, 6 insertions(+), 1 deletions(-) commit 95961ee294a7ced0c5911b66d863a880e8f8b386 Author: Josiah Worcester Date: Wed Jun 8 16:52:43 2011 -0600 fdisk, display, hexdump.h: Use standard C types instead of u_int, u_char, u_long, etc. Signed-off-by: Josiah Worcester fdisk/fdiskbsdlabel.c | 34 +++++++++++++++++----------------- text-utils/display.c | 32 ++++++++++++++++---------------- text-utils/hexdump.h | 4 ++-- 3 files changed, 35 insertions(+), 35 deletions(-) commit 42fe2b2b2d19d09241bd7c3dd811463e0095d4aa Author: Sami Kerola Date: Sat Jun 11 10:10:01 2011 +0200 Merge branch 'master', remote-tracking branch 'upstream/master' commit 7f8b2bf3be6db30280bd8c5a77584350170abd11 Author: Karel Zak Date: Fri Jun 10 15:39:56 2011 +0200 libmount: add mount support for loopdevs Signed-off-by: Karel Zak libmount/src/Makefile.am | 6 +- libmount/src/cache.c | 7 +- libmount/src/context.c | 36 +++---- libmount/src/context_loopdev.c | 227 ++++++++++++++++++++++++++++++++++++++++ libmount/src/libmount.h.in | 2 + libmount/src/mountP.h | 7 ++ libmount/src/optmap.c | 2 + 7 files changed, 261 insertions(+), 26 deletions(-) commit fd7f0718d4abb483f9e84b15bddecdac34d82144 Author: Karel Zak Date: Fri Jun 10 15:38:13 2011 +0200 lib: [loopdev.c] cleanup flags usage Signed-off-by: Karel Zak include/loopdev.h | 8 +++- lib/loopdev.c | 114 +++++++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 104 insertions(+), 18 deletions(-) commit a9ae3955fef76b76f4acccff1dc0e985538e7c61 Author: Karel Zak Date: Thu Jun 9 22:43:51 2011 +0200 libmount: minor changes in sample program Signed-off-by: Karel Zak libmount/samples/mount.c | 31 +++++++++++++++++++++++++------ 1 files changed, 25 insertions(+), 6 deletions(-) commit a8b50a67e4125a5e9c2e97f5535b3378ccc0f962 Author: Karel Zak Date: Thu Jun 9 22:21:51 2011 +0200 tests: update blkid MD test Signed-off-by: Karel Zak tests/expected/blkid/md-raid1-part | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 8fb4efae6f5fabbe889bebbda60e9f7dce930f1f Author: Karel Zak Date: Thu Jun 9 22:04:24 2011 +0200 build-sys: use top-level directory for libblkid rather than shlibs/blkid Signed-off-by: Karel Zak Makefile.am | 2 +- config/include-Makefile.am | 6 +- configure.ac | 20 +- libblkid/.gitignore | 5 + libblkid/COPYING.libblkid | 510 +++++++++ libblkid/Makefile.am | 16 + libblkid/README.blkid | 78 ++ libblkid/blkid.pc.in | 11 + libblkid/docs/.gitignore | 17 + libblkid/docs/Makefile.am | 101 ++ libblkid/docs/libblkid-config.xml | 57 + libblkid/docs/libblkid-docs.xml | 69 ++ libblkid/docs/libblkid-sections.txt | 145 +++ libblkid/docs/version.xml.in | 1 + libblkid/libblkid.3 | 110 ++ libblkid/samples/.gitignore | 4 + libblkid/samples/Makefile.am | 7 + libblkid/samples/mkfs.c | 78 ++ libblkid/samples/partitions.c | 95 ++ libblkid/samples/superblocks.c | 67 ++ libblkid/samples/topology.c | 86 ++ libblkid/src/Makefile.am | 72 ++ libblkid/src/blkid.h.in | 336 ++++++ libblkid/src/blkid.sym | 141 +++ libblkid/src/blkidP.h | 466 ++++++++ libblkid/src/cache.c | 264 +++++ libblkid/src/config.c | 201 ++++ libblkid/src/dev.c | 272 +++++ libblkid/src/devname.c | 680 +++++++++++ libblkid/src/devno.c | 527 +++++++++ libblkid/src/encode.c | 338 ++++++ libblkid/src/evaluate.c | 315 +++++ libblkid/src/getsize.c | 34 + libblkid/src/llseek.c | 142 +++ libblkid/src/partitions/Makefile.am | 22 + libblkid/src/partitions/aix.c | 58 + libblkid/src/partitions/aix.h | 7 + libblkid/src/partitions/blkid_parttypes.h | 121 ++ libblkid/src/partitions/bsd.c | 243 ++++ libblkid/src/partitions/dos.c | 287 +++++ libblkid/src/partitions/dos.h | 36 + libblkid/src/partitions/gpt.c | 401 +++++++ libblkid/src/partitions/mac.c | 181 +++ libblkid/src/partitions/minix.c | 103 ++ libblkid/src/partitions/partitions.c | 1336 ++++++++++++++++++++++ libblkid/src/partitions/partitions.h | 62 + libblkid/src/partitions/sgi.c | 158 +++ libblkid/src/partitions/solaris_x86.c | 150 +++ libblkid/src/partitions/sun.c | 187 +++ libblkid/src/partitions/ultrix.c | 88 ++ libblkid/src/partitions/unixware.c | 193 ++++ libblkid/src/probe.c | 1509 +++++++++++++++++++++++++ libblkid/src/read.c | 498 ++++++++ libblkid/src/resolve.c | 139 +++ libblkid/src/save.c | 196 ++++ libblkid/src/superblocks/Makefile.am | 51 + libblkid/src/superblocks/adaptec_raid.c | 113 ++ libblkid/src/superblocks/befs.c | 470 ++++++++ libblkid/src/superblocks/bfs.c | 23 + libblkid/src/superblocks/btrfs.c | 93 ++ libblkid/src/superblocks/cramfs.c | 62 + libblkid/src/superblocks/ddf_raid.c | 138 +++ libblkid/src/superblocks/drbd.c | 114 ++ libblkid/src/superblocks/exfat.c | 146 +++ libblkid/src/superblocks/ext.c | 526 +++++++++ libblkid/src/superblocks/gfs.c | 131 +++ libblkid/src/superblocks/hfs.c | 321 ++++++ libblkid/src/superblocks/highpoint_raid.c | 85 ++ libblkid/src/superblocks/hpfs.c | 122 ++ libblkid/src/superblocks/iso9660.c | 153 +++ libblkid/src/superblocks/isw_raid.c | 64 ++ libblkid/src/superblocks/jfs.c | 71 ++ libblkid/src/superblocks/jmicron_raid.c | 63 + libblkid/src/superblocks/linux_raid.c | 257 +++++ libblkid/src/superblocks/lsi_raid.c | 59 + libblkid/src/superblocks/luks.c | 66 ++ libblkid/src/superblocks/lvm.c | 182 +++ libblkid/src/superblocks/minix.c | 125 ++ libblkid/src/superblocks/netware.c | 97 ++ libblkid/src/superblocks/nilfs.c | 120 ++ libblkid/src/superblocks/ntfs.c | 172 +++ libblkid/src/superblocks/nvidia_raid.c | 63 + libblkid/src/superblocks/ocfs.c | 213 ++++ libblkid/src/superblocks/promise_raid.c | 70 ++ libblkid/src/superblocks/reiserfs.c | 128 +++ libblkid/src/superblocks/romfs.c | 51 + libblkid/src/superblocks/silicon_raid.c | 84 ++ libblkid/src/superblocks/squashfs.c | 68 ++ libblkid/src/superblocks/superblocks.c | 754 ++++++++++++ libblkid/src/superblocks/superblocks.h | 92 ++ libblkid/src/superblocks/swap.c | 171 +++ libblkid/src/superblocks/sysv.c | 153 +++ libblkid/src/superblocks/ubifs.c | 121 ++ libblkid/src/superblocks/udf.c | 168 +++ libblkid/src/superblocks/ufs.c | 238 ++++ libblkid/src/superblocks/vfat.c | 427 +++++++ libblkid/src/superblocks/via_raid.c | 88 ++ libblkid/src/superblocks/vmfs.c | 101 ++ libblkid/src/superblocks/vxfs.c | 41 + libblkid/src/superblocks/xfs.c | 63 + libblkid/src/superblocks/zfs.c | 222 ++++ libblkid/src/tag.c | 474 ++++++++ libblkid/src/topology/Makefile.am | 17 + libblkid/src/topology/dm.c | 137 +++ libblkid/src/topology/evms.c | 76 ++ libblkid/src/topology/ioctl.c | 73 ++ libblkid/src/topology/lvm.c | 148 +++ libblkid/src/topology/md.c | 151 +++ libblkid/src/topology/sysfs.c | 116 ++ libblkid/src/topology/topology.c | 369 ++++++ libblkid/src/topology/topology.h | 24 + libblkid/src/tst_types.c | 63 + libblkid/src/verify.c | 231 ++++ libblkid/src/version.c | 62 + shlibs/blkid/.gitignore | 5 - shlibs/blkid/COPYING.libblkid | 510 --------- shlibs/blkid/Makefile.am | 16 - shlibs/blkid/README.blkid | 78 -- shlibs/blkid/blkid.pc.in | 11 - shlibs/blkid/docs/.gitignore | 17 - shlibs/blkid/docs/Makefile.am | 101 -- shlibs/blkid/docs/libblkid-config.xml | 57 - shlibs/blkid/docs/libblkid-docs.xml | 69 -- shlibs/blkid/docs/libblkid-sections.txt | 145 --- shlibs/blkid/docs/version.xml.in | 1 - shlibs/blkid/libblkid.3 | 110 -- shlibs/blkid/samples/.gitignore | 4 - shlibs/blkid/samples/Makefile.am | 7 - shlibs/blkid/samples/mkfs.c | 78 -- shlibs/blkid/samples/partitions.c | 95 -- shlibs/blkid/samples/superblocks.c | 67 -- shlibs/blkid/samples/topology.c | 86 -- shlibs/blkid/src/Makefile.am | 72 -- shlibs/blkid/src/blkid.h.in | 336 ------ shlibs/blkid/src/blkid.sym | 141 --- shlibs/blkid/src/blkidP.h | 466 -------- shlibs/blkid/src/cache.c | 264 ----- shlibs/blkid/src/config.c | 201 ---- shlibs/blkid/src/dev.c | 272 ----- shlibs/blkid/src/devname.c | 680 ----------- shlibs/blkid/src/devno.c | 527 --------- shlibs/blkid/src/encode.c | 338 ------ shlibs/blkid/src/evaluate.c | 315 ----- shlibs/blkid/src/getsize.c | 34 - shlibs/blkid/src/llseek.c | 142 --- shlibs/blkid/src/partitions/Makefile.am | 22 - shlibs/blkid/src/partitions/aix.c | 58 - shlibs/blkid/src/partitions/aix.h | 7 - shlibs/blkid/src/partitions/blkid_parttypes.h | 121 -- shlibs/blkid/src/partitions/bsd.c | 243 ---- shlibs/blkid/src/partitions/dos.c | 287 ----- shlibs/blkid/src/partitions/dos.h | 36 - shlibs/blkid/src/partitions/gpt.c | 401 ------- shlibs/blkid/src/partitions/mac.c | 181 --- shlibs/blkid/src/partitions/minix.c | 103 -- shlibs/blkid/src/partitions/partitions.c | 1336 ---------------------- shlibs/blkid/src/partitions/partitions.h | 62 - shlibs/blkid/src/partitions/sgi.c | 158 --- shlibs/blkid/src/partitions/solaris_x86.c | 150 --- shlibs/blkid/src/partitions/sun.c | 187 --- shlibs/blkid/src/partitions/ultrix.c | 88 -- shlibs/blkid/src/partitions/unixware.c | 193 ---- shlibs/blkid/src/probe.c | 1509 ------------------------- shlibs/blkid/src/read.c | 498 -------- shlibs/blkid/src/resolve.c | 139 --- shlibs/blkid/src/save.c | 196 ---- shlibs/blkid/src/superblocks/Makefile.am | 51 - shlibs/blkid/src/superblocks/adaptec_raid.c | 113 -- shlibs/blkid/src/superblocks/befs.c | 470 -------- shlibs/blkid/src/superblocks/bfs.c | 23 - shlibs/blkid/src/superblocks/btrfs.c | 93 -- shlibs/blkid/src/superblocks/cramfs.c | 62 - shlibs/blkid/src/superblocks/ddf_raid.c | 138 --- shlibs/blkid/src/superblocks/drbd.c | 114 -- shlibs/blkid/src/superblocks/exfat.c | 146 --- shlibs/blkid/src/superblocks/ext.c | 526 --------- shlibs/blkid/src/superblocks/gfs.c | 131 --- shlibs/blkid/src/superblocks/hfs.c | 321 ------ shlibs/blkid/src/superblocks/highpoint_raid.c | 85 -- shlibs/blkid/src/superblocks/hpfs.c | 122 -- shlibs/blkid/src/superblocks/iso9660.c | 153 --- shlibs/blkid/src/superblocks/isw_raid.c | 64 -- shlibs/blkid/src/superblocks/jfs.c | 71 -- shlibs/blkid/src/superblocks/jmicron_raid.c | 63 - shlibs/blkid/src/superblocks/linux_raid.c | 257 ----- shlibs/blkid/src/superblocks/lsi_raid.c | 59 - shlibs/blkid/src/superblocks/luks.c | 66 -- shlibs/blkid/src/superblocks/lvm.c | 182 --- shlibs/blkid/src/superblocks/minix.c | 125 -- shlibs/blkid/src/superblocks/netware.c | 97 -- shlibs/blkid/src/superblocks/nilfs.c | 120 -- shlibs/blkid/src/superblocks/ntfs.c | 172 --- shlibs/blkid/src/superblocks/nvidia_raid.c | 63 - shlibs/blkid/src/superblocks/ocfs.c | 213 ---- shlibs/blkid/src/superblocks/promise_raid.c | 70 -- shlibs/blkid/src/superblocks/reiserfs.c | 128 --- shlibs/blkid/src/superblocks/romfs.c | 51 - shlibs/blkid/src/superblocks/silicon_raid.c | 84 -- shlibs/blkid/src/superblocks/squashfs.c | 68 -- shlibs/blkid/src/superblocks/superblocks.c | 754 ------------ shlibs/blkid/src/superblocks/superblocks.h | 92 -- shlibs/blkid/src/superblocks/swap.c | 171 --- shlibs/blkid/src/superblocks/sysv.c | 153 --- shlibs/blkid/src/superblocks/ubifs.c | 121 -- shlibs/blkid/src/superblocks/udf.c | 168 --- shlibs/blkid/src/superblocks/ufs.c | 238 ---- shlibs/blkid/src/superblocks/vfat.c | 427 ------- shlibs/blkid/src/superblocks/via_raid.c | 88 -- shlibs/blkid/src/superblocks/vmfs.c | 101 -- shlibs/blkid/src/superblocks/vxfs.c | 41 - shlibs/blkid/src/superblocks/xfs.c | 63 - shlibs/blkid/src/superblocks/zfs.c | 222 ---- shlibs/blkid/src/tag.c | 474 -------- shlibs/blkid/src/topology/Makefile.am | 17 - shlibs/blkid/src/topology/dm.c | 137 --- shlibs/blkid/src/topology/evms.c | 76 -- shlibs/blkid/src/topology/ioctl.c | 73 -- shlibs/blkid/src/topology/lvm.c | 148 --- shlibs/blkid/src/topology/md.c | 151 --- shlibs/blkid/src/topology/sysfs.c | 116 -- shlibs/blkid/src/topology/topology.c | 369 ------ shlibs/blkid/src/topology/topology.h | 24 - shlibs/blkid/src/tst_types.c | 63 - shlibs/blkid/src/verify.c | 231 ---- shlibs/blkid/src/version.c | 62 - tests/commands.sh.in | 4 +- 226 files changed, 20317 insertions(+), 20317 deletions(-) commit 2aefc0a8f267ddb57804755af9095d3cd5ceb0d7 Author: Karel Zak Date: Thu Jun 9 21:59:52 2011 +0200 build-sys: use top-level directory for libmount rather than shlibs/mount Signed-off-by: Karel Zak Makefile.am | 2 +- config/include-Makefile.am | 6 +- configure.ac | 14 +- libmount/.gitignore | 2 + libmount/COPYING.libmount | 508 +++++++++ libmount/Makefile.am | 13 + libmount/docs/.gitignore | 17 + libmount/docs/Makefile.am | 101 ++ libmount/docs/libmount-docs.xml | 63 ++ libmount/docs/libmount-sections.txt | 226 ++++ libmount/docs/version.xml.in | 1 + libmount/mount.pc.in | 11 + libmount/samples/.gitignore | 2 + libmount/samples/Makefile.am | 7 + libmount/samples/mount.c | 423 ++++++++ libmount/samples/mountpoint.c | 174 +++ libmount/src/Makefile.am | 67 ++ libmount/src/cache.c | 667 ++++++++++++ libmount/src/context.c | 1741 +++++++++++++++++++++++++++++++ libmount/src/context_mount.c | 639 ++++++++++++ libmount/src/context_umount.c | 739 +++++++++++++ libmount/src/fs.c | 1349 ++++++++++++++++++++++++ libmount/src/init.c | 46 + libmount/src/iter.c | 78 ++ libmount/src/libmount.h.in | 562 ++++++++++ libmount/src/libmount.sym | 199 ++++ libmount/src/lock.c | 703 +++++++++++++ libmount/src/mountP.h | 357 +++++++ libmount/src/optmap.c | 234 +++++ libmount/src/optstr.c | 1224 ++++++++++++++++++++++ libmount/src/tab.c | 1095 +++++++++++++++++++ libmount/src/tab_diff.c | 369 +++++++ libmount/src/tab_parse.c | 745 +++++++++++++ libmount/src/tab_update.c | 860 +++++++++++++++ libmount/src/test.c | 59 ++ libmount/src/utils.c | 899 ++++++++++++++++ libmount/src/version.c | 86 ++ shlibs/mount/.gitignore | 2 - shlibs/mount/COPYING.libmount | 508 --------- shlibs/mount/Makefile.am | 13 - shlibs/mount/docs/.gitignore | 17 - shlibs/mount/docs/Makefile.am | 101 -- shlibs/mount/docs/libmount-docs.xml | 63 -- shlibs/mount/docs/libmount-sections.txt | 226 ---- shlibs/mount/docs/version.xml.in | 1 - shlibs/mount/mount.pc.in | 11 - shlibs/mount/samples/.gitignore | 2 - shlibs/mount/samples/Makefile.am | 7 - shlibs/mount/samples/mount.c | 423 -------- shlibs/mount/samples/mountpoint.c | 174 --- shlibs/mount/src/Makefile.am | 67 -- shlibs/mount/src/cache.c | 667 ------------ shlibs/mount/src/context.c | 1741 ------------------------------- shlibs/mount/src/context_mount.c | 639 ------------ shlibs/mount/src/context_umount.c | 739 ------------- shlibs/mount/src/fs.c | 1349 ------------------------ shlibs/mount/src/init.c | 46 - shlibs/mount/src/iter.c | 78 -- shlibs/mount/src/libmount.h.in | 562 ---------- shlibs/mount/src/libmount.sym | 199 ---- shlibs/mount/src/lock.c | 703 ------------- shlibs/mount/src/mountP.h | 357 ------- shlibs/mount/src/optmap.c | 234 ----- shlibs/mount/src/optstr.c | 1224 ---------------------- shlibs/mount/src/tab.c | 1095 ------------------- shlibs/mount/src/tab_diff.c | 369 ------- shlibs/mount/src/tab_parse.c | 745 ------------- shlibs/mount/src/tab_update.c | 860 --------------- shlibs/mount/src/test.c | 59 -- shlibs/mount/src/utils.c | 899 ---------------- shlibs/mount/src/version.c | 86 -- tests/commands.sh.in | 14 +- 72 files changed, 14284 insertions(+), 14284 deletions(-) commit 83d20837dc2114d902ed609bf0f060fc207191ed Author: Karel Zak Date: Thu Jun 9 21:54:05 2011 +0200 build-sys: use top-level directory for libuuid rather than shlibs/uuid Signed-off-by: Karel Zak Makefile.am | 2 +- config/include-Makefile.am | 6 +- configure.ac | 8 +- libuuid/.gitignore | 1 + libuuid/COPYING.libuuid | 25 ++ libuuid/Makefile.am | 10 + libuuid/man/.gitignore | 3 + libuuid/man/Makefile.am | 12 + libuuid/man/uuid.3 | 65 ++++ libuuid/man/uuid_clear.3 | 60 ++++ libuuid/man/uuid_compare.3 | 66 ++++ libuuid/man/uuid_copy.3 | 62 ++++ libuuid/man/uuid_generate.3 | 126 +++++++ libuuid/man/uuid_is_null.3 | 62 ++++ libuuid/man/uuid_parse.3 | 71 ++++ libuuid/man/uuid_time.3 | 76 +++++ libuuid/man/uuid_unparse.3 | 79 +++++ libuuid/src/Makefile.am | 40 +++ libuuid/src/clear.c | 43 +++ libuuid/src/compare.c | 55 +++ libuuid/src/copy.c | 45 +++ libuuid/src/gen_uuid.c | 709 +++++++++++++++++++++++++++++++++++++++ libuuid/src/gen_uuid_nt.c | 92 +++++ libuuid/src/isnull.c | 48 +++ libuuid/src/pack.c | 69 ++++ libuuid/src/parse.c | 79 +++++ libuuid/src/tst_uuid.c | 180 ++++++++++ libuuid/src/unpack.c | 63 ++++ libuuid/src/unparse.c | 76 +++++ libuuid/src/uuid.h | 104 ++++++ libuuid/src/uuid.sym | 46 +++ libuuid/src/uuidP.h | 59 ++++ libuuid/src/uuid_time.c | 171 ++++++++++ libuuid/src/uuidd.h | 54 +++ libuuid/uuid.pc.in | 11 + shlibs/uuid/.gitignore | 1 - shlibs/uuid/COPYING.libuuid | 25 -- shlibs/uuid/Makefile.am | 10 - shlibs/uuid/man/.gitignore | 3 - shlibs/uuid/man/Makefile.am | 12 - shlibs/uuid/man/uuid.3 | 65 ---- shlibs/uuid/man/uuid_clear.3 | 60 ---- shlibs/uuid/man/uuid_compare.3 | 66 ---- shlibs/uuid/man/uuid_copy.3 | 62 ---- shlibs/uuid/man/uuid_generate.3 | 126 ------- shlibs/uuid/man/uuid_is_null.3 | 62 ---- shlibs/uuid/man/uuid_parse.3 | 71 ---- shlibs/uuid/man/uuid_time.3 | 76 ----- shlibs/uuid/man/uuid_unparse.3 | 79 ----- shlibs/uuid/src/Makefile.am | 40 --- shlibs/uuid/src/clear.c | 43 --- shlibs/uuid/src/compare.c | 55 --- shlibs/uuid/src/copy.c | 45 --- shlibs/uuid/src/gen_uuid.c | 709 --------------------------------------- shlibs/uuid/src/gen_uuid_nt.c | 92 ----- shlibs/uuid/src/isnull.c | 48 --- shlibs/uuid/src/pack.c | 69 ---- shlibs/uuid/src/parse.c | 79 ----- shlibs/uuid/src/tst_uuid.c | 180 ---------- shlibs/uuid/src/unpack.c | 63 ---- shlibs/uuid/src/unparse.c | 76 ----- shlibs/uuid/src/uuid.h | 104 ------ shlibs/uuid/src/uuid.sym | 46 --- shlibs/uuid/src/uuidP.h | 59 ---- shlibs/uuid/src/uuid_time.c | 171 ---------- shlibs/uuid/src/uuidd.h | 54 --- shlibs/uuid/uuid.pc.in | 11 - tests/commands.sh.in | 2 +- 68 files changed, 2671 insertions(+), 2671 deletions(-) commit 8b467e7de84aafc483cbf69b8bf8fa213593b222 Author: Karel Zak Date: Wed Jun 8 14:05:05 2011 +0200 docs: update TODO file Signed-off-by: Karel Zak TODO | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit 37ebb48be0191f2a1c8ac53732a03d01ae85a4c6 Author: Davidlohr Bueso Date: Thu Jun 2 19:08:46 2011 -0400 mkfs.minix: use inode wrappers Use a common function for creating the root and bad inode, without worring about the fs version. Signed-off-by: Davidlohr Bueso disk-utils/mkfs.minix.c | 32 +++++++++++++++++++++----------- 1 files changed, 21 insertions(+), 11 deletions(-) commit 09a4e09b5bbf9fb6abc4e177f1de278018a05346 Author: Karel Zak Date: Wed Jun 8 13:22:13 2011 +0200 docs: update DEPRECATED file Signed-off-by: Karel Zak DEPRECATED | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) commit 0ff9e65ea30ee7e3548d11992a180d95d0a02fe9 Author: Karel Zak Date: Wed Jun 8 13:20:37 2011 +0200 simpleinit: remove this deprecated set of utils Signed-off-by: Karel Zak Makefile.am | 6 +- configure.ac | 9 - simpleinit/.gitignore | 3 - simpleinit/Makefile.am | 27 - simpleinit/fastboot.8 | 1 - simpleinit/fasthalt.8 | 1 - simpleinit/halt.8 | 1 - simpleinit/initctl.8 | 110 ----- simpleinit/initctl.c | 217 -------- simpleinit/reboot.8 | 1 - simpleinit/shutdown.8 | 169 ------- simpleinit/shutdown.c | 747 ---------------------------- simpleinit/simpleinit.8 | 180 ------- simpleinit/simpleinit.c | 1251 ----------------------------------------------- simpleinit/simpleinit.h | 28 - 15 files changed, 1 insertions(+), 2750 deletions(-) commit ea7e29132efb499d27a4b6efb24ea8375d8f56c1 Author: Lukas Czerner Date: Tue Jun 7 15:13:44 2011 +0200 mount.8: remove reprecated bh/nobh options from the manual page Bh and nobh mount option has been deprecated in ext4 (206f7ab4f49a2021fcb8687f25395be77711ddee) and in ext3 (4c4d3901225518ed1a4c938ba15ba09842a00770) so remove those options from documentation. Signed-off-by: Lukas Czerner mount/mount.8 | 17 ++++++----------- 1 files changed, 6 insertions(+), 11 deletions(-) commit a8b40ece722d46b210813f80818ecee549ed2a9e Author: Davidlohr Bueso Date: Mon Jun 6 09:52:30 2011 -0400 minix: fix warning This patch fixes an unused variable warning. Signed-off-by: Davidlohr Bueso disk-utils/minix.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit c60103a9f3e06fc1cd11f0a5ed83c0d12a631224 Author: Francesco Cosoleto Date: Thu Jun 2 21:17:57 2011 +0200 fstrim, setarch: replace error() with err() This should improve a bit the portability as error() is a GNU extension and util-linux provides fallbacks for err.h functions. Fix compilation with icc, broken due to a reference to `__builtin_va_arg_pack' in error.h using the -gcc default option. Signed-off-by: Francesco Cosoleto sys-utils/fstrim.c | 10 +++------- sys-utils/setarch.c | 17 ++++++++--------- 2 files changed, 11 insertions(+), 16 deletions(-) commit acfa47232f262ab8cfc6f0eb1363eeda3ed56b9d Author: Sami Kerola Date: Tue May 31 20:31:25 2011 +0200 tests: add lscpu dumps from three Dell's & a Xen x86_64-dell_poweredgeR610 Ubuntu 11.04 kernel 2.6.38-8 x86_64-dell_poweredge1950 Red Hat EL 4.5 kernel 2.6.9-55.ELsmp x86_64-dell_e4310 Red Hat EL 5.3 kernel 2.6.18-194.17.4.el5 x86_64-el5xen Red Hat EL 5.6 kernel 2.6.18-238.el5xen Signed-off-by: Sami Kerola tests/expected/lscpu/lscpu-x86_64-dell_e4310 | 28 ++++++++++++++ .../expected/lscpu/lscpu-x86_64-dell_poweredge1950 | 23 +++++++++++ .../expected/lscpu/lscpu-x86_64-dell_poweredgeR610 | 40 ++++++++++++++++++++ tests/expected/lscpu/lscpu-x86_64-el5xen | 30 +++++++++++++++ tests/ts/lscpu/dumps/x86_64-dell_e4310.tar.gz | Bin 0 -> 12933 bytes .../lscpu/dumps/x86_64-dell_poweredge1950.tar.gz | Bin 0 -> 1492 bytes .../lscpu/dumps/x86_64-dell_poweredgeR610.tar.gz | Bin 0 -> 14095 bytes tests/ts/lscpu/dumps/x86_64-el5xen.tar.gz | Bin 0 -> 7296 bytes 8 files changed, 121 insertions(+), 0 deletions(-) commit ddca89be5331655cd2cc3634a668194572ba2e3e Author: Karel Zak Date: Wed Jun 8 12:50:27 2011 +0200 cfdisk: fix gcc warning (unused variable) cfdisk.c: In function ‘fp_printf’: cfdisk.c:1760:12: warning: variable ‘x’ set but not used [-Wunused-but-set-variable] Signed-off-by: Karel Zak fdisk/cfdisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit fa41c101ef6ea326af1523f6297ac265dd54ad01 Author: Karel Zak Date: Wed Jun 8 12:44:14 2011 +0200 fstrim: cast from __u64 to standard C types Signed-off-by: Karel Zak sys-utils/fstrim.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 52019d889f526c21a97031d4dc4b0e1faab1b606 Author: Karel Zak Date: Wed Jun 8 12:27:03 2011 +0200 hwclock: remove unused variables hwclock.c: In function ‘set_hardware_clock’: hwclock.c:467:7: warning: variable ‘err’ set but not used [-Wunused-but-set-variable] hwclock.c: In function ‘main’: hwclock.c:1461:7: warning: variable ‘ARCconsole’ set but not used [-Wunused-but-set-variable] Signed-off-by: Karel Zak hwclock/hwclock.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) commit 5b7fed151f768c50cfa958fa41198d3da90778c8 Author: Karel Zak Date: Wed Jun 8 12:22:21 2011 +0200 cytune: remove unused variable cytune.c: In function ‘summary’: cytune.c:105:9: warning: variable ‘j’ set but not used [-Wunused-but-set-variable] Signed-off-by: Karel Zak sys-utils/cytune.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) commit 8fec558bc33fa6942efa9ccf90de60f5aac115e8 Author: Karel Zak Date: Wed Jun 8 12:18:49 2011 +0200 namei: remove unused variable namei.c: In function ‘print_namei’: namei.c:368:16: warning: variable ‘prev’ set but not used [-Wunused-but-set-variable] Signed-off-by: Karel Zak misc-utils/namei.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit bc867ea388d9d2f2bf4e8d788a2f3a3ba3f4acfb Author: Karel Zak Date: Wed Jun 8 12:16:08 2011 +0200 blkid: don't free() uninitialized variable blkid.c: In function ‘main’: blkid.c:656:6: warning: ‘res’ may be used uninitialized in this function [-Wuninitialized] blkid.c:623:9: note: ‘res’ was declared here Signed-off-by: Karel Zak misc-utils/blkid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit abd0a5c9eb1c787b85ab9cdc1bcb0096d5239a8d Author: Karel Zak Date: Wed Jun 8 11:32:53 2011 +0200 login: cleanup unused variables login.c: In function ‘main’: login.c:389:40: warning: variable ‘errsv’ set but not used [-Wunused-but-set-variable] login.c:389:9: warning: variable ‘ask’ set but not used [-Wunused-but-set-variable] Signed-off-by: Karel Zak login-utils/login.c | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) commit a0c014dc4bc1891545b3fb0952f3b7ca32366b44 Author: Karel Zak Date: Wed Jun 8 11:22:25 2011 +0200 libmount: fix uninitialized variable in sample Signed-off-by: Karel Zak shlibs/mount/samples/mount.c | 2 +- shlibs/mount/src/context.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) commit 6a76ceb1f567ec8ecd1f0e0528f6c1b23f38406b Author: Sami Kerola Date: Mon May 23 22:50:07 2011 +0200 colrm: manual update Inform about long, help & version and options. Signed-off-by: Sami Kerola text-utils/colrm.1 | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit 1647d032a7bfcba36d3dabe627b858b372210d05 Author: Sami Kerola Date: Mon May 23 22:42:15 2011 +0200 colrm: gotos, long options and argument checking Unnecessary goto jumps where replaced by a simple function, and two loops. Long options support help and version, and the two arguments this command has are now validated with strtoul_or_err. Signed-off-by: Sami Kerola text-utils/Makefile.am | 2 + text-utils/colrm.c | 145 ++++++++++++++++++++++++++++++++--------------- 2 files changed, 101 insertions(+), 46 deletions(-) commit b07e72d9ec0e1578564887525cff3a62d9551492 Author: Sami Kerola Date: Mon May 23 21:14:16 2011 +0200 col: check with strtol_or_err option argument Signed-off-by: Sami Kerola text-utils/Makefile.am | 2 ++ text-utils/col.c | 19 ++++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) commit fa7e0d6d442de9f5940f99fd93f4522602439131 Author: Karel Zak Date: Mon Jun 6 12:35:26 2011 +0200 lib: [linux_version.c] accommodate two-component linux version (e.g. 3.0) Signed-off-by: Karel Zak lib/linux_version.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit aab72640daa7ee2db3d42fc8278ab86e3aef2d71 Author: Karel Zak Date: Thu Jun 2 14:53:42 2011 +0200 mount: canonicalize fstab mnt_dir Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=709681 Signed-off-by: Karel Zak mount/fstab.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) commit 5a49c0cedcefeb8d5ce12505272c0ab5b80037c9 Author: Davidlohr Bueso Date: Wed Jun 1 19:27:14 2011 -0400 partx: remove unused headers Signed-off-by: Davidlohr Bueso partx/partx.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) commit 971b7341d696399597d9d5139e8d80b6774072e9 Author: Davidlohr Bueso Date: Wed Jun 1 18:33:07 2011 -0400 fsck.minix: use common functionalitly Signed-off-by: Davidlohr Bueso disk-utils/fsck.minix.c | 150 +++++++++++++++++++++-------------------------- 1 files changed, 67 insertions(+), 83 deletions(-) commit 50758d0e409723314dbdd538501cd916d5baf0c6 Author: Davidlohr Bueso Date: Wed Jun 1 18:33:02 2011 -0400 mkfs.minix: use common functionality Signed-off-by: Davidlohr Bueso disk-utils/mkfs.minix.c | 168 ++++++++++++++++++++--------------------------- 1 files changed, 70 insertions(+), 98 deletions(-) commit 7bf1425a6302c054dc86e23151072f8c69006fc9 Author: Davidlohr Bueso Date: Wed Jun 1 18:32:56 2011 -0400 minix: add common functionality Unite common features and code present in mkfs.minix and fsck.minix into a single minix.h header. This eases the reading and modification of both programs. Futhermore: - Replace version2 variable with fs_version (handy when v3 support comes along) - For superblock attributes and inode information, use small inline functions instead of ugly macros. Signed-off-by: Davidlohr Bueso disk-utils/minix.h | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 81 insertions(+), 0 deletions(-) commit c4c6635582fb7ae9f68a58492e4bfb1f382ddd06 Author: Karel Zak Date: Thu Jun 2 13:25:19 2011 +0200 libmount: use mnt_table_get_fs_root() in utab code Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 2 + shlibs/mount/src/mountP.h | 6 ++ shlibs/mount/src/tab.c | 5 +- shlibs/mount/src/tab_update.c | 159 ++++++++++++----------------------------- 4 files changed, 57 insertions(+), 115 deletions(-) commit 5b2d18a499126ef6b3867c6020a24b897a9fc11f Author: Sami Kerola Date: Tue May 24 22:56:44 2011 +0200 docs: colcrt manual update Inform about long, help & version and options. Signed-off-by: Sami Kerola text-utils/colcrt.1 | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) commit e71daef2496aa765573e9e84395e7eb3f4918149 Author: Sami Kerola Date: Tue May 24 22:56:43 2011 +0200 colctr: use long options and clean coding style This commit introduces help & version options. Signed-off-by: Sami Kerola text-utils/colcrt.c | 90 ++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 64 insertions(+), 26 deletions(-) commit 2a324edd325c4b708d242f47a45f3413e7c9fe12 Author: Sami Kerola Date: Tue May 24 22:56:42 2011 +0200 tests: add colrm basic test Signed-off-by: Sami Kerola tests/commands.sh.in | 1 + tests/expected/colrm/rm2-2 | 3 +++ tests/ts/colrm/rm2-2 | 26 ++++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 0 deletions(-) commit e53bc9604c14b10c34a1e8d057d2e741e8d7ea1b Author: Sami Kerola Date: Tue May 24 22:56:38 2011 +0200 lib: add strtoul_or_err() function Signed-off-by: Sami Kerola Signed-off-by: Karel Zak include/strutils.h | 1 + lib/strutils.c | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 0 deletions(-) commit 8e0ec3b48a5797ae3cdabcf5c12e810262581291 Author: Sami Kerola Date: Tue May 24 22:56:37 2011 +0200 col: coding style changes Signed-off-by: Sami Kerola text-utils/col.c | 24 +++++++++++------------- 1 files changed, 11 insertions(+), 13 deletions(-) commit 0d196114b4332e4281533d1df0f8791d445cb9dd Author: Sami Kerola Date: Tue May 24 22:56:36 2011 +0200 docs: col manual update Long options, with help & version, added. The commint also has previously undocumented switch `-h convert spaces to tabs' as a part of col.1 man page. Signed-off-by: Sami Kerola text-utils/col.1 | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) commit f688c29873eecc159e8bc99291d56a6f7065a614 Author: Sami Kerola Date: Tue May 24 22:56:35 2011 +0200 col: use long options This commit introduces help & version options. Signed-off-by: Sami Kerola text-utils/col.c | 51 ++++++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 44 insertions(+), 7 deletions(-) commit a699625d792e92a04af540bae144d982961cebd2 Author: Sami Kerola Date: Tue May 24 22:56:34 2011 +0200 pg: return value warning fix void function 'makeprint' should not return void expression Signed-off-by: Sami Kerola text-utils/pg.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 66b0b03e05729036ea38b3804a188da06e1a8b8d Author: Sami Kerola Date: Tue May 24 22:56:33 2011 +0200 rev: mark signo unused in sig_handler Signed-off-by: Sami Kerola text-utils/rev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f13616a064b957f926e8cb03952b6cdc220661a9 Author: Sami Kerola Date: Tue May 24 22:56:32 2011 +0200 pg: use size_t for wcstombs() return code Signed-off-by: Sami Kerola text-utils/pg.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 0cac8948216a298deaf5fd30837ed9cc80618f80 Author: Karel Zak Date: Tue May 31 18:02:29 2011 +0200 mount: use libmount to detect already mounted bind mounts It's pretty tricky to detect that a bind mount from fstab is already mounted on system without /etc/mtab. Let's use functionality from libmount. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=701176 Signed-off-by: Karel Zak mount/mount.c | 42 ++++++++++++++++++++++++++++++++++++++---- 1 files changed, 38 insertions(+), 4 deletions(-) commit 5c60a0eab5155043f58fa88909d89e0b06cad2f8 Author: Karel Zak Date: Tue May 31 18:01:36 2011 +0200 libmount: add mnt_table_is_mounted() Signed-off-by: Karel Zak shlibs/mount/src/libmount.h.in | 3 + shlibs/mount/src/libmount.sym | 1 + shlibs/mount/src/tab.c | 210 ++++++++++++++++++++++++++++++++++++++++ shlibs/mount/src/tab_update.c | 2 +- 4 files changed, 215 insertions(+), 1 deletions(-) commit b5206c819452656e68b0aafd514d0cbc90c4c2fd Author: Karel Zak Date: Mon May 30 22:59:35 2011 +0200 libblkid: use sysfs_init() more carefully Reported-by: Francesco Cosoleto Signed-off-by: Karel Zak shlibs/blkid/src/devname.c | 7 ++++--- shlibs/blkid/src/devno.c | 6 ++---- shlibs/blkid/src/topology/sysfs.c | 20 ++++++++++---------- 3 files changed, 16 insertions(+), 17 deletions(-) commit b5ac06704eb7804422adea2bd7152c4962e2061a Author: Sami Kerola Date: Mon May 30 22:19:53 2011 +0200 sfdisk: fix implicit overflow sfdisk.c:1650:6: warning: overflow in implicit constant conversion [-Woverflow] Signed-off-by: Sami Kerola fdisk/sfdisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f74478a64d8bb0fc828489dfc5730eb0c0d4e518 Author: Sami Kerola Date: Sun May 29 22:14:54 2011 +0200 docs: sfdisk manual update Add to manual page previously unmentioned options and few missing long options. Signed-off-by: Sami Kerola fdisk/sfdisk.8 | 53 ++++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 42 insertions(+), 11 deletions(-) commit 4a0f60f62d0d73d94961a5fed7289d5b09c4f473 Author: Sami Kerola Date: Sun May 29 21:35:15 2011 +0200 sfdisk: previously undocumented options to usage Signed-off-by: Sami Kerola fdisk/sfdisk.c | 71 +++++++++++++++++++++++++++++++++++++++---------------- 1 files changed, 50 insertions(+), 21 deletions(-) commit cc80c2347701a08d492ec79e07114facf924caba Author: Sami Kerola Date: Sun May 29 20:26:22 2011 +0200 sfdisk: help screen format Readability improvement by making the help screen to look like majority of command line utilities. Signed-off-by: Sami Kerola fdisk/sfdisk.c | 93 +++++++++++++++++++++++++++++--------------------------- 1 files changed, 48 insertions(+), 45 deletions(-) commit 4dd3383af2dd10adb5d90cc2afc6d2249b1fa7fa Author: Sami Kerola Date: Sun May 29 18:40:29 2011 +0200 sfdisk: declare unused function attributes Add `__attribute__ ((__unused__))' where needed. Signed-off-by: Sami Kerola fdisk/sfdisk.c | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) commit 4231bffef6948781b3395839150b7a2c84410599 Author: Karel Zak Date: Mon May 30 17:22:07 2011 +0200 docs: update TODO file Signed-off-by: Karel Zak TODO | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit c13d3432791be67ca3e1e1eb22ef6e32ed96fbc3 Author: Karel Zak Date: Mon May 30 17:20:27 2011 +0200 libblkid: add some debug messages Signed-off-by: Karel Zak shlibs/blkid/src/partitions/partitions.c | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) commit 10ee593293a167c3977e59ebe6a6f7d6c7288ab4 Author: Karel Zak Date: Mon May 30 16:37:31 2011 +0200 lib: [loopdev.c] add module for work loop devices Signed-off-by: Karel Zak include/Makefile.am | 1 + include/loopdev.h | 154 ++++++++ include/pathnames.h | 3 + lib/Makefile.am | 14 +- lib/canonicalize.c | 2 +- lib/loopdev.c | 1053 +++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 1224 insertions(+), 3 deletions(-) commit 87e77645f5e51879c492d79ceb88a5a0bf15d856 Author: Karel Zak Date: Fri May 27 14:47:40 2011 +0200 lib: [sysfs.c] fix double free Signed-off-by: Karel Zak lib/sysfs.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 5d2a98490e87872214e6acdeac1031c0eb8cfc92 Author: Francesco Cosoleto Date: Thu May 26 15:17:25 2011 +0200 This adds a second parameter to size_to_human_string() to return a string with a different format based on the following flags: SIZE_SUFFIX_1LETTER = "1K" SIZE_SUFFIX_3LETTER = "1KiB", SIZE_SUFFIX_SPACE = "1 KiB" or "1 K" [kzak@redhat.com: - rename flags to SIZE_SUFFIX_* format, - fix suffix[] buffer size - add 3 letter version to the test] Signed-off-by: Francesco Cosoleto Signed-off-by: Karel Zak include/strutils.h | 11 ++++++++- lib/strutils.c | 33 +++++++++++++++++++------ misc-utils/lsblk.c | 6 ++-- partx/partx.c | 2 +- tests/expected/misc/strtosize | 52 ++++++++++++++++++++-------------------- 5 files changed, 65 insertions(+), 39 deletions(-) commit 2b85ab880d4fff8addb2deac4c25223c7973976e Author: Sami Kerola Date: Sat May 21 15:02:10 2011 +0200 build-sys: use AUTOMAKE_OPTIONS = gnu The change will cause make dist to have INSTALL file from automake release, which hopefully is more up to date than manually maintained version. The gnu option will also require ChangeLog to be present, and without doubts no-one wants to maintain that manually. I added file to reference link to internet git repository view. At the time of make dist current tag is added to the ChangeLog reference which will make release to point exactly to the point where changes ended. Minor drawback is that untagged make dist releases will contain a broken link in ChangeLog. Signed-off-by: Sami Kerola .gitignore | 1 + ChangeLog | 3 + INSTALL | 236 ----------------------------------------------------------- Makefile.am | 3 + 4 files changed, 7 insertions(+), 236 deletions(-) commit c135a8bdc3b2d21fba2c0e6e09dc785498736061 Author: Sami Kerola Date: Sat May 21 15:02:09 2011 +0200 build-sys: stop building line(1) by default Align build system behaviour with DEPRECATED file. Signed-off-by: Sami Kerola configure.ac | 5 +++++ text-utils/Makefile.am | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) commit dd9a7873768e0930dbb2239ad010aa5293d81de1 Author: Sami Kerola Date: Sat May 21 12:25:54 2011 +0200 build-sys: add required files to dist Files mkfs.h procutils.h sysfs.h where missing from dist file. Signed-off-by: Sami Kerola disk-utils/Makefile.am | 4 ++-- include/Makefile.am | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) commit 57e19503ffe68fda85b9f53d52941b515ca2ed72 Author: Karel Zak Date: Thu May 26 10:30:23 2011 +0200 tests: test column(1) with multiple input files Signed-off-by: Karel Zak tests/expected/column/multi-file | 10 ++++++++++ tests/ts/column/multi-file | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 0 deletions(-) commit a46e644e5c8d70015dc23b2af9c69c034bc7cb5a Author: Karel Zak Date: Thu May 26 10:23:50 2011 +0200 column: fix problems with uninitialized variables Signed-off-by: Karel Zak text-utils/column.c | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) commit 35b6076b8c245172b51c4148e7f89eefdcc1f45a Merge: e918cca 8b493b6 Author: Karel Zak Date: Thu May 26 09:54:13 2011 +0200 Merge branch 'column' of git://github.com/kerolasa/lelux-utiliteetit into column * 'column' of git://github.com/kerolasa/lelux-utiliteetit: tests: add column tests column.c: global variables removed column.c: validate numeric user inputs column.c: free memory before exit column.c: make table function clarification column.c: coding style fixes column.c: add version printing column.c: replace emalloc with xcalloc commit e918cca56287d141f75a9e05d61a545df3553344 Author: Karel Zak Date: Wed May 25 16:50:44 2011 +0200 build-sys: cleanup lib/ tests Signed-off-by: Karel Zak lib/Makefile.am | 11 +++++++++-- lib/at.c | 4 +--- lib/sysfs.c | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) commit 45e7adfb9d2607473c2915d3155b1ba47ccb9bfe Author: Karel Zak Date: Tue May 24 13:30:48 2011 +0200 libblkid: improve blkid__scan_dir shlibs/blkid/src/devno.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) commit d53fc4b3bba3977274c0f1c8694b1bb16e2bdb97 Author: Karel Zak Date: Tue May 24 01:15:55 2011 +0200 docs: TODO update Signed-off-by: Karel Zak TODO | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit ffb06a150591d480d1cb35f595c1798a334f6010 Author: Karel Zak Date: Mon May 23 13:06:45 2011 +0200 libblkid: add ID_PART_ENTRY_{OFFSET,SIZE,DISK} Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 2 +- shlibs/blkid/src/partitions/partitions.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletions(-) commit a44fe768f5aa7eb411b83379198d7b25292406e6 Author: Karel Zak Date: Mon May 23 12:53:18 2011 +0200 libblkid: use partno for partitions mapped by DM Signed-off-by: Karel Zak shlibs/blkid/src/partitions/partitions.c | 48 +++++++++++++++++++++++++++-- 1 files changed, 44 insertions(+), 4 deletions(-) commit 1dcc799e43717651e5500ddfac27672c5795f6b0 Author: Karel Zak Date: Mon May 23 12:09:08 2011 +0200 libblkid: found whole-disk for partitions mapped by kpartx Signed-off-by: Karel Zak shlibs/blkid/src/devno.c | 216 +++++++++++++++++++++++++--------------------- 1 files changed, 119 insertions(+), 97 deletions(-) commit 8b493b6c39a2e563676c2b43336f8ff42baaf2f2 Author: Sami Kerola Date: Thu May 19 22:35:05 2011 +0200 tests: add column tests Very basic regression tests for the column(1) command. http://permalink.gmane.org/gmane.linux.utilities.util-linux-ng/4066 Signed-off-by: Sami Kerola tests/commands.sh.in | 1 + tests/expected/column/fillrow | 4 ++++ tests/expected/column/separator_table | 10 ++++++++++ tests/ts/column/fillrow | 29 +++++++++++++++++++++++++++++ tests/ts/column/input | 10 ++++++++++ tests/ts/column/separator_table | 29 +++++++++++++++++++++++++++++ 6 files changed, 83 insertions(+), 0 deletions(-) commit daf093d2642f04000650fa06fdb3e1cdf80ef7c1 Author: Sami Kerola Date: Sun May 1 19:26:49 2011 +0200 column.c: global variables removed Variables from global scope are moved to main, and passed as function arguments where ever they are needed. Signed-off-by: Sami Kerola text-utils/column.c | 113 ++++++++++++++++++++++++++++---------------------- 1 files changed, 63 insertions(+), 50 deletions(-) commit 02b77f7b2b8d8d5337ef3d8b2cb232cae27c5cfc Author: Sami Kerola Date: Sun May 1 19:24:47 2011 +0200 column.c: validate numeric user inputs Use strtol_or_err from strutils.h to check numeric user input is sane. Signed-off-by: Sami Kerola text-utils/Makefile.am | 2 ++ text-utils/column.c | 12 +++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) commit dcbca568f72db12701519d0b060242610c12334e Author: Sami Kerola Date: Sun May 1 19:20:25 2011 +0200 column.c: free memory before exit Signed-off-by: Sami Kerola text-utils/column.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) commit 4eaeb0ef25ea00be23457a452f497307ea8291f4 Author: Sami Kerola Date: Sun May 1 19:16:29 2011 +0200 column.c: make table function clarification Readability enchancement, and few variable type changes to be more proper. Signed-off-by: Sami Kerola text-utils/column.c | 31 +++++++++++++++++-------------- 1 files changed, 17 insertions(+), 14 deletions(-) commit 413993fcb1571e2a9208e19b1a54ee132ef5bfa3 Author: Karel Zak Date: Wed May 18 16:24:37 2011 +0200 lib: [sysfs.c] add sysfs_readlink and name/path functions Signed-off-by: Karel Zak include/sysfs.h | 10 +++- lib/sysfs.c | 136 +++++++++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 130 insertions(+), 16 deletions(-) commit cdc9c4194aac3897feb2156ad2d3d5cb663b4365 Author: Karel Zak Date: Wed May 18 15:55:15 2011 +0200 lib: [at.c] add readlink_at(), fix semantic for absolute paths Signed-off-by: Karel Zak include/at.h | 4 ++++ lib/at.c | 53 +++++++++++++++++++++++++++++++++++++++++------------ 2 files changed, 45 insertions(+), 12 deletions(-) commit 4a9b7543ae1e8fb7163e9b7f71c136fadae36295 Author: Karel Zak Date: Wed May 18 14:19:39 2011 +0200 agetty: try next speed after CBREAK Signed-off-by: Karel Zak term-utils/agetty.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 9cfe1b9c6a8663263b1ff2ee45450cf38af707bd Author: Karel Zak Date: Wed May 18 12:17:43 2011 +0200 lsblk: use sysfs_read_u64() rather than sysfs_strdup() + atol() Signed-off-by: Karel Zak misc-utils/lsblk.c | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) commit 90e9fcda3bb3a215f027fc66c1182a18e0746972 Author: Karel Zak Date: Wed May 18 11:57:17 2011 +0200 lib: [sysfs.c] make sysfs_read_* function more robust The functions does not modify result if the requested sysfs attribute does not exist. Signed-off-by: Karel Zak include/sysfs.h | 8 +++-- lib/sysfs.c | 50 +++++++++++++++++++++++------ misc-utils/lsblk.c | 13 +++++-- shlibs/blkid/src/devname.c | 4 +- shlibs/blkid/src/partitions/partitions.c | 10 ++++-- shlibs/blkid/src/topology/sysfs.c | 10 +++++- 6 files changed, 70 insertions(+), 25 deletions(-) commit 1ddc96ac3c510c6237a554f211d3f07d0ea708de Author: Karel Zak Date: Wed May 18 11:14:32 2011 +0200 build-sys: disable lib/ at.c tests building Signed-off-by: Karel Zak lib/Makefile.am | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 98055888e93ae85045affd45a022f35e5041ccd1 Author: Martin K. Petersen Date: Wed May 18 00:43:14 2011 -0400 lsblk: improve discard support Use atol() instead of atoi() when extracting discard_max_bytes. Only print discard_alignment and discard_zeroes_data if the device supports discard. This prevents printing of undefined values with older kernels. Signed-off-by: Martin K. Petersen misc-utils/lsblk.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) commit 06f25585085e2efcc1bfebbbfc31ff5db7af707b Author: Davidlohr Bueso Date: Wed May 11 13:16:00 2011 -0400 cramfs: remove cramfs_common.h We currently have cramfs.h and cramfs_common.h, this makes no sense, so remove unite them and keep just cramfs.h Signed-off-by: Davidlohr Bueso disk-utils/Makefile.am | 2 +- disk-utils/cramfs.h | 30 ++++++++++++++++++++++++++++++ disk-utils/cramfs_common.c | 2 +- disk-utils/cramfs_common.h | 37 ------------------------------------- disk-utils/fsck.cramfs.c | 1 - disk-utils/mkfs.cramfs.c | 1 - 6 files changed, 32 insertions(+), 41 deletions(-) commit 1b9b57ace598fa700a5df61cf9f1778fffd842aa Author: Davidlohr Bueso Date: Tue May 10 14:35:23 2011 -0400 chrt: clarify use of -a option With this option we can operate on all the thread group of a process not just for changes, but also when obtaining information via sched_getscheduler(). Signed-off-by: Davidlohr Bueso schedutils/chrt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0200c80155358d57706d80895007f38b36e035ea Author: Sami Kerola Date: Sat Apr 30 13:06:27 2011 +0200 ul.c: warn user when command chooses term type Happens usually when user specifies garbage as -t argument. Signed-off-by: Sami Kerola Signed-off-by: Karel Zak text-utils/ul.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) commit a4949aaa548f04d5713640cc34a968abde25a1c7 Author: Sami Kerola Date: Sat Apr 30 13:06:26 2011 +0200 ul.c: escape handling refactored Separate function for escape handling to make switch statement more readable. Signed-off-by: Sami Kerola text-utils/ul.c | 76 ++++++++++++++++++++++++++++++------------------------ 1 files changed, 42 insertions(+), 34 deletions(-) commit 78b0fdd3d78eb466f034896341b49d9dfe36be83 Author: Sami Kerola Date: Sat Apr 30 13:06:25 2011 +0200 ul.c: close files and free memory after usage Signed-off-by: Sami Kerola text-utils/ul.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 565239b0342b9e23d024bdf63fb8f0f0c8324ddd Author: Sami Kerola Date: Sat Apr 30 13:06:24 2011 +0200 ul.c: code style and comment fixes Signed-off-by: Sami Kerola text-utils/ul.c | 166 +++++++++++++++++++++++++++++++------------------------ 1 files changed, 94 insertions(+), 72 deletions(-) commit 2afa872ffc68db8aca207b40a748c11db09d22ee Author: Sami Kerola Date: Sat Apr 30 13:06:23 2011 +0200 ul.c: fix compier warnings Signed-off-by: Sami Kerola text-utils/ul.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit cc319747b521873a1aaefa562c76b903647272a7 Author: Sami Kerola Date: Sat Apr 30 13:06:22 2011 +0200 ul.c: magic constant removal Signed-off-by: Sami Kerola text-utils/ul.c | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) commit a3b761801c8e47f9901ed332e8c02a9c6e78dd0e Author: Sami Kerola Date: Sat Apr 30 13:06:21 2011 +0200 ul.c: use long options This commit introduces help & version options. Signed-off-by: Sami Kerola text-utils/ul.c | 40 +++++++++++++++++++++++++++++++++++----- 1 files changed, 35 insertions(+), 5 deletions(-) commit cdbe31fc6a378ec073268118efde30049a56f831 Author: Sami Kerola Date: Sat Apr 30 13:06:20 2011 +0200 ul.c: convert definition to function Signed-off-by: Sami Kerola Signed-off-by: Karel Zak text-utils/ul.c | 38 ++++++++++++++++++++++---------------- 1 files changed, 22 insertions(+), 16 deletions(-) commit ca8e91a4bfbca67340144c8f0195a0363e5505d2 Author: Karel Zak Date: Tue May 17 14:02:57 2011 +0200 agetty: don't use xalloc.h stuff agetty logs errors and warnings to syslog, we shouldn't use err.h stuff here. Signed-off-by: Karel Zak term-utils/agetty.c | 25 +++++++++++++++++-------- 1 files changed, 17 insertions(+), 8 deletions(-) commit 3fc62fd3a59ae490c8d7011fcc9d11953886c752 Author: Karel Zak Date: Tue May 17 13:21:45 2011 +0200 agetty: remove unnecessary options synonyms Signed-off-by: Karel Zak term-utils/agetty.8 | 18 +++++++++--------- term-utils/agetty.c | 9 ++------- 2 files changed, 11 insertions(+), 16 deletions(-) commit a694957a9a13ab8c32b5b8691157eafbb4c5905f Author: Karel Zak Date: Tue May 17 13:03:52 2011 +0200 agetty: use a generic function for strings concatenation Signed-off-by: Karel Zak term-utils/agetty.c | 110 ++++++++++++++++++++++++++++----------------------- 1 files changed, 60 insertions(+), 50 deletions(-) commit 763d7a870584e3b7d53fc612b716e3b6c5c0b27d Author: Karel Zak Date: Tue May 17 11:36:02 2011 +0200 agetty: remove unnecessary space and "(void)" junk Signed-off-by: Karel Zak term-utils/agetty.c | 139 ++++++++++++++++++++++++++------------------------- 1 files changed, 71 insertions(+), 68 deletions(-) commit e85281a8ac887a35a78f4b43e4755a44aecc2fb7 Author: Dr. Werner Fink Date: Tue May 10 17:35:23 2011 +0200 aggety: further mingetty features Allow the system adminstrator to provide options to the login program. Some changes for several layouts of the agetty prompt like short host name or full qualified host name. Four options enables the user to delay agetty after start, to change the working directory, to change the root directory, and to modified scheduling priority. Signed-off-by: Werner Fink term-utils/agetty.8 | 78 ++++++++++++++++++++++--------------- term-utils/agetty.c | 106 +++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 146 insertions(+), 38 deletions(-) commit eb8e1f9f0cfb8ebb44ca50962e0623257c4d6436 Author: Werner Fink Date: Mon May 9 15:52:39 2011 +0200 agetty: add an autologin feature Add an autologin feature to agetty, that is that a user can be automatically logged in. For this the options of for the login program has to used. Make it possible to pass-through options to the login program which requires a security check. Signed-off-by: Werner Fink term-utils/agetty.8 | 29 +++++++ term-utils/agetty.c | 219 +++++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 222 insertions(+), 26 deletions(-) commit 1683f6bf20a11732dac989a8fdc636d36eb17534 Author: Dr. Werner Fink Date: Tue May 10 17:34:30 2011 +0200 agetty: better support of virtual console Better support of virtual console due support of UTF-8 login names provided by e.g. LDAP. Set default size 24/80 on serial modem lines if not found by the kernel. Signed-off-by: Werner Fink term-utils/agetty.c | 187 ++++++++++++++++++++++++++++++++++----------------- 1 files changed, 126 insertions(+), 61 deletions(-) commit 0da025da8efa0f748d1e59af415667c0c40cdd9f Author: Werner Fink Date: Mon May 9 15:52:37 2011 +0200 agetty: check virtual console for UTF-8 support Check out a virtual console line for UTF-8 support, also skip modem specific setups on a virtual console line. Signed-off-by: Werner Fink term-utils/agetty.c | 124 +++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 115 insertions(+), 9 deletions(-) commit 3aa6b68f7e19fa3e1c2bba75bee921a98b7b46af Author: Werner Fink Date: Mon May 9 15:52:36 2011 +0200 agetty: proper session on the terminal line Ensure a proper session on the terminal line, that is do a vhangup() and become the controlling terminal. After this determine if the terminal line a virtual console by using the ioctl TIOCMGET to get the status modem bits of a serial line which is a invalid argument on a virtual console. Signed-off-by: Werner Fink term-utils/agetty.8 | 3 + term-utils/agetty.c | 158 +++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 126 insertions(+), 35 deletions(-) commit 729def03e1cdc3520690ca8e512b0a0a5e9e7211 Author: Werner Fink Date: Mon May 9 15:52:35 2011 +0200 agetty: cleanup argv parsing, utmp update, use writeall(), etc. Next cleanup, that is split off special character parsing in do_prompt() and parse_args(), handle name of line of virtual console and use it in utmp update as well as the session id. Also move the initial TERM variable to open_tty() as we use this later in open_tty(). Use writeall() but avoid repeat to often for EAGAIN (compare with info page of the (g)libc, description of the macro EAGAIN). Signed-off-by: Werner Fink include/writeall.h | 2 + term-utils/agetty.c | 448 ++++++++++++++++++++++++++++----------------------- 2 files changed, 245 insertions(+), 205 deletions(-) commit bde20e1b2b220f30ada971ae6384a75ab0853b58 Author: Werner Fink Date: Mon May 9 15:52:34 2011 +0200 agetty: more code cleanup More code cleanup, that is use bit mask for eight bit option, use modern speed_t type, split local error() into local log_err(), log_warn(), and dolog() for fine graduated logging with syslogger. Signed-off-by: Werner Fink term-utils/agetty.c | 164 +++++++++++++++++++++++++-------------------------- 1 files changed, 80 insertions(+), 84 deletions(-) commit d8a84552fb6539eaa2c15882d434e3845d758014 Author: Karel Zak Date: Mon May 16 17:20:55 2011 +0200 libblkid: use stuff from sysfs.h and at.h Signed-off-by: Karel Zak include/sysfs.h | 1 + lib/sysfs.c | 7 ++ shlibs/blkid/src/Makefile.am | 4 +- shlibs/blkid/src/blkidP.h | 9 --- shlibs/blkid/src/devname.c | 40 ++++-------- shlibs/blkid/src/devno.c | 101 +----------------------------- shlibs/blkid/src/partitions/partitions.c | 11 +++- shlibs/blkid/src/topology/sysfs.c | 69 ++++++++++++--------- 8 files changed, 75 insertions(+), 167 deletions(-) commit 766ab9b08d38520e4d5b0e261be16224db161c4b Author: Karel Zak Date: Mon May 16 15:24:26 2011 +0200 lsblk: use generic sysfs functions Signed-off-by: Karel Zak misc-utils/Makefile.am | 4 +- misc-utils/lsblk.c | 248 +++++++++--------------------------------------- 2 files changed, 50 insertions(+), 202 deletions(-) commit 7fe16fdaf40283cd8ff6fd05958f9f9aa3811409 Author: Karel Zak Date: Mon May 16 14:08:50 2011 +0200 lib: add generic sysfs utils Signed-off-by: Karel Zak include/at.h | 4 + include/sysfs.h | 57 +++++++++ lib/Makefile.am | 3 +- lib/at.c | 2 +- lib/sysfs.c | 348 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 412 insertions(+), 2 deletions(-) commit ac8874cad39711d588c95dfbce79eaf13b14e361 Author: Karel Zak Date: Mon May 16 10:31:50 2011 +0200 libblkid: use cached buffers for nested PT probing Signed-off-by: Karel Zak shlibs/blkid/src/partitions/partitions.c | 49 ++++++++++++++++++----------- shlibs/blkid/src/probe.c | 15 +++++++-- 2 files changed, 41 insertions(+), 23 deletions(-) commit fd9f45e1585e920cc3bd201219df8ce6975ff9ea Author: Karel Zak Date: Fri May 13 15:07:56 2011 +0200 libblkid: make whole disk probing more robust Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 6 ++ shlibs/blkid/src/partitions/partitions.c | 67 +++------------------ shlibs/blkid/src/probe.c | 93 ++++++++++++++++++++++++++++-- 3 files changed, 103 insertions(+), 63 deletions(-) commit 0915c581678163e73909425eb8413f2077df9252 Author: Karel Zak Date: Fri May 13 15:05:45 2011 +0200 tests: update for recent fdisk changes Signed-off-by: Karel Zak tests/commands.sh.in | 2 +- tests/expected/blkid/md-raid0-whole | 12 ++++---- tests/expected/blkid/md-raid1-part | 12 ++++---- tests/expected/blkid/md-raid1-whole | 12 ++++---- tests/expected/fdisk/align-512-4K | 36 +++++++++++++++----------- tests/expected/fdisk/align-512-4K-63 | 36 +++++++++++++++----------- tests/expected/fdisk/align-512-4K-md | 24 +++++++++--------- tests/expected/fdisk/align-512-512 | 36 +++++++++++++++----------- tests/expected/fdisk/align-512-512-topology | 36 +++++++++++++++----------- 9 files changed, 115 insertions(+), 91 deletions(-) commit ccdf9fda902256ba71c073050d99e57cb1ff953f Author: Karel Zak Date: Fri May 13 12:48:57 2011 +0200 libblkid: cleanup prober initialization Signed-off-by: Karel Zak shlibs/blkid/src/partitions/partitions.c | 7 ++++++- shlibs/blkid/src/probe.c | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) commit a9eef56c4a768797c333385bdc8c6f97ff21f5ba Author: Karel Zak Date: Fri May 13 12:28:12 2011 +0200 libblkid: cleanup flags Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 13 +++++++------ shlibs/blkid/src/partitions/partitions.c | 2 +- shlibs/blkid/src/probe.c | 24 ++++++++++++------------ shlibs/blkid/src/superblocks/superblocks.c | 2 +- 4 files changed, 21 insertions(+), 20 deletions(-) commit 15dc088cad2e8548b721b83c2a42ec1d6bac0731 Author: Karel Zak Date: Thu May 12 18:32:08 2011 +0200 mount: remove note about obsolete volume_id library from man page Signed-off-by: Karel Zak mount/mount.8 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a2e9096fe390b0815815f6f0b6abe2bc566aa85d Author: John Lindgren Date: Wed May 11 14:32:18 2011 -0400 blkid: don't read past end of FAT32 cluster chain When looking for a volume label on a FAT32 filesystem, blkid does not correctly handle special cluster values in the range 0x0FFFFFF8 to 0x0FFFFFFF, which mark the last cluster in a chain. As a result, it begins to read [what it treats as] FAT entries from past the end of the FAT. Depending on the data read, it may then try to parse random data from the filesystem (including user files, free space, and other directories) as though it were part of the root directory. Because parsing stops early when a volume label is found, the problem only occurs on filesystems without a volume label. When it occurs, it may result in a long sequence of lseek and read calls; on an older IDE drive with a 2 GB FAT32 partition, this amounted to around 3 seconds of disk I/O. After patching, blkid stop parsing as soon as it reaches a cluster value greater than or equal to the number of entries in the FAT. [kzak@redhat.com: - add le32_to_cpu()] Signed-off-by: John Lindgren shlibs/blkid/src/superblocks/vfat.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit a646661fd0af075ed12391c275db6f392d69d5e8 Author: Karel Zak Date: Wed May 11 17:55:10 2011 +0200 tests: add mount(8) test for fstab entries without options Signed-off-by: Karel Zak tests/expected/mount/fstab-broken | 1 + tests/expected/mount/fstab-broken-mount | 1 + tests/expected/mount/fstab-broken-mount-all | 1 + tests/ts/mount/fstab-broken | 63 +++++++++++++++++++++++++++ 4 files changed, 66 insertions(+), 0 deletions(-) commit f53edda83ebcfd7015c3f35196d6cbd7bc2d8369 Author: Karel Zak Date: Wed May 11 16:57:27 2011 +0200 mount: -a segfaults when 4th field is omitted (mount options) # echo 'tmpd /tmp/x tmpfs' >> /etc/fstab # mkdir /tmp/x # mount -a segfault Reported-by: Mike Frysinger Signed-off-by: Karel Zak mount/mount.c | 8 +++++--- mount/mount_mntent.c | 5 +++-- mount/sundries.c | 2 ++ 3 files changed, 10 insertions(+), 5 deletions(-) commit 42708f12f0847aec30839a4531ae016b1693f9c9 Author: Davidlohr Bueso Date: Tue May 10 18:03:09 2011 -0400 taskset: make threads aware Add a new '-a' option to view/modify the CPU affinity for an entire group of threads belonging to a given PID. We create two new functions, print_affinity() and do_taskset() for code simplification. Example: zeus@jilguero:~/src/util-linux/schedutils$ ./taskset -a -p 01 3142 pid 3142's current affinity mask: 2 pid 3142's new affinity mask: 1 pid 3164's current affinity mask: 2 pid 3164's new affinity mask: 1 pid 854's current affinity mask: 2 pid 854's new affinity mask: 1 [kzak@redhat.com: - clean up - move variables to struct taskset] Signed-off-by: Davidlohr Bueso Tested-by: Jonathan Gonzalez Signed-off-by: Karel Zak schedutils/taskset.1 | 3 + schedutils/taskset.c | 147 ++++++++++++++++++++++++++++++++++---------------- 2 files changed, 103 insertions(+), 47 deletions(-) commit dd29a762939f95c43e3afe5e9f32be1add6ac315 Author: Davidlohr Bueso Date: Mon May 9 11:18:32 2011 -0400 taskset: use xalloc lib Signed-off-by: Davidlohr Bueso schedutils/taskset.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) commit 74396048953b33b706028537b14e4b6be38c259d Author: Francesco Cosoleto Date: Mon May 9 16:00:36 2011 +0200 fdisk: accept digits-space-suffix format This is for users who are used to separate with a space numbers from units. Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit f82ce2aab18bc623fd99a3525c2aa8ae124bfe85 Author: Davidlohr Bueso Date: Fri May 6 15:23:10 2011 -0300 chrt.1: fix grammar Corrent the English grammar for the new -a option. Signed-off-by: Davidlohr Bueso schedutils/chrt.1 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 11187bfadd5876561eb4fe52b0a22ce84fc12b28 Author: Francesco Cosoleto Date: Tue May 10 14:13:14 2011 +0200 fdisk: print logical partition number while adding it [kzak@redhat.com: - merged two Francesco's patches] Signed-off-by: Karel Zak Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit b25c9df7c71d75e33d8364f9b3b590faf43c0522 Author: Francesco Cosoleto Date: Fri May 6 17:23:33 2011 +0200 fdisk: quit from partition type dialog after invalid response This gets rid of the while() loop and fixes indentation. Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 45 ++++++++++++++++++++------------------------- 1 files changed, 20 insertions(+), 25 deletions(-) commit 37b4484fe6af74c5744af88d5132969404e35029 Author: Francesco Cosoleto Date: Fri May 6 17:23:32 2011 +0200 fdisk: add a default response for the partition type dialog The default response is 'p' until three primary partitions are created, then 'e'. The original idea is from Karel Zak. Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) commit ffde29b2bd770b3717d2f32be2485cb74ac88278 Author: Francesco Cosoleto Date: Fri May 6 17:23:31 2011 +0200 fdisk: change primary or extended partition type dialog Mainly this appends a colon for the prompt, reverses order of the list, reports the number of primary partitions used and unused. Old version: Command action e extended p primary partition (1-4) p New version: Partition type: p primary (0 primary, 0 extended, 4 free) e extended Select: p Old version: Command action l logical (5 or over) p primary partition (1-4) l New version: Partition type: p primary (0 primary, 1 extended, 3 free) l logical (numbered from 5) Select: l Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) commit b152e3595cfa0046f374a555066b654692a4c8ba Author: Karel Zak Date: Tue May 10 12:06:39 2011 +0200 findmnt: add columns description to the --help output Signed-off-by: Karel Zak misc-utils/findmnt.c | 33 +++++++++++++++------------------ 1 files changed, 15 insertions(+), 18 deletions(-) commit 8ed48785e1d5266211884540350afa22cd1513a3 Author: Karel Zak Date: Tue May 10 11:39:51 2011 +0200 partx: add --pairs to output in key="value" format Signed-off-by: Karel Zak partx/partx.c | 36 ++++++++++++++++++++++-------------- 1 files changed, 22 insertions(+), 14 deletions(-) commit 49e9fd3a0d5b514ca7f4fa107c66ec443ebee7a4 Author: Karel Zak Date: Tue May 10 11:16:41 2011 +0200 findmnt: add --pairs to output in key="value" format ... usable in scripts, for example: findmnt --pairs -o "SOURCE,TARGET,FSTYPE" $1 | while read line; do eval $line echo "$SOURCE is mounted on $TARGET [$FSTYPE]" done Signed-off-by: Karel Zak misc-utils/findmnt.c | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) commit d783ee0be02c4ec656bd3f98c02ab19e35456fbb Author: Karel Zak Date: Tue May 10 10:39:14 2011 +0200 findmnt: fix leak Signed-off-by: Karel Zak misc-utils/findmnt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 6ea1bdd32c62622d12517f86d471aec2aa79e4bb Author: Karel Zak Date: Tue May 10 10:38:29 2011 +0200 lsblk: add --pairs to output in key="value" format Signed-off-by: Karel Zak misc-utils/lsblk.8 | 4 +++- misc-utils/lsblk.c | 17 ++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) commit bfe695ff5b6a08bbdef6c63bb1a0209548f39875 Author: Karel Zak Date: Tue May 10 10:37:39 2011 +0200 lib: [tt.c] support key="value" output format Signed-off-by: Karel Zak include/tt.h | 22 +++++++++++++++------- lib/tt.c | 19 ++++++++++++++++--- 2 files changed, 31 insertions(+), 10 deletions(-) commit e82810c6cf3fe94d2cf70d485a59c411ccb601b3 Author: Andrea Galbusera Date: Tue May 3 15:47:38 2011 +0200 sfdisk: returns non-zero on failed BLKRRPART ioctl Make sfdisk(8) return non-zero value on failed BLKRRPART ioctl(). This will happen for either partition table re-reads after partition changes or on explicit use of -R switch. The function reread_disk_partition() was changed from 'void' to 'int' and now returns a result to let the calling functions decide to exit(1). Signed-off-by: Andrea Galbusera fdisk/sfdisk.c | 25 +++++++++++++++++-------- 1 files changed, 17 insertions(+), 8 deletions(-) commit fe9a226158095c8d8eaea7a0cb593aa4a9cd3698 Author: Karel Zak Date: Fri May 6 13:00:07 2011 +0200 libblkid: ignore hfsplus superblocks with blocksize < 512 Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/hfs.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit b61b85c7d9a229e567e2e0b126e3e47c8caacb91 Author: Timo Warns Date: Fri May 6 11:04:24 2011 +0200 libblkid: validate hfs blocksize != 0 Validate that blocksize != 0 as a blocksize == 0 can cause a division-by-zero error. Signed-off-by: Timo Warns shlibs/blkid/src/superblocks/hfs.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 282974088ac63f3c1f2991869e3685a24a3b8e92 Author: Karel Zak Date: Thu May 5 14:56:53 2011 +0200 docs: update TODO file Signed-off-by: Karel Zak TODO | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit f3dd91d0561df6e10b84a80eae7735af2a512ef7 Author: Anton V. Boyarshinov Date: Thu May 5 14:31:09 2011 +0400 addpart: multiplication on 512 deleted Multiplication on 512 now placed in partx/kpartx.h in '<< 9' form. Double moutiplication causes an error. partx/addpart.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 503cbbe1d4f2e5113fa709b005780bb376f83656 Author: Karel Zak Date: Thu May 5 14:23:22 2011 +0200 chrt: allow to use --all-tasks when retrieve info master thread: $ chrt --pid $(pidof firefox) all threads: $ chrt --all-tasks --pid $(pidof firefox) Signed-off-by: Karel Zak schedutils/chrt.1 | 3 ++- schedutils/chrt.c | 18 ++++++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) commit 78904e7647fe4feb2f27b23e2f9bbabe364b45b3 Author: Davidlohr Bueso Date: Thu May 5 14:02:34 2011 +0200 chrt: make threads aware Currently this program works only with the master thread. Add a '-t' option to propagate changes to the entire group of threads. Example: root@offworld:~/projects/util-linux/schedutils# ls /proc/2111/task/ 2111 2112 2119 2121 2138 2139 2159 2160 root@offworld:~/projects/util-linux/schedutils# ./chrt -p 2111 pid 2111's current scheduling policy: SCHED_RR pid 2111's current scheduling priority: 3 root@offworld:~/projects/util-linux/schedutils# ./chrt -t -p 2 2111 root@offworld:~/projects/util-linux/schedutils# ./chrt -p 2112 pid 2112's current scheduling policy: SCHED_RR pid 2112's current scheduling priority: 2 root@offworld:~/projects/util-linux/schedutils# ./chrt -p 2111 pid 2111's current scheduling policy: SCHED_RR pid 2111's current scheduling priority: 2 [kzak@redhat.com: - rename -t/--thread to -a/--all-tasks] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak schedutils/Makefile.am | 2 +- schedutils/chrt.1 | 3 +++ schedutils/chrt.c | 30 ++++++++++++++++++++++++++---- 3 files changed, 30 insertions(+), 5 deletions(-) commit 86a84a17d29f4d6353f8e5e1b89d292031676265 Author: Davidlohr Bueso Date: Wed May 4 14:40:14 2011 -0300 procutils: include missing header To be able to use DIR we need to include the dirent.h header. This fixes issues such as: ../include/procutils.h:5: error: syntax error before "DIR" ../include/procutils.h:5: warning: no semicolon at end of struct or union Signed-off-by: Davidlohr Bueso include/procutils.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 2d2322461c4e46864b28b572e80836ca54ed2f13 Author: Martin K. Petersen Date: Wed May 4 11:16:05 2011 -0400 lsblk: add support for discard topology (-D option) I got tired of poking around in sysfs to find the discard topology. Here's a patch against lsblk that adds a -D option to present this information in a human-readable form: NAME DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO sda 0 0B 0B 0 └─sda1 0 0B 0B 0 sdb 0 512B 2G 1 └─sdb1 0 512B 2G 1 Signed-off-by: Martin K. Petersen Signed-off-by: Karel Zak misc-utils/lsblk.8 | 2 ++ misc-utils/lsblk.c | 47 ++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 46 insertions(+), 3 deletions(-) commit 5b1f0311234020e07695cee6ba70cc749672b502 Author: Karel Zak Date: Wed May 4 15:52:39 2011 +0200 lib: [procutils.c]: add missing files. Sorry. Signed-off-by: Karel Zak include/procutils.h | 12 +++++ lib/procutils.c | 122 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 134 insertions(+), 0 deletions(-) commit 9734045d9d11330b7782fbcffccf74fc98cdcc5c Author: Davidlohr Bueso Date: Tue May 3 15:57:01 2011 -0300 lib: [procutils.c]: general purpose procfs parsing functions We include the following functions as a first approach: - proc_open_tasks(): allocate resources and setup basic data - proc_next_tid(): iterate over the thread group - proc_close_tasks(): free used resources [kzak@redhat.com: - free() on error in proc_open_tasks(), - always call free() in proc_close_tasks() - ignore non-digit dirs and return 1 on end-of-dir in proc_next_tid()] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak lib/Makefile.am | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 9fae6c27d37b7da4770ef175579b3327fb2a2165 Author: Davidlohr Bueso Date: Wed Apr 13 10:37:55 2011 -0300 mkfs.minix: remove die() Get rid of this function and use errx(3) instead. This patch also introduces a mkfs.h header and defines general purpose mkfs related exit codes. [kzak@redhat.com: - fix "warning: too many arguments for format" errors] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak disk-utils/mkfs.cramfs.c | 6 +-- disk-utils/mkfs.h | 9 ++++ disk-utils/mkfs.minix.c | 92 ++++++++++++++++++++++++---------------------- 3 files changed, 58 insertions(+), 49 deletions(-) commit 63c3e98f21d8470ccf9af026997c695a79650530 Author: Francesco Cosoleto Date: Thu Apr 28 23:39:30 2011 +0200 fdisk: improve error message for missing extended partition Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit f01c41e5ff85f712f228aa01d6269bd4f587ca8a Author: Francesco Cosoleto Date: Thu Apr 28 23:39:29 2011 +0200 fdisk: fix "invalid partition number for type" error message You can't input a partition number here. Signed-off-by: Francesco Cosoleto fdisk/fdisk.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit c5eec0759a2698b405839345b8f67cf35aa09f83 Author: Karel Zak Date: Mon May 2 13:36:20 2011 +0200 docs: add Matej to AUTHORS The original idea to have something like fallocate(1) is from Matej Cepl -- his mkfile(1) prototype has been originally discussed on coreutil mailing list. Thanks! Signed-off-by: Karel Zak AUTHORS | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 1df29104d02581880a96ffd5ee735138bfefd02a Author: Sami Kerola Date: Sun May 1 19:15:21 2011 +0200 column.c: coding style fixes Signed-off-by: Sami Kerola text-utils/column.c | 40 +++++++++++++++++----------------------- 1 files changed, 17 insertions(+), 23 deletions(-) commit 4ef21375ecdc47244052f1294faa01aa29666066 Author: Sami Kerola Date: Sun May 1 19:09:54 2011 +0200 column.c: add version printing The patch makes return value to be non-zero when command line short option is unknown. Signed-off-by: Sami Kerola text-utils/column.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit 12bef81286755cafa14cfd59a9a707199e576c0f Author: Sami Kerola Date: Sun May 1 19:08:08 2011 +0200 column.c: replace emalloc with xcalloc Signed-off-by: Sami Kerola text-utils/column.c | 28 ++++++++-------------------- 1 files changed, 8 insertions(+), 20 deletions(-) commit d54749cf331c92513772934f5a28e21bc00514a3 Author: Sami Kerola Date: Tue Apr 26 21:29:01 2011 +0200 docs: agetty manual update Tell users how to see what issue escape will print by using other commands, such as uname. Signed-off-by: Sami Kerola term-utils/agetty.8 | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 96cc7b0b3ed965bd03796ecead4fb52903ab7069 Author: Sami Kerola Date: Tue Apr 26 21:29:00 2011 +0200 agetty.c: move issue path to pathnames.h Signed-off-by: Sami Kerola include/pathnames.h | 3 +++ term-utils/agetty.c | 2 +- 2 files changed, 4 insertions(+), 1 deletions(-) commit 53d550423585a37c9d783d3d0dd74ece254239a7 Author: Sami Kerola Date: Tue Apr 26 21:28:59 2011 +0200 agetty.c: further scrubbing In reply to two requests. http://permalink.gmane.org/gmane.linux.utilities.util-linux-ng/3990 http://permalink.gmane.org/gmane.linux.utilities.util-linux-ng/3999 The scubbing consists; o Old school introduction back to the top of the source file. o Indentation changes. o Removal of void casting. o Removal of braces from single statements. o Unified format for comments. o Comparison with W. Venema's code from 1993 to clean few comment mysteries. o Web referrals added to further explanation to near the code or comments which some could find difficult to understand why. o Clean up of comments. o FIXME items added where attention is needed. o Make functions static. o Functions with same argument types use same argument order. o Get rid of classic K&R style function declarations. Please notice that this patch _should not_ affect how program works e.g. this has no actual code changes. Signed-off-by: Sami Kerola term-utils/agetty.c | 1100 ++++++++++++++++++++++++++------------------------- 1 files changed, 555 insertions(+), 545 deletions(-) commit af0dc7d3b53dc476752b631f7d3ada5b9b6fea74 Author: Karel Zak Date: Wed Apr 27 23:04:21 2011 +0200 findmnt: minor coding style changes * remove __ from code * use 'static' for global variables Signed-off-by: Karel Zak misc-utils/findmnt.c | 41 ++++++++++++++++++++--------------------- 1 files changed, 20 insertions(+), 21 deletions(-) commit 582a5006d4ccac6131ad9e3eb3f391f4904bf4e3 Author: Karel Zak Date: Wed Apr 27 22:39:44 2011 +0200 findmnt: filter filesystems and actions for --poll The patch allows to filter by: * actions name: $ findmnt --poll=umount * target, source, fstype, options: $ findmnt --poll /mnt/test $ findmnt --poll -O ro $ findmnt --poll -t ext4 * --first-only option to wait only for the first matching change: $ findmnt --poll=umount --first-only /mnt/test Signed-off-by: Karel Zak misc-utils/findmnt.8 | 23 +++++++++--- misc-utils/findmnt.c | 98 ++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 106 insertions(+), 15 deletions(-) commit 77a1c5f7c9c6ff3f73940967a173ba24ca0e8eda Author: Karel Zak Date: Wed Apr 27 18:09:16 2011 +0200 findmnt: print OLD-* columns only when necessary Signed-off-by: Karel Zak misc-utils/findmnt.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) commit a8862fab94cbf722344829c7eb2845c5d5d1b5c9 Author: Karel Zak Date: Wed Apr 27 18:07:39 2011 +0200 findmnt: add --poll and --timeout to the man page Signed-off-by: Karel Zak misc-utils/findmnt.8 | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) commit ad38fb9f9ff6eab932f1b0c46d079dae40139fdc Author: Karel Zak Date: Wed Apr 27 17:39:25 2011 +0200 findmnt: add --timeout option Signed-off-by: Karel Zak misc-utils/Makefile.am | 6 +++++- misc-utils/findmnt.c | 17 ++++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) commit 32e5466aa79fedaebf6e101fbfe22c0705805af9 Author: Karel Zak Date: Wed Apr 27 17:19:04 2011 +0200 findmnt: add --poll option The --poll functionality is based on poll(/proc/self/mountinfo) and mnt_tabdiff_* functions from libmount. $ findmnt --poll ACTION TARGET SOURCE FSTYPE OPTIONS mount /mnt/test /dev/sda1 ext3 rw,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered ... after "mount /dev/sda1 /mnt/test". Signed-off-by: Karel Zak misc-utils/findmnt.c | 261 ++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 232 insertions(+), 29 deletions(-) commit 0983b5f7e67c23c553d7c14ac8d1788b1dc19890 Author: Karel Zak Date: Wed Apr 27 17:17:16 2011 +0200 libmount: minor fix to mnt_tabdiff_* - tabdiff has to support NULL fs->source - disable some debug messages Signed-off-by: Karel Zak shlibs/mount/src/cache.c | 6 +++--- shlibs/mount/src/tab.c | 1 + shlibs/mount/src/tab_diff.c | 5 +++-- shlibs/mount/src/tab_parse.c | 6 ++++-- 4 files changed, 11 insertions(+), 7 deletions(-) commit ce56db846681ee5035411c63d3223424f224c7c8 Author: Karel Zak Date: Wed Apr 27 17:15:36 2011 +0200 lib: [tt.c] support fixed width and multiple tt_print_table() calls Signed-off-by: Karel Zak include/tt.h | 3 +++ lib/tt.c | 42 +++++++++++++++++++++++++++++++++++++----- 2 files changed, 40 insertions(+), 5 deletions(-) commit e86623f0425bb38569350037a1fb8bc389f1df59 Author: Karel Zak Date: Tue Apr 26 17:33:43 2011 +0200 libmount: add mnt_tabdiff_* functions Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 5 +- shlibs/mount/src/libmount.h.in | 22 ++ shlibs/mount/src/libmount.sym | 4 + shlibs/mount/src/mountP.h | 1 + shlibs/mount/src/tab_diff.c | 368 +++++++++++++++++++++++++++++++ tests/commands.sh.in | 1 + tests/expected/libmount/tabdiff-mount | 1 + tests/expected/libmount/tabdiff-move | 1 + tests/expected/libmount/tabdiff-remount | 2 + tests/expected/libmount/tabdiff-umount | 1 + tests/ts/libmount/files/mountinfo_mv | 32 +++ tests/ts/libmount/files/mountinfo_re | 32 +++ tests/ts/libmount/files/mountinfo_u | 31 +++ tests/ts/libmount/tabdiff | 31 +++ 14 files changed, 530 insertions(+), 2 deletions(-) commit 18486fbbbe323c3fe99f4601544cf731fbe3cc4d Author: Karel Zak Date: Tue Apr 26 16:34:16 2011 +0200 libmount: add mnt_reset_table() Signed-off-by: Karel Zak shlibs/mount/src/libmount.h.in | 1 + shlibs/mount/src/libmount.sym | 1 + shlibs/mount/src/tab.c | 29 ++++++++++++++++++++++++----- 3 files changed, 26 insertions(+), 5 deletions(-) commit f12aac6e3e440166917092a83cd76a6300077abd Author: Karel Zak Date: Tue Apr 26 16:32:09 2011 +0200 libmount: support NULL source path for mnt_table_find_* functions Signed-off-by: Karel Zak shlibs/mount/src/fs.c | 15 +++++++++++++-- shlibs/mount/src/tab.c | 32 +++++++++++++++++++------------- shlibs/mount/src/tab_update.c | 2 +- 3 files changed, 33 insertions(+), 16 deletions(-) commit b875d536d94f1870c46c11e75d261b27660145c2 Author: Samuel Thibault Date: Wed Apr 20 15:57:12 2011 +0200 build-sys: non-linux fixup Signed-off-by: Samuel Thibault configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 699abc838104ff18e0883d42cfdac60a7c9f03ab Author: Karel Zak Date: Thu Apr 21 14:53:23 2011 +0200 libmount: add support for x-* mount comments The current way how add any comment or extra information to /etc/fstab is to use comment="" mount option. This is not too elegant and readable if you want to add more than one comment. It seems better to add any generic prefix that will be used for all 3rd-party userspace mount options. Expected syntax is: x--[=] For example: x-systemd-bar=managed All x-* options (as well as comment=) are ignored by libmount and not stored to the mtab file. Requested-by: Lennart Poettering Signed-off-by: Karel Zak shlibs/mount/src/libmount.h.in | 2 ++ shlibs/mount/src/optmap.c | 15 ++++++++++++--- tests/expected/libmount/optstr-flags | 2 +- tests/expected/libmount/optstr-split | 2 +- tests/ts/libmount/optstr | 4 ++-- 5 files changed, 18 insertions(+), 7 deletions(-) commit 7f9d92499a35e0165cf863e71500ab3288cfa67a Author: Karel Zak Date: Tue Apr 19 13:39:35 2011 +0200 tests: don't run mount/regfile test on old kernel The /sys/.../loop/backing_file is available since 2.6.37. Signed-off-by: Karel Zak tests/ts/mount/regfile | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) commit b7d58a00774b6e35dfcb3ff3c5daaf6e8fc14687 Author: Karel Zak Date: Tue Apr 19 12:22:06 2011 +0200 tests: add test for RLIMIT_FSIZE issue Signed-off-by: Karel Zak tests/expected/mount/rlimit | 1 + tests/expected/mount/rlimit-mount | 1 + tests/expected/mount/rlimit-umount | 1 + tests/ts/mount/rlimit | 78 ++++++++++++++++++++++++++++++++++++ 4 files changed, 81 insertions(+), 0 deletions(-) commit 374ae4a5bd96a385ad8fc42e344394072f34d8cf Author: Karel Zak Date: Tue Apr 19 10:04:33 2011 +0200 tests: use libmount tab update tests for UID=0 only Signed-off-by: Karel Zak tests/ts/libmount/update | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit a2af4ceaae3108e60866ceb6ddd185f8ed373b58 Author: Karel Zak Date: Tue Apr 19 09:22:16 2011 +0200 getopt: fix gcc warning getopt.c:80:13: warning: ‘set_initial_shell’ declared ‘static’ but never defined Signed-off-by: Karel Zak getopt/getopt.c | 1 - mount/mount.c | 1 - 2 files changed, 0 insertions(+), 2 deletions(-) commit a7a4aa9857b977504edafd1fe74e50f26f9a510e Author: Karel Zak Date: Thu Apr 14 17:16:30 2011 +0200 mesg: add \n to usage() output Signed-off-by: Karel Zak term-utils/mesg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e1167ce2ec17bfd25c7edbc3d8299be2414e7e06 Author: Karel Zak Date: Thu Apr 14 17:11:23 2011 +0200 mesg: man page clean wqup Signed-off-by: Karel Zak term-utils/mesg.1 | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) commit 849c6ea3f711c8649d7f7248f5a08e8e32845493 Author: Sami Kerola Date: Sun Apr 10 16:24:23 2011 +0200 mesg: new --verbose option Signed-off-by: Sami Kerola term-utils/mesg.1 | 3 +++ term-utils/mesg.c | 13 +++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) commit ea87bbf679bccc04429c83591ba90b31153f2c66 Author: Sami Kerola Date: Sun Apr 10 16:24:22 2011 +0200 mesg: add long options to the man page Signed-off-by: Sami Kerola term-utils/mesg.1 | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) commit fe16e1251327902bfd18ae287328d4ef9eeb9c24 Author: Sami Kerola Date: Sun Apr 10 16:24:21 2011 +0200 mesg: use long options, also --help and --version added Signed-off-by: Sami Kerola term-utils/mesg.c | 37 ++++++++++++++++++++++++++++++------- 1 files changed, 30 insertions(+), 7 deletions(-) commit 70bedfa1dbbe81e326c826b91b21a088c33468da Author: Karel Zak Date: Thu Apr 14 13:43:11 2011 +0200 agetty: coding style - fix identation Signed-off-by: Karel Zak term-utils/agetty.c | 1911 +++++++++++++++++++++++++-------------------------- 1 files changed, 938 insertions(+), 973 deletions(-) commit b75c8134aa2eef7d1fc79ac523b484233ac22c62 Author: Karel Zak Date: Thu Apr 14 13:25:57 2011 +0200 agetty: coding style - fix comments, remove tailing whitespace Signed-off-by: Karel Zak term-utils/agetty.c | 93 +++++++++++++++++++++++---------------------------- 1 files changed, 42 insertions(+), 51 deletions(-) commit 72f286b5f6e84a39d96b915eed426caed460f801 Author: Sami Kerola Date: Sun Apr 10 12:16:15 2011 +0200 agetty: getopt case segment reordering The case clause after getopts is in alphabetical order, just like option string definition and manual page. The patch also convers spaces to tabs in this code block. Signed-off-by: Sami Kerola term-utils/agetty.c | 55 +++++++++++++++++++++++++-------------------------- 1 files changed, 27 insertions(+), 28 deletions(-) commit e9980cf8f11460f036195893b0514c3e41decbee Author: Sami Kerola Date: Sun Apr 10 12:16:14 2011 +0200 docs: agetty long options Long options to manual page with the new --version and --help. The manual page option order is also set to be the same as it is in code. For the persons who don't see the order it is short option case in sensitive alphabetical order. Signed-off-by: Sami Kerola term-utils/agetty.8 | 74 +++++++++++++++++++++++++++----------------------- 1 files changed, 40 insertions(+), 34 deletions(-) commit 214af4fd0f6d27dad13016111baf2446ca937ba3 Author: Sami Kerola Date: Sun Apr 10 12:16:13 2011 +0200 agetty: symbolic standard file descriptors I find it easier to read code in which standard file descriptors are symbolic strings rather than numbers. Signed-off-by: Sami Kerola term-utils/agetty.c | 49 +++++++++++++++++++++++++------------------------ 1 files changed, 25 insertions(+), 24 deletions(-) commit af19306b8d0a10c428ed428d45831ec973a7c170 Author: Sami Kerola Date: Sun Apr 10 12:16:12 2011 +0200 agetty: #endif comments The longer #ifdef ... #endif markups have now at the end section comment where they begun, which should improve preprosessor directive readability. Signed-off-by: Sami Kerola term-utils/agetty.c | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) commit 7c45597f918e4a31dc4f6a101ac8f3febf6841e6 Author: Sami Kerola Date: Sun Apr 10 12:16:11 2011 +0200 agetty: error message about required arguments This patch also fixes only remaining magical number to EXIT_* markup. Signed-off-by: Sami Kerola term-utils/agetty.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) commit 3b4113f2a6779ba8223215d284da872819ca9118 Author: Sami Kerola Date: Sun Apr 10 12:16:10 2011 +0200 agetty: use long options This patch will introducing --help and --version options, which does not have short version. Reason to this is a that the -h was already assigned. [kzak@redhat.com: - fix one usage call, - use %1$s in usage printf format - remove "static const" from enum] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak term-utils/agetty.c | 70 +++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 63 insertions(+), 7 deletions(-) commit 82cd61f25172948dd6300d0d0cf19d4ae187298e Author: Sami Kerola Date: Sun Apr 10 12:16:09 2011 +0200 agetty: use program_invocation_short_name Signed-off-by: Sami Kerola term-utils/agetty.c | 21 ++------------------- 1 files changed, 2 insertions(+), 19 deletions(-) commit be66a93afcef1da6a6b36a10dabcfef50aa63903 Author: Sami Kerola Date: Sun Apr 10 12:16:08 2011 +0200 agetty: use xalloc.h Unifies and fixes malloc and strdup calls. Signed-off-by: Sami Kerola term-utils/agetty.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) commit 86cd58706a4ce8909bf9c706dc9b808aeea4b295 Author: Karel Zak Date: Wed Apr 13 16:27:18 2011 +0200 libmount: use libmnt_lock for utab flock Signed-off-by: Karel Zak shlibs/mount/src/context.c | 25 ++++++---- shlibs/mount/src/lock.c | 5 +- shlibs/mount/src/tab_update.c | 104 +++++----------------------------------- 3 files changed, 32 insertions(+), 102 deletions(-) commit 5eb00eb43044032cad6407c1ea3fc05f28cff123 Author: Karel Zak Date: Wed Apr 13 15:38:10 2011 +0200 libmount: merge mtab and utab locking code Signed-off-by: Karel Zak shlibs/mount/src/lock.c | 269 +++++++++++++++++++++++++++++---------------- shlibs/mount/src/mountP.h | 3 + 2 files changed, 178 insertions(+), 94 deletions(-) commit 8f60ea34bd13af326995e326460036799780b5a2 Author: Karel Zak Date: Wed Apr 13 14:37:44 2011 +0200 libmount: block signals when update utab Signed-off-by: Karel Zak shlibs/mount/src/tab_update.c | 129 ++++++++++++++++++++++++++--------------- 1 files changed, 81 insertions(+), 48 deletions(-) commit 68af0bcc596ed5f074fafea55208b35cd945b072 Author: Karel Zak Date: Wed Apr 13 11:02:34 2011 +0200 libmount: more robust mtab and utab update (CVE-2011-1676, CVE-2011-1677) http://thread.gmane.org/gmane.comp.security.oss.general/4374 Changes: - always use temporary file - use fflush() for the temporary file - check fprintf() return value Signed-off-by: Karel Zak shlibs/mount/src/tab_update.c | 112 ++++++++++++++++++++++++++-------------- 1 files changed, 73 insertions(+), 39 deletions(-) commit 47a226b7e59ba8fc56603a20eec19ab69c9ccc4e Author: Karel Zak Date: Wed Apr 13 10:49:26 2011 +0200 mount: use lock from mnt_update_table() The mnt_update_table() is able to create a mtab lock now. Signed-off-by: Karel Zak mount/fstab.c | 19 ------------------- mount/fstab.h | 1 - mount/mount.c | 4 +--- mount/umount.c | 9 +++------ 4 files changed, 4 insertions(+), 29 deletions(-) commit d5bf8095091c2861ef2d60ceff4eba8049bb16af Author: Karel Zak Date: Wed Apr 13 10:11:50 2011 +0200 umount: block signals when umounting and updating mtab (CVE-2011-1676, CVE-2011-1677) http://thread.gmane.org/gmane.comp.security.oss.general/4374 Based on CVE-2011-1089. Signed-off-by: Karel Zak mount/umount.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit ceb012522c6c767a9c072705dd7b245cc696d1db Author: Karel Zak Date: Tue Apr 12 22:52:33 2011 +0200 mount: use fflush() and temporary file for mtab updates (CVE-2011-1089) http://thread.gmane.org/gmane.comp.security.oss.general/4374 Changes: - force mount(8) to use /etc/mtab.tmp file every time. The original code used the tmp file for remount/move operations only. - call and check fflush() return code for the tmp file Note mount(8) blocks all signals when writing to mtab, so it's not affected by SIGXFSZ and the mtab lock file is always removed. This patch does not fix the same issue in umount(8) and libmount. Signed-off-by: Karel Zak mount/fstab.c | 36 +++++++++++++++++++++++++++--------- mount/mount.c | 21 ++------------------- 2 files changed, 29 insertions(+), 28 deletions(-) commit 20f5be46ec57af3f21913c487000d69fb8857e18 Author: Nick Holloway Date: Sun Apr 10 13:35:56 2011 +0100 libblkid: remove test for non-zero head count in FAT superblock probe. This change enables the auto-detection of the internal storage on a VTech Kidizoom camera, which has a zero head count value in the superblock. Microsoft documentation, "FAT: General Overview of On-Disk Format", states that the sectors and heads fields are only relevant for media that have a geometry. The Linux kernel also does not require a non-zero head count, and can manually mount the filesystem. Signed-off-by: Nick Holloway shlibs/blkid/src/superblocks/vfat.c | 2 -- tests/expected/blkid/low-probe-fat16_noheads | 8 ++++++++ tests/ts/blkid/images-fs/fat16_noheads.img.bz2 | Bin 0 -> 336 bytes 3 files changed, 8 insertions(+), 2 deletions(-) commit 7ca59ef25f8ebed37ddcf51155954077e2654d1c Author: Sami Kerola Date: Sat Apr 9 21:40:45 2011 +0200 script: optional timing output file argument added And update to manual page accordingly. Signed-off-by: Sami Kerola term-utils/script.1 | 8 ++++++-- term-utils/script.c | 19 ++++++++++++------- 2 files changed, 18 insertions(+), 9 deletions(-) commit ed66f51588c0cb1e603fcf18184337b7ceabfb89 Author: Sami Kerola Date: Sat Apr 9 21:40:44 2011 +0200 docs: scriptreplay add note about new options Signed-off-by: Sami Kerola term-utils/scriptreplay.1 | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) commit 0da871b50d1da37d39aaf675369fbe917f21e5be Author: Sami Kerola Date: Sat Apr 9 21:40:43 2011 +0200 scriptreplay: allow arguments as command line switches The command line switches override old style arguments Signed-off-by: Sami Kerola Signed-off-by: Karel Zak term-utils/scriptreplay.c | 37 ++++++++++++++++++++++++++++--------- 1 files changed, 28 insertions(+), 9 deletions(-) commit 178365ef96e8742031158ca5c5aa29bb64075988 Author: Sami Kerola Date: Sat Apr 9 21:40:42 2011 +0200 docs: scriptreplay mention basic long options Signed-off-by: Sami Kerola term-utils/scriptreplay.1 | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit 84adb5e65e839164c717ad6e65eaee8096d48bf3 Author: Sami Kerola Date: Sat Apr 9 21:40:41 2011 +0200 scriptreplay: support long options Signed-off-by: Sami Kerola Signed-off-by: Karel Zak term-utils/scriptreplay.c | 47 ++++++++++++++++++++++++++++++++++++-------- 1 files changed, 38 insertions(+), 9 deletions(-) commit f004a02d80205e2491404de68fbcd107d325c138 Author: Sami Kerola Date: Sat Apr 9 21:40:40 2011 +0200 scriptreplay: end printing with new line Depending on opinion this is either modest bug fix or tiny improvement. Signed-off-by: Sami Kerola term-utils/scriptreplay.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit c8e32129ef6bf540b8d8fcd1d03a4b7c36ee9945 Author: Jan Engelhardt Date: Sat Apr 9 14:11:35 2011 +0200 libmount: avoid redundant declaration of mnt_context_do_umount Signed-off-by: Jan Engelhardt shlibs/mount/src/libmount.h.in | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 95fa64da98fcb9ab1cfbd51c93cf2ee4972a814e Author: Davidlohr Bueso Date: Fri Apr 8 21:20:53 2011 -0300 mkswap: add alignment check This patch produces the program to warn if the given device is misaligned. [kzak@redhat.com: - call the check for block devices only] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak disk-utils/mkswap.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit ba326929706ec4dc8ab8bc0a09868bcd6fd6d75f Author: Davidlohr Bueso Date: Fri Apr 8 21:20:49 2011 -0300 blkdev: add blkdev_is_misaligned() This functions returns the status of the device's alignment. It will be 0 when aligned, otherwise return the offset. [kzak@redhat.com: - returns 0 if the ioctl failed] Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak include/blkdev.h | 3 +++ lib/blkdev.c | 12 ++++++++++++ 2 files changed, 15 insertions(+), 0 deletions(-) commit 0a0803460c238b96e240de2158043505d914251f Author: Karel Zak Date: Tue Apr 12 12:58:17 2011 +0200 hexdump: don't include err.h directly text-utils/hexdump.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 9123987458684e6f6ada3cb7b1488dec3d25ec7d Author: Karel Zak Date: Tue Apr 12 12:57:56 2011 +0200 script: don't include err.h directly term-utils/script.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f10788cfc5005ee7c904148718231a36ac6db140 Author: Karel Zak Date: Tue Apr 12 12:37:57 2011 +0200 iosize: fix gcc warning isosize.c: In function ‘main’: isosize.c:168:8: warning: unused variable ‘p’ Signed-off-by: Karel Zak disk-utils/isosize.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 9404cc7f65217f205ef9bf994012d6f8ce4f4060 Author: Francesco Cosoleto Date: Fri Apr 8 15:51:50 2011 +0200 elvtune, isosize: print usage text in case of invalid option Signed-off-by: Francesco Cosoleto disk-utils/elvtune.c | 2 +- disk-utils/isosize.c | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) commit 4c0ecdd4e817a9d8ef89eb81110ba9446dc216d5 Author: Francesco Cosoleto Date: Fri Apr 8 15:51:49 2011 +0200 isosize: use program_invocation_short_name Signed-off-by: Francesco Cosoleto disk-utils/isosize.c | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) commit 73611843264fcd5b7c618c3ef95929d58227bc18 Author: Francesco Cosoleto Date: Fri Apr 8 15:51:48 2011 +0200 isosize: simplify some error messages perror() and fprintf() are replaced with err() calls Signed-off-by: Francesco Cosoleto Signed-off-by: Karel Zak disk-utils/isosize.c | 27 +++++++++------------------ 1 files changed, 9 insertions(+), 18 deletions(-) commit d35c34e9fcd47d232141d82cd52e47618a52f51a Author: Francesco Cosoleto Date: Fri Apr 8 15:51:47 2011 +0200 elvtune, isosize: remove redundant message in case of invalid option This leaves getopt() only to print a similar error message on invalid options. Signed-off-by: Francesco Cosoleto disk-utils/elvtune.c | 3 --- disk-utils/isosize.c | 2 -- 2 files changed, 0 insertions(+), 5 deletions(-) commit 236faa7eafb0a6728527ef3f327dabcaf2066b83 Author: Po-Yu Chuang Date: Fri Apr 8 17:35:53 2011 +0800 readprofile: don't stop parsing at __init_end Some architectures like ARM place __init_end before .text section. If any function in .init section is hit while profiling, readprofile stops at __init_end. That means if we enable profiling at boot time, the profiler probably hits init functions and readprofile does not work well unless we reset profiling buffer with -r option. Signed-off-by: Po-Yu Chuang sys-utils/readprofile.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 35b671371b307bd90e0f890cfa0526399a32b262 Author: Karel Zak Date: Tue Apr 12 11:50:00 2011 +0200 wall: support --timeout switch (vol 2.) This is the rest of the commit cae7485e59299c4b70ea7e1c7a4206df416701dc the original patch was committed without man page and Makefile changes. Sorry. Signed-off-by: Sami Kerola Signed-off-by: Karel Zak term-utils/Makefile.am | 2 +- term-utils/wall.1 | 5 +++++ 2 files changed, 6 insertions(+), 1 deletions(-) commit c666d1d170b2c38aec9f58d1edc1352adc7324ec Author: Karel Zak Date: Tue Apr 12 11:49:28 2011 +0200 wall: cleanup mbufsize usage Signed-off-by: Karel Zak term-utils/wall.c | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) commit cae7485e59299c4b70ea7e1c7a4206df416701dc Author: Sami Kerola Date: Wed Apr 6 21:31:04 2011 +0200 wall: support --timeout switch The switch controls message write time out to terminals. Signed-off-by: Sami Kerola term-utils/wall.c | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) commit e89c3891a5985cb922c098bd8195a9159b878455 Author: Sami Kerola Date: Wed Apr 6 21:31:03 2011 +0200 wall: add long options and 79 char cut info to the man page Mention that over 79 characters long lines are cut, while long options is an obvious change. Signed-off-by: Sami Kerola term-utils/wall.1 | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) commit 5e6bf8008bbc605929e5b884dc92b6c08b80d57b Author: Sami Kerola Date: Wed Apr 6 21:31:02 2011 +0200 ttymsg: fix compiler warnings and use EXIT_ [kzak@redhat.com: - remove 'register' storage class specifier] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak term-utils/ttymsg.c | 19 ++++++++++--------- term-utils/ttymsg.h | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) commit 76cc41b7fb8cab196ef690d09bf8dab0232ddeac Author: Sami Kerola Date: Wed Apr 6 21:31:01 2011 +0200 wall: use long options Also --version & --help options added, and rewrote help output. Signed-off-by: Sami Kerola Signed-off-by: Karel Zak term-utils/wall.c | 37 ++++++++++++++++++++++++++++++------- 1 files changed, 30 insertions(+), 7 deletions(-) commit 98e2d4deb36542f13211ed5d533461dd838c90a8 Author: Sami Kerola Date: Wed Apr 6 21:31:00 2011 +0200 wall: remove global variables and support TMPDIR The TMPDIR environment is preferred over _PATH_TMP in which a file is created that is ultimately sent to terminals. This patch will also fix compiler warnings and removes magical numbers, which has not explanation. Signed-off-by: Sami Kerola Signed-off-by: Karel Zak term-utils/wall.c | 74 +++++++++++++++++++++++++++++++++------------------- 1 files changed, 47 insertions(+), 27 deletions(-) commit ca6182333e1417bde216abd8e223f23989a45445 Author: Karel Zak Date: Tue Apr 12 10:05:25 2011 +0200 mount: add note about blank lines to fstab.5 Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=694648 Signed-off-by: Karel Zak mount/fstab.5 | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) commit 531019d5c358bead52adb2cfce0eb92544d722de Author: Karel Zak Date: Mon Apr 11 14:05:57 2011 +0200 umount: support non-canonical devnames in mtab Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/755193 Signed-off-by: Karel Zak mount/fstab.c | 13 +++++++++++++ mount/umount.c | 5 ++++- 2 files changed, 17 insertions(+), 1 deletions(-) commit 7312c4ad186cdc0b150c303babae44f5809fb014 Author: Karel Zak Date: Fri Apr 8 10:15:06 2011 +0200 docs: update TODO Signed-off-by: Karel Zak TODO | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) commit 9497ebb074dcb2ee42cb6cbfbdd7faae6715e613 Author: Karel Zak Date: Wed Apr 6 11:24:23 2011 +0200 setterm: use xmalloc() Signed-off-by: Karel Zak term-utils/setterm.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) commit 172ba4f2a8fd4f075c709524a8f1ba7d87edf722 Author: Sami Kerola Date: Sun Apr 3 11:10:55 2011 +0200 setterm: fix variable types, and unused argument warnings Signed-off-by: Sami Kerola term-utils/setterm.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) commit 935052005335cb4d29400da41704d2b8430ea09d Author: Sami Kerola Date: Sat Apr 2 22:56:54 2011 +0200 setterm: add note about long dump file paths to man page Signed-off-by: Sami Kerola term-utils/setterm.1 | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit a973947c8822c5172d4daf96a415665c3f6b921d Author: Sami Kerola Date: Sat Apr 2 22:56:53 2011 +0200 setterm: function screendump coding style fixed Signed-off-by: Sami Kerola term-utils/setterm.c | 121 +++++++++++++++++++++++++------------------------- 1 files changed, 61 insertions(+), 60 deletions(-) commit 6e8e22adf69b2691da26ccb7a61458c7aa940739 Author: Sami Kerola Date: Sun Apr 3 11:10:56 2011 +0200 setterm: mention in man setterm.1 -version and -help switches Signed-off-by: Sami Kerola term-utils/setterm.1 | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 261f1423fba38da93aa253363fb444f54af12532 Author: Sami Kerola Date: Sat Apr 2 22:56:52 2011 +0200 setterm: use libc error printing facilities Signed-off-by: Sami Kerola Signed-off-by: Karel Zak term-utils/setterm.c | 48 +++++++++++++++++++++++++++--------------------- 1 files changed, 27 insertions(+), 21 deletions(-) commit faa0548de47df5691cf56dd49daaba8dbc89d34a Author: Sami Kerola Date: Sat Apr 2 22:56:51 2011 +0200 setterm: support -help and -version options [kzak@redhat.com: - merge all options to the one string] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak term-utils/setterm.c | 126 ++++++++++++++++++++++++++------------------------ 1 files changed, 65 insertions(+), 61 deletions(-) commit 2971543625817182ec009f97f93a2157c6c09fed Author: Sami Kerola Date: Sat Apr 2 22:56:50 2011 +0200 setterm: segfault with long dump file name The patch will make too long path to be truncated to MAX_PATH lenght. If user supplies too long file name that is caught at fopen. Some users might find this unintuitive, so the altered behavior will be mantioned in manual page. Bug in earlier version was visible with a command bellow. setterm -dump -file $(for i in $(seq 254); do printf x ; done) Signed-off-by: Sami Kerola term-utils/setterm.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit a29e40cad5cbb5edf219d42d80acdd4f62a28a8c Author: Sami Kerola Date: Sat Apr 2 18:30:40 2011 +0200 column: use xalloc lib Signed-off-by: Sami Kerola text-utils/column.c | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) commit 07dcb82d06df7c5996555a97abebc71b74d726ba Author: Sami Kerola Date: Sat Apr 2 18:11:10 2011 +0200 rev: mention long options in man page Signed-off-by: Sami Kerola text-utils/rev.1 | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit ca96c6ac52d5c25a7f3e8d2b5b433faf1ad47bc0 Author: Sami Kerola Date: Sat Apr 2 18:11:09 2011 +0200 rev: option parsing bug fixed & long options added The former getopts segment gave impression unknown options will cause the program to exit with error and help is available with -h. Neither work quite as designed, all unknown options made the program to exit with success; and none of the options where known. The fix also has support for long options, and new --version switch. Signed-off-by: Sami Kerola text-utils/rev.c | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) commit 2226064c52af6ae5d5c8871056aede10a7d14b97 Author: Sami Kerola Date: Sat Apr 2 18:11:08 2011 +0200 rev: memory leak fix Moving the malloc out of loop will make leak to disappear, and the command might run few jiffie quicker when there are 1+N arguments. Signed-off-by: Sami Kerola text-utils/rev.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 099bce7f5d607bb8012faf4dc9fe6e034532eefe Author: Sami Kerola Date: Sat Apr 2 18:11:07 2011 +0200 rev: use xrealloc from xalloc.h Signed-off-by: Sami Kerola text-utils/rev.c | 10 +--------- 1 files changed, 1 insertions(+), 9 deletions(-) commit 1d6a5daa58097a34ea9e2b944ec0eb57e54d37b6 Author: Davidlohr Bueso Date: Thu Mar 31 16:08:04 2011 -0300 partx: trivial comment fix Replace atgv for argv Signed-off-by: Davidlohr Bueso partx/partx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0a626987e244b6fa30c18cfa86d12cd80b3977e8 Author: Olivier Mengué Date: Sun Mar 27 18:29:56 2011 +0200 getopt: add static qualifiers Signed-off-by: Olivier Mengué getopt/getopt.c | 52 ++++++++++++++++++++++++++-------------------------- 1 files changed, 26 insertions(+), 26 deletions(-) commit 488c033f2a596b41179fa7776ece6bb84d1707fc Author: Karel Zak Date: Tue Apr 5 16:38:06 2011 +0200 build-sys: remove check-news I need to call "make distcheck" often during development phase to check that all files are correctly added to Makefiles. The "check-new" automake option is useless if $(VERSION) is generated from git. Signed-off-by: Karel Zak configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 38c75b59e357c03877ccfc377c6d4400c9610c93 Author: Sami Kerola Date: Thu Mar 31 22:10:07 2011 +0200 build-sys: use git-version-gen to distinct git and release versions The script is copied as is from gnulib. [kzak@redhat.com: - generate .tarball-version and .version files in top level Makefile.am - delete autom4te.cache in autogen.sh] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak .gitignore | 2 + Makefile.am | 11 +++ autogen.sh | 2 + configure.ac | 4 +- tools/git-version-gen | 172 +++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 190 insertions(+), 1 deletions(-) commit fb9d90d552a5043a994c9ba61f6876ac30143412 Author: Karel Zak Date: Tue Apr 5 14:17:51 2011 +0200 libmount: fix parsing of mountinfo from 2.6.39 The /proc/self/mountinfo file uses " - " field as a separator between optional fields and next fields in the file. The '-' char could be used in the fields (for example in UUIDs), so it's necessary to check for whole " - " string rather than for '-' char only. Reported-by: "Aneesh Kumar K. V" Signed-off-by: Karel Zak shlibs/mount/src/tab_parse.c | 29 +++++++++++++++++++++-------- 1 files changed, 21 insertions(+), 8 deletions(-) commit c738bc32a440b83d5cd87bd908e869c6792b7737 Author: Karel Zak Date: Mon Apr 4 10:53:07 2011 +0200 build-sys: fix distcheck for term-utils Signed-off-by: Karel Zak term-utils/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 2a1d943dab43e28be6fe34600b696482e9aa6338 Author: Karel Zak Date: Fri Apr 1 14:17:51 2011 +0200 libmount: add mountpoint(1) implementation to samples/ shlibs/mount/samples/.gitignore | 1 + shlibs/mount/samples/Makefile.am | 2 +- shlibs/mount/samples/mountpoint.c | 174 +++++++++++++++++++++++++++++++++++++ 3 files changed, 176 insertions(+), 1 deletions(-) commit f19c952b2fc07ddd7a698cf3a213a9a16d13e7ba Author: Karel Zak Date: Fri Apr 1 09:03:39 2011 +0200 umount: use helper= for all UIDs Signed-off-by: Karel Zak mount/mount.c | 4 ++-- mount/umount.8 | 9 ++++----- mount/umount.c | 16 +++++++++------- shlibs/mount/src/context_umount.c | 6 +++--- shlibs/mount/src/libmount.h.in | 2 +- shlibs/mount/src/optmap.c | 2 +- 6 files changed, 20 insertions(+), 19 deletions(-) commit a362ae601a4f047d56fc8487155733309da5a7ec Author: Karel Zak Date: Thu Mar 31 21:26:57 2011 +0200 libmount: support /run/mount rather than /dev/.mount The /run directory should be preferred on distributions where this directory exists. http://thread.gmane.org/gmane.linux.redhat.fedora.devel/146976 Signed-off-by: Karel Zak shlibs/mount/src/context.c | 4 ++-- shlibs/mount/src/fs.c | 4 ++-- shlibs/mount/src/libmount.h.in | 2 +- shlibs/mount/src/mountP.h | 8 ++++++-- shlibs/mount/src/tab_parse.c | 4 ++-- shlibs/mount/src/tab_update.c | 6 +++--- shlibs/mount/src/utils.c | 16 ++++++++++++---- 7 files changed, 28 insertions(+), 16 deletions(-) commit cafeed67245c083e722f0de09e0cff25cb37ae8b Author: Karel Zak Date: Thu Mar 31 14:47:45 2011 +0200 tests: add dump from PPC64 to lscpu tests Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-ppc64-POWER7 | 31 ++++++++++++++++++++++++++++++ tests/ts/lscpu/dumps/ppc64-POWER7.tar.gz | Bin 0 -> 14350 bytes 2 files changed, 31 insertions(+), 0 deletions(-) commit c487c90ccdb876709822dccc97054af190d77ea3 Author: Karel Zak Date: Thu Mar 31 14:30:06 2011 +0200 lscpu: detect sun4{u,v} in /proc/cpuinfo for sparc64 Signed-off-by: Karel Zak sys-utils/lscpu.c | 5 ++++- tests/expected/lscpu/lscpu-sparc64-UltraSparc-T1 | 1 + 2 files changed, 5 insertions(+), 1 deletions(-) commit 2b9ced6859d0c0956776fca2969859bc213118aa Author: Karel Zak Date: Thu Mar 31 14:12:35 2011 +0200 tests: add dump from UltraSparc T1 to lscpu tests Thanks to Jan Engelhardt. Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-sparc64-UltraSparc-T1 | 37 +++++++++++++++++++++ tests/ts/lscpu/dumps/sparc64-UltraSparc-T1.tar.gz | Bin 0 -> 23071 bytes 2 files changed, 37 insertions(+), 0 deletions(-) commit fa043039e9d0fffb2d2c5d4abdc4cd3532c24451 Author: Karel Zak Date: Thu Mar 31 14:11:26 2011 +0200 tests: add dump from huge ia64 to lscpu tests Thanks to Jan Engelhardt. Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-ia64-512cpus | 654 ++++++++++++++++++++++++++++++ tests/ts/lscpu/dumps/ia64-512cpus.tar.gz | Bin 0 -> 67254 bytes 2 files changed, 654 insertions(+), 0 deletions(-) commit 4e740fd81a8722e7bcfc04d44d0c1d2327b1da02 Author: Karel Zak Date: Thu Mar 31 13:09:50 2011 +0200 lscpu: fix op-mode for /{sys,proc} dumps Signed-off-by: Karel Zak sys-utils/lscpu.c | 5 +++++ tests/expected/lscpu/lscpu-i386-dellpe700 | 1 - 2 files changed, 5 insertions(+), 1 deletions(-) commit e282eec2a259903a02841f516b7778a1f639d8ff Author: Karel Zak Date: Thu Mar 31 12:55:13 2011 +0200 lscpu: fix threads-per-core calculation On Thu, Mar 24, 2011 at 01:45:34PM +0100, Jan Engelhardt wrote: > On a 24-thread/6-core SPARC T1, lscpu would wrongly output "5 > threads per core". > > It seems that the 6c T1 is simply an 8c T1 where 2c are disabled > (offering a lesser model for a lower price, and all that marketing > fluff). So the machine description header of the 6c T1 reports 32 > threads, but only goes on to provide 24 elements thereafter, which > is why Linux will report threads 24-31 as "offline". So far so good. > > But lscpu would take the number of all (online and offline) threads > (32) and divides it by the number of online cores (6), which yields > an odd 5.33 threads/core. > > Simply pick the number of online threads. Based on Jan's patch. Reported-by: Jan Engelhardt Signed-off-by: Karel Zak sys-utils/lscpu.c | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) commit f0fc846a532befa1c37e2da97ecb97fe2031c26d Author: Karel Zak Date: Thu Mar 31 11:39:01 2011 +0200 login: fix checktty test to compile with old glibc Reported-by: "Gabor Z. Papp" Signed-off-by: Karel Zak login-utils/checktty.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit b192b7b9a6b2e52fd266315cf13d04d2658e8133 Author: Petr Uzel Date: Thu Mar 31 00:05:01 2011 +0200 libmount: plug memory leak in sample program Signed-off-by: Petr Uzel Signed-off-by: Karel Zak shlibs/mount/samples/mount.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 6ad929bbac6b044bff22dbe4be2d11191e7efec8 Author: Petr Uzel Date: Thu Mar 31 00:01:33 2011 +0200 libmount: fix some typos and copy&paste mistakes in comments Signed-off-by: Petr Uzel shlibs/mount/src/mountP.h | 20 ++++++++++---------- shlibs/mount/src/tab_parse.c | 6 +++--- shlibs/mount/src/utils.c | 13 ++++++------- 3 files changed, 19 insertions(+), 20 deletions(-) commit 2b6bd96f2b9998d573a5241c9e299ff4dd14bd2a Author: Karel Zak Date: Wed Mar 30 23:52:56 2011 +0200 libmount: fix memory leak in cache Reported-by: Petr Uzel Signed-off-by: Karel Zak shlibs/mount/src/cache.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 4b658e0997ad63088782635acab0bca9bb46ad3d Author: Karel Zak Date: Wed Mar 30 15:40:56 2011 +0200 libmount: add phelper= support Signed-off-by: Karel Zak shlibs/mount/src/context_umount.c | 59 ++++++++++++++++++++++++++---------- shlibs/mount/src/libmount.h.in | 1 + shlibs/mount/src/optmap.c | 2 + 3 files changed, 45 insertions(+), 17 deletions(-) commit afa2dd42159b3c385aff9f1c3e90194c4fa6e54e Author: Karel Zak Date: Wed Mar 30 14:56:33 2011 +0200 mount: add phelper= Signed-off-by: Karel Zak mount/mount.c | 3 ++- mount/umount.8 | 12 ++++++++---- mount/umount.c | 48 ++++++++++++++++++++++++++++++++---------------- 3 files changed, 42 insertions(+), 21 deletions(-) commit 6f5788c5926741fb3c44bb33fe511c555f155a86 Author: Karel Zak Date: Wed Mar 30 13:58:04 2011 +0200 libmount: small lock code cleanup Signed-off-by: Karel Zak shlibs/mount/src/lock.c | 29 +++++++++++++++-------------- shlibs/mount/src/tab_update.c | 21 ++++++++++++--------- shlibs/mount/src/utils.c | 4 ++-- 3 files changed, 29 insertions(+), 25 deletions(-) commit 66bb8267103df6658ee984a89f1d8445f42d072e Author: Karel Zak Date: Wed Mar 30 13:00:03 2011 +0200 libmount: use chdir() and NOFOLLOW umount flag for umount operation Signed-off-by: Karel Zak shlibs/mount/src/context_mount.c | 2 +- shlibs/mount/src/context_umount.c | 41 ++++++++++++++++++++- shlibs/mount/src/mountP.h | 1 + shlibs/mount/src/utils.c | 73 +++++++++++++++++++++++++++++++++++++ 4 files changed, 114 insertions(+), 3 deletions(-) commit a2c90d998e4afb1083f6d807b1e2e9dfcc7c927c Author: Karel Zak Date: Wed Mar 30 12:39:24 2011 +0200 libmount: fix test Signed-off-by: Karel Zak shlibs/mount/src/Makefile.am | 2 +- shlibs/mount/src/tab_update.c | 1 - 2 files changed, 1 insertions(+), 2 deletions(-) commit 701b48cf0182e2324270608b305aa9c329066900 Author: Karel Zak Date: Wed Mar 30 11:30:23 2011 +0200 libmount: cleanup umount code This patch removes obsolete stuff. The minimal requirement for libmount umount code is Linux >= 2.4.11. Signed-off-by: Karel Zak shlibs/mount/src/context_umount.c | 67 ++++++++++++++++--------------------- 1 files changed, 29 insertions(+), 38 deletions(-) commit 5976114f628c96285c9b3f2cc55994f216afe6f2 Author: Karel Zak Date: Wed Mar 30 09:30:05 2011 +0200 libmount: block signals when writing to mtab Signed-off-by: Karel Zak shlibs/mount/src/context.c | 26 ++++++++++++++++------- shlibs/mount/src/libmount.h.in | 1 + shlibs/mount/src/libmount.sym | 1 + shlibs/mount/src/lock.c | 43 +++++++++++++++++++++++++++++++++++++++- shlibs/mount/src/tab_update.c | 28 ++++++++++--------------- 5 files changed, 73 insertions(+), 26 deletions(-) commit 1bc386e51343909c012e69d43b9c7799ed41d6a4 Author: Karel Zak Date: Wed Mar 30 00:27:29 2011 +0200 docs: update TODO Signed-off-by: Karel Zak TODO | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) commit 94b7e03d4fb989e1659b45a9bfbc0bc10c21a380 Author: Karel Zak Date: Wed Mar 30 00:10:00 2011 +0200 docs: update TODO Signed-off-by: Karel Zak TODO | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit 305a6122514fa4ee33f8815fb649ebce03c20545 Author: Sergey Gusarov Date: Fri Mar 25 16:54:05 2011 +0300 blkid: small fix for safe_print() This small fix makes it possible to print the first unprintable character with code 128 from ASCII table. Signed-off-by: Sergey Gusarov misc-utils/blkid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b7cdab2a4799de50cb6bcc387c5c602910f10d0b Author: Karel Zak Date: Tue Mar 29 10:19:56 2011 +0200 umount: use UMOUNT_NOFOLLOW for non-root users The UMOUNT_NOFOLLOW umount2() flag is supported since kernel 2.6.34. Signed-off-by: Karel Zak mount/umount.c | 98 +++++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 87 insertions(+), 11 deletions(-) commit 36a74e1b450f95767671df44bee9c73f21e2dec5 Author: Karel Zak Date: Tue Mar 29 11:44:29 2011 +0200 blkid: add -d option to print non-printable chars Reported-by: laborer2008 laborer Signed-off-by: Karel Zak misc-utils/blkid.8 | 7 ++++++- misc-utils/blkid.c | 24 ++++++++++++++++-------- 2 files changed, 22 insertions(+), 9 deletions(-) commit 741a5b1085c6e47c8076b9960fa59cd5dd204b96 Author: Karel Zak Date: Tue Mar 29 10:45:57 2011 +0200 partx: add fallback for openat() to be usable on old systems Reported-by: "Gabor Z. Papp" Signed-off-by: Karel Zak partx/Makefile.am | 1 + partx/partx.c | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) commit 7cf78990fc3ff7265c2dcb9606b63aeb0d9f8bd1 Author: Davidlohr Bueso Date: Tue Mar 22 10:42:09 2011 -0300 include: [c.h] add definition wrappers for old libc versions Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak include/c.h | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) commit 7cf389f735656ed9ee2dc2b6d2c61427a80ee796 Author: Karel Zak Date: Mon Mar 28 23:28:45 2011 +0200 libmount: fix leak in sample program Signed-off-by: Karel Zak shlibs/mount/samples/mount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit c570f567eb4ab90e9d28853da48d1600782d0b19 Author: Karel Zak Date: Mon Mar 28 12:40:24 2011 +0200 libmount: create a default lock for mtab update Now it's necessary to explicitly create a lock for mnt_update_table(). It seems better to create the lock in mnt_update_table() by default to skip this extra step. Reported-by: Jan Engelhardt Signed-off-by: Karel Zak shlibs/mount/src/tab_update.c | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) commit cc3c3fdd29719883605687fc0d11391386ab46c6 Author: Sami Kerola Date: Tue Mar 15 21:58:07 2011 +0100 build-sys: do not ignore datarootdir Fix to the ./configure warning which has been printed since autotools version 2.59c (released at April 2006). WARNING: 'po/Makefile.in.in' seems to ignore the --datarootdir setting Signed-off-by: Sami Kerola Signed-off-by: Karel Zak autogen.sh | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit c48b9ce9ea04fe0e53bcd488617f3dd4b221c249 Author: Karel Zak Date: Tue Mar 22 10:11:26 2011 +0100 docs: update TODO Signed-off-by: Karel Zak TODO | 17 ----------------- 1 files changed, 0 insertions(+), 17 deletions(-) commit f9eec418383447bf1be47e7570a3cf677153a458 Author: Karel Zak Date: Tue Mar 22 09:54:57 2011 +0100 lib: [fsprobe.c] fix blkid_evaluate_spec() call lib/fsprobe.c:56:2: warning: passing argument 2 of ‘blkid_evaluate_spec’ from incompatible pointer type shlibs/blkid/src/blkid.h:189:14: note: expected ‘struct blkid_struct_cache **’ but argument is of type ‘blkid_cache’ Signed-off-by: Karel Zak lib/fsprobe.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 95cc3573e170b324b80074e92056bff43ebb730d Author: Karel Zak Date: Fri Mar 18 10:27:09 2011 +0100 ddate: use ARRAY_SIZE Signed-off-by: Karel Zak misc-utils/ddate.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 2534eb300366b4741dbcd653619bf83f4b99f877 Author: Karel Zak Date: Fri Mar 18 10:25:42 2011 +0100 ddate: remove non-ascii chars from ddate Signed-off-by: Karel Zak misc-utils/ddate.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 127b12dcf6bd1a150fa2ebdec3161fcddab9ada6 Author: Karel Zak Date: Fri Mar 18 09:52:07 2011 +0100 tailf: support --lines 0 Signed-off-by: Karel Zak text-utils/tailf.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5af1532e05f91a09e8578ffa9d8be716b282f302 Author: Karel Zak Date: Fri Mar 18 09:21:32 2011 +0100 libmount: rename mount option "quiet" to "silent" See commit 2ac1890aa0d8ce404528587134fcabe0e2834963. Signed-off-by: Karel Zak shlibs/mount/src/libmount.h.in | 4 ++-- shlibs/mount/src/optmap.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) commit 112b3813d2e34b6aa4f983ce175889fff2704ff0 Author: Karel Zak Date: Thu Mar 17 22:58:05 2011 +0100 fdisk: check index before access to array [coverity scan] Signed-off-by: Karel Zak fdisk/fdisksgilabel.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 5298f72839cb44e2ae9d4407375674ba50f9b1c0 Author: Karel Zak Date: Thu Mar 17 12:51:06 2011 +0100 libblkid: add blkid_evaluate_spec() The function blkid_evaluate_tag() is useful for tags only (e.g. LABEL=foo). But we also need to address devices by tags OR paths in many utils. The function blkid_evaluate_spec() support this functionality without extra care about the way how device is addressed. The tags as well as paths are converted to the standardized device path. Signed-off-by: Karel Zak lib/fsprobe.c | 21 +-------------------- shlibs/blkid/src/blkid.h.in | 1 + shlibs/blkid/src/blkid.sym | 15 ++++++++++++--- shlibs/blkid/src/evaluate.c | 42 +++++++++++++++++++++++++++++++++++++----- 4 files changed, 51 insertions(+), 28 deletions(-) commit 70cc35de731d70a725a60ec67771e6ea7c163b25 Author: Karel Zak Date: Wed Mar 16 17:48:47 2011 +0100 lib: [fsprobe.c] remove obsolete Signed-off-by: Karel Zak lib/fsprobe.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit 64d15476c06d0ff05cdccb4b5fc587adf56e1a85 Author: Karel Zak Date: Wed Mar 16 17:45:53 2011 +0100 build-sys: don't use HAVE_LIBBLKID_INTERNAL macro Signed-off-by: Karel Zak disk-utils/mkswap.c | 4 ++-- fdisk/cfdisk.c | 6 +++--- fdisk/fdisk.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) commit b98ae9c2e85e67b8efa588d4e7c61ccfafba66dd Author: Karel Zak Date: Wed Mar 16 17:39:54 2011 +0100 build-sys: clean up partx Makefile Signed-off-by: Karel Zak Makefile.am | 2 +- configure.ac | 26 +++++++++++++++++++------- partx/Makefile.am | 11 ++--------- 3 files changed, 22 insertions(+), 17 deletions(-) commit b1ef3ad66b7f52c37d5be2a4471e8f37b2a2b30b Author: Karel Zak Date: Wed Mar 16 17:31:50 2011 +0100 build-sys: don't support external (e2fsprogs) libblkid Signed-off-by: Karel Zak Makefile.am | 2 -- configure.ac | 32 +------------------------------- disk-utils/Makefile.am | 8 ++------ fdisk/Makefile.am | 1 - fsck/Makefile.am | 5 ----- mount/Makefile.am | 4 ---- 6 files changed, 3 insertions(+), 49 deletions(-) commit 7ee96990c0a0ec691871c2adce082d6411345bb5 Author: Karel Zak Date: Wed Mar 16 17:04:21 2011 +0100 build-sys: include rather than Signed-off-by: Karel Zak disk-utils/mkswap.c | 6 +----- disk-utils/swaplabel.c | 6 +----- shlibs/blkid/src/probe.c | 6 +----- 3 files changed, 3 insertions(+), 15 deletions(-) commit 403e2d0c026d689baabcc4781d94ca09c2b87683 Author: Karel Zak Date: Wed Mar 16 17:03:48 2011 +0100 build-sys: don't support external (e2fsprogs) libuuid Signed-off-by: Karel Zak configure.ac | 23 +---------------------- disk-utils/Makefile.am | 5 ----- shlibs/blkid/src/Makefile.am | 7 +------ 3 files changed, 2 insertions(+), 33 deletions(-) commit b9eb3c1131ccef1438d157370022b4a09cf5c8d4 Author: Karel Zak Date: Wed Mar 16 16:22:36 2011 +0100 lib: [fsprobe.c] use internal libblkid only fsck, mount and swapon will be compilable with libblkid from util-linux package. The old libblkid from e2fsprogs will not be supported. Signed-off-by: Karel Zak lib/fsprobe.c | 118 ++++++++------------------------------------------------ 1 files changed, 17 insertions(+), 101 deletions(-) commit 7e256156f4a8650f0e5c5aaea9cf93d9bf3e1294 Author: Karel Zak Date: Wed Mar 16 14:06:23 2011 +0100 libblkid: use blkid_probe_get_buffer() more carefully Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/hfs.c | 6 ++++-- shlibs/blkid/src/superblocks/udf.c | 8 +++++--- shlibs/blkid/src/superblocks/vfat.c | 8 +++++--- 3 files changed, 14 insertions(+), 8 deletions(-) commit b8729267134df1f70e5fe9a3763d805a6cbd767c Author: Karel Zak Date: Tue Mar 15 13:59:55 2011 +0100 Revert "umount: call /sbin/umount. for root user too" This reverts commit c56226697342ddd663492f77768e7a7cb8e579a1. mount/umount.8 | 4 ++++ mount/umount.c | 33 +++++++++++++++++---------------- 2 files changed, 21 insertions(+), 16 deletions(-) commit c56226697342ddd663492f77768e7a7cb8e579a1 Author: Karel Zak Date: Tue Mar 15 10:31:06 2011 +0100 umount: call /sbin/umount. for root user too Originally the "uhelper=" was ignored for root, now the umount command calls /sbin/umount. always. This change is necessary for things like pam_mount where a device has to be uninitialized by uhelper rather than directly umounted by umount(2). Note that all uhelpers has to be linked with libmount or execute umount -fake -i /mountpoint to remove mountpoint entry from /etc/mtab or /dev/.mount/utab. Signed-off-by: Karel Zak mount/umount.8 | 4 ---- mount/umount.c | 33 ++++++++++++++++----------------- 2 files changed, 16 insertions(+), 21 deletions(-) commit 5982583a4e5fdba35e496a19f94fc6400d3cfeae Author: Karel Zak Date: Mon Mar 14 14:33:53 2011 +0100 libmount: cleanup *_do_[u]mount() return codes and docs Signed-off-by: Karel Zak shlibs/mount/src/context.c | 5 ++++- shlibs/mount/src/context_mount.c | 22 +++++++++++++++++----- shlibs/mount/src/context_umount.c | 22 +++++++++++++++++----- 3 files changed, 38 insertions(+), 11 deletions(-) commit 2ac1890aa0d8ce404528587134fcabe0e2834963 Author: Karel Zak Date: Fri Mar 11 16:58:27 2011 +0100 mount: rename "quiet" to "silent" (MS_SILENT) The quiet mount option was in collision with vfat and hfs mount options. The option was also undocumented -- so it's probably safe to rename the option than add some ugly hacks or exceptions for vfat/hfs to the mount(8) code. Reported-by: https://bugzilla.redhat.com/show_bug.cgi?id=622089 Signed-off-by: Karel Zak mount/mount.8 | 6 ++++++ mount/mount.c | 2 +- mount/mount_constants.h | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) commit a4a19185903343a679fde854ff51e7d00431f888 Author: Karel Zak Date: Fri Mar 11 16:21:20 2011 +0100 tests: update GPT test Signed-off-by: Karel Zak tests/expected/blkid/lowprobe-pt-gpt | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 37beb702a87347d0b10b1abef32c77f6f9db61d8 Author: Karel Zak Date: Fri Mar 11 16:12:20 2011 +0100 blkid: fix double free [coverity scan] Signed-off-by: Karel Zak misc-utils/blkid.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) commit feb81b6897115392d536c2c0e1621908197a496b Author: Karel Zak Date: Fri Mar 11 15:30:27 2011 +0100 lib: [tt.c] use mbs_truncate() from mbsalign.c Signed-off-by: Karel Zak lib/Makefile.am | 2 +- lib/tt.c | 67 ++--------------------------------------------- misc-utils/Makefile.am | 3 +- partx/Makefile.am | 1 + 4 files changed, 7 insertions(+), 66 deletions(-) commit 7b6911e9aece532bf69e5e411912690e5536480f Author: Karel Zak Date: Fri Mar 11 15:00:30 2011 +0100 lib: [tt.c] dereferencing data before a null check [coverity scan] Signed-off-by: Karel Zak lib/tt.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 9e57f24771fc66b5aa1d5afb0893047dcaa53edc Author: Karel Zak Date: Fri Mar 11 14:25:45 2011 +0100 tailf: fix open() return value check [coverity scan] Signed-off-by: Karel Zak text-utils/tailf.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit c0f6d6d0c4d311a9ca7d29024e9d2e01756f0bdd Author: Karel Zak Date: Fri Mar 11 14:15:47 2011 +0100 fsck.minix: use lib/ismounted.c Signed-off-by: Karel Zak disk-utils/Makefile.am | 2 +- disk-utils/fsck.minix.c | 26 ++++---------------------- 2 files changed, 5 insertions(+), 23 deletions(-) commit 1734f82c2435c35a9b575297a93942cf880b5913 Author: Karel Zak Date: Fri Mar 11 13:57:14 2011 +0100 libmount: keep code more readable for analyzers [coverity scan] This is not a bug ('ent' is always non-NULL is 'm' is non-NULL), but let's keep static analyzes and humans who read the code happy. Signed-off-by: Karel Zak shlibs/mount/src/optstr.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit c9a21ec00c224e0afe734409684292a99d933c6d Author: Karel Zak Date: Fri Mar 11 13:40:33 2011 +0100 libblkid: fix typo in *_to_cpu() usage in raid detection [coverity scan] Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/linux_raid.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit ed34643cbc78a018302789a7c1f51a833f8e5031 Author: Karel Zak Date: Fri Mar 11 13:36:00 2011 +0100 lsblk: fix strtoul() usage [coverity scan] Signed-off-by: Karel Zak misc-utils/lsblk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 385c3535ee755a7ccab70e60c9d369b5a3c4173a Author: Karel Zak Date: Fri Mar 11 13:31:07 2011 +0100 libblkid: add PART_ENTRY_* to docs Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 2 +- shlibs/blkid/src/partitions/partitions.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletions(-) commit e3963f60134722065d7d7cb95f347208e5b7a812 Author: Karel Zak Date: Fri Mar 11 13:23:17 2011 +0100 findmnt: check mnt_tab_next_fs() return code [coverity scan] Signed-off-by: Karel Zak misc-utils/findmnt.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 465e9973848fc7398722b16d948a0d37cb51126f Author: Samuel Thibault Date: Thu Mar 3 02:18:32 2011 +0100 hwclock: build on non-Linux Thanks to the direct ISA method and by disabling the RTC get/set epoch functionality, hwclock can work fine on non-Linux systems which provide ioperm or iopl. Signed-off-by: Samuel Thibault Makefile.am | 8 +++++--- configure.ac | 3 +++ hwclock/Makefile.am | 6 +++++- hwclock/cmos.c | 7 +++++++ hwclock/hwclock.c | 18 ++++++++++++++++++ 5 files changed, 38 insertions(+), 4 deletions(-) commit 6141dcb5ebeefb0cf0e8f4a893d91b95b6496d40 Author: Francesco Cosoleto Date: Mon Feb 28 12:16:42 2011 +0100 cfdisk: add home and end keys movements in partition list Signed-off-by: Francesco Cosoleto fdisk/cfdisk.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit f00a8b0aa0fc7c7f65b578ea11750b2576c7bd84 Author: Francesco Cosoleto Date: Mon Feb 28 12:16:41 2011 +0100 cfdisk: move keys related to the cursor of the partition list outside menuselect() Signed-off-by: Francesco Cosoleto fdisk/cfdisk.c | 22 +++++++--------------- 1 files changed, 7 insertions(+), 15 deletions(-) commit f3697ae954cc7755246bb1837d0b7c81c8f4db23 Author: Francesco Cosoleto Date: Mon Feb 28 12:16:40 2011 +0100 cfdisk: move "No more partition" warning to draw_cursor() Signed-off-by: Francesco Cosoleto fdisk/cfdisk.c | 22 ++++++++-------------- 1 files changed, 8 insertions(+), 14 deletions(-) commit 729ec31c5b97d05eb90f50bc5cfa03f4f18b6d2d Author: Francesco Cosoleto Date: Mon Feb 28 12:16:39 2011 +0100 cfdisk: use keypad() in menu selection function This makes the source code looks cleaner, and works a bit better than the previous way with hardcoded escape sequences. Signed-off-by: Francesco Cosoleto fdisk/cfdisk.c | 112 ++++++++++++++++++++----------------------------------- 1 files changed, 41 insertions(+), 71 deletions(-) commit eb9a65bb54d5fddf2d0ad26c296dac8939cb42d8 Author: Karel Zak Date: Fri Mar 11 10:49:08 2011 +0100 lsblk: use ssize_t for readlink() return code Signed-off-by: Karel Zak misc-utils/lsblk.c | 2 +- misc-utils/namei.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 18eac5bad94d31e853e2bfcaadc13d70adc94c22 Author: Milan Broz Date: Thu Feb 24 17:41:33 2011 +0100 lsblk: add TYPE column to lsblk output [kzak@redhat.com: - fix leaks - use lowercase for TYPEs] Signed-off-by: Milan Broz Signed-off-by: Karel Zak misc-utils/lsblk.c | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 75 insertions(+), 1 deletions(-) commit 405265b4325460377329156bf047bc1817086f24 Author: Karel Zak Date: Tue Mar 8 14:13:41 2011 +0100 tailf: fix memmove() usage Signed-off-by: Karel Zak text-utils/tailf.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit fd0f41321bd3ea777d47551cf6512d8ed1ba5aac Author: Sami Kerola Date: Sat Feb 26 15:37:21 2011 +0100 build-sys: print helpful error when pkg.m4 is missing Signed-off-by: Sami Kerola configure.ac | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 8b416ca05f2cd34d98363158471686ea8c089692 Author: Sami Kerola Date: Sat Feb 26 15:37:20 2011 +0100 build-sys: fix unportable Makefile.am assignment Makefile.am:36: warning: `:='-style assignments are not portable Signed-off-by: Sami Kerola Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 9c3c99e9bb6ea232a97f92b8857f61e0156674ef Author: Sami Kerola Date: Sat Feb 26 15:37:19 2011 +0100 build-sys: Enable automake's -Wno-portability option. The util-linux depends on GNU make. shlibs/blkid/src/Makefile.am:58: warning: `%'-style pattern rules are a GNU make extension shlibs/mount/src/Makefile.am:62: warning: `%'-style pattern rules are a GNU make extension Signed-off-by: Sami Kerola configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 31c9c1c4c0279542613318d25e12e18eb6182c81 Author: Sami Kerola Date: Sat Feb 26 15:37:18 2011 +0100 build-sys: introduce AM_PROG_CC_C_O macro Fix to warning which will appear when using fairly new automake (automake commit id fd22dca). disk-utils/Makefile.am:31: warning: compiling `mkswap.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.ac' Reference documentation http://www.gnu.org/software/hello/manual/automake/Public-Macros.html#index-AM_005fPROG_005fCC_005fC_005fO-296 Signed-off-by: Sami Kerola configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit ae26618cb24b99010e8d496b1d4e1c88d5e1e2e8 Author: Sami Kerola Date: Sat Feb 26 15:37:17 2011 +0100 build-sys: use AC_LANG_SOURCE to suppress warnings Messages bellow be supressed by using AC_LANG_SOURCE macro around code test blocks. m4/tls.m4:13: AX_CHECK_TLS is expanded from... configure.ac:335: the top level configure.ac:335: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2660: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2677: AC_LINK_IFELSE is expanded from... ../../lib/m4sugar/m4sh.m4:605: AS_IF is expanded from... ../../lib/autoconf/general.m4:2728: _AC_RUN_IFELSE is expanded from... ../../lib/m4sugar/m4sh.m4:605: AS_IF is expanded from... ../../lib/autoconf/general.m4:2747: AC_RUN_IFELSE is expanded from... ../../lib/m4sugar/m4sh.m4:605: AS_IF is expanded from... ../../lib/autoconf/general.m4:2030: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:2051: AC_CACHE_CHECK is expanded from... m4/tls.m4:13: AX_CHECK_TLS is expanded from... configure.ac:335: the top level Reference to documentation; http://www.flameeyes.eu/autotools-mythbuster/forwardporting/autoconf.html#id1168723648533 Signed-off-by: Sami Kerola m4/tls.m4 | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) commit c1196d3ab706ed05f0f1ee3973d0823c0a8e0734 Author: Davidlohr Bueso Date: Sun Feb 27 14:45:01 2011 -0300 rtcwake: do not duplicate argument strings This is not necessary and prevents memory leaks. Reported-by: Marek Otahal Signed-off-by: Davidlohr Bueso sys-utils/rtcwake.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 4b5f7895b4336fdcfeebb7237d6e41182662ce2f Author: Karel Zak Date: Tue Mar 8 13:32:05 2011 +0100 blkid: don't ignore -i Signed-off-by: Karel Zak misc-utils/blkid.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit dcf22239e8865bc140e5861484f7fdadbc0ade79 Author: Benno Schulenberg Date: Sun Feb 27 16:30:20 2011 +0100 blkid: uniformize the synopsis, remove "the the" Signed-off-by: Benno Schulenberg misc-utils/blkid.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 0791a058faf0046967a01bd5f0f7bfa6c9b9709f Author: Benno Schulenberg Date: Sun Feb 27 16:28:14 2011 +0100 textual: tweak several manpages, mainly the blkid one Signed-off-by: Benno Schulenberg misc-utils/blkid.8 | 97 ++++++++++++++++++++++++-------------------------- misc-utils/findfs.8 | 4 +- misc-utils/kill.1 | 4 +- misc-utils/look.1 | 13 ++++--- misc-utils/lsblk.8 | 4 +- misc-utils/rename.1 | 6 ++-- misc-utils/wipefs.8 | 14 ++++---- 7 files changed, 70 insertions(+), 72 deletions(-) commit 70532ede1aa69ca3eb6d3bdad24c7eae9efddd84 Author: Benno Schulenberg Date: Sun Feb 27 16:27:43 2011 +0100 raw: remove constants from message strings; undo some abbrevs Having a constant embedded within a message string prevents gettext from picking up the rest of the string. Also, translators may wish to change word order; using a constant as a prefix or postfix makes this impossible. Signed-off-by: Benno Schulenberg disk-utils/raw.c | 27 +++++++++++++-------------- 1 files changed, 13 insertions(+), 14 deletions(-) commit 3c06229414f084a1480a5dae1dbe65b7aaf26117 Author: Benno Schulenberg Date: Sun Feb 27 16:26:56 2011 +0100 uuidd: add "-q" to synopsis, order options alphabetically Signed-off-by: Benno Schulenberg misc-utils/uuidd.8 | 21 ++++++++++++--------- misc-utils/uuidd.c | 16 ++++++++-------- 2 files changed, 20 insertions(+), 17 deletions(-) commit 37f44962dd70d08571757563de0019a80d57225a Author: Sami Kerola Date: Sun Feb 27 13:05:11 2011 +0100 include: [c.h]: remove strings.h include dublicate Signed-off-by: Sami Kerola include/c.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit c764e1a41d52ee427ee492c6bf882a86f8dc9532 Author: Sami Kerola Date: Sun Feb 27 13:05:09 2011 +0100 include: [c.h]: typeof to __typeof__ fix Signed-off-by: Sami Kerola include/c.h | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) commit 30d443c24463a2bbad92d1ffc792a9afc9559f1a Author: Sami Kerola Date: Thu Feb 24 22:39:13 2011 +0100 docs: update TODO Signed-off-by: Sami Kerola TODO | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) commit 73f5a687e616329c64e806d1f280bb7fde93f5b5 Author: Sami Kerola Date: Thu Feb 24 22:39:12 2011 +0100 tailf: tailf mention new help & version options in man page Signed-off-by: Sami Kerola text-utils/tailf.1 | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit dc181a2115e71ac9d8ff07375330c3652288f348 Author: Sami Kerola Date: Thu Feb 24 22:39:11 2011 +0100 tailf: use long options This was TODO item from commit 947a7c9c. The patch also introduces version and help switches. [kzak@redhat.com: rewrite old_style_option()] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak text-utils/Makefile.am | 2 + text-utils/tailf.c | 88 +++++++++++++++++++++++++++++++++++++---------- 2 files changed, 71 insertions(+), 19 deletions(-) commit eabb42c7c310d91c2427a77a1f59d5f221f48d9b Author: Sami Kerola Date: Thu Feb 24 20:16:42 2011 +0100 logger: mention long option in logger man page Signed-off-by: Sami Kerola misc-utils/logger.1 | 21 +++++++++++---------- 1 files changed, 11 insertions(+), 10 deletions(-) commit 49999d6aef7b98c66d2df5163a3517775ac0780f Author: Sami Kerola Date: Thu Feb 24 20:16:41 2011 +0100 logger: use libc error printing facilities Signed-off-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/logger.c | 72 ++++++++++++++++++++------------------------------ 1 files changed, 29 insertions(+), 43 deletions(-) commit b363e86d76340e84f1e21d8bce3727e0d7ff539a Author: Sami Kerola Date: Thu Feb 24 20:16:40 2011 +0100 logger: support long options Use getopt_long and usage output changed to match long options. This patch will also scrutiny argument of formerly undocumented -P option. [kzak@redhat.com: - include c.h] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/Makefile.am | 1 + misc-utils/logger.c | 71 +++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 60 insertions(+), 12 deletions(-) commit dd49983ad91221b5b547a0225f13d2d91205522f Author: Sami Kerola Date: Thu Feb 24 20:16:39 2011 +0100 logger: fix variable type compiler warning Signed-off-by: Sami Kerola misc-utils/logger.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e0eadc0dc5566577cd99cc91aa894178af6bf123 Author: Sami Kerola Date: Thu Feb 24 20:15:43 2011 +0100 fsck: fix clang compiler warning fsck.c:874:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] errx(EXIT_USAGE, _(fs_type_syntax_error)); ^~~~~~~~~~~~~~~~~~~~~~~ The issue was introduced in my commit 0a09eb4e, sorry. Signed-off-by: Sami Kerola fsck/fsck.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) commit 821ac2c7106a92da9705c0bb771ebac070154b7d Author: Ville Skyttä Date: Sun Mar 6 11:02:25 2011 +0200 man page syntax fixes Signed-off-by: Ville Skyttä misc-utils/kill.1 | 2 +- mount/mount.8 | 1 - text-utils/more.1 | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) commit b9f9371e029a80fe788af2c0f6d0c09485b4e990 Author: Karel Zak Date: Mon Mar 7 10:06:24 2011 +0100 mount: update mtab on "-f" and compiled with libmount Reported-by: silvan minghetti Signed-off-by: Karel Zak mount/mount.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 6c7f688b1f46c6fb31aa8a4a27d493c90e9ded37 Author: Karel Zak Date: Fri Mar 4 14:44:29 2011 +0100 umount: segfaults with inconsistent entry in /etc/fstab Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/726283 Reported-by: Greg Brockman Signed-off-by: Karel Zak lib/mangle.c | 2 ++ mount/mount_mntent.c | 3 +++ mount/umount.c | 2 +- 3 files changed, 6 insertions(+), 1 deletions(-) commit 01df6eebbf52943b364cfa39ab4be54ba543b46c Author: Karel Zak Date: Thu Mar 3 22:57:27 2011 +0100 docs: update TODO Signed-off-by: Karel Zak TODO | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) commit 6c7d5ae9a2338be35cfab0fd8379a9f58c4f8c36 Author: Karel Zak Date: Thu Mar 3 15:00:30 2011 +0100 move struct option to .rodata It does not make sense to have writable large arrays of "struct option" on the stack. Signed-off-by: Karel Zak disk-utils/mkswap.c | 2 +- disk-utils/swaplabel.c | 2 +- lib/cpuset.c | 2 +- misc-utils/findmnt.c | 2 +- misc-utils/lsblk.c | 2 +- misc-utils/namei.c | 2 +- misc-utils/wipefs.c | 2 +- mount/lomount.c | 3 ++- schedutils/chrt.c | 2 +- schedutils/taskset.c | 2 +- shlibs/mount/samples/mount.c | 2 +- sys-utils/fallocate.c | 2 +- sys-utils/fsfreeze.c | 2 +- sys-utils/fstrim.c | 2 +- sys-utils/lscpu.c | 2 +- sys-utils/setarch.c | 2 +- sys-utils/unshare.c | 2 +- term-utils/script.c | 2 +- text-utils/column.c | 2 +- 19 files changed, 20 insertions(+), 19 deletions(-) commit 63e6a3c82af8296041da7b829cbbc8d7fac1ff28 Author: Karel Zak Date: Thu Mar 3 14:58:59 2011 +0100 docs: update TODO file Signed-off-by: Karel Zak TODO | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) commit 342da610354739764038e38617af212eacf98157 Author: Karel Zak Date: Wed Mar 2 14:29:34 2011 +0100 build-sys: add term-utils/.gitignore Signed-off-by: Karel Zak login-utils/.gitignore | 3 --- misc-utils/.gitignore | 1 - term-utils/.gitignore | 6 ++++++ 3 files changed, 6 insertions(+), 4 deletions(-) commit db6772a19c7a5f517a36866f0aa4a92e735f96a8 Author: Karel Zak Date: Wed Mar 2 14:20:33 2011 +0100 build-sys: move wall to term-utils/ Signed-off-by: Karel Zak login-utils/Makefile.am | 14 --- login-utils/ttymsg.c | 189 ------------------------------------ login-utils/ttymsg.h | 2 - login-utils/wall.1 | 74 -------------- login-utils/wall.c | 244 ----------------------------------------------- term-utils/Makefile.am | 14 +++ term-utils/ttymsg.c | 189 ++++++++++++++++++++++++++++++++++++ term-utils/ttymsg.h | 2 + term-utils/wall.1 | 74 ++++++++++++++ term-utils/wall.c | 244 +++++++++++++++++++++++++++++++++++++++++++++++ 10 files changed, 523 insertions(+), 523 deletions(-) commit c4571e49089d981aa8e8f2f350e99839d9f27ec7 Author: Karel Zak Date: Wed Mar 2 14:18:31 2011 +0100 build-sys: move mesg to term-utils/ Signed-off-by: Karel Zak login-utils/Makefile.am | 5 -- login-utils/mesg.1 | 103 ----------------------------------------- login-utils/mesg.c | 118 ----------------------------------------------- term-utils/Makefile.am | 5 ++ term-utils/mesg.1 | 103 +++++++++++++++++++++++++++++++++++++++++ term-utils/mesg.c | 118 +++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 226 insertions(+), 226 deletions(-) commit 720d1af42e96c2a7c6addb309f2b1975e21f7838 Author: Karel Zak Date: Wed Mar 2 14:08:30 2011 +0100 build-sys: move reset to term-utils/ Signed-off-by: Karel Zak misc-utils/Makefile.am | 6 ------ misc-utils/reset | 13 ------------- misc-utils/reset.033c | 11 ----------- misc-utils/reset.1 | 45 --------------------------------------------- term-utils/Makefile.am | 5 +++++ term-utils/reset | 13 +++++++++++++ term-utils/reset.033c | 11 +++++++++++ term-utils/reset.1 | 45 +++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 74 insertions(+), 75 deletions(-) commit c76d33baccc67b3719403c1b5220d5d57ec9e950 Author: Karel Zak Date: Wed Mar 2 14:06:23 2011 +0100 build-sys: move script and scriptreplay to term-utils/ Signed-off-by: Karel Zak misc-utils/Makefile.am | 15 +- misc-utils/script.1 | 157 ------------- misc-utils/script.c | 546 --------------------------------------------- misc-utils/scriptreplay.1 | 218 ------------------ misc-utils/scriptreplay.c | 182 --------------- term-utils/Makefile.am | 15 +- term-utils/script.1 | 157 +++++++++++++ term-utils/script.c | 546 +++++++++++++++++++++++++++++++++++++++++++++ term-utils/scriptreplay.1 | 218 ++++++++++++++++++ term-utils/scriptreplay.c | 182 +++++++++++++++ 10 files changed, 1119 insertions(+), 1117 deletions(-) commit 8c59914ee2124569329952b1b492a6c14b4fc1ad Author: Karel Zak Date: Wed Mar 2 14:02:01 2011 +0100 build-sys: move setterm to term-utils/ Signed-off-by: Karel Zak misc-utils/Makefile.am | 12 - misc-utils/setterm.1 | 207 -------- misc-utils/setterm.c | 1277 ------------------------------------------------ term-utils/Makefile.am | 13 + term-utils/setterm.1 | 207 ++++++++ term-utils/setterm.c | 1277 ++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 1497 insertions(+), 1496 deletions(-) commit cf56b8b507a98b76ceb0fe2a691997ef589cbb02 Author: Karel Zak Date: Wed Mar 2 13:57:00 2011 +0100 build-sys: move agetty to term-utils Signed-off-by: Karel Zak login-utils/Makefile.am | 11 +- login-utils/README.getty | 26 - login-utils/README.modems-with-agetty | 76 -- login-utils/agetty.8 | 307 -------- login-utils/agetty.c | 1306 --------------------------------- term-utils/Makefile.am | 10 + term-utils/README.modems-with-agetty | 76 ++ term-utils/agetty.8 | 307 ++++++++ term-utils/agetty.c | 1306 +++++++++++++++++++++++++++++++++ 9 files changed, 1700 insertions(+), 1725 deletions(-) commit c0f20acb7a59d1a716abde93e443e6456ffe6cdd Author: Karel Zak Date: Wed Mar 2 13:44:02 2011 +0100 build-sys: add term-utils/ Signed-off-by: Karel Zak Makefile.am | 1 + configure.ac | 1 + term-utils/Makefile.am | 8 ++++++++ 3 files changed, 10 insertions(+), 0 deletions(-) commit 3d604b43675fd893658eb1db85b8f313f5064b5d Author: Karel Zak Date: Tue Mar 1 15:31:49 2011 +0100 libblkid: fix gcc warnings Signed-off-by: Karel Zak shlibs/blkid/src/partitions/gpt.c | 2 +- shlibs/blkid/src/read.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit c2ec2ff9a2e85c6146ab9253a61a158d8aee8edc Author: Karel Zak Date: Tue Mar 1 10:01:21 2011 +0100 libblkid: fix EFI GPT uuid byte order Intel uses little-endians for UUID, the rest of the sane world uses 16 byte big-endian array... Reported-by: Andrew Lutomirski Signed-off-by: Karel Zak shlibs/blkid/src/partitions/gpt.c | 34 +++++++++++++++++++++++----------- 1 files changed, 23 insertions(+), 11 deletions(-) commit a1504d8bf5239c451c3f4e8ab95e312bb60be4e8 Author: Karel Zak Date: Mon Feb 28 17:15:40 2011 +0100 kill: add -q sigval to use sigqueue(2) Signed-off-by: Karel Zak configure.ac | 1 + misc-utils/Makefile.am | 2 +- misc-utils/kill.1 | 13 +++++++++++++ misc-utils/kill.c | 28 +++++++++++++++++++++++++++- 4 files changed, 42 insertions(+), 2 deletions(-) commit 2713fc3ea77f33fa415e7a83202893938d95955e Author: Karel Zak Date: Mon Feb 28 15:09:18 2011 +0100 kill: translate "-l " to RT Signed-off-by: Karel Zak misc-utils/kill.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit ae63d823abc33554ee1d3906a876734277293557 Author: Karel Zak Date: Mon Feb 28 13:43:28 2011 +0100 kill: add support for real-time signals Newly supported syntax for RT signals: RT = SIGRTMIN + n RTMIN+ = SIGRTMIN + n RTMAX- = SIGRTMAX - n the final signal number has to be in interval [SIGRTMIN,SIGRTMAX]. Note that the "SIG" prefix is also supported for RT signals of course. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=676297 Signed-off-by: Karel Zak misc-utils/kill.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) commit e6d1dc94165943374451f3c7639c0ed0a2c3a6b3 Author: Lawrence Rust Date: Thu Feb 10 10:02:20 2011 +0100 rtcwake: test for available suspend modes Signed-off-by: Lawrence Rust sys-utils/rtcwake.c | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) commit 15103c4bc601f45f25a429d7be9eadfcfeee7bc2 Author: Marek Polacek Date: Mon Feb 28 10:10:32 2011 +0100 dmesg.c: cleanups -- use err(), xalloc() Signed-off-by: Marek Polacek Signed-off-by: Karel Zak sys-utils/dmesg.c | 52 +++++++++++++++++++++++++--------------------------- 1 files changed, 25 insertions(+), 27 deletions(-) commit d8fb986bf5ba4c07fd2e7ef2486e349e0024c092 Author: Karel Zak Date: Sat Feb 26 14:14:17 2011 +0100 docs: update TODO Signed-off-by: Karel Zak TODO | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 8b7eae458ccb04befb579dc87bdbfc1b6cbd5553 Author: Karel Zak Date: Thu Feb 24 14:03:44 2011 +0100 libblkid: try to detect if PT is newer than LVM LVM (pvcreate) wipes the begin of the device. If there is a PT in the wiped area then LVM signature is obsolete. # pvcreate /dev/sdb # fdisk /dev/sdb old version: # blkid -p -o udev /dev/sdb ID_FS_TYPE=LVM2_member new version: # blkid -p -o udev /dev/sdb ID_PART_TABLE_TYPE=dos Reported-by: Matej Cepl Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=679799 Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 10 ++++ shlibs/blkid/src/partitions/dos.c | 3 + shlibs/blkid/src/partitions/gpt.c | 2 + shlibs/blkid/src/partitions/partitions.c | 2 +- shlibs/blkid/src/probe.c | 78 ++++++++++++++++++++++++++++++ shlibs/blkid/src/superblocks/lvm.c | 6 ++ 6 files changed, 100 insertions(+), 1 deletions(-) commit 947a7c9ca53a679bdbdafd600a5ad4a3b9b26c4c Author: Karel Zak Date: Wed Feb 23 17:26:19 2011 +0100 docs: update TODO Signed-off-by: Karel Zak TODO | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 0ad19c2c0a0c6da7439022b36b97e20de67810c0 Author: Karel Zak Date: Wed Feb 23 00:22:00 2011 +0100 tests: update libmount tests (add optstr output) Signed-off-by: Karel Zak tests/expected/libmount/optstr-flags | 2 +- tests/expected/libmount/tabfiles-copy | 2 + tests/expected/libmount/tabfiles-find-pair | 1 + tests/expected/libmount/tabfiles-find-source | 1 + tests/expected/libmount/tabfiles-find-target | 1 + tests/expected/libmount/tabfiles-parse-fstab | 10 ++++++ .../expected/libmount/tabfiles-parse-fstab-broken | 10 ++++++ tests/expected/libmount/tabfiles-parse-mountinfo | 32 ++++++++++++++++++++ tests/expected/libmount/tabfiles-parse-mtab | 11 +++++++ tests/expected/libmount/tabfiles-tags-fstab-dev | 1 + .../libmount/tabfiles-tags-fstab-dev2label | 1 + tests/expected/libmount/tabfiles-tags-fstab-label | 1 + .../libmount/tabfiles-tags-fstab-label2dev | 1 + .../libmount/tabfiles-tags-fstab-label2uuid | 1 + tests/expected/libmount/tabfiles-tags-fstab-uuid | 1 + tests/ts/libmount/optstr | 2 +- 16 files changed, 76 insertions(+), 2 deletions(-) commit ddfc6f28a73afc823bb7ab5466a840d9fd5c5ad2 Author: Karel Zak Date: Wed Feb 23 00:21:54 2011 +0100 libmount: better "user" evaluation Signed-off-by: Karel Zak shlibs/mount/src/context.c | 41 +++++++++++++++++++++++++++++++++++++- shlibs/mount/src/context_mount.c | 9 +++---- shlibs/mount/src/optstr.c | 32 +++++++++++++++++++++++++---- 3 files changed, 71 insertions(+), 11 deletions(-) commit f2b3a3a3288d56b09d878c3e2b5310268f2f4d31 Author: Karel Zak Date: Tue Feb 22 18:41:20 2011 +0100 libmount: don't export functions for vfs/fs/userspace mount options Signed-off-by: Karel Zak shlibs/mount/src/context.c | 38 ++----- shlibs/mount/src/context_mount.c | 8 +- shlibs/mount/src/context_umount.c | 4 +- shlibs/mount/src/fs.c | 244 +++++++------------------------------ shlibs/mount/src/libmount.h.in | 16 +-- shlibs/mount/src/libmount.sym | 10 +-- shlibs/mount/src/mountP.h | 1 + shlibs/mount/src/tab_parse.c | 7 +- shlibs/mount/src/tab_update.c | 13 +-- 9 files changed, 78 insertions(+), 263 deletions(-) commit 8a8835bc65e9fd5a71643c582bd753f42dcb8c8f Author: Karel Zak Date: Mon Feb 21 19:06:54 2011 +0100 ipcs: fix typo Reported-by: Francesco Cosoleto Signed-off-by: Karel Zak sys-utils/ipcs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d5e582d9695306bb05fc4f77822ba8d6e1809bdd Author: Karel Zak Date: Mon Feb 21 17:18:09 2011 +0100 docs: update TODO file Signed-off-by: Karel Zak TODO | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit 449f9336bb594ed925e2fe0c26249bd8ea8ee6e4 Author: Dave Reisner Date: Mon Feb 21 08:51:24 2011 -0500 lsblk: bitwise or TT_FL_ASCII with tt_flags instead of setting Signed-off-by: Dave Reisner misc-utils/lsblk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7894bf0f08740f75610990a2ba76af7a7cbce61e Author: Daniel Drake Date: Mon Feb 21 13:27:07 2011 +0000 hwclock: make RTC default to UTC time If /etc/adjtime doesn't specify UTC or LOCAL, rtcwake defaults to UTC and hwclock defaults to LOCAL. Switch hwclock to meet the behaviour of rtcwake (default=UTC), also matching the kernel's CONFIG_RTC_HCTOSYS behaviour. The user impact of this change should be minimal, as anyone who has run "hwclock --systohc" before will have their UTC/LOCAL choice already recorded in /etc/adjtime. Signed-off-by: Daniel Drake hwclock/hwclock.8 | 2 +- hwclock/hwclock.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit 2ed7a5a3d79e3785215378f74501f87baf74a2f0 Author: Karel Zak Date: Mon Feb 21 17:06:26 2011 +0100 cfdisk: fix compiler warning cfdisk.c: In function ‘menuUpdate’: cfdisk.c:1034:25: warning: unused variable ‘ymargin’ Signed-off-by: Karel Zak fdisk/cfdisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 87672e98ec8696c4c078461cc0dfeb1cae1338a7 Author: Francesco Cosoleto Date: Sun Feb 20 08:36:16 2011 +0100 cfdisk: remove unused vertical menu direction code It isn't used and doesn't seem very important, as well as requires more work to run properly. Signed-off-by: Francesco Cosoleto fdisk/cfdisk.c | 56 +++++--------------------------------------------------- 1 files changed, 5 insertions(+), 51 deletions(-) commit 89601b8e39f93a6467a185d858d106bb38d44e71 Author: Sami Kerola Date: Sun Feb 20 13:21:17 2011 +0100 scriptreplay: bug in argument check Number of arguments cannot be at the same time too many and few. Signed-off-by: Sami Kerola misc-utils/scriptreplay.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 33e47106747ed11ac6110209fc30758ff50ad0bf Author: Sami Kerola Date: Sun Feb 20 13:21:16 2011 +0100 script: inform about long options in script manual page [kzak@redhat.com: - use -V instead of -v] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/script.1 | 20 +++++++++++++------- 1 files changed, 13 insertions(+), 7 deletions(-) commit 3ff526391fb5c6b33418dc9cfec31c2ff9b4792e Author: Sami Kerola Date: Sun Feb 20 13:21:15 2011 +0100 script: support for long options [kzak@redhat.com: - use -V instead of -v - minor changes in usage()] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/script.c | 55 +++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 43 insertions(+), 12 deletions(-) commit 360d5005473b9277d48e3e16aab2578506933fc0 Author: Sami Kerola Date: Sun Feb 20 13:21:14 2011 +0100 script: use libc error printing facilities [kzak@redhat.com: - use more verbose warnings] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/script.c | 52 ++++++++++++++++++-------------------------------- 1 files changed, 19 insertions(+), 33 deletions(-) commit 9092858482f6800da555164dbd669bfef4e72807 Author: Sami Kerola Date: Sun Feb 20 13:21:13 2011 +0100 script: fix compiler warnings Signed-off-by: Sami Kerola misc-utils/script.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit a6771a52a2b88695fc0bedddc4cc1c7fda2f62c1 Author: Francesco Cosoleto Date: Sun Feb 20 08:34:27 2011 +0100 getopt: fix '--unqote' typo in usage text Signed-off-by: Francesco Cosoleto getopt/getopt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 8d1b0fe28e44eb57ef276d17e4e67ede70492b4f Author: Karel Zak Date: Mon Feb 21 16:22:52 2011 +0100 mkswap: fix compiler warning mkswap.c: In function ‘main’: mkswap.c:646:6: warning: too few arguments for format Signed-off-by: Karel Zak disk-utils/mkswap.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 17945af6bedb4994daf05d9c4e3611e1d193f7c8 Author: Sami Kerola Date: Sun Feb 20 00:00:42 2011 +0100 doc: mention mkswap long options in man page The update will also expand kernel version numbers to have a month and year next to them. This should help users can get idea how long, for example, swap v1 has been around. [kzak@redhat.com: - modify synopsis, remove duplicate info about page size] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak disk-utils/mkswap.8 | 56 +++++++++++++++++++------------------------------- 1 files changed, 21 insertions(+), 35 deletions(-) commit f2704664baa98473af18c65b34e83a0464be4933 Author: Sami Kerola Date: Sun Feb 20 00:00:41 2011 +0100 mkswap: coding style unification Signed-off-by: Sami Kerola disk-utils/mkswap.c | 51 ++++++++++++++++++++++++++++++--------------------- 1 files changed, 30 insertions(+), 21 deletions(-) commit 4c60c667c4b12c540c445649c725a1e184fb1b9c Author: Sami Kerola Date: Sun Feb 20 00:00:40 2011 +0100 mkswap: fix to compiler warnings Signed-off-by: Sami Kerola disk-utils/mkswap.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit a4d3e778abf856f28f395c7d6747b9fd6caf0c3c Author: Sami Kerola Date: Sun Feb 20 00:00:39 2011 +0100 mkswap: use EXIT_ values Signed-off-by: Sami Kerola disk-utils/mkswap.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit e079c4e6ede2531ce11fb1b95e22efdaa4bf2084 Author: Sami Kerola Date: Sun Feb 20 00:00:38 2011 +0100 mkswap: support long options and check user inputs [kzak@redhat-com: - mimor changes to usage()] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak disk-utils/Makefile.am | 2 +- disk-utils/mkswap.c | 147 ++++++++++++++++++++++++----------------------- 2 files changed, 76 insertions(+), 73 deletions(-) commit 69e433d8d9b19e4a0e3187a77f0813bb040a18b2 Author: Karel Zak Date: Mon Feb 21 15:35:04 2011 +0100 lib: [strutils.c] more robust strtol checks Signed-off-by: Karel Zak lib/strutils.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 94d32126bf1e7a41cadaa8740ee76b79f1eb59ab Author: Sami Kerola Date: Sun Feb 20 00:00:37 2011 +0100 strutils: new wrapper function strtoll_or_err Signed-off-by: Sami Kerola include/strutils.h | 1 + lib/strutils.c | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 0 deletions(-) commit 94a50e285a0d0165769cb6f1e4e7f3e37fa658ea Author: Sami Kerola Date: Sun Feb 20 00:00:36 2011 +0100 mkswap: use xalloc Signed-off-by: Sami Kerola disk-utils/mkswap.c | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) commit 00a7d0d2f05c46deead2891aff7ff897e5c4fd97 Author: Sami Kerola Date: Sun Feb 20 00:00:35 2011 +0100 mkswap: use libc error messaging facilities [kzak@redhat.com: - use "%s from %s" for -V output] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak disk-utils/mkswap.c | 157 ++++++++++++++++++++------------------------------- 1 files changed, 62 insertions(+), 95 deletions(-) commit 1201340290674e81816630bc53a968095c47b9d5 Author: Karel Zak Date: Mon Feb 21 15:12:30 2011 +0100 tests: add tests for [u]mount regular file Signed-off-by: Karel Zak tests/expected/mount/regfile | 1 + tests/ts/mount/regfile | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 0 deletions(-) commit f4612577c942a3683b97632ad0b49671897c2070 Author: Petr Uzel Date: Thu Feb 17 12:52:43 2011 +0100 umount: allow unmounting loopdev specified by associated file Make it possible to unmount a filesystem on a loop device if it is specified by associated backing file. It does not attempt to unmount anything if there are more than one loop device associated with the given file. Umount looks for associated loopdevice(s) only if umount is called with the regular file as an argument. Before: mount -o loop -t ext2 img mnt umount -v img > Could not find /home/puzel/upstream/util-linux/img in mtab > umount: img: not mounted After: mount -o loop -t ext2 img mnt umount -v img > img is associated with /dev/loop0, trying to unmount it > /dev/loop0 has been unmounted [kzak@redhat.com: - fix memory leak in lomount.c] Addresses: https://bugzilla.novell.com/show_bug.cgi?id=666161 Signed-off-by: Petr Uzel Signed-off-by: Karel Zak mount/lomount.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ mount/lomount.h | 1 + mount/umount.c | 22 ++++++++++++++++++++++ 3 files changed, 76 insertions(+), 0 deletions(-) commit 8ba013af64ff19c70a4ce3b2403032e43710e76f Author: Petr Uzel Date: Thu Feb 17 13:09:07 2011 +0100 include: [xalloc.h]: mention strdup in the file description Signed-off-by: Petr Uzel include/xalloc.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 4581647a62690f7789ff6e30e8d8eefbb32a4015 Author: Petr Uzel Date: Thu Feb 17 13:09:06 2011 +0100 lscpu: use xstrdup from xalloc.h Signed-off-by: Petr Uzel sys-utils/lscpu.c | 10 +--------- 1 files changed, 1 insertions(+), 9 deletions(-) commit b642d0e0c98efd73ce8973a9fd67ffcd8ec462c9 Author: Petr Uzel Date: Thu Feb 17 13:09:05 2011 +0100 losetup: spelling fixes Signed-off-by: Petr Uzel mount/lomount.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 85bf44b714ab184907eb448eba389218956d6a51 Author: Sami Kerola Date: Sat Feb 12 21:55:53 2011 +0100 hexdump: new usage(), xalloc and err.h stuff New usage help screen and print version switch. Also fixes to exit codes, util linux xmalloc replaced emalloc and every error print is using libc error function. [kzak@redhat.com: - minor changes in formatting and coding style] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak text-utils/Makefile.am | 2 +- text-utils/display.c | 44 +++++++++---------------------------- text-utils/hexdump.c | 10 ++++---- text-utils/hexdump.h | 4 +-- text-utils/hexsyntax.c | 56 ++++++++++++++++++++++++++++++++--------------- text-utils/parse.c | 42 +++++++++++++---------------------- 6 files changed, 72 insertions(+), 86 deletions(-) commit 4dad230ffb1a6a2e91bfc2a89c821b0b3e47b9ea Author: Jens Kristian Søgaard Date: Fri Feb 11 22:28:03 2011 +0100 ipcs: really show all resources when -a and -i are combined When you have more than one resource with the same id (but differing types) combining -a and -i does not show all resources. This patch corrects that. Signed-off-by: Jens Kristian Søgaard sys-utils/ipcs.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) commit cc6b1d11eabf9d86849a80f2ca8b4c0afd45844f Author: Karel Zak Date: Fri Feb 18 14:36:04 2011 +0100 lsblk: fix readlink() usage Reported-by: Steve Grubb Signed-off-by: Karel Zak misc-utils/lsblk.c | 4 ++-- shlibs/uuid/man/uuid_generate_time_safe.3 | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) commit 5b7cb8687f98c54dcbceae65ac58f3a0d0d0b5d4 Author: Karel Zak Date: Fri Feb 18 10:53:50 2011 +0100 Revert "libmount: do not check for EAGAIN after flock()" Linux is not 100% POSIX compatible in this area... strace: "flock(3, LOCK_EX|LOCK_NB) = -1 EAGAIN (Resource temporarily unavailable)" This reverts commit 78d8c28f746bcc8d4e642c39669d8e58dea8d029. shlibs/mount/src/tab_update.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 48399694a990759cb9e86e42d0582fb3da3a6a92 Author: Karel Zak Date: Fri Feb 18 10:52:22 2011 +0100 Revert "libuuid: do not check for EAGAIN after flock()" Linux is not 100% POSIX compatible in this area... strace: "flock(3, LOCK_EX|LOCK_NB) = -1 EAGAIN (Resource temporarily unavailable)" This reverts commit d6c8d399b93f4646a90d0180fdcc1be35235a9c7. shlibs/uuid/src/gen_uuid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7be3d92f88e91684aac3be0c9ec94091de2fa319 Author: Karel Zak Date: Thu Feb 17 16:32:36 2011 +0100 build-sys: add uuid_generate_time_safe.3 .gitignore Signed-off-by: Karel Zak shlibs/uuid/man/.gitignore | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 19a9d0b7c3ebe4569307c87586e34715d1570644 Author: Karel Zak Date: Thu Feb 17 16:30:52 2011 +0100 docs: update TODO file Signed-off-by: Karel Zak TODO | 101 ++++++++++++++++++++++++++++++++++++++++-------------------------- 1 files changed, 61 insertions(+), 40 deletions(-) commit d73fd391763e82cb25e9958b3252167ddd7a3c47 Author: Karel Zak Date: Thu Feb 17 12:00:36 2011 +0100 chsh: fix gcc link() warn_unused_result warning setpwnam.c:176:9: warning: ignoring return value of ‘link’, declared with attribute warn_unused_result Signed-off-by: Karel Zak login-utils/setpwnam.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit f1c2eaac535bd9172a35ce39b6d8f392321f274d Author: Karel Zak Date: Thu Feb 17 11:56:51 2011 +0100 fsck: fix -C parsing Reported-by: Steve Grubb Signed-off-by: Karel Zak fsck/fsck.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 9da2972c1555f9f4c8eabdc7ba05e2f4d0a3fb19 Author: Karel Zak Date: Thu Feb 17 11:26:36 2011 +0100 tests: [cpuset] call free() for range The free() before exit() is not so important, but let's keep the example code nice and consistent. Reported-by: Steve Grubb Signed-off-by: Karel Zak lib/cpuset.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit d8bee4cb24994194b9af45754339dc87243738c5 Author: Karel Zak Date: Thu Feb 17 11:23:24 2011 +0100 chsh: fix small memory leak Reported-by: Steve Grubb Signed-off-by: Karel Zak login-utils/setpwnam.c | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) commit 81e9987bf0f79c430154b3ef31f79ed7b6a5ba2e Author: Karel Zak Date: Thu Feb 17 11:16:43 2011 +0100 login: does not ignore setgid() return code for non-roots Reported-by: Steve Grubb Signed-off-by: Karel Zak login-utils/login.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit 2fa3fbe858fe194069a30b1b991b2473d4edc307 Author: Karel Zak Date: Thu Feb 17 11:02:26 2011 +0100 fdisk: more robust whole-disk detection In lib/wholedisk.c, i is set to 0. If fd was a -1, then at line 18 geometry.start is used without it being initialized. Reported-by: Steve Grubb Signed-off-by: Karel Zak lib/wholedisk.c | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) commit e47bce7822ca910cf360d41acf67d4d9b31dd2be Author: Karel Zak Date: Wed Feb 16 16:36:18 2011 +0100 libuuid: move __uuid function to UUIDD_PRIVATE in uuid.sym The private functions for uuidd should not be included in the normal versioned part or the library. Signed-off-by: Karel Zak shlibs/uuid/src/uuid.sym | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) commit e3d4e31c942218b71771062a03180a30553ff1f9 Author: Petr Uzel Date: Mon Feb 14 14:43:30 2011 +0100 libuuid: update manpage, mention uuid_generate_time_safe Signed-off-by: Petr Uzel shlibs/uuid/man/Makefile.am | 2 +- shlibs/uuid/man/uuid_generate.3 | 26 ++++++++++++++++++++++++-- shlibs/uuid/man/uuid_generate_time_safe.3 | 1 + shlibs/uuid/man/uuid_time.3 | 4 +++- 4 files changed, 29 insertions(+), 4 deletions(-) commit 5ce8da3c33ce4e5c406447c9a797311082e8f955 Author: Petr Uzel Date: Mon Feb 14 14:43:29 2011 +0100 libuuid: introduce uuid_generate_time_safe() The problem with libuuid interface is that it is impossible to inform the caller of uuid_generate_time() if the UUID was generated in a safe manner (either via uuidd, or using the global clock state counter). This patch introduces new function, int uuid_generate_time_safe(uuid_t out) which can report whether the generated UUID is safe. Signed-off-by: Petr Uzel shlibs/uuid/src/gen_uuid.c | 35 +++++++++++++++++++++++++++++------ shlibs/uuid/src/uuid.h | 1 + shlibs/uuid/src/uuid.sym | 10 +++++++++- 3 files changed, 39 insertions(+), 7 deletions(-) commit 46bae9f3403a6b31e729834b39eae3a8e430fbd9 Author: Petr Uzel Date: Mon Feb 14 14:43:28 2011 +0100 libuuid: __uuid_generate_time(): report if clock_seq is safe Propagate return value from get_clock() through __uuid_generate_time(). Signed-off-by: Petr Uzel shlibs/uuid/src/gen_uuid.c | 6 ++++-- shlibs/uuid/src/uuidd.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) commit 70b989c2800729f1442d0b9ea72ff92cdd211fe6 Author: Petr Uzel Date: Mon Feb 14 14:43:27 2011 +0100 libuuid: rename uuid__generate_* to __uuid_generate_* Having uuid_generate_time and uuid__generate_time at the same time is confusing. These functions are exported, but not part of the official API (used by uuidd only). Signed-off-by: Petr Uzel misc-utils/uuidd.c | 8 ++++---- shlibs/uuid/src/gen_uuid.c | 8 ++++---- shlibs/uuid/src/uuid.sym | 6 +++--- shlibs/uuid/src/uuidd.h | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) commit 34b2e3f13397c5ed8e5686f99e6dd677f944d1f2 Author: Petr Uzel Date: Mon Feb 14 14:43:26 2011 +0100 libuuid: get_clock(): report if the clock_seq is safe Signed-off-by: Petr Uzel shlibs/uuid/src/gen_uuid.c | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) commit 20c04820d16673901ade8b344aa745d1d3a8876d Author: Petr Uzel Date: Mon Feb 14 14:43:25 2011 +0100 libuuid: do not use invalid file descriptor Signed-off-by: Petr Uzel shlibs/uuid/src/gen_uuid.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) commit 62b47b3acb202f38e707ac395243282c52d3cfae Author: Petr Uzel Date: Mon Feb 14 14:43:24 2011 +0100 libuuid: manpage spelling fixes Signed-off-by: Petr Uzel shlibs/uuid/man/uuid_generate.3 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 7491ee6a5a5e9c72c5154022a7151a18a86599cb Author: Petr Uzel Date: Mon Feb 14 14:43:23 2011 +0100 libuuid: fix test in get_clock() Signed-off-by: Petr Uzel shlibs/uuid/src/gen_uuid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 559e48112e28b818b5d90341ef58405027035298 Author: Petr Uzel Date: Mon Feb 14 14:43:22 2011 +0100 uuidd: fix manpage: libuuid(3) does not exist Signed-off-by: Petr Uzel misc-utils/uuidd.8 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 144df9a2a88085ff674b34d58c23e39b27795973 Author: Benno Schulenberg Date: Tue Feb 1 11:41:29 2011 +0100 partx: improve clarity of some messages, gettextize two missed ones [kzak@redhat.com: - use rather than in error/verbose messages] Signed-off-by: Benno Schulenberg Signed-off-by: Karel Zak partx/partx.c | 27 +++++++++++++-------------- 1 files changed, 13 insertions(+), 14 deletions(-) commit e8ab5ce3d0ea7e63194bf96964c4dc637b998aeb Author: Benno Schulenberg Date: Mon Jan 31 22:35:44 2011 +0100 textual: improve the wording of some error and usage messages [kzak@redhat.com: - cleanup lscpu(1) usage text - use rather than in partx(8) usage text] Signed-off-by: Benno Schulenberg Signed-off-by: Karel Zak login-utils/chsh.c | 6 +++--- login-utils/ttymsg.c | 3 ++- misc-utils/findmnt.c | 2 +- partx/partx.c | 6 +++--- shlibs/mount/samples/mount.c | 2 +- sys-utils/lscpu.c | 17 +++++++++-------- 6 files changed, 19 insertions(+), 17 deletions(-) commit e22d8b9519cb8d71fe13cc11105ccb7c29b92a24 Author: Benno Schulenberg Date: Mon Jan 31 11:44:42 2011 +0100 textual: fix three typos in message strings and improve consistency Signed-off-by: Benno Schulenberg misc-utils/lsblk.c | 2 +- partx/partx.c | 2 +- sys-utils/fstrim.8 | 2 +- sys-utils/fstrim.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) commit 0a09eb4efcc9704cf757118cbec86f7783223746 Author: Sami Kerola Date: Wed Feb 16 15:20:11 2011 +0100 fsck: use xmalloc, warn & err and new usage All compler errors reported by -Wall -Wextra -pedantic are fixed. The patch also makes fsck to use xalloc instead of it's own malloc. That will make fsck to exit, which could be good thing, at sections where it previously did not. Almost all print outs where touched, where various printfs where converted to warn or err messages. Finally theres a fix to counter wrap bug that could (very unlikely) manifest itself if an user specifies same flag exactly UINT_MAX times. [kzak@redhat.com: - coding style - define XALLOC_EXIT_CODE - use verbose++ in main()] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak fsck/fsck.c | 178 +++++++++++++++++++++++++++++------------------------------ 1 files changed, 87 insertions(+), 91 deletions(-) commit 47a4b840c35b8cfe29ee5085d8e42c56cb90d2bf Author: Sami Kerola Date: Tue Feb 15 09:03:28 2011 +0100 docs: favour small patches http://www.spinics.net/lists/util-linux-ng/msg04084.html Signed-off-by: Sami Kerola README.devel | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit f9e05dafd0fa36b2cb29eb30250dc63039a34bf2 Author: Dave Reisner Date: Tue Feb 15 10:06:08 2011 +0100 lib: [strutils] avoid integer overflow on large values This is visible on a 2TB disk via lsblk, where a large partition incorrectly displays as 1.171798692T instead of 1.8T. This is corrected by using a uint64_t type instead of a simple int -- consistant with the type used in lsblk.c to represent the raw size in bytes. [kzak@redhat.com: - add EiB support - add size_to_human_string() to regression tests] Signed-off-by: Dave Reisner Signed-off-by: Karel Zak lib/strutils.c | 18 +++++++++++--- tests/expected/misc/strtosize | 52 ++++++++++++++++++++-------------------- 2 files changed, 40 insertions(+), 30 deletions(-) commit bf6db55ad58e9bfa3195a54b01d692b7adbf4056 Author: Sami Kerola Date: Sat Feb 12 15:02:51 2011 +0100 more: new usage output, and some trivial fixes Usage output screen got to be completely rewrote. Aim is to assist user to determe which switches to use without reading manual page. The change also introduced new option to see command version. Determination if the executable name is `page' is now easy to see in source, and effect of using the name is mentioned in manual page. Rest of the change is trivial; exit values to compiler warning removals, magic constants to preprocessor definitions, symbolic exit values, comment pretty printing and #endif markups. [kzak@redhat.com: - coding style - add __unused__ attribute to signal handlers] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak text-utils/more.1 | 2 + text-utils/more.c | 396 ++++++++++++++++++++++++++++------------------------- 2 files changed, 210 insertions(+), 188 deletions(-) commit 912d6b98925a34b05fb4791a2f52225b06c420af Author: WUEBBELS, Josef \(Extern\) Date: Fri Jan 28 14:15:20 2011 +0100 logger: support for logging to UDP socket / remote syslog server It adds the ability to logger to log a message to a udp socket. The -n option followed by the hostname of the remote host is mandatory to do this. The optional -P option can be used to change the UDP destination port (default 514). The function udpopenlog is used to open the udp socket. After that everything works in almost the same way like it does when logging to a UNIX socket. Signed-off-by: Josef Wuebbels misc-utils/logger.1 | 12 ++++++++++++ misc-utils/logger.c | 47 +++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 55 insertions(+), 4 deletions(-) commit eb76ca98b0733754d7e9a40f754e89b50af2bf06 Author: Fabian Groffen Date: Tue Jan 25 22:44:52 2011 +0100 build-sys: provide alternatives for err, errx, warn and warnx Solaris lacks err, errx, warn and warnx. This also means the err.h header doesn't exist. Removed err.h include from all files, and included err.h from c.h instead if it exists, otherwise alternatives are provided. Signed-off-by: Fabian Groffen configure.ac | 4 +++ disk-utils/swaplabel.c | 1 - include/c.h | 47 ++++++++++++++++++++++++++++++++++++ include/xalloc.h | 1 - lib/at.c | 2 +- lib/blkdev.c | 2 +- lib/cpuset.c | 2 +- lib/mangle.c | 2 +- lib/strutils.c | 2 +- lib/tt.c | 1 - login-utils/chfn.c | 2 +- login-utils/chsh.c | 1 - login-utils/last.c | 2 +- login-utils/login.c | 2 +- login-utils/mesg.c | 2 +- login-utils/newgrp.c | 1 - login-utils/vipw.c | 2 +- login-utils/wall.c | 2 +- misc-utils/cal.c | 1 - misc-utils/findfs.c | 2 +- misc-utils/findmnt.c | 1 - misc-utils/lsblk.c | 2 +- misc-utils/namei.c | 1 - misc-utils/scriptreplay.c | 2 +- misc-utils/wipefs.c | 2 +- mount/swapon.c | 2 +- partx/partx.c | 1 - schedutils/chrt.c | 1 - schedutils/ionice.c | 3 +- schedutils/taskset.c | 3 +- shlibs/blkid/samples/mkfs.c | 1 - shlibs/blkid/samples/partitions.c | 1 - shlibs/blkid/samples/superblocks.c | 1 - shlibs/blkid/samples/topology.c | 1 - shlibs/mount/samples/mount.c | 1 - shlibs/mount/src/lock.c | 2 +- sys-utils/ctrlaltdel.c | 2 +- sys-utils/fallocate.c | 2 +- sys-utils/fsfreeze.c | 1 - sys-utils/fstrim.c | 2 +- sys-utils/ipcmk.c | 2 +- sys-utils/ipcs.c | 2 +- sys-utils/ldattach.c | 1 - sys-utils/lscpu.c | 2 +- sys-utils/renice.c | 2 +- sys-utils/rtcwake.c | 2 +- sys-utils/switch_root.c | 2 +- sys-utils/unshare.c | 2 +- text-utils/column.c | 2 +- text-utils/rev.c | 2 +- text-utils/tailf.c | 2 +- text-utils/ul.c | 2 +- 52 files changed, 84 insertions(+), 52 deletions(-) commit 4a01477b12bc6c7ced2306e2700021672f43a4a0 Author: Fabian Groffen Date: Mon Jan 31 18:58:26 2011 +0100 sfdisk: rename warn to my_warn To avoid a conflict with the warn function from err.h, renamed warn to my_warn, as the functionality of both is not the same. Signed-off-by: Fabian Groffen fdisk/sfdisk.c | 102 ++++++++++++++++++++++++++++---------------------------- 1 files changed, 51 insertions(+), 51 deletions(-) commit c80790440e6f765539d1c42e0cf2d6780dbcfc8a Author: Davidlohr Bueso Date: Tue Jan 18 16:38:54 2011 -0300 mkfs.minix: general cleanups This patch provides some minor code fixes: add/remove some macros and close the device after usage. Also modifies usage() and changes main()'s indentation to 8-characters. Signed-off-by: Davidlohr Bueso disk-utils/mkfs.minix.c | 282 ++++++++++++++++++++++++----------------------- 1 files changed, 142 insertions(+), 140 deletions(-) commit def04d475f79b73c13e66e57d8afae603b39d184 Author: Karel Zak Date: Fri Feb 11 11:20:36 2011 +0100 docs: update TODO Signed-off-by: Karel Zak TODO | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 4799c95f943bd947c02f754da121974b4b34697d Author: Karel Zak Date: Fri Feb 11 10:49:50 2011 +0100 include: [c.h]: add fallback for old libs without O_CLOEXEC Signed-off-by: Karel Zak include/c.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit db9bd703a9a696bd73cb7d41e98c66854a604477 Author: Karel Zak Date: Fri Feb 11 10:45:09 2011 +0100 libmount: add fallbacks for old systems without umount2() syscall Reported-by: Peter Breitenlohner Signed-off-by: Karel Zak shlibs/mount/src/context_umount.c | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) commit 067e396b12f0dc12154e18faf5c61d06750df3ae Author: Karel Zak Date: Fri Feb 11 10:36:12 2011 +0100 include: [at.h]: include c.h for PATH_MAX Reported-by: Peter Breitenlohner Signed-off-by: Karel Zak include/at.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 4b6cf4859a0798eef6f59933101f08f950a0aa9b Author: Karel Zak Date: Fri Feb 11 10:18:00 2011 +0100 libmount: replace mkostmps() with more portable mkstemp() Reported-by: Peter Breitenlohner Signed-off-by: Karel Zak shlibs/mount/src/mountP.h | 2 +- shlibs/mount/src/tab_update.c | 2 +- shlibs/mount/src/utils.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) commit 7f7126d749cb538547dd7bf85dc358f025ce6ea9 Author: Karel Zak Date: Fri Feb 11 09:42:49 2011 +0100 build-sys: don't build lsblk on Linux without openat() Reported-by: Peter Breitenlohner Signed-off-by: Karel Zak configure.ac | 9 +++++++++ misc-utils/Makefile.am | 2 +- 2 files changed, 10 insertions(+), 1 deletions(-) commit d015794e0923f5f4566bdfb598853c0976f70706 Author: Karel Zak Date: Fri Feb 11 09:06:27 2011 +0100 partx, lsblk: fix gettext calls Reported-by: Peter Breitenlohner Signed-off-by: Karel Zak misc-utils/lsblk.c | 2 +- partx/partx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)