Changes between v2.14 and v2.15-rc1 ----------------------------------- commit 0152a9eae3297e7ebc68028e84d100d97880795b Author: Karel Zak Date: Wed Mar 18 15:49:48 2009 +0100 build-sys: release++ (v2.15-rc1) Signed-off-by: Karel Zak NEWS | 6 +++++- configure.ac | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) commit 7d2802a0dbbd76d119a3217774233557edbfcf98 Author: Karel Zak Date: Wed Mar 18 15:45:48 2009 +0100 build-sys: fix bugs detected by "make distcheck" Signed-off-by: Karel Zak Makefile.am | 2 +- config/include-Makefile.am | 6 +++--- libs/blkid/src/Makefile.am | 7 +++++-- libs/blkid/src/probers/Makefile.am | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) commit eca7b7e1a9d25b428006eb4657b68654e2af1f9b Author: Karel Zak Date: Wed Mar 18 15:45:42 2009 +0100 po: update POTFILES.in Signed-off-by: Karel Zak po/POTFILES.in | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 009865a2b64f907aceaf7fad1456b3974f6303bf Author: Karel Zak Date: Wed Mar 18 14:00:31 2009 +0100 docs: update v2.15 ReleaseNotes Signed-off-by: Karel Zak docs/v2.15-ReleaseNotes | 638 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 638 insertions(+), 0 deletions(-) commit 689ab0897dc1e2a93ef36f5f03c2a75d0a21719a Author: Karel Zak Date: Wed Mar 18 11:11:54 2009 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 31 ++++++++++++++++++++++++++++++- 1 files changed, 30 insertions(+), 1 deletions(-) commit cf8316e2f4fd091178891e329f2d9bee84faa1c1 Author: Karel Zak Date: Wed Mar 18 11:02:24 2009 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 4276 ++++++++++++++++++++++++++--------------- po/cs.po | 4563 ++++++++++++++++++++++++++++---------------- po/da.po | 4272 ++++++++++++++++++++++++++--------------- po/de.po | 4297 ++++++++++++++++++++++++++--------------- po/es.po | 4292 ++++++++++++++++++++++++++--------------- po/et.po | 4119 +++++++++++++++++++++++++--------------- po/eu.po | 4028 +++++++++++++++++++++++++-------------- po/fi.po | 4811 ++++++++++++++++++++++++++++++----------------- po/fr.po | 5153 ++++++++++++++++++++++++++++++++------------------ po/hu.po | 4245 ++++++++++++++++++++++++++--------------- po/id.po | 4862 ++++++++++++++++++++++++++++++----------------- po/it.po | 4245 ++++++++++++++++++++++++++--------------- po/ja.po | 4514 ++++++++++++++++++++++++++++---------------- po/nl.po | 4623 +++++++++++++++++++++++++++++---------------- po/pl.po | 4031 +++++++++++++++++++++++++--------------- po/pt_BR.po | 4229 ++++++++++++++++++++++++++--------------- po/ru.po | 4266 ++++++++++++++++++++++++++--------------- po/sl.po | 4265 ++++++++++++++++++++++++++--------------- po/sv.po | 4269 ++++++++++++++++++++++++++--------------- po/tr.po | 4265 ++++++++++++++++++++++++++--------------- po/uk.po | 4267 ++++++++++++++++++++++++++--------------- po/util-linux-ng.pot | 3979 ++++++++++++++++++++++++-------------- po/vi.po | 4609 +++++++++++++++++++++++++++++---------------- po/zh_CN.po | 4178 ++++++++++++++++++++++++++--------------- 24 files changed, 66867 insertions(+), 37791 deletions(-) commit bf9d81dbc833213ccab0702f61b134452cd5d3dd Author: Karel Zak Date: Tue Mar 17 22:31:14 2009 +0100 tests: fix typo in lscpu test Signed-off-by: Karel Zak tests/ts/lscpu/lscpu | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 87f8158be42dc7363ace90c5ab5c725cd0b885f8 Author: Karel Zak Date: Tue Mar 17 21:02:40 2009 +0100 tests: fix file name is too long (max 99) - gtar gtar: util-linux-ng-2.15-rc1/tests/ts/lscpu/proc-dumps/i386-dellpe700/sys/devices/system/cpu/cpu1/topology/: file name is too long (max 99); not dumped Signed-off-by: Karel Zak [..cut.. too long] 2456 files changed, 2632 insertions(+), 2632 deletions(-) commit 067f5343c86ed6dd135cdf57eb99aa3f982fceed Author: Karel Zak Date: Tue Mar 17 21:00:42 2009 +0100 login: use "remote" as a PAM service name for "login -h" Signed-off-by: Karel Zak login-utils/login.1 | 10 ++++++++++ login-utils/login.c | 2 +- 2 files changed, 11 insertions(+), 1 deletions(-) commit 55e75fddb1a780c0e75c0b98350be04a14efd4e0 Author: Karel Zak Date: Tue Mar 17 16:05:47 2009 +0100 blkid: fix ocfs2 detection The regression tests has failed on PPC64, because OCFS3 suberblock is in little-endian. Signed-off-by: Karel Zak libs/blkid/src/probers/ocfs.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit b0a0d7d58f397f45a27ee3e876800989992096d1 Author: Karel Zak Date: Tue Mar 17 14:54:22 2009 +0100 build-sys: add $usrlibexecdir and fix paths for [/usr]/lib64 Signed-off-by: Karel Zak config/include-Makefile.am | 1 + configure.ac | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletions(-) commit dcbf520914423ebcd4357fa6e2a89e3183d4a71f Author: Karel Zak Date: Tue Mar 17 12:40:15 2009 +0100 include: bitops - explicitly include endian.h Signed-off-by: Karel Zak include/bitops.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit fa7928c136c3aa93ef83cb46f2c17c4ac6085140 Author: Karel Zak Date: Tue Mar 17 09:40:17 2009 +0100 build-sys: refresh generated libtool-2 stuff Signed-off-by: Karel Zak m4/libtool.m4 | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 3038879b8a2351c052804d8cf822dc790ba5e0cf Author: Karel Zak Date: Mon Mar 16 22:16:06 2009 +0100 blkid: add missing blkidP.h to Makefile.am Signed-off-by: Karel Zak libs/blkid/src/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 8a9e8346537db45a6bc4119653755bbd4d9ba183 Author: Ray Wang Date: Mon Mar 16 16:07:42 2009 +0100 po: add zh_CN.po (from translationproject.org) po/zh_CN.po | 9556 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 9556 insertions(+), 0 deletions(-) commit a2ef4f9f7d081e5fdba8294ce584584ffb2de0ba Author: Clytie Siddall Date: Mon Mar 16 16:07:42 2009 +0100 po: update vi.po (from translationproject.org) po/vi.po | 1862 ++++++++++++++++++++++++++++---------------------------------- 1 files changed, 848 insertions(+), 1014 deletions(-) commit 56eba8c308143f8ee76fff68e9cf19a688406fc1 Author: Benno Schulenberg Date: Mon Mar 16 16:07:42 2009 +0100 po: update nl.po (from translationproject.org) po/nl.po | 1876 +++++++++++++++++++++++++++++--------------------------------- 1 files changed, 863 insertions(+), 1013 deletions(-) commit a88e3d04848401e1640b4bc4e4573338888f0e2d Author: Makoto Kato Date: Mon Mar 16 16:07:41 2009 +0100 po: update ja.po (from translationproject.org) po/ja.po | 6244 +++++++++++++++++++++++++++++++------------------------------- 1 files changed, 3098 insertions(+), 3146 deletions(-) commit 66004cd6b426e7a5816c1f7c5214b43739373d95 Author: Arif E. Nugroho Date: Mon Mar 16 16:07:41 2009 +0100 po: update id.po (from translationproject.org) po/id.po | 2818 +++++++++++++++++++++++++++++--------------------------------- 1 files changed, 1328 insertions(+), 1490 deletions(-) commit e5eb21c53e9f6bae558a9c61cfeb291f58420cb3 Author: Nicolas Provost Date: Mon Mar 16 16:07:41 2009 +0100 po: update fr.po (from translationproject.org) po/fr.po | 4224 +++++++++++++++++++++++++++----------------------------------- 1 files changed, 1834 insertions(+), 2390 deletions(-) commit c107f87a8e900c7730dbdd9e12fb4acdc1815b6a Author: Lauri Nurmi Date: Mon Mar 16 16:07:41 2009 +0100 po: update fi.po (from translationproject.org) po/fi.po | 1367 +++++++++++++++++++++++++------------------------------------- 1 files changed, 546 insertions(+), 821 deletions(-) commit df1ed6dc81192b0e842461ec9e25cf7e79e351e7 Author: Petr Pisar Date: Mon Mar 16 16:07:40 2009 +0100 po: update cs.po (from translationproject.org) po/cs.po | 1865 +++++++++++++++++++++++++++++--------------------------------- 1 files changed, 882 insertions(+), 983 deletions(-) commit 0cd0dbd2493f70bc8159bc1b32ddce767a33ebd1 Author: Karel Zak Date: Mon Mar 16 14:03:03 2009 +0100 tests: disable blkid tests when blkid(8) is not compiled Signed-off-by: Karel Zak tests/ts/blkid/low-probe | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 07dfde722bdb01109938bdedaf3f12d928cf0fc9 Author: Karel Zak Date: Mon Mar 16 13:08:45 2009 +0100 lib: fsprobe - fix gcc warning lib/fsprobe.c: In function ‘fsprobe_get_fstype_by_devname’: lib/fsprobe.c:243: warning: return discards qualifiers from pointer target type Signed-off-by: Karel Zak lib/fsprobe.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit cf778d6887144e6c4983dc3cc9c7f8c67dc39214 Author: Karel Zak Date: Sat Mar 14 20:00:03 2009 +0100 blkid: fix non-udev low-probe mode output Signed-off-by: Karel Zak libs/blkid/bin/blkid.c | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) commit d10056b34d2121bbe1c45b6ad79f69f8ef6752a1 Author: Karel Zak Date: Fri Mar 13 14:31:31 2009 +0100 mkswap: clean up man page Signed-off-by: Karel Zak disk-utils/mkswap.8 | 131 ++++++++++++++++++++++---------------------------- 1 files changed, 58 insertions(+), 73 deletions(-) commit ff3bed806863d1c2075d0efda70b39ea6af9ecba Author: Karel Zak Date: Thu Mar 12 16:01:59 2009 +0100 mkswap: zap bootbits /dev/sdb1 originally initialized by cryptsetup: and OLD mkswap: # vol_id /dev/sdb1 | grep TYPE ID_FS_TYPE=swap # blkid -s TYPE /dev/sdb1 /dev/sdb1: TYPE="crypt_LUKS" So, we have two different *valid* signatures on the device now! NEW mkswap: # blkid -s TYPE /dev/sdb1 /dev/sdb1: TYPE="swap" # /lib/udev/vol_id /dev/sdb1 | grep TYPE ID_FS_TYPE=swap the bootbits (first 1024 bytes) was erased. We shouldn't zap disk labels (BSD, SUN, ...) and boot loaders (on whole disk): # mkswap /dev/sdb2 mkswap: /dev/sdb2: warning: don't erase bootbits sectors (BSD partition table detected). Use -f to force. Setting up swapspace version 1, size = 4348 KiB no label, UUID=69d87cef-71ac-4fb0-a689-ce3e930dea17 # mkswap /dev/sdb mkswap: /dev/sdb: warning: don't erase bootbits sectors on whole disk. Use -f to force. Setting up swapspace version 1, size = 8188 KiB no label, UUID=97757ad7-8a84-43d9-bcb4-16fefd93a2ac Signed-off-by: Karel Zak disk-utils/Makefile.am | 2 +- disk-utils/mkswap.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletions(-) commit 015ea51c1056793c077e770f864ac0b89a87ebd9 Author: Karel Zak Date: Thu Mar 12 14:34:47 2009 +0100 libs: pttype - fix typo Signed-off-by: Karel Zak include/pttype.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit dfbc185e532bf2e2dc192081d6fddd0b58f9089e Author: Karel Zak Date: Thu Mar 12 14:31:50 2009 +0100 lib: wholedisk - extend API, add test program Signed-off-by: Karel Zak include/wholedisk.h | 1 + lib/.gitignore | 4 +--- lib/Makefile.am | 9 ++++----- lib/wholedisk.c | 43 +++++++++++++++++++++++++++++++++++-------- 4 files changed, 41 insertions(+), 16 deletions(-) commit 17c02484470c80ea97cc194d11d111cc1ca5b8b4 Author: Karel Zak Date: Thu Mar 12 14:17:59 2009 +0100 lib: pttype - extend the API to work with file descriptors Signed-off-by: Karel Zak include/pttype.h | 1 + lib/pttype.c | 22 +++++++++++++++------- 2 files changed, 16 insertions(+), 7 deletions(-) commit 048ebb85c5d193f99314726d384fdca2fabf9fa2 Author: Karel Zak Date: Thu Mar 12 13:20:51 2009 +0100 lib: pttype: fix DOS detection Signed-off-by: Karel Zak lib/pttype.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) commit 8f898c578ac72abb65eef50e82382c2ef66a549e Author: Karel Zak Date: Thu Mar 12 13:00:27 2009 +0100 lib: pttype: add BSD subpartitions support Signed-off-by: Karel Zak lib/pttype.c | 28 ++++++++++++++++++++++++++-- 1 files changed, 26 insertions(+), 2 deletions(-) commit 2fb83c675258b96751cc84376bd856a38d7fd12d Author: Karel Zak Date: Thu Mar 12 10:22:30 2009 +0100 include: add missing files to Makefile.am Signed-off-by: Karel Zak include/Makefile.am | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit e85a2a9392bde75b45bc9973782d8ff5bfa2b54b Author: Karel Zak Date: Thu Mar 12 10:15:50 2009 +0100 lib: add pttype.c for PT types detection This is a small fragment from libdisk (from xfsprogs). The final solution will be to move the library to util-linux-ng. Signed-off-by: Karel Zak include/Makefile.am | 3 +- include/pttype.h | 10 ++ lib/.gitignore | 1 + lib/Makefile.am | 5 +- lib/pttype.c | 260 +++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 276 insertions(+), 3 deletions(-) commit 4c85aa3a4c26f2a2c33bf16960b548d5bbd5b4bf Author: Karel Zak Date: Wed Mar 11 15:23:16 2009 +0100 mkswap: remove v0 swap space support The kernel has not supported v0 swap space format since 2.5.22. The new version v1 is supported since 2.1.117. Signed-off-by: Karel Zak disk-utils/mkswap.8 | 24 +++----- disk-utils/mkswap.c | 176 +++++++------------------------------------------- 2 files changed, 33 insertions(+), 167 deletions(-) commit 929f243f79c4fdf3e89dad5134e53bf001598a5e Author: Karel Zak Date: Wed Mar 11 14:00:21 2009 +0100 lib: add is_whole_disk() from fdisk code Signed-off-by: Karel Zak fdisk/Makefile.am | 2 +- fdisk/common.h | 1 - fdisk/fdisk.c | 3 ++- fdisk/partname.c | 29 +---------------------------- fdisk/sfdisk.c | 4 ++-- include/blkdev.h | 2 ++ include/wholedisk.h | 7 +++++++ lib/wholedisk.c | 31 +++++++++++++++++++++++++++++++ 8 files changed, 46 insertions(+), 33 deletions(-) commit db1749cf6c105a86adfc7246cb1ab60b1753f077 Author: Karel Zak Date: Wed Mar 11 13:34:55 2009 +0100 flock: add NLS support, remove tailing white-spaces Signed-off-by: Karel Zak sys-utils/flock.c | 42 ++++++++++++++++++++++++------------------ 1 files changed, 24 insertions(+), 18 deletions(-) commit 56d23414c15634369394d8b42df1e96f7a171d1c Author: Karel Zak Date: Wed Mar 11 13:02:45 2009 +0100 flock: fix printf format error in usage() flock.c: In function ‘usage’: flock.c:75: warning: too few arguments for format Signed-off-by: Karel Zak sys-utils/flock.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 841f86dbc2e35166fd43341c8eb144680b0c7ece Author: Karel Zak Date: Wed Mar 11 12:49:50 2009 +0100 flockc: segfaults when file name is not given $ flock -s Segmentation fault ltrace: __libc_start_main(0x8048870, 2, 0xbfe9f404, 0x8049070, 0x8049060 getopt_long(2, 0xbfe9f404, "+sexnouw:hV?", 0x80494e0, 0xbfe9f354) = 115 getopt_long(2, 0xbfe9f404, "+sexnouw:hV?", 0x80494e0, 0xbfe9f354) = -1 strtol(0, 0xbfe9f34c, 10, 0x80494e0, 0xbfe9f354 --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++ Addresses-Red-Had-Bugzilla: #489672 Signed-off-by: Karel Zak sys-utils/flock.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) commit dcb54fafb128ab41772ae217afc6a7612e2cc446 Author: Karel Zak Date: Tue Mar 10 13:36:56 2009 +0100 cal: remove gcc-ism from nl_langinfo() call > On Tue, Mar 10, 2009 at 01:15:14PM +0100, Samuel Thibault wrote: > That will only work with the gcc compiler, which allows to read a > union field what you wrote in another. Shouldn't > (int)(intptr_t)nl_langinfo() be just fine? Signed-off-by: Karel Zak misc-utils/cal.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) commit 88a3372e88c4ccd2714c3d95ef4719140436214a Author: Scott James Remnant Date: Wed Mar 4 17:10:43 2009 +0000 hwclock: add --systz option to set system clock from itself Since the system clock time is already set from the hardware clock by the kernel (when compiled with CONFIG_RTC_HCTOSYS), there's no particular need to read the hardware clock again. This option sets the system clock using itself as a reference if the hardware clock was in local time. The resulting system clock time is in UTC, with the kernel timezone set to the difference. [kzak@redhat.com: - fix the condition that controls read_adjtime() call] Signed-off-by: Scott James Remnant Signed-off-by: Karel Zak hwclock/hwclock.8 | 19 +++++++++ hwclock/hwclock.c | 109 +++++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 120 insertions(+), 8 deletions(-) commit 0a9bead039d3d5c1445d94b9f439e8b1d08b4003 Author: Pádraig Brady Date: Wed Mar 4 10:07:29 2009 +0000 cal: determine the first day of week from the locale Previously it defaulted to Sunday rather than using the value from the locale. Lauri Nurmi provided the detailed argument for this change while Samuel Thibault provided the information on how to read the first day of the week from the locale correctly. [kzak@redhat.com: - fix "cast from pointer to integer", nl_langinfo(_NL_TIME_WEEK_1STDAY) call)] Signed-off-by: Pádraig Brady Signed-off-by: Karel Zak misc-utils/cal.1 | 3 +- misc-utils/cal.c | 65 ++++++++++++++++++++++++++++++++--------------------- 2 files changed, 40 insertions(+), 28 deletions(-) commit 7cfbafda9c484a8cadefc47ee115086e803d9391 Author: Karel Zak Date: Mon Mar 9 21:09:50 2009 +0100 renice: add -n option for compatibility with POSIX The -n option is required by POSIX.1-200x. Signed-off-by: Karel Zak sys-utils/renice.1 | 7 ++++++- sys-utils/renice.c | 12 +++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) commit 43ddda95b382bac2db700539bb09d68cdee8fd16 Author: Karel Zak Date: Mon Mar 9 12:49:51 2009 +0100 build-sys: cleanup --with-fsprobe help string Thanks to Theodore Tso. Signed-off-by: Karel Zak configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5642b0472f7fc4d8a93e330b6511e86b3ebcfb31 Author: Theodore Ts'o Date: Mon Mar 9 12:38:02 2009 +0100 blkid: add fallback to ext4 for 2.6.29+ kernels if ext2 is not present Starting in 2.6.29, ext4 can be used to support filesystems without a journal. So if ext2 is not present, and the kernel version is greater than 2.6.29, and ext4 is present, return a filesystme type of ext4. Signed-off-by: "Theodore Ts'o" blkid: Add fallback to ext4 for 2.6.29+ kernels if ext2 is not present Starting in 2.6.29, ext4 can be used to support filesystems without a journal. So if ext2 is not present, and the kernel version is greater than 2.6.29, and ext4 is present, return a filesystme type of ext4. [kzak@redhat.com: port from e2fsprogs to util-linux-ng tree] Signed-off-by: "Theodore Ts'o" Signed-off-by: Karel Zak libs/blkid/src/probers/ext.c | 275 ++++++++++++++++++++++++------------------ 1 files changed, 160 insertions(+), 115 deletions(-) commit be221b3a9d4b2a0be90d9c12ddb7f8ece568b2f9 Author: Eric Sandeen Date: Mon Mar 9 12:17:17 2009 +0100 blkid: recognize ext4(dev) without journal ext4/ext4dev no longer require a journal. w/o this blkid doesn't recognize after: We still must have one ext3-incompat-feature to flag as ext4(dev) so we shouldn't ever mis-recognize it. [kzak@redhat.com: port from e2fsprogs to util-linux-ng tree] Signed-off-by: Eric Sandeen Signed-off-by: Theodore Ts'o Signed-off-by: Karel Zak libs/blkid/src/probers/ext.c | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) commit 642f01a3f25803d3d2fad2a3314644c0a00f89d3 Author: Karel Zak Date: Mon Mar 9 12:10:59 2009 +0100 blkid: blkid.static make target For compatibility with e2fsprogs tree: commit eb630fd8708ae433e55e384079c08e0f0f040d22 Author: Eric Sandeen Date: Tue Feb 24 23:15:33 2009 -0600 e2fsprogs: blkid.static make target Nice for testing w/o needing to swizzle around system libraries... Signed-off-by: Karel Zak configure.ac | 2 +- libs/blkid/bin/Makefile.am | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletions(-) commit 8905beda2abb59b48ba00c5d521c934ead4df80b Author: Karel Zak Date: Mon Mar 9 09:52:08 2009 +0100 fdisk: support "-b 4096" option The fdisk code is more ready for 4kB sectors and it makes sense to support such sectr size for "-b" option. Address-Red-Hat-Bugzilla: #218915 Signed-off-by: Karel Zak fdisk/fdisk.8 | 2 +- fdisk/fdisk.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit bc4aa3b5888ef3cdfcbf9e60b3745b69d684a395 Author: Karel Zak Date: Mon Mar 9 09:43:49 2009 +0100 login: remove "switching users" nonsense from man page For more details see the BUGS section in the man page. Signed-off-by: Karel Zak login-utils/login.1 | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) commit 5dd53f43b22b4d7dcc97c633fe058723439d649d Author: Karel Zak Date: Thu Mar 5 20:59:30 2009 +0100 swapon: add error messages for lseek and write Thanks to Hugh Dickins. Signed-off-by: Karel Zak mount/swapon.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) commit 93bfcc94d303206117187ad7108144f77955775e Author: Karel Zak Date: Thu Mar 5 20:37:31 2009 +0100 swapon: fix typo s/warn/warnx/ Thanks to Hugh Dickins. Signed-off-by: Karel Zak mount/swapon.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 324a8c4ce753fcd27f783c690cf65d5a328bad12 Author: Karel Zak Date: Thu Mar 5 20:17:19 2009 +0100 swapon: fix wording in man page Signed-off-by: Karel Zak mount/swapon.8 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 7926576ec2f3d25aecbc128b851326b6dbf85662 Author: Karel Zak Date: Tue Mar 3 16:25:23 2009 +0100 lib: fix fsprobe wrapper (const char * is nonsense) The fsprobe_ functions return newly allocated strings. Signed-off-by: Karel Zak include/fsprobe.h | 13 +++++++------ lib/fsprobe.c | 42 +++++++++++++++++++++--------------------- mount/fstab.c | 4 ++-- 3 files changed, 30 insertions(+), 29 deletions(-) commit 4b350e012005276f445a6aec4d64f099e2860687 Author: Karel Zak Date: Tue Mar 3 16:10:24 2009 +0100 lib: gcc warning in fix fsprobe Signed-off-by: Karel Zak lib/fsprobe.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 30fce928380e03b05aab9d51c444e38dfe976cb8 Author: Karel Zak Date: Tue Mar 3 16:06:52 2009 +0100 blkid: fix gcc warning in blkid_get_cache_filename() cache.c: In function `blkid_get_cache_filename': cache.c:113 warning: return makes pointer from integer without a cast Signed-off-by: Karel Zak libs/blkid/src/cache.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) commit 6d042d0d26af5a1ef2a83ae3d2dfa5b276cb4403 Author: Karel Zak Date: Tue Mar 3 16:00:39 2009 +0100 blkid: use "char **" rather than "unsigned char **" Use "char" to be consistent with the old high level API. Signed-off-by: Karel Zak libs/blkid/bin/blkid.c | 2 +- libs/blkid/src/blkid.h | 4 ++-- libs/blkid/src/evaluate.c | 2 +- libs/blkid/src/probe.c | 8 ++++---- libs/blkid/src/verify.c | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) commit 457470060f31cc2cc7c6c03015909927af86507c Author: Karel Zak Date: Tue Mar 3 15:34:10 2009 +0100 mount: fix gcc warning (variable used uninitialized) fstab.c: In function ‘getfs_by_spec’: fstab.c:400 warning: ‘name’ may be used uninitialized in this function fstab.c:402 warning: ‘value’ may be used uninitialized in this function Signed-off-by: Karel Zak mount/fstab.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e682ce7d6186b8e8aa55f584bff10b25fcb2ef3e Author: Karel Zak Date: Tue Mar 3 15:31:39 2009 +0100 simmpleinit: fix gcc warning (buffer size in read()) simpleinit.c:846: /usr/include/bits/unistd.h:43 warning: call to ‘__read_chk_warn’ declared with attribute warning: read called with bigger length than size of the destination buffer Signed-off-by: Karel Zak login-utils/simpleinit.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0d761944dd1130c81ec770ed318ae7ed3338c702 Author: Karel Zak Date: Tue Mar 3 14:53:27 2009 +0100 swapon: add -f/--fixpgsz option The patch: commit 3399a218f4eff4016a22044e7c416521bc37c53c Author: Matthias Koenig Date: Thu Nov 27 12:32:56 2008 +0100 swapon: add swap format detection and pagesize check introduced a new feature. This feature should be optional (disabled by default) to keep happy people who use swap-space bad blocks or nonstandard swap-space size. CC: Hugh Dickins CC: Olaf Hering CC: Matthias Koenig Signed-off-by: Karel Zak mount/swapon.8 | 8 ++++++++ mount/swapon.c | 29 ++++++++++++++++++++--------- 2 files changed, 28 insertions(+), 9 deletions(-) commit 1581e22c35b6e6ac2c2d6deae9f9f57921f90ae1 Author: Karel Zak Date: Tue Mar 3 14:15:35 2009 +0100 swapon: cleanup man page The patch also fix stupid bug in swapoff long options array. Signed-off-by: Karel Zak mount/swapon.8 | 104 +++++++++++++++++++++++++++++++++---------------------- mount/swapon.c | 2 +- 2 files changed, 63 insertions(+), 43 deletions(-) commit 617d8a3bf4516924a73a02c5cb7bf4195a7f2c66 Author: Karel Zak Date: Mon Mar 2 16:41:03 2009 +0100 swapon: rewrite SWSUSPEND signature rather than exec mkswap > On Thu, Jan 22, 2009 at 04:46:57PM +0000, Hugh Dickins wrote: > Though your swapon may mkswap for suspend reasons: hmm, wouldn't it > do very much better just to rewrite the swap signature, than exec > mkswap - maybe nobody ever uses the badpages list, but it really > should be respected. CC: Hugh Dickins Signed-off-by: Karel Zak mount/swapon.c | 44 +++++++++++++++++++++++++++++++++----------- 1 files changed, 33 insertions(+), 11 deletions(-) commit 05c79b78386cd9629764000851535ab1667fc600 Author: Karel Zak Date: Mon Mar 2 16:12:26 2009 +0100 swapon: do_swapon() refactoring (split into two functions) The patch moves all checks to the separate swapon_checks() function. This is a little more aggressive, but currently the do_swapon() is too long. Signed-off-by: Karel Zak mount/swapon.c | 89 +++++++++++++++++++++++++++++-------------------------- 1 files changed, 47 insertions(+), 42 deletions(-) commit d51d05d322ff03ab296ca3fb00665584f4434396 Author: Karel Zak Date: Mon Mar 2 15:16:21 2009 +0100 swapon: use err.h stuff The code is much more simple with warn()/err() that with fprintf() and strerror(), ... Signed-off-by: Karel Zak mount/swapon.c | 120 ++++++++++++++++++++------------------------------------ 1 files changed, 43 insertions(+), 77 deletions(-) commit 81772d3c240cb72ddb977557c973b12bfef90396 Author: Karel Zak Date: Mon Mar 2 14:21:03 2009 +0100 swapon: simplify spec to devname conversion We needn't to use spec_to_devname() and check for pseudo filesystems. The swap{on,off} is always checking for the 'swap' fstype. This patch also removes the dependence on xmalloc.c. Signed-off-by: Karel Zak mount/Makefile.am | 12 ++++++------ mount/swapon.c | 28 ++++++++++++++++------------ 2 files changed, 22 insertions(+), 18 deletions(-) commit e8be80dd3829b4fe31ea0335ead1af9bd5d0d65c Author: Karel Zak Date: Mon Mar 2 13:00:49 2009 +0100 swapon: add generic swap_get_header() We need to proper swap header detection for swsuspend data and for swap PAGE_SIZE checks. It's better to reuse the code in both cases. The patch removes duplicate stat() call too. Signed-off-by: Karel Zak mount/swapon.c | 227 ++++++++++++++++++++++++++++++-------------------------- 1 files changed, 121 insertions(+), 106 deletions(-) commit 88530f9f24fba89fb8f0b9f014a1bf945caa9312 Author: Karel Zak Date: Mon Mar 2 11:24:03 2009 +0100 swapon: do_swapon() refactoring (move stat() checks) It's better to do stat() based checks immediately after the stat() call. Signed-off-by: Karel Zak mount/swapon.c | 49 +++++++++++++++++++++++++------------------------ 1 files changed, 25 insertions(+), 24 deletions(-) commit 99e6d5259ef94068e7ecef9cdc81dc3fec3907f1 Author: Hugh Dickins Date: Thu Jan 22 16:46:57 2009 +0000 mkswap: handle 2^32 pages mkswap (when built 32-bit) could not quite support the maximum size of swap area (2^32 pages): change unsigned long pagecounts to unsigned long long pagecounts, and fix maxpages for the case when more is asked. Signed-off-by: Hugh Dickins disk-utils/mkswap.c | 32 +++++++++++++++++--------------- 1 files changed, 17 insertions(+), 15 deletions(-) commit 8f66fc25e9ab6f7a6938c498f04711567729545d Author: Karel Zak Date: Thu Feb 26 23:46:28 2009 +0100 docs: add a note about kpartx to TODO Signed-off-by: Karel Zak TODO | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit c59599d1e8085b66d250602055c7ebf5d0cbe759 Author: Karel Zak Date: Thu Feb 26 23:19:19 2009 +0100 partx: use ioctls from lib/blkdev.c Signed-off-by: Karel Zak partx/gpt.c | 88 +++++++++-------------------------------------------------- 1 files changed, 13 insertions(+), 75 deletions(-) commit f314a6beccbb6bf00eca3acce0ec4d3a25de8051 Author: Karel Zak Date: Thu Feb 26 23:03:46 2009 +0100 fdisk: (and partx) remove BLKGETLASTSECT This odd ioctl is unsupported in the current 2.4 and 2.6 mainline. Signed-off-by: Karel Zak fdisk/gpt.c | 40 +--------------------------------------- include/blkdev.h | 2 -- partx/gpt.c | 39 +-------------------------------------- 3 files changed, 2 insertions(+), 79 deletions(-) commit 0d518f34204043e798300893d19e81a7a377a316 Author: Karel Zak Date: Thu Feb 26 15:28:11 2009 +0100 partx: don't duplicate lib/blkdev.c code Signed-off-by: Karel Zak partx/partx.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) commit 176303e08d7f1a7ab1211e0b4f3292d2a4648a07 Author: Karel Zak Date: Thu Feb 26 14:23:06 2009 +0100 partx: convert hard sector size to 512-byte sectors The msdos PT depends on a sector size (BLKSSZGET), but partx(8) counts internally with 512-byte sectors only. The dos.c has to convert start and size to 512-byte sectors. sysfs (kernel uses 512-byte sectors only): # cat /sys/block/sdb/sdb1/{start,size} 256 16128 (note that 16128 * 512 = 8257536; 8Mb) old version: # partx /dev/sdb 1: 32- 2047 ( 2016 sectors, 1 MB) ^^^^ start, end and sectors are correct, but in 4KiB sectors The size in MB is completely wrong. new version: # partx -l /dev/sdb 1: 256- 16383 ( 16128 sectors, 8 MB) start, end and sectors are converted to 512-byte sectors. The size in MB is correct now. Note that this change is important, because "partx -a" counts the size of a new partition in 512-byte sectors for all PT formats (sun, gpt, ...). Signed-off-by: Karel Zak partx/Makefile.am | 6 +++++- partx/dos.c | 23 +++++++++++++++++------ partx/partx.8 | 2 +- 3 files changed, 23 insertions(+), 8 deletions(-) commit fa39bf0f12268a7fe2ad02494a1351bac4d64a66 Author: Karel Zak Date: Thu Feb 26 12:31:07 2009 +0100 addpart: 512-byte sectors in code, bytes in man-page The addpart.c code uses 512-byte sectors for partition start and length, but in the addpart.8 man page is "in bytes". The code (and this code is pretty old) is always right... the man page has to be fixed. Signed-off-by: Karel Zak partx/addpart.8 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 010d0a4cca648140ca779cbe595c51461499f64a Author: Karel Zak Date: Thu Feb 26 10:56:35 2009 +0100 blockdev: add note that the StartSec is in 512-byte sectors Signed-off-by: Karel Zak disk-utils/blockdev.8 | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 85a994c49f57470586463bdd6a2b15789d7955f8 Author: Karel Zak Date: Thu Feb 26 10:19:05 2009 +0100 fdisk: use real sector size in verify() and warn_cylinders() 4KiB-sector disk: Note: sector size is 4096 (not 512) Disk /dev/sdb: 8 MB, 8388608 bytes 8 heads, 32 sectors/track, 8 cylinders, total 2048 sectors Units = sectors of 1 * 4096 = 4096 bytes Disk identifier: 0x6aad54da Device Boot Start End Blocks Id System /dev/sdb1 32 2047 8064 83 Linux old version (mix 512 and real sectors): Command (m for help): v 14367 unallocated sectors new version: Command (m for help): v 31 unallocated 4096-byte sectors Signed-off-by: Karel Zak fdisk/fdisk.c | 31 ++++++++++++++++--------------- 1 files changed, 16 insertions(+), 15 deletions(-) commit 10e3d0319a009a86a92c26da274e50850da0a9b3 Author: Eric Sandeen Date: Thu Feb 26 09:53:09 2009 +0100 fdisk: doesn't handle large (4KiB) sectors properly fdisk (at least with the -u option) does not handle sector sizes other than 512. Address-Red-Hat-Bugzilla: #487227 Signed-off-by: Eric Sandeen Signed-off-by: Karel Zak fdisk/fdisk.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 63754e714aaf69f301cdf1371994096c6fd8abbf Author: Karel Zak Date: Tue Feb 24 16:41:17 2009 +0100 mount: remove useless if-before-free tests Signed-off-by: Karel Zak mount/lomount.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit 41b015523f37cd523159329ea505f4381348b0a1 Author: Karel Zak Date: Tue Feb 24 16:41:06 2009 +0100 getopt: remove useless if-before-free tests Signed-off-by: Karel Zak getopt/getopt.c | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) commit 7009077bd2d7a8149848caf64665716ba80dccfb Author: Karel Zak Date: Tue Feb 24 16:40:52 2009 +0100 fsck: remove useless if-before-free tests Signed-off-by: Karel Zak fsck/fsck.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) commit c8f1e920ab9e28f2fd52b9023b85144c3c90d80c Author: Karel Zak Date: Tue Feb 24 16:39:04 2009 +0100 blkid: fix a syntax nit Signed-off-by: Karel Zak libs/blkid/src/tag.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 0e4ed1aab091de221bd54a188691943b1d1c803f Author: Jim Meyering Date: Tue Feb 24 15:58:37 2009 +0100 blkid: remove useless if-before-free tests [kzak@redhat.com: - port the original e2fsprogs patch to util-linux-ng] Signed-off-by: Jim Meyering Signed-off-by: Karel Zak libs/blkid/src/cache.c | 3 +-- libs/blkid/src/dev.c | 15 +++++---------- libs/blkid/src/devno.c | 3 +-- libs/blkid/src/resolve.c | 6 ++---- libs/blkid/src/save.c | 3 +-- libs/blkid/src/tag.c | 9 +++------ 6 files changed, 13 insertions(+), 26 deletions(-) commit 0d4b490f79de86caca250ba2fee936e37cf6ec31 Author: Jim Meyering Date: Tue Feb 24 15:46:27 2009 +0100 blkid: don't dereference NULL upon slashless module dependency line * probers/ext.c (check_for_modules): Skip current line if it has no slash. [kzak@redhat.com: - port the original e2fsprogs patch to util-linux-ng] Signed-off-by: Jim Meyering Signed-off-by: Karel Zak libs/blkid/src/probers/ext.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 77be714e05948049439f1bbf506b3213be61f705 Author: Karel Zak Date: Fri Feb 20 13:21:40 2009 +0100 build-sys: add missing files to include/Makefile.am Signed-off-by: Karel Zak include/Makefile.am | 20 +++++++++++++++++--- 1 files changed, 17 insertions(+), 3 deletions(-) commit fc3ea49e74cdb7bb568ae385a5c111452512aeec Author: Karel Zak Date: Fri Feb 20 13:18:28 2009 +0100 fsck: remove \007 from warning message Signed-off-by: Karel Zak fsck/fsck.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 22568e9a51e9ba3bf6863ac76cacfd0d754c9268 Author: Karel Zak Date: Fri Feb 20 12:14:48 2009 +0100 tests: remove obsolete stuff from Makefile.am Signed-off-by: Karel Zak tests/Makefile.am | 59 +--------------------------------------------------- 1 files changed, 2 insertions(+), 57 deletions(-) commit 26ea6eb1049851e6eaa661b9bb65dd27130a5e3f Author: Karel Zak Date: Thu Feb 19 19:01:34 2009 +0100 losetup: cleanup man page Signed-off-by: Karel Zak mount/losetup.8 | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) commit 27d320d6f9219cc4238d3bf69e8f66185f123e7e Author: Karel Zak Date: Thu Feb 19 18:36:25 2009 +0100 losetup: detach more devices by "-d [ ..]" This patch allows to detach more devices by "losetup -d", for example: # losetup -a /dev/loop0: [0804]:9955739 (/home/images/ary0.img) /dev/loop1: [0804]:9955740 (/home/images/ary1.img) /dev/loop2: [0804]:9955745 (/home/images/ary2.img) # losetup -d /dev/loop0 /dev/loop1 /dev/loop2 Signed-off-by: Karel Zak mount/lomount.c | 33 +++++++++++++++++++-------------- mount/losetup.8 | 4 +++- 2 files changed, 22 insertions(+), 15 deletions(-) commit 105960ab8511766afc7df46a0262bb5ddf7bb41a Author: Karel Zak Date: Wed Feb 18 23:40:17 2009 +0100 tests: refresh expected mount(8) outputs Signed-off-by: Karel Zak tests/expected/mount/paths | 3 ++- tests/expected/mount/special | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) commit 84f513b699ef533bb3276381e3ad06d4101ffc4d Author: Karel Zak Date: Wed Feb 18 23:33:25 2009 +0100 tests: disable suid mount test Unfortunately, libtool wrapper cannot be suid... Signed-off-by: Karel Zak tests/ts/mount/fstab-symlink | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) commit 27f8f3669a41e32a3da867dfd1cbc16e368a9a28 Author: Karel Zak Date: Wed Feb 18 23:16:57 2009 +0100 mount: inform about UID and eUID when verbose > 2 Signed-off-by: Karel Zak mount/mount.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit bb5f28762083a48a886a0f6ee685f5a98380a5c2 Author: Karel Zak Date: Wed Feb 18 22:46:01 2009 +0100 blkid: blkid_evaluate_spec() shouldn't ignore $BLKID_FILE Signed-off-by: Karel Zak libs/blkid/src/blkidP.h | 1 + libs/blkid/src/cache.c | 34 +++++++++++++++++++++++----------- libs/blkid/src/evaluate.c | 9 ++++++--- 3 files changed, 30 insertions(+), 14 deletions(-) commit ea7e2ccbd84fa9a8a5113dd1a133f72a1ece937f Author: Karel Zak Date: Wed Feb 18 21:50:55 2009 +0100 tests: refresh ipcs expected outputs Unfortunately, the last rebase in the topic/blkid branch has removed tailing white spaces. Grrr... Signed-off-by: Karel Zak tests/expected/ipcs/headers | 38 +++++++++++++++++++------------------- 1 files changed, 19 insertions(+), 19 deletions(-) commit d1ddc9fd7c175356003a188d0bbfc4f5460090ee Author: Karel Zak Date: Wed Feb 18 21:45:48 2009 +0100 tests: refresh cal(1) expected outputs Unfortunately, the last rebase in the topic/blkid branch has removed tailing white spaces. Grrr... Signed-off-by: Karel Zak tests/expected/cal/1m | 8 +++--- tests/expected/cal/3m | 20 +++++++++--------- tests/expected/cal/year | 48 +++++++++++++++++++++++----------------------- 3 files changed, 38 insertions(+), 38 deletions(-) commit 0f97843d69e202717a6c48a7a8382060123a239c Author: Karel Zak Date: Wed Feb 18 21:44:00 2009 +0100 tests: we needn't blkid.sh after "libtoolization" we needn't extra blkid.sh wrapper Signed-off-by: Karel Zak tests/commands.sh.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 166fccd1918a1cbf6273c189d00006dd241ffb82 Author: Karel Zak Date: Wed Feb 18 21:28:23 2009 +0100 tests: chmod -x ts/lscpu/mk-input.sh Signed-off-by: Karel Zak 0 files changed, 0 insertions(+), 0 deletions(-) commit 9c7d60135998fc7b701f097e014702cbd810bf58 Author: Karel Zak Date: Wed Feb 18 21:27:18 2009 +0100 tests: cleanup ts/md5 Signed-off-by: Karel Zak tests/expected/md5/md5 | 7 +++++++ tests/expected/ts-md5 | 7 ------- tests/input/ts-md5 | 7 ------- tests/ts-md5 | 36 ------------------------------------ tests/ts/md5/data | 7 +++++++ tests/ts/md5/md5 | 31 +++++++++++++++++++++++++++++++ 6 files changed, 45 insertions(+), 50 deletions(-) commit 86aa0ee7405b09655ae95fd64e037308ec9da95a Author: Karel Zak Date: Wed Feb 18 21:19:47 2009 +0100 tests: cleanup ts/minix Signed-off-by: Karel Zak tests/expected/minix/fsck | 8 +++++++ tests/expected/minix/mkfs | 10 ++++++++ tests/expected/ts-minix-fsck | 8 ------- tests/expected/ts-minix-mkfs | 10 -------- tests/ts-minix-fsck | 39 ---------------------------------- tests/ts-minix-mkfs | 48 ------------------------------------------ tests/ts/minix/fsck | 37 ++++++++++++++++++++++++++++++++ tests/ts/minix/mkfs | 45 +++++++++++++++++++++++++++++++++++++++ 8 files changed, 100 insertions(+), 105 deletions(-) commit efc09ae32954a4466c29f4de898d10132c830b5e Author: Karel Zak Date: Wed Feb 18 17:20:30 2009 +0100 build-sys: add fsck binary to .gitignore Signed-off-by: Karel Zak fsck/.gitignore | 1 + lib/.gitignore | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) commit 1d7a6c78b8261548a4954b41ad94c2b40b018af3 Author: Karel Zak Date: Wed Feb 18 17:16:46 2009 +0100 tests: cleanup lscpu reg.tests Signed-off-by: Karel Zak [..cut, too long..] 2491 files changed, 2984 insertions(+), 3010 deletions(-) commit bd8ef463476fc46005d4ce6e2348ee32eb93225e Author: Karel Zak Date: Wed Feb 18 16:48:20 2009 +0100 tests: cleanup ts/cramfs/mkfs-endianness Signed-off-by: Karel Zak tests/expected/cramfs/mkfs-endianness | 4 ++ tests/expected/ts-cramfs-endianness-mkfs | 4 -- tests/ts-cramfs-endianness-mkfs | 55 ------------------------------ tests/ts/cramfs/mkfs-endianness | 53 ++++++++++++++++++++++++++++ 4 files changed, 57 insertions(+), 59 deletions(-) commit c62d7af2e50ec09b73e1a7bf35be6f4a9c4c1b36 Author: Karel Zak Date: Wed Feb 18 16:45:01 2009 +0100 tests: cleanup ts/cramfs/fsck-endianness Signed-off-by: Karel Zak tests/expected/cramfs/fsck-endianness | 8 ++++ tests/expected/ts-cramfs-endianness-fsck | 8 ---- tests/input/cramfs-big.img | Bin 4096 -> 0 bytes tests/input/cramfs-little.img | Bin 4096 -> 0 bytes tests/ts-cramfs-endianness-fsck | 59 ------------------------------ tests/ts/cramfs/cramfs-big.img | Bin 0 -> 4096 bytes tests/ts/cramfs/cramfs-little.img | Bin 0 -> 4096 bytes tests/ts/cramfs/fsck-endianness | 57 +++++++++++++++++++++++++++++ 8 files changed, 65 insertions(+), 67 deletions(-) commit 4ff901f6d58fe984718943ff4959a4f3d8653535 Author: Karel Zak Date: Wed Feb 18 16:34:34 2009 +0100 tests: cleanup ts/bitops Signed-off-by: Karel Zak tests/expected/bitops/swapbytes | 21 +++++++++++++++++++++ tests/expected/ts-bitops-swapbytes | 21 --------------------- tests/ts-bitops-swapbytes | 29 ----------------------------- tests/ts/bitops/swapbytes | 27 +++++++++++++++++++++++++++ 4 files changed, 48 insertions(+), 50 deletions(-) commit 355eceba7ef60805123fad0bdcc69996891537be Author: Karel Zak Date: Wed Feb 18 16:10:45 2009 +0100 tests: add fsck:ismounted reg.test Signed-off-by: Karel Zak lib/ismounted.c | 11 ++++++--- tests/commands.sh.in | 2 + tests/expected/fsck/ismounted | 1 + tests/ts/fsck/ismounted | 45 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 55 insertions(+), 4 deletions(-) commit 33bbc9593708f33815ce666d9eab43d5381e30cd Author: Karel Zak Date: Wed Feb 18 15:43:34 2009 +0100 lib: add test_ismounted for regression test Signed-off-by: Karel Zak lib/Makefile.am | 10 ++++++---- lib/blkdev.c | 2 +- lib/ismounted.c | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) commit fe9274bf4be733b79a26ab1bb315c372ecf6146d Author: Karel Zak Date: Wed Feb 18 15:35:28 2009 +0100 po: update list of .c files Signed-off-by: Karel Zak po/POTFILES.in | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) commit fb429f2219f004900f7646d8e6afa96df0e87667 Author: Karel Zak Date: Wed Feb 18 15:34:51 2009 +0100 fsck: cosmetic changes (NLS, paths, ...) Signed-off-by: Karel Zak fsck/fsck.c | 17 +++++++++-------- lib/ismounted.c | 7 ++++--- 2 files changed, 13 insertions(+), 11 deletions(-) commit 06cb26d93cd80392808569cd1e82bbc8d07c6470 Author: Karel Zak Date: Wed Feb 18 15:25:50 2009 +0100 fsck: link with generic fsprobe wrapper This is a way how link fsck with libblkid (e2sprogs or util-linxu-ng version) and libvolume_id. Signed-off-by: Karel Zak fsck/Makefile.am | 13 ++++++++++++- fsck/fsck.c | 13 ++++++------- 2 files changed, 18 insertions(+), 8 deletions(-) commit 84a26f645c29fede0081d4b88a330fba6b8f9a8c Author: Karel Zak Date: Wed Feb 18 15:21:55 2009 +0100 lib: make open_device() optional in fsprobe.c Signed-off-by: Karel Zak lib/fsprobe.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 607c2a72952fc3c3e5014b447ba6b7d9f97b0ea1 Author: Karel Zak Date: Wed Feb 18 15:06:49 2009 +0100 fsck: move fsck from e2fsprogs to util-linux-ng Signed-off-by: Karel Zak Makefile.am | 4 + configure.ac | 17 +- fsck/Makefile.am | 13 + fsck/base_device.c | 169 +++++++ fsck/fsck.8 | 417 ++++++++++++++++ fsck/fsck.c | 1326 +++++++++++++++++++++++++++++++++++++++++++++++++++ fsck/fsck.h | 73 +++ include/ismounted.h | 6 + lib/ismounted.c | 199 ++++++++ 9 files changed, 2222 insertions(+), 2 deletions(-) commit e88517b175b054e0a138e270f89f8fbd13837068 Author: Karel Zak Date: Wed Feb 18 00:49:58 2009 +0100 blkid: fix low-probe mode return codes Signed-off-by: Karel Zak libs/blkid/bin/blkid.c | 35 ++++++++++++++++++----------------- 1 files changed, 18 insertions(+), 17 deletions(-) commit 37660c8afcdb4ed4b496826781d9a5f655f2eab9 Author: Karel Zak Date: Wed Feb 18 00:41:42 2009 +0100 blkid: add TODO hint about blkid_parse_tag_string() Signed-off-by: Karel Zak libs/blkid/TODO | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 0bdd2f97fcbcf773c8174dca2be60d1360f2c5df Author: Karel Zak Date: Wed Feb 18 00:37:28 2009 +0100 blkid: add cmdline interface for blkid_probe_filter_usage() Signed-off-by: Karel Zak libs/blkid/TODO | 11 +---------- libs/blkid/bin/blkid.8 | 18 +++++++++++++++++- libs/blkid/bin/blkid.c | 46 ++++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 62 insertions(+), 13 deletions(-) commit deedaa30537d73c8fdfbc709746ea47ab25571bf Author: Karel Zak Date: Tue Feb 17 23:57:15 2009 +0100 blkid: check calloc() return value Signed-off-by: Karel Zak libs/blkid/src/probe.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 50a3029d8877425441e6615d3d72ec73aa2e2518 Author: Karel Zak Date: Tue Feb 17 22:23:08 2009 +0100 blkid: add TODO hint about DM devnames in sysfs Signed-off-by: Karel Zak libs/blkid/TODO | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit d06d028a5a5c204ac2504e6bf6aa65a2e3b8aeb5 Author: Karel Zak Date: Tue Feb 17 21:28:09 2009 +0100 build-sys: use pkg-config for blkid and volume_id It seems that blkid.pc from e2fsprogs has been fixed: $ pkg-config --libs blkid -lblkid and the pkg-config does not return any other extra libraries (such -luuid or -ldevmapper). Signed-off-by: Karel Zak configure.ac | 70 ++++++++++++++++++++++++++++++---------------------- lib/fsprobe.c | 2 +- mount/Makefile.am | 6 ++-- 3 files changed, 44 insertions(+), 34 deletions(-) commit 17f29d7bac86dc6e42c8ea728a2b7d1dc873b3dc Author: Karel Zak Date: Tue Feb 17 01:01:35 2009 +0100 mount: generic blkid/volume_id wrapper, use blkid_evaluate_* * moves the generic libblkid/libvolume_id wrapper (fsprobe.c) from mount/ to lib/. We'll use the wrapper in cfdisk and fsck. The wrapper supports: - obsolete volume_id (udev) - obsolete libblkid (e2fsprogs) - libblkid (util-linux-ng) * mount, umount and swapon when linked against the new libblkid use - low-level probing code to read LABEL, UUID or FSTYPE from a device - high-level blkid_evaluate_spec() to convert LABEL/UUID to devname Signed-off-by: Karel Zak configure.ac | 1 + include/fsprobe.h | 23 +++ lib/fsprobe.c | 388 ++++++++++++++++++++++++++++++++++++++++++++++ mount/Makefile.am | 16 +- mount/devname.c | 15 ++ mount/devname.h | 6 + mount/fsprobe.c | 228 --------------------------- mount/fsprobe.h | 46 ------ mount/fsprobe_blkid.c | 82 ---------- mount/fsprobe_volumeid.c | 144 ----------------- mount/fstab.c | 3 +- mount/mount.c | 181 ++++++++++++++++++++-- mount/sundries.c | 36 ----- mount/sundries.h | 2 - mount/swapon.c | 9 +- 15 files changed, 618 insertions(+), 562 deletions(-) commit 4b921045e57b61df78f552f76227d2a0d528426d Author: Karel Zak Date: Mon Feb 16 16:52:16 2009 +0100 blkid: add Christoph's note about libdisk to TODO Signed-off-by: Karel Zak libs/blkid/TODO | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) commit cefcba379db38b7f83dabdcff95bb8ea9a160552 Author: Karel Zak Date: Mon Feb 16 11:15:55 2009 +0100 blkid: refresh TODO file Signed-off-by: Karel Zak libs/blkid/TODO | 36 ++++++++++++++++++++++++------------ 1 files changed, 24 insertions(+), 12 deletions(-) commit 60a4edd66200be829560dce0d41a02fc70cef4f5 Author: Karel Zak Date: Mon Feb 16 10:40:25 2009 +0100 build-sys: add temporary libtool *.m4 stuff We require libtool-2 (because old 1.5.x is crap). Unfortunately, libtool-2 is still not available in many Linux distributions -- now I see it in unstable distributions only. The painless way how to resolve this problem is to __temporary__ commit generated libtool-2 stuff to our repository. Signed-off-by: Karel Zak .gitignore | 12 +- autogen.sh | 28 +- config/ltmain.sh | 8406 +++++++++++++++++++++++++++++++++++++++++++++++++++++ m4/libtool.m4 | 7357 ++++++++++++++++++++++++++++++++++++++++++++++ m4/ltoptions.m4 | 368 +++ m4/ltsugar.m4 | 123 + m4/ltversion.m4 | 23 + m4/lt~obsolete.m4 | 92 + 8 files changed, 16393 insertions(+), 16 deletions(-) commit 154d63031340f91a2e019cf336c95e3c37183dd2 Author: Karel Zak Date: Fri Feb 13 13:08:07 2009 +0100 build-sys: libtoolize mount/Makefile.am * cleanup mount/Makefile.am * add {VOLUMEID,BLKID}_CFLAGS -- necessary for pkg-config * add support for linking with in-tree libblkid Signed-off-by: Karel Zak configure.ac | 20 ------------ mount/Makefile.am | 88 +++++++++++++++++++++++++++++++--------------------- 2 files changed, 52 insertions(+), 56 deletions(-) commit b12991dd5c4f8294096723158b6d387fc3d27342 Author: Karel Zak Date: Fri Feb 13 10:54:24 2009 +0100 build-sys: libtoolize by libtool-2 We need an infrastructure for stared libraries. The latest libtool-2 seems useful and it's definitely better than the old 1.5 crap. You need to install libtool-2 when you want to run ./autogen.sh script after checkout from git repository. Signed-off-by: Karel Zak .gitignore | 3 ++ autogen.sh | 21 ++++++++++- config/include-Makefile.am | 9 +++++ configure.ac | 7 +++- libs/blkid/bin/Makefile.am | 17 +-------- libs/blkid/src/Makefile.am | 66 +++++++++--------------------------- libs/blkid/src/probers/Makefile.am | 8 ++--- 7 files changed, 58 insertions(+), 73 deletions(-) commit a0487b1cb5beffb8f6783476664b01e8833e0ea8 Author: Karel Zak Date: Tue Feb 10 17:20:11 2009 +0100 blkid: start to use ABI versioning The library ABI and API is backwardly compatible, so it does not make sense to change the library SONAME. This patch adds a symbol versioning, naming paradigm is: BLKID_. The original libblkid from e2fsprogs uses "1.0" as a .so version and "libblkid.1" as a SONAME for all time (at least according to stuff in /lib/libblkid*) And the original library is without symbols versioning. It means that many private functions are exported to applications ;-( Note that the original blkid_get_library_version() returns E2FSPROGS_VERSION. The version in util-linux-ng returns BLKID_VERSION which is ... The . is the same version as we use for ABI. This concept seems less confusing than mix a library version and package version. Summary: OLD (e2fsprogs): ABI versioning: -none- SONAME: libblkid.1 .so version: libblkid.so.1.0 blkid_get_library_version(): @E2FSPROGS_VERSION@ (e.g. 1.41.1) NEW (util-linux-ng): ABI versioning: BLKID_. SONAME: libblkid.1 .so version: libblkid.so. (e.g. 1.41) blkid_get_library_version(): @BLKID_VERSION@ (e.g. 1.41.1) (BLKID_VERSION = ..) Signed-off-by: Karel Zak configure.ac | 9 ++++--- libs/blkid/bin/blkid.c | 3 +- libs/blkid/src/blkid.sym | 50 ++++++++++++++++++++++++++++++++------------- 3 files changed, 42 insertions(+), 20 deletions(-) commit b446754d27314fde979ead61633d9d9bbca21379 Author: Karel Zak Date: Tue Feb 10 11:43:50 2009 +0100 build-sys: add --with=fsprobe=builtin Signed-off-by: Karel Zak configure.ac | 26 ++++++++++++++++++-------- libs/Makefile.am | 6 +++++- 2 files changed, 23 insertions(+), 9 deletions(-) commit 940817b736bceccca9be6b9b73e4dd7da0d89142 Author: Karel Zak Date: Sun Feb 8 00:23:55 2009 +0100 blkid: add findfs(8) Signed-off-by: Karel Zak libs/blkid/.gitignore | 1 + libs/blkid/bin/Makefile.am | 7 +++-- libs/blkid/bin/findfs.8 | 35 +++++++++++++++++++++++++ libs/blkid/bin/findfs.c | 60 +++++++++++++++++++++++++++++++++++++++++++ libs/blkid/bin/findfs.sh.in | 10 +++++++ 5 files changed, 110 insertions(+), 3 deletions(-) commit c7bb14602de8c731c41f4fe2f56413fc463dd04a Author: Karel Zak Date: Sat Feb 7 23:46:59 2009 +0100 blkid: refresh TODO file Signed-off-by: Karel Zak libs/blkid/TODO | 26 -------------------------- 1 files changed, 0 insertions(+), 26 deletions(-) commit fc7a1669ed976bf0a11538b41fcc4626689202a7 Author: Karel Zak Date: Fri Feb 6 00:21:07 2009 +0100 blkid: clean up man pages Signed-off-by: Karel Zak configure.ac | 2 - libs/blkid/.gitignore | 1 - libs/blkid/Makefile.am | 4 +- libs/blkid/bin/Makefile.am | 1 + libs/blkid/bin/blkid.8 | 195 ++++++++++++++++++++++++++++++++++++++++++++ libs/blkid/blkid.8.in | 182 ----------------------------------------- libs/blkid/libblkid.3 | 81 ++++++++++++++++++ libs/blkid/libblkid.3.in | 80 ------------------ 8 files changed, 279 insertions(+), 267 deletions(-) commit 4786921c0bd131745dee02ce8c31912f512435e9 Author: root Date: Wed Feb 4 01:02:56 2009 +0100 blkid: add -L -U options (evaluation API) Signed-off-by: root libs/blkid/bin/blkid.c | 49 +++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 40 insertions(+), 9 deletions(-) commit 892a404cafaaf691ed4ecaa0c1b08cb3653747e8 Author: Karel Zak Date: Wed Feb 4 00:07:46 2009 +0100 blkid: add blkid_evaluate_spec() Signed-off-by: Karel Zak libs/blkid/src/Makefile.am | 5 +- libs/blkid/src/blkid.h | 5 + libs/blkid/src/blkid.sym | 2 + libs/blkid/src/blkidP.h | 6 + libs/blkid/src/evaluate.c | 264 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 280 insertions(+), 2 deletions(-) commit 74a9c6f7b709cb2c3e3863cb91ed1c869a25da84 Author: Karel Zak Date: Tue Feb 3 22:12:03 2009 +0100 mount: move realpath.c code to lib/ Signed-off-by: Karel Zak TODO | 2 + include/canonicalize.h | 11 +++ lib/canonicalize.c | 152 +++++++++++++++++++++++++++++++++++++++ mount/Makefile.am | 21 +++--- mount/fsprobe.c | 1 - mount/fsprobe_volumeid.c | 1 - mount/fstab.c | 5 -- mount/lomount.c | 1 - mount/mount.c | 1 - mount/realpath.c | 177 ---------------------------------------------- mount/realpath.h | 14 ---- mount/sundries.c | 48 ++++++++++++- mount/sundries.h | 5 ++ mount/swapon.c | 1 - mount/umount.c | 1 - 15 files changed, 229 insertions(+), 212 deletions(-) commit 3fd63eac3100864a3c4dea45ecc1c5a21b1c6659 Author: Karel Zak Date: Tue Feb 3 21:59:25 2009 +0100 blkid: fix typo (syntax error) Signed-off-by: Karel Zak libs/blkid/bin/blkid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 9906300fe8e5457af70778c1caf949669c29a325 Author: Karel Zak Date: Tue Feb 3 16:07:46 2009 +0100 blkid: compile TEST_PROGRAMs Well, the src/Makefile.am is not prefect. Maybe it's time to switch to libtools .... Signed-off-by: Karel Zak libs/blkid/.gitignore | 1 + libs/blkid/src/Makefile.am | 23 +++++++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) commit 568871ae4dad99bbd48cad6f23ef659cd7904d6e Author: Karel Zak Date: Tue Feb 3 15:23:18 2009 +0100 blkid: add support for /etc/blkid.conf file We need a config file for the library. Now the library supports config options: EVALUATION=[,] SEND_UEVENT= CACHE_FILE= Signed-off-by: Karel Zak libs/blkid/TODO | 3 + libs/blkid/src/Makefile.am | 1 + libs/blkid/src/blkidP.h | 36 +++++++- libs/blkid/src/cache.c | 22 +++-- libs/blkid/src/config.c | 208 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 260 insertions(+), 10 deletions(-) commit 02a8a21a26fa8fbbf54b1264dada1dcd4735c87c Author: Karel Zak Date: Thu Jan 29 17:56:09 2009 +0100 blkid: add new options to blkid.8 and help output Signed-off-by: Karel Zak libs/blkid/bin/blkid.c | 9 +++- libs/blkid/blkid.8.in | 104 ++++++++++++++++++++++++++++-------------------- 2 files changed, 67 insertions(+), 46 deletions(-) commit 5297467316cbe0ba22d48067e0bf1ee247e43f5c Author: Sven Jost Date: Thu Jan 29 16:35:54 2009 +0100 blkid: support via raid version 2 [kzak@redhat.com: patch from udev volume_id] Signed-off-by: Karel Zak libs/blkid/src/probers/via_raid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d72b80b29030f1339327919009b2ba8e061a8178 Author: Karel Zak Date: Tue Jan 27 18:08:21 2009 +0100 blkid: refresh TODO file Signed-off-by: Karel Zak libs/blkid/TODO | 15 +-------------- 1 files changed, 1 insertions(+), 14 deletions(-) commit b8d8ef729d8fec3ab90da8961ac3a45a27c6f22d Author: Karel Zak Date: Tue Jan 27 18:05:04 2009 +0100 tests: fix typo in low-probe test Signed-off-by: Karel Zak tests/ts/blkid/low-probe | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 92163c455ba1245134588b4ab5ccd82df9b2f3e2 Author: Karel Zak Date: Tue Jan 27 17:57:18 2009 +0100 blkid: cleanup _LOGPROBE debug messages Signed-off-by: Karel Zak libs/blkid/src/probe.c | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) commit a2f01a1c0ba7e8d6f546133195ee759715ef42f7 Author: Karel Zak Date: Tue Jan 27 17:25:06 2009 +0100 blkid: add blkid_do_safeprobe() The function blkid_do_probe() is able to detect more filesystems on the device while(blkid_do_probe(pr) == 0) ... but in many cases we need only one exact answer, and we also need to be sure that there is not any other FS on the device. For example it's possible to create valid LUKS (or vfat, ...) header and valid linux swap header on the same device -- in such case the device can be interpreted (by mount/swapon) in two completely different ways. An ambivalent result is always error -- the library never returns such result. Signed-off-by: Karel Zak libs/blkid/bin/blkid.c | 9 +++++++- libs/blkid/src/blkid.h | 2 + libs/blkid/src/blkid.sym | 1 + libs/blkid/src/blkidP.h | 14 ++++++++++-- libs/blkid/src/probe.c | 41 +++++++++++++++++++++++++++++++++++++- libs/blkid/src/probers/iso9660.c | 1 + libs/blkid/src/probers/udf.c | 1 + libs/blkid/src/verify.c | 4 +- 8 files changed, 66 insertions(+), 7 deletions(-) commit ba837d3f0a077c094d457e53ca56297d0f843959 Author: Karel Zak Date: Tue Jan 27 15:21:31 2009 +0100 blkid: add lvm2 reg.test Signed-off-by: Karel Zak tests/expected/blkid/low-probe-lvm2 | 5 +++++ tests/ts/blkid/images/lvm2.img.bz2 | Bin 0 -> 173 bytes 2 files changed, 5 insertions(+), 0 deletions(-) commit f89c496ea27cb09f93f2e81971e78a173e0c9be7 Author: Karel Zak Date: Tue Jan 27 15:09:56 2009 +0100 blkid: add version support to LVM2 Signed-off-by: Karel Zak libs/blkid/src/probers/lvm.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 95f6002d724b6a824de24c1091bc54e61d940687 Author: Karel Zak Date: Mon Jan 26 15:56:25 2009 +0100 blkid: add GFS2 reg. test Signed-off-by: Karel Zak tests/expected/blkid/low-probe-gfs2 | 5 +++++ tests/ts/blkid/images/gfs2.img.bz2 | Bin 0 -> 121 bytes 2 files changed, 5 insertions(+), 0 deletions(-) commit 75ce426fdb46c140ee2a930b46e3679fc8ef2581 Author: Karel Zak Date: Mon Jan 26 15:53:54 2009 +0100 blkid: add uuid and version support to gfs2 Signed-off-by: Karel Zak libs/blkid/src/probers/gfs.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) commit f6528f78cc232737add05d3b1610a1b10d0e6a59 Author: Karel Zak Date: Mon Jan 26 15:07:28 2009 +0100 blkid: add reg.tests for HFS and HFS+ Signed-off-by: Karel Zak tests/expected/blkid/low-probe-hfs | 4 ++++ tests/expected/blkid/low-probe-hfsplus | 4 ++++ tests/ts/blkid/images/hfs.img.bz2 | Bin 0 -> 257 bytes tests/ts/blkid/images/hfsplus.img.bz2 | Bin 0 -> 300 bytes 4 files changed, 8 insertions(+), 0 deletions(-) commit 70605edc5de3efd4e63c2e56f0cfa9a138f989fb Author: Karel Zak Date: Sat Jan 24 00:16:34 2009 +0100 blkid: add vol_id call to blkid regression test Signed-off-by: Karel Zak tests/ts/blkid/low-probe | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit b1646690425fa3f4788e34c8606823f7d8af31b8 Author: Karel Zak Date: Sat Jan 24 00:04:20 2009 +0100 blkid: add to reiser Signed-off-by: Karel Zak libs/blkid/src/probers/reiserfs.c | 12 ++++++++++-- tests/expected/blkid/low-probe-reiser3 | 1 + tests/expected/blkid/low-probe-reiser4 | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) commit f38ac42666536a7217df7d116556d0900f3e5d95 Author: Karel Zak Date: Fri Jan 23 23:27:17 2009 +0100 blkid: add ocfs2 version Signed-off-by: Karel Zak libs/blkid/src/probers/ocfs.c | 63 +++++++++++++++++++++++++++++----- tests/expected/blkid/low-probe-ocfs2 | 1 + 2 files changed, 55 insertions(+), 9 deletions(-) commit 22632603a232d5119027d1757615e786b3e15de5 Author: Karel Zak Date: Fri Jan 23 22:55:37 2009 +0100 blkid: fix ..._strncpy_uuid Signed-off-by: Karel Zak libs/blkid/src/probe.c | 2 +- tests/expected/blkid/low-probe-ddf-raid | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit 0b9fd855c954f0272990c2d0538c7ed5944334cc Author: Karel Zak Date: Thu Jan 22 01:35:39 2009 +0100 blkid: add ddf raid regression test Signed-off-by: Karel Zak tests/expected/blkid/low-probe-ddf-raid | 5 +++++ tests/ts/blkid/images/ddf-raid.img.bz2 | Bin 0 -> 534 bytes 2 files changed, 5 insertions(+), 0 deletions(-) commit 2d4f75767cd8fed92b674fd2c5841a64e18cb24c Author: Karel Zak Date: Thu Jan 22 01:28:39 2009 +0100 blkid: fix blkid_do_probe() Fix small non-sense from from a recent commit. Signed-off-by: Karel Zak libs/blkid/src/probe.c | 4 +++- libs/blkid/src/probers/luks.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) commit 5bf9a2b1399e5d9fc5fe3fe7ed3018225b313efd Author: Karel Zak Date: Thu Jan 22 01:18:13 2009 +0100 blkid: remove unnecessary debug message Signed-off-by: Karel Zak libs/blkid/src/probers/lvm.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) commit 22db12778e46f709941ce4f3c3195bfff6b4b6b4 Author: Karel Zak Date: Thu Jan 22 01:17:08 2009 +0100 blkid: use blkid_probe_strcpy_uuid() for luks LUKS stores UUID as a string... Signed-off-by: Karel Zak libs/blkid/src/probers/luks.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 50469b780e75448a05001aad211c58103bdd0406 Author: Karel Zak Date: Thu Jan 22 01:15:02 2009 +0100 blkid: improve ddf detection Signed-off-by: Karel Zak libs/blkid/src/probers/ddf_raid.c | 42 +++++++++++++++++++++++------------- 1 files changed, 27 insertions(+), 15 deletions(-) commit bb6c6673638629ead01c3cbd9bb2837799d1eef2 Author: Karel Zak Date: Thu Jan 22 01:06:57 2009 +0100 blkid: set size for non-blkdevs, add blkid_probe_strcpy_uuid() - fix blkid_probe_set_device() to work for non-blkdevs (e.g. file images), in such case we need to set the size of data from stat->st_size - add blkid_probe_strcpy_uuid() for filesystems where UUID is stored as a string (e.g. DDF raid, luks, ...) Signed-off-by: Karel Zak libs/blkid/src/blkidP.h | 2 +- libs/blkid/src/probe.c | 68 ++++++++++++++++++++++++++++++++-------------- 2 files changed, 48 insertions(+), 22 deletions(-) commit 1fd27cbcbe33e0d69b51da4eaa2a2a5656631865 Author: Karel Zak Date: Wed Jan 21 22:09:53 2009 +0100 blkid: add netware regression test Thanks to Kay Sievers for the image and information. Signed-off-by: Karel Zak tests/expected/blkid/low-probe-netware | 5 +++++ tests/ts/blkid/images/netware.img.bz2 | Bin 0 -> 239 bytes 2 files changed, 5 insertions(+), 0 deletions(-) commit 5e6b1747e93bb1bd2d1cd94ac17666fa97a6a738 Author: Karel Zak Date: Wed Jan 21 19:23:10 2009 +0100 blkid: netware SB has to be packed Signed-off-by: Karel Zak libs/blkid/src/probers/netware.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit dd9ef6f612f658f2fc9b1b2ac682a5166379b4b4 Author: Karel Zak Date: Wed Jan 21 17:09:51 2009 +0100 blkid: add hpfs regression test Signed-off-by: Karel Zak tests/expected/blkid/low-probe-hpfs | 7 +++++++ tests/ts/blkid/images/hpfs.img.bz2 | Bin 0 -> 2454 bytes 2 files changed, 7 insertions(+), 0 deletions(-) commit d46c8ab3e0e383bedb922a1c15d9aa5a49371026 Author: Karel Zak Date: Wed Jan 21 17:01:22 2009 +0100 blkid: fix udev output - uses the "safe" output for non-encoded values - makes the print_udev_format() more readable Signed-off-by: Karel Zak libs/blkid/bin/blkid.c | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) commit 25c03e5b46a47357ae1a55846f6892953984ba5b Author: Karel Zak Date: Wed Jan 21 17:00:55 2009 +0100 tests: remove unexpected exit from *_subtest functions Signed-off-by: Karel Zak tests/functions.sh | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 17d6fe2ea36a01056907ca5e89eedef46cbce32c Author: Karel Zak Date: Wed Jan 21 16:58:04 2009 +0100 blkid: fix blkid_safe_string() Signed-off-by: Karel Zak libs/blkid/src/encode.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit c8d99ef18beb0deb5395dcd727d536e3e494d0ac Author: Karel Zak Date: Tue Jan 20 23:58:44 2009 +0100 blkid: add a note to TODO list Signed-off-by: Karel Zak libs/blkid/TODO | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 8df5195f1a190e5ce63af261937eafe5efeca2d5 Author: Karel Zak Date: Tue Jan 20 23:43:56 2009 +0100 tests: add libblkid regression tests (images from e2fsprogs) - adds basic infrastructure for blkid regression tests - imports test images from e2fsprogs (all tests PASS!:-) Signed-off-by: Karel Zak tests/commands.sh.in | 1 + tests/expected/blkid/low-probe-cramfs | 4 ++ tests/expected/blkid/low-probe-ext2 | 7 ++++ tests/expected/blkid/low-probe-ext3 | 8 ++++ tests/expected/blkid/low-probe-fat | 8 ++++ tests/expected/blkid/low-probe-fat32_label_64MB | 7 ++++ tests/expected/blkid/low-probe-jbd | 5 +++ tests/expected/blkid/low-probe-jfs | 6 +++ tests/expected/blkid/low-probe-minix | 3 ++ tests/expected/blkid/low-probe-ocfs2 | 6 +++ tests/expected/blkid/low-probe-reiser3 | 6 +++ tests/expected/blkid/low-probe-reiser4 | 6 +++ tests/expected/blkid/low-probe-romfs | 4 ++ tests/expected/blkid/low-probe-small-fat32 | 7 ++++ tests/expected/blkid/low-probe-swap0 | 3 ++ tests/expected/blkid/low-probe-swap1 | 7 ++++ tests/expected/blkid/low-probe-udf | 4 ++ tests/expected/blkid/low-probe-xfs | 6 +++ tests/ts/blkid/images/cramfs.img.bz2 | Bin 0 -> 124 bytes tests/ts/blkid/images/ext2.img.bz2 | Bin 0 -> 356 bytes tests/ts/blkid/images/ext3.img.bz2 | Bin 0 -> 1489 bytes tests/ts/blkid/images/fat.img.bz2 | Bin 0 -> 249 bytes tests/ts/blkid/images/fat32_label_64MB.img.bz2 | Bin 0 -> 1151 bytes tests/ts/blkid/images/jbd.img.bz2 | Bin 0 -> 205 bytes tests/ts/blkid/images/jfs.img.bz2 | Bin 0 -> 3434 bytes tests/ts/blkid/images/minix.img.bz2 | Bin 0 -> 138 bytes tests/ts/blkid/images/ocfs2.img.bz2 | Bin 0 -> 1002 bytes tests/ts/blkid/images/reiser3.img.bz2 | Bin 0 -> 282 bytes tests/ts/blkid/images/reiser4.img.bz2 | Bin 0 -> 366 bytes tests/ts/blkid/images/romfs.img.bz2 | Bin 0 -> 105 bytes tests/ts/blkid/images/small-fat32.img.bz2 | Bin 0 -> 372 bytes tests/ts/blkid/images/swap0.img.bz2 | Bin 0 -> 72 bytes tests/ts/blkid/images/swap1.img.bz2 | Bin 0 -> 120 bytes tests/ts/blkid/images/udf.img.bz2 | Bin 0 -> 2031 bytes tests/ts/blkid/images/xfs.img.bz2 | Bin 0 -> 443 bytes tests/ts/blkid/low-probe | 40 +++++++++++++++++++++++ 36 files changed, 138 insertions(+), 0 deletions(-) commit 425ca40aa29190d0bfe4e6def13568740913b423 Author: Karel Zak Date: Tue Jan 20 23:42:33 2009 +0100 tests: fix the final message for subtests Signed-off-by: Karel Zak tests/functions.sh | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) commit 09888efe4c108c156e4710d5672c0020c53ab79a Author: Karel Zak Date: Tue Jan 20 15:38:01 2009 +0100 tests: add support for subtests Signed-off-by: Karel Zak tests/functions.sh | 97 +++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 77 insertions(+), 20 deletions(-) commit 905d0b9b66d8a8f90bacfcd745865e7ec4038016 Author: Karel Zak Date: Tue Jan 20 13:19:43 2009 +0100 tests: move some generic stuff from ts_init() to a new ts_init_env() Signed-off-by: Karel Zak tests/functions.sh | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) commit 1f943449548a81bb5c22c9ae29dcc8236d1a5ad3 Author: Karel Zak Date: Tue Jan 20 13:18:22 2009 +0100 tests: add "byte-order" to helpers/test_sysinfo Signed-off-by: Karel Zak tests/helpers/test_sysinfo.c | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) commit c1b4c7fb494a1492d015c3aa7d0b10074b897280 Author: Karel Zak Date: Tue Jan 20 00:57:57 2009 +0100 tests: fix output string Signed-off-by: Karel Zak tests/functions.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 43d1d9c749d59b4c1d90f3f18f27a1fb7a087cce Author: Karel Zak Date: Tue Jan 20 00:50:01 2009 +0100 tests: cleanup ts/mount Signed-off-by: Karel Zak tests/ts/mount/devname | 7 +++---- tests/ts/mount/fstab-devname | 8 +++----- tests/ts/mount/fstab-devname2label | 9 +++------ tests/ts/mount/fstab-devname2uuid | 8 +++----- tests/ts/mount/fstab-label | 9 +++------ tests/ts/mount/fstab-label2devname | 9 +++------ tests/ts/mount/fstab-label2uuid | 8 +++----- tests/ts/mount/fstab-symlink | 9 ++++----- tests/ts/mount/fstab-uuid | 8 +++----- tests/ts/mount/fstab-uuid2devname | 8 +++----- tests/ts/mount/fstab-uuid2label | 9 +++------ tests/ts/mount/label | 8 +++----- tests/ts/mount/move | 16 ++++++---------- tests/ts/mount/mtablock | 8 +++----- tests/ts/mount/noncanonical | 10 +++------- tests/ts/mount/paths | 6 ++---- tests/ts/mount/remount | 6 ++---- tests/ts/mount/special | 9 +++------ tests/ts/mount/uuid | 8 +++----- 19 files changed, 59 insertions(+), 104 deletions(-) commit 632830ccf28d06444c50d14708240506e6a6d1fc Author: Karel Zak Date: Tue Jan 20 00:24:23 2009 +0100 tests: cleanup ts/swapon Signed-off-by: Karel Zak tests/functions.sh | 16 ++++++++-------- tests/ts/swapon/devname | 8 +++----- tests/ts/swapon/label | 9 +++------ tests/ts/swapon/uuid | 8 +++----- 4 files changed, 17 insertions(+), 24 deletions(-) commit 0674bd0b90345eb393ab38c0b8f07d5ff85bed43 Author: Karel Zak Date: Tue Jan 20 00:16:53 2009 +0100 tests: cleanup ts/script Signed-off-by: Karel Zak tests/ts/script/race | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) commit 4468cec52a5b315786b4975d1cbff1650d558672 Author: Karel Zak Date: Tue Jan 20 00:14:02 2009 +0100 tests: cleanup ts/paths Signed-off-by: Karel Zak tests/ts/paths/built-in | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) commit 5f8b0c0eaf51f663a277c659b636e9f6591f0c8f Author: Karel Zak Date: Tue Jan 20 00:12:24 2009 +0100 tests: cleanup ts/namei Signed-off-by: Karel Zak tests/expected/namei/logic | 10 +++------- tests/ts/namei/logic | 20 +++++++++----------- 2 files changed, 12 insertions(+), 18 deletions(-) commit e56f9e472f16d2d684045989fdf56f8721aa78b8 Author: Karel Zak Date: Tue Jan 20 00:02:50 2009 +0100 tests: cleanup ts/look Signed-off-by: Karel Zak tests/ts/look/separator | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) commit 37c28b42a6f35bf050b6f0dfeccd8a86e91b1281 Author: Karel Zak Date: Mon Jan 19 23:59:51 2009 +0100 tests: cleanup ts/login Signed-off-by: Karel Zak tests/ts/login/checktty | 7 +++---- tests/ts/login/islocal | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) commit 1016b53f61b859439ac4393a4172a4612856885e Author: Karel Zak Date: Mon Jan 19 23:57:10 2009 +0100 tests: cleanup ts/ipcs Signed-off-by: Karel Zak tests/functions.sh | 2 +- tests/ts/ipcs/functions.sh | 6 +++--- tests/ts/ipcs/headers | 6 ++---- tests/ts/ipcs/limits | 7 ++++--- tests/ts/ipcs/limits2 | 3 ++- 5 files changed, 12 insertions(+), 12 deletions(-) commit fb59721f6285016818e89b8a756f8db48fc3c02f Author: Karel Zak Date: Mon Jan 19 23:41:21 2009 +0100 tests: cleanup ts/hwclock Signed-off-by: Karel Zak tests/ts/hwclock/systohc | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) commit cbac71bdf84e9d9a72010d837549d810727eb783 Author: root Date: Mon Jan 19 23:35:35 2009 +0100 tests: refresh and cleanup cramfs/mkfs Signed-off-by: root tests/expected/cramfs/mkfs | 5110 ++++++++++++++++++++++---------------------- tests/functions.sh | 14 +- tests/ts/cramfs/mkfs | 43 +- 3 files changed, 2588 insertions(+), 2579 deletions(-) commit a8d3e93dc0cb2fa57da7a5377c889504b5c6025c Author: Karel Zak Date: Mon Jan 19 22:39:29 2009 +0100 tests: cleanup ts/col scripts Signed-off-by: Karel Zak tests/ts/col/multibyte | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) commit b319621a35a23d9403a151aaee12efc8519f491f Author: Karel Zak Date: Mon Jan 19 22:37:52 2009 +0100 tests: cleanup ts/cal scripts Signed-off-by: Karel Zak tests/ts/cal/1m | 5 ++--- tests/ts/cal/3m | 6 ++---- tests/ts/cal/year | 6 ++---- 3 files changed, 6 insertions(+), 11 deletions(-) commit a02f320d4bf6a09d1c3b904db01a4188bbaee562 Author: Karel Zak Date: Mon Jan 19 22:36:27 2009 +0100 tests: fix TS_* paths Signed-off-by: Karel Zak tests/commands.sh.in | 5 +---- tests/functions.sh | 41 +++++++++++++++++++---------------------- tests/run.sh | 10 +++++----- 3 files changed, 25 insertions(+), 31 deletions(-) commit a1be90bba4e4c5fcd427047f5b4622fbe6181e8c Author: Karel Zak Date: Mon Jan 19 18:27:15 2009 +0100 tests: add ./run.sh Signed-off-by: Karel Zak tests/run.sh | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) commit d42bbae57d1184a7671782151c5413b874b0c23c Author: Karel Zak Date: Mon Jan 19 18:08:06 2009 +0100 tests: add support for subdirs to basic test functions Signed-off-by: Karel Zak tests/functions.sh | 67 +++++++++++++++++++++++++--------- tests/run.sh | 8 ++--- tests/ts/col/multibyte | 2 +- tests/ts/ipcs/function.sh | 83 ------------------------------------------ tests/ts/ipcs/functions.sh | 83 ++++++++++++++++++++++++++++++++++++++++++ tests/ts/ipcs/limits | 3 +- tests/ts/ipcs/limits2 | 8 ++--- tests/ts/login/islocal | 2 +- tests/ts/mount/fstab-symlink | 2 +- tests/ts/script/race | 2 +- 10 files changed, 143 insertions(+), 117 deletions(-) commit 1cec8fc9f204823795752f33ecdd0fdbc4e3a307 Author: Karel Zak Date: Mon Jan 19 17:29:17 2009 +0100 tests: create expected/$(component)/$(testname) Signed-off-by: Karel Zak tests/expected/cal/1m | 37 + tests/expected/cal/3m | 37 + tests/expected/cal/year | 177 ++ tests/expected/col/multibyte | 1 + tests/expected/cramfs/mkfs | 4125 ++++++++++++++++++++++++++++++ tests/expected/ipcs/headers | 64 + tests/expected/ipcs/limits | 11 + tests/expected/ipcs/limits2 | 4 + tests/expected/login/checktty | 8 + tests/expected/login/islocal | 13 + tests/expected/look/separator | 1 + tests/expected/mount/devname | 1 + tests/expected/mount/fstab-devname | 1 + tests/expected/mount/fstab-devname2label | 1 + tests/expected/mount/fstab-devname2uuid | 1 + tests/expected/mount/fstab-label | 1 + tests/expected/mount/fstab-label2devname | 1 + tests/expected/mount/fstab-label2uuid | 1 + tests/expected/mount/fstab-symlink | 1 + tests/expected/mount/fstab-uuid | 1 + tests/expected/mount/fstab-uuid2devname | 1 + tests/expected/mount/fstab-uuid2label | 1 + tests/expected/mount/label | 1 + tests/expected/mount/move | 1 + tests/expected/mount/mtablock | 1 + tests/expected/mount/noncanonical | 2 + tests/expected/mount/paths | 10 + tests/expected/mount/remount | 1 + tests/expected/mount/special | 16 + tests/expected/mount/uuid | 1 + tests/expected/namei/logic | 13 + tests/expected/paths/built-in | 43 + tests/expected/script/race | 1 + tests/expected/swapon/devname | 1 + tests/expected/swapon/label | 1 + tests/expected/swapon/uuid | 1 + tests/expected/ts-cal-1 | 37 - tests/expected/ts-cal-3 | 37 - tests/expected/ts-cal-y | 177 -- tests/expected/ts-col-multibyte | 1 - tests/expected/ts-cramfs-mkfs | 4125 ------------------------------ tests/expected/ts-fstab-devname | 1 - tests/expected/ts-fstab-devname2label | 1 - tests/expected/ts-fstab-devname2uuid | 1 - tests/expected/ts-fstab-label | 1 - tests/expected/ts-fstab-label2devname | 1 - tests/expected/ts-fstab-label2uuid | 1 - tests/expected/ts-fstab-symlink | 1 - tests/expected/ts-fstab-uuid | 1 - tests/expected/ts-fstab-uuid2devname | 1 - tests/expected/ts-fstab-uuid2label | 1 - tests/expected/ts-include-pathnames | 43 - tests/expected/ts-ipcs-headers | 64 - tests/expected/ts-ipcs-limits | 11 - tests/expected/ts-ipcs-limits2 | 4 - tests/expected/ts-login-checktty | 8 - tests/expected/ts-login-islocal | 13 - tests/expected/ts-look-separator | 1 - tests/expected/ts-mount-devname | 1 - tests/expected/ts-mount-label | 1 - tests/expected/ts-mount-move | 1 - tests/expected/ts-mount-mtablock | 1 - tests/expected/ts-mount-noncanonical | 2 - tests/expected/ts-mount-paths | 10 - tests/expected/ts-mount-remount | 1 - tests/expected/ts-mount-special | 16 - tests/expected/ts-mount-uuid | 1 - tests/expected/ts-namei-logic | 13 - tests/expected/ts-script-race | 1 - tests/expected/ts-swapon-devname | 1 - tests/expected/ts-swapon-label | 1 - tests/expected/ts-swapon-uuid | 1 - 72 files changed, 4582 insertions(+), 4582 deletions(-) commit b8b7678d18c5e018093355418b09b352c36ea396 Author: Karel Zak Date: Mon Jan 19 17:17:42 2009 +0100 tests: remove input directory Signed-off-by: Karel Zak tests/input/ts-col-multibyte | 1 - tests/input/ts-login-islocal | 10 ---------- tests/ts/col/multibyte.data | 1 + tests/ts/login/islocal.data | 10 ++++++++++ 4 files changed, 11 insertions(+), 11 deletions(-) commit 8387a824b576c41a0a4077cb1973046e91f7d1f6 Author: Karel Zak Date: Mon Jan 19 16:50:51 2009 +0100 tests: create subdirs for test scripts Signed-off-by: Karel Zak tests/ts-cal-1 | 60 ----------------------- tests/ts-cal-3 | 60 ----------------------- tests/ts-cal-y | 60 ----------------------- tests/ts-col-multibyte | 29 ----------- tests/ts-cramfs-mkfs | 91 ------------------------------------ tests/ts-fstab-devname | 55 ---------------------- tests/ts-fstab-devname2label | 52 -------------------- tests/ts-fstab-devname2uuid | 51 -------------------- tests/ts-fstab-label | 65 ------------------------- tests/ts-fstab-label2devname | 60 ----------------------- tests/ts-fstab-label2uuid | 64 ------------------------- tests/ts-fstab-symlink | 64 ------------------------- tests/ts-fstab-uuid | 64 ------------------------- tests/ts-fstab-uuid2devname | 59 ----------------------- tests/ts-fstab-uuid2label | 64 ------------------------- tests/ts-hwclock-systohc | 59 ----------------------- tests/ts-include-pathnames | 29 ----------- tests/ts-ipcs-headers | 60 ----------------------- tests/ts-ipcs-limits | 51 -------------------- tests/ts-ipcs-limits2 | 32 ------------- tests/ts-ipcs.sh | 83 -------------------------------- tests/ts-login-checktty | 27 ----------- tests/ts-login-islocal | 28 ----------- tests/ts-look-separator | 43 ----------------- tests/ts-mount-devname | 48 ------------------- tests/ts-mount-label | 58 ----------------------- tests/ts-mount-move | 60 ----------------------- tests/ts-mount-mtablock | 52 -------------------- tests/ts-mount-noncanonical | 37 --------------- tests/ts-mount-paths | 29 ----------- tests/ts-mount-remount | 54 --------------------- tests/ts-mount-special | 43 ----------------- tests/ts-mount-uuid | 57 ---------------------- tests/ts-namei-logic | 36 -------------- tests/ts-script-race | 37 --------------- tests/ts-swapon-devname | 46 ------------------ tests/ts-swapon-label | 51 -------------------- tests/ts-swapon-uuid | 50 -------------------- tests/ts/cal/1m | 60 +++++++++++++++++++++++ tests/ts/cal/3m | 60 +++++++++++++++++++++++ tests/ts/cal/year | 60 +++++++++++++++++++++++ tests/ts/col/multibyte | 29 +++++++++++ tests/ts/cramfs/mkfs | 91 ++++++++++++++++++++++++++++++++++++ tests/ts/hwclock/systohc | 59 +++++++++++++++++++++++ tests/ts/ipcs/function.sh | 83 ++++++++++++++++++++++++++++++++ tests/ts/ipcs/headers | 60 +++++++++++++++++++++++ tests/ts/ipcs/limits | 51 ++++++++++++++++++++ tests/ts/ipcs/limits2 | 32 +++++++++++++ tests/ts/login/checktty | 27 +++++++++++ tests/ts/login/islocal | 28 +++++++++++ tests/ts/look/separator | 43 +++++++++++++++++ tests/ts/mount/devname | 48 +++++++++++++++++++ tests/ts/mount/fstab-devname | 55 ++++++++++++++++++++++ tests/ts/mount/fstab-devname2label | 52 ++++++++++++++++++++ tests/ts/mount/fstab-devname2uuid | 51 ++++++++++++++++++++ tests/ts/mount/fstab-label | 65 +++++++++++++++++++++++++ tests/ts/mount/fstab-label2devname | 60 +++++++++++++++++++++++ tests/ts/mount/fstab-label2uuid | 64 +++++++++++++++++++++++++ tests/ts/mount/fstab-symlink | 64 +++++++++++++++++++++++++ tests/ts/mount/fstab-uuid | 64 +++++++++++++++++++++++++ tests/ts/mount/fstab-uuid2devname | 59 +++++++++++++++++++++++ tests/ts/mount/fstab-uuid2label | 64 +++++++++++++++++++++++++ tests/ts/mount/label | 58 +++++++++++++++++++++++ tests/ts/mount/move | 60 +++++++++++++++++++++++ tests/ts/mount/mtablock | 52 ++++++++++++++++++++ tests/ts/mount/noncanonical | 37 +++++++++++++++ tests/ts/mount/paths | 29 +++++++++++ tests/ts/mount/remount | 54 +++++++++++++++++++++ tests/ts/mount/special | 43 +++++++++++++++++ tests/ts/mount/uuid | 57 ++++++++++++++++++++++ tests/ts/namei/logic | 36 ++++++++++++++ tests/ts/paths/built-in | 29 +++++++++++ tests/ts/script/race | 37 +++++++++++++++ tests/ts/swapon/devname | 46 ++++++++++++++++++ tests/ts/swapon/label | 51 ++++++++++++++++++++ tests/ts/swapon/uuid | 50 ++++++++++++++++++++ 76 files changed, 1968 insertions(+), 1968 deletions(-) commit 523e65d4b6538cdad912e59f9c95c0791233b5d7 Author: Karel Zak Date: Wed Jan 14 16:37:46 2009 +0100 blkid: refresh TODO file ... some nice ideas from brainstorming with Ted, Kay and Scott. Signed-off-by: Karel Zak libs/blkid/TODO | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) commit e67120685f53c4de0845ce342f747a9fe381cf65 Author: Karel Zak Date: Wed Jan 14 16:25:56 2009 +0100 blkid: use sizeof() for hfs uuid Signed-off-by: Karel Zak libs/blkid/src/probers/hfs.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 3902dcfb862ce32e3bd0966f23224f7a24dd2cb6 Author: Kay Sievers Date: Mon Dec 8 16:28:40 2008 +0100 blkid: hfs - do not set UUID for emtpy finder info Signed-off-by: Kay Sievers libs/blkid/src/probers/hfs.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 2f56dc94db74fb7059e2828010f2f05df8cfaccd Author: Karel Zak Date: Wed Jan 14 01:54:08 2009 +0100 blkid: refresh TODO file Signed-off-by: Karel Zak libs/blkid/TODO | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) commit b516dbe05c4e2786bb1c2cf197fdfb1efa9ecba8 Author: Karel Zak Date: Wed Jan 14 01:53:24 2009 +0100 blkid: add udev ID_FS_* output to blkid binary Signed-off-by: Karel Zak libs/blkid/bin/blkid.c | 44 ++++++++++++++++++++++++++++++++++---------- 1 files changed, 34 insertions(+), 10 deletions(-) commit dd20a05a04a0fc35074cdb46e3fac0a010d217f6 Author: Karel Zak Date: Wed Jan 14 01:52:11 2009 +0100 blkid: add udev string encoding routines Signed-off-by: Karel Zak libs/blkid/src/Makefile.am | 2 +- libs/blkid/src/blkid.h | 4 +- libs/blkid/src/blkid.sym | 2 + libs/blkid/src/encode.c | 288 ++++++++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/btrfs.c | 2 +- 5 files changed, 295 insertions(+), 3 deletions(-) commit 5b6215b5ba2d643179f2d91dd74c3346f7701329 Author: Karel Zak Date: Wed Jan 14 00:22:22 2009 +0100 blkid: add -p and low-probe mode to blkid binary Signed-off-by: Karel Zak libs/blkid/TODO | 4 +- libs/blkid/bin/Makefile.am | 2 +- libs/blkid/bin/blkid.c | 149 ++++++++++++++++++++++++++++++++++---------- libs/blkid/src/cache.c | 3 +- libs/blkid/src/probe.c | 13 ++-- 5 files changed, 128 insertions(+), 43 deletions(-) commit 6644688a209d022d2c8c348aabcda99bb5bc71a7 Author: Karel Zak Date: Tue Jan 13 23:39:15 2009 +0100 blkid: add DEBUG_LOWPROBE, cleanup a little debug stuff Signed-off-by: Karel Zak libs/blkid/src/blkidP.h | 21 +++++++++++++-------- libs/blkid/src/cache.c | 28 +++++++++++++++++++++------- libs/blkid/src/dev.c | 5 ++++- libs/blkid/src/devname.c | 2 +- libs/blkid/src/devno.c | 2 +- libs/blkid/src/probe.c | 36 ++++++++++++++++++++++++++++++++---- libs/blkid/src/read.c | 2 +- libs/blkid/src/resolve.c | 2 +- libs/blkid/src/save.c | 2 +- libs/blkid/src/tag.c | 5 ++++- libs/blkid/src/verify.c | 2 +- 11 files changed, 80 insertions(+), 27 deletions(-) commit 990b429ade093f2beac71a8e832dedae149a4271 Author: Karel Zak Date: Tue Jan 13 00:11:21 2009 +0100 blkid: add btrfs support Signed-off-by: Karel Zak libs/blkid/src/probe.c | 3 +- libs/blkid/src/probers/Makefile.am | 1 + libs/blkid/src/probers/btrfs.c | 92 ++++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 2 +- 4 files changed, 96 insertions(+), 2 deletions(-) commit f772bae7a31e58c593453f99aa31352ee4d8c1e3 Author: Karel Zak Date: Tue Dec 9 14:25:32 2008 +0100 blkid: remove unnecessary ifdef __cplusplus Signed-off-by: Karel Zak libs/blkid/src/blkidP.h | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit db4ba2aeb6ceedacc04fa5c50438d0b41714ed81 Author: Eric Sandeen Date: Mon Dec 8 15:37:18 2008 +0100 blkid: recognize ext3 with test_fs set as ext3 It seems that if we have the test_filesystem flag set on an ext3 filesystem(!) on a system which provides ext4, blkid gets confused. According to the current logic: * It's not an ext4dev filesystem, because the system provides ext4. * It's not an ext4 filesystem, because it has no ext4 features. * It's not an ext3 filesystem, because the test flag is set. In the end, it's nothing. blkid should return *something* that is mountable... I'm inclined to think that ext3 should be the right answer, if no ext4-specific features are set. This would mean just dropping the EXT2_FLAGS_TEST_FILESYS test in probe_ext3(), because ext4 & ext4dev probes have come first already. [kzak@redhat.com: port from e2fsprogs to util-linux-ng tree] Signed-off-by: Eric Sandeen Signed-off-by: Theodore Ts'o Signed-off-by: Karel Zak libs/blkid/src/probers/ext.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit 1de91705bd6bb477e5d371f056445b746977311e Author: Theodore Ts'o Date: Mon Dec 8 15:34:28 2008 +0100 blkid: Refuse to create a device structure for a non-existent device Fix blkid_get_dev() so it will never return a device structure if the device file doesn't exist. [kzak@redhat.com: port from e2fsprogs to util-linux-ng tree] Addresses-Debian-Bug: #502541 Signed-off-by: "Theodore Ts'o" Signed-off-by: Karel Zak libs/blkid/src/devname.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 11d925c6089bd4a06efd686da202ec87d391b264 Author: Karel Zak Date: Mon Dec 8 15:32:44 2008 +0100 blkid: fix file descriptor leak when checking for a module [kzak@redhat.com: port from e2fsprogs to util-linux-ng tree] Signed-off-by: Karel Zak libs/blkid/src/probers/ext.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 7c168d1ff80c2753e5187e90d34f53f3526afa1d Author: Eric Sandeen Date: Mon Dec 8 15:28:49 2008 +0100 blkis: fix detection of ext4dev as ext4 If only ext4 is available (as a module or in /proc/filesystems) blkid wasn't properly testing for it, because the time checks were backwards and always failed. This caused old ext4dev filesystems to fail to mount as ext4. With this patch it works fine. Also, don't try to check for modules on a non-Linux system. [kzak@redhat.com: port from e2fsprogs to util-linux-ng tree] Signed-off-by: Eric Sandeen Signed-off-by: Theodore Ts'o Signed-off-by: Karel Zak libs/blkid/src/probe.c | 1 - libs/blkid/src/probers/ext.c | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) commit 83e0898a507e75b31c3ca405360cf76e8ac8eeb1 Author: Karel Zak Date: Mon Dec 8 15:21:23 2008 +0100 blkid: use Requires.private and fix the include directory Signed-off-by: Karel Zak libs/blkid/blkid.pc.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit fd5a4d7fc34273fab800bc96a7fc286b461b602c Author: Theodore Ts'o Date: Mon Dec 8 15:07:13 2008 +0100 blkid: Give a priority bonus to "leaf" devicemapper devices Give a boost to dm devices which are not used to build other dm devices, since "leaf" devices are generally more likely to be interesting as devices to mount. Signed-off-by: "Theodore Ts'o" Signed-off-by: Karel Zak libs/blkid/src/devname.c | 40 +++++++++++++++++++++++++++++++++++++--- 1 files changed, 37 insertions(+), 3 deletions(-) commit 5d925ef0068200dbdede9e4a05e9983867649022 Author: Theodore Ts'o Date: Mon Dec 8 15:05:03 2008 +0100 blkid: Unexport the private symbol blkid_devdirs blkid_devdirs was defined in blkidP.h and was never intended to be used outside of the library. Since it no longer needs to be shared across object files, rename it and turn it into a static variable. Signed-off-by: Theodore Ts'o Signed-off-by: Karel Zak libs/blkid/src/blkidP.h | 1 - libs/blkid/src/devno.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) commit 882b0da3305baa1689d39eca0b4822d7e112d036 Author: Karel Zak Date: Mon Dec 8 15:00:03 2008 +0100 build-sys: remove use of devmapper library Signed-off-by: Karel Zak configure.ac | 41 --------- libs/blkid/TODO | 4 + libs/blkid/blkid.pc.in | 3 +- libs/blkid/src/Makefile.am | 3 - libs/blkid/src/devname.c | 194 -------------------------------------------- 5 files changed, 5 insertions(+), 240 deletions(-) commit 241b6cf3ea32ee003d205085c4d229df7b30b8ce Author: Theodore Ts'o Date: Mon Dec 8 14:28:35 2008 +0100 blkid: Optimize devicemapper support This commit works by removing all calls from libdevmapper altogether, and using the standard support for "normal" non-dm devices. It depends on dm devices being placed in /dev/mapper (but the previous code had this dependency anyway), and /proc/partitions containing dm devices. We don't actually rip out the libdevmapper code in this commit, but just disable it via #undef HAVE_DEVMAPPER, just so it's easier to review and understand the fundamental code changes. A subsequent commit will remove the libdevmapper code, as well as unexport the blkid_devdirs string array. Thanks to Karel Zak for inspiring me to look at the dm code in blkid, so I could realize how much it deserved to ripped out by its roots. :-) [kzak@redhat.com: port from e2fsprogs to util-linux-ng tree] Signed-off-by: "Theodore Ts'o" Signed-off-by: Karel Zak libs/blkid/src/blkidP.h | 7 +++++++ libs/blkid/src/devname.c | 22 +++++++++++++++++----- libs/blkid/src/devno.c | 13 ++++--------- 3 files changed, 28 insertions(+), 14 deletions(-) commit 768cc5578cc87965b5f886246c957c92fd968015 Author: Kay Sievers Date: Sat Dec 6 17:12:55 2008 +0100 blkid: hfs - use proper native UUID format Here is the md5'd UUID for hfs: $ LD_LIBRARY_PATH=libs/blkid/src/ libs/blkid/bin/blkid ../../volume_images/hfs-extended.img UUID="56a19597-a3c8-325d-9df2-f30bc6f8ac09" LABEL="I am HFS Extended" TYPE="hfsplus" $ /lib/udev/vol_id ../../volume_images/hfs-extended.img ID_FS_USAGE=filesystem ID_FS_TYPE=hfsplus ID_FS_VERSION= ID_FS_UUID=56a19597-a3c8-325d-9df2-f30bc6f8ac09 ID_FS_UUID_ENC=56a19597-a3c8-325d-9df2-f30bc6f8ac09 ID_FS_LABEL=I_am_HFS_Extended ID_FS_LABEL_ENC=I\x20am\x20HFS\x20Extended Signed-off-by: Kay Sievers libs/blkid/TODO | 1 - libs/blkid/src/Makefile.am | 4 +++- libs/blkid/src/probers/hfs.c | 41 +++++++++++++++++++++++------------------ 3 files changed, 26 insertions(+), 20 deletions(-) commit 161778d7e6fb2f0ddad186722ace8f164fcf38ea Author: Kay Sievers Date: Sat Dec 6 16:24:23 2008 +0100 blkid: vfat - fix declaration The vrfy.org url does not exist anymore, it's all in the udev tree, and hopefully not for long anymore. :) The blkid_idinfo does not work. :) Signed-off-by: Kay Sievers libs/blkid/src/probers/vfat.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) commit d1e9e1e479794c57320207dbeaceef57d1d1d839 Author: Karel Zak Date: Thu Dec 4 14:40:56 2008 +0100 blkid: add sysv and xenix Signed-off-by: Karel Zak libs/blkid/src/probe.c | 3 +- libs/blkid/src/probers/Makefile.am | 1 + libs/blkid/src/probers/probers.h | 2 + libs/blkid/src/probers/sysv.c | 141 ++++++++++++++++++++++++++++++++++++ 4 files changed, 146 insertions(+), 1 deletions(-) commit b447219e8219603853774cf8c4da28ce2bba9fdb Author: Karel Zak Date: Thu Dec 4 11:56:54 2008 +0100 blkid: add netware (NSS) Signed-off-by: Karel Zak libs/blkid/src/probe.c | 2 +- libs/blkid/src/probers/Makefile.am | 1 + libs/blkid/src/probers/netware.c | 97 ++++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 2 + 4 files changed, 101 insertions(+), 1 deletions(-) commit fc954eb530253fb968004d735a69dcb6a6af2ec4 Author: Karel Zak Date: Thu Dec 4 11:37:18 2008 +0100 blkid: add squashfs Signed-off-by: Karel Zak libs/blkid/src/probe.c | 2 +- libs/blkid/src/probers/Makefile.am | 1 + libs/blkid/src/probers/probers.h | 9 +---- libs/blkid/src/probers/squashfs.c | 68 ++++++++++++++++++++++++++++++++++++ 4 files changed, 71 insertions(+), 9 deletions(-) commit e1ad8bb397f604398ebae084ab7255213185bbce Author: Karel Zak Date: Wed Dec 3 23:34:23 2008 +0100 blkid: remove blkid_types.h We needn't to use kernel types, in userspace we have portable stdint.h. Signed-off-by: Karel Zak configure.ac | 1 - libs/blkid/.gitignore | 1 - libs/blkid/src/Makefile.am | 4 +- libs/blkid/src/blkid.h | 4 +- libs/blkid/src/blkid_types.h.in | 134 --------------------------------------- libs/blkid/src/probers/vfat.c | 2 +- libs/blkid/src/tst_types.c | 54 ++++++++-------- 7 files changed, 32 insertions(+), 168 deletions(-) commit c3c2ffa9b0439d9879c633c8e95e15d8d0390bba Author: Karel Zak Date: Wed Dec 3 15:52:40 2008 +0100 blkid: fix hedeader in ntfs.c Signed-off-by: Karel Zak libs/blkid/src/probers/ntfs.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit af9e53704d73e835f65c4ab5c15ec0be48218b1b Author: Karel Zak Date: Wed Dec 3 15:32:21 2008 +0100 blkid: use posix uintXX_t in lvm code Signed-off-by: Karel Zak libs/blkid/src/probers/lvm.c | 16 +++++++--------- 1 files changed, 7 insertions(+), 9 deletions(-) commit 16cbf01021ccb015262d285c4d1cd87382db2c1d Author: Karel Zak Date: Wed Dec 3 15:15:16 2008 +0100 blkid: use posix uint32_t in ocfs superblock Signed-off-by: Karel Zak libs/blkid/src/probers/ocfs.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) commit 34ef7a68d316ad8d43d6ef0ae8e17833edb0c980 Author: Karel Zak Date: Wed Dec 3 15:11:10 2008 +0100 blkid: fix highpoint37x offset Signed-off-by: Karel Zak libs/blkid/src/probers/highpoint_raid.c | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) commit 9c863b7517ccd71e6bd4904ac54b3834a20094bb Author: Karel Zak Date: Wed Dec 3 14:37:46 2008 +0100 blkid: cleanup starts of probing files * libblkid was and is licensed under LGPL The GPL comment in some files was unwished mistake (copy & past the start of files from my other project....). * add information about inspiration by libvolume_id * rename *_meta to _metadata * rename *_off to off * use sizeof() rather than some magic constants * remove unnecessary #includes Signed-off-by: Karel Zak libs/blkid/src/probers/adaptec_raid.c | 33 ++++++++-------------- libs/blkid/src/probers/cramfs.c | 18 ++++-------- libs/blkid/src/probers/ddf_raid.c | 23 +++++++--------- libs/blkid/src/probers/ext.c | 12 +------- libs/blkid/src/probers/gfs.c | 23 +++------------ libs/blkid/src/probers/hfs.c | 13 +------- libs/blkid/src/probers/highpoint_raid.c | 32 +++++++++------------- libs/blkid/src/probers/hpfs.c | 21 +++++---------- libs/blkid/src/probers/iso9660.c | 23 +++++---------- libs/blkid/src/probers/isw_raid.c | 33 ++++++++-------------- libs/blkid/src/probers/jfs.c | 15 +--------- libs/blkid/src/probers/jmicron_raid.c | 32 ++++++++-------------- libs/blkid/src/probers/linux_raid.c | 27 ++++++++---------- libs/blkid/src/probers/lsi_raid.c | 26 ++++++++---------- libs/blkid/src/probers/luks.c | 13 +++------ libs/blkid/src/probers/lvm.c | 14 +-------- libs/blkid/src/probers/minix.c | 12 +------- libs/blkid/src/probers/ntfs.c | 13 +------- libs/blkid/src/probers/nvidia_raid.c | 28 ++++++++----------- libs/blkid/src/probers/ocfs.c | 25 +---------------- libs/blkid/src/probers/promise_raid.c | 30 +++++++++------------ libs/blkid/src/probers/reiserfs.c | 14 +-------- libs/blkid/src/probers/romfs.c | 11 +------ libs/blkid/src/probers/silicon_raid.c | 26 +++++++---------- libs/blkid/src/probers/swap.c | 9 +++--- libs/blkid/src/probers/udf.c | 13 ++------- libs/blkid/src/probers/ufs.c | 16 +++-------- libs/blkid/src/probers/vfat.c | 11 +------ libs/blkid/src/probers/via_raid.c | 44 ++++++++++++++---------------- libs/blkid/src/probers/vxfs.c | 20 +++---------- libs/blkid/src/probers/xfs.c | 11 +------ libs/blkid/src/verify.c | 2 - 32 files changed, 208 insertions(+), 435 deletions(-) commit e134f4704c7f0072f230ab4b6a827808e058381a Author: Karel Zak Date: Wed Dec 3 11:25:43 2008 +0100 blkid: add HPFS Signed-off-by: Karel Zak libs/blkid/src/probe.c | 2 +- libs/blkid/src/probers/Makefile.am | 3 +- libs/blkid/src/probers/hpfs.c | 129 ++++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 1 + 4 files changed, 133 insertions(+), 2 deletions(-) commit d7ea08e9f69aa24e8f0bdf5a4b19268d0dfed3cb Author: Karel Zak Date: Mon Dec 1 14:32:44 2008 +0100 blkid: add TODO file Signed-off-by: Karel Zak libs/blkid/TODO | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) commit 4a92038d09e6ad7e66dc663dbe6ff6b14f3000e4 Author: Karel Zak Date: Mon Dec 1 14:14:26 2008 +0100 blkid: add proper copying info Signed-off-by: Karel Zak libs/blkid/COPYING.libblkid | 510 +++++++++++++++++++++++++++++++++++++++++++ libs/blkid/src/blkid.h | 18 ++- 2 files changed, 524 insertions(+), 4 deletions(-) commit 439a522672f611e29cee0a50f305214499e97e8c Author: Karel Zak Date: Fri Nov 28 14:41:05 2008 +0100 blkid: remove unused stuff from Makefile Signed-off-by: Karel Zak libs/blkid/src/Makefile.am | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 83b935ae4fa5fb2cef0fe8b5c17edee69d03651a Author: Karel Zak Date: Fri Nov 28 13:39:48 2008 +0100 blkid: add UFS Signed-off-by: Karel Zak libs/blkid/src/blkidP.h | 4 + libs/blkid/src/probe.c | 2 +- libs/blkid/src/probers/Makefile.am | 1 + libs/blkid/src/probers/probers.h | 1 + libs/blkid/src/probers/ufs.c | 233 ++++++++++++++++++++++++++++++++++++ 5 files changed, 240 insertions(+), 1 deletions(-) commit 681ff570f02aa0be17de63daabd8efec931afb61 Author: Karel Zak Date: Tue Nov 25 13:59:26 2008 +0100 blkid: add minix Signed-off-by: Karel Zak libs/blkid/src/probe.c | 2 +- libs/blkid/src/probers/Makefile.am | 1 + libs/blkid/src/probers/minix.c | 59 ++++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 1 + 4 files changed, 62 insertions(+), 1 deletions(-) commit c29368b46c694688ca227b56e0ac24b031a68532 Author: Karel Zak Date: Tue Nov 25 13:11:59 2008 +0100 blkid: add vxfs Signed-off-by: Karel Zak libs/blkid/src/probe.c | 2 +- libs/blkid/src/probers/Makefile.am | 1 + libs/blkid/src/probers/probers.h | 1 + libs/blkid/src/probers/vxfs.c | 51 ++++++++++++++++++++++++++++++++++++ 4 files changed, 54 insertions(+), 1 deletions(-) commit f19f9872a011d9f4f527332ffb855d6edf66611c Author: Karel Zak Date: Fri Nov 21 12:37:01 2008 +0100 blkid: add lvm1 Signed-off-by: Karel Zak libs/blkid/src/probe.c | 2 +- libs/blkid/src/probers/lvm.c | 14 ++++++++++++-- libs/blkid/src/probers/probers.h | 1 + 3 files changed, 14 insertions(+), 3 deletions(-) commit 5784db20337a11e532878a0ec81da7144300399a Author: Karel Zak Date: Fri Nov 21 12:24:07 2008 +0100 blkid: add highpoint{37x,45x} RAIDs Signed-off-by: Karel Zak libs/blkid/src/probe.c | 4 +- libs/blkid/src/probers/Makefile.am | 1 + libs/blkid/src/probers/highpoint_raid.c | 74 +++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 2 + 4 files changed, 79 insertions(+), 2 deletions(-) commit de8e25fa00a80eca685d0c495a2b62e60c029bee Author: Karel Zak Date: Thu Nov 20 15:04:48 2008 +0100 blkid: add version and probe FSInfo Signed-off-by: Karel Zak libs/blkid/src/probers/vfat.c | 48 ++++++++++++++++++++++++++++++++++++++++- 1 files changed, 47 insertions(+), 1 deletions(-) commit a0fc685c9cddac52085b9d3127f7cdce6174560c Author: Karel Zak Date: Thu Nov 20 13:00:43 2008 +0100 blkid: support detection of multiple signatures The classic way is to return the first successfully detected signature (filesystem/raid). Unfortunately, sometimes we need to check for all possible signatures, because on some volumes (e.g. CD-ROMs) is possible to store multiple filesystems. Sometimes we need to check for all filesystems to avoid situation that we return wrong result (e.g. swap and FAT on the same device). Signed-off-by: Karel Zak libs/blkid/src/blkidP.h | 1 + libs/blkid/src/probe.c | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 47 insertions(+), 1 deletions(-) commit 06da6d00e4ea4eeeecfa3d4cc046d6383e041ed3 Author: Karel Zak Date: Wed Nov 5 14:39:36 2008 +0100 blkid: add LUKS support Signed-off-by: Karel Zak libs/blkid/src/probe.c | 2 +- libs/blkid/src/probers/Makefile.am | 1 + libs/blkid/src/probers/luks.c | 70 ++++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 1 + 4 files changed, 73 insertions(+), 1 deletions(-) commit 3402fff11b7e3438da3fa44fd73653758be7841a Author: Karel Zak Date: Wed Nov 5 11:41:06 2008 +0100 blkid: re-order list of filesystems Signed-off-by: Karel Zak libs/blkid/src/probe.c | 55 ++++++++++++++++++++++++++++++----------------- 1 files changed, 35 insertions(+), 20 deletions(-) commit 90438002e5acdbc54a551b86a5c9c4f2ac954c3b Author: Karel Zak Date: Tue Nov 4 11:37:10 2008 +0100 blkid: add VFAT support Signed-off-by: Karel Zak libs/blkid/src/probe.c | 1 + libs/blkid/src/probers/Makefile.am | 1 + libs/blkid/src/probers/probers.h | 1 + libs/blkid/src/probers/vfat.c | 326 ++++++++++++++++++++++++++++++++++++ 4 files changed, 329 insertions(+), 0 deletions(-) commit 3aaaed25be35b2f8d95e08711d2c75367a682fbc Author: Karel Zak Date: Tue Nov 4 10:50:14 2008 +0100 blkid: add UDF support Signed-off-by: Karel Zak libs/blkid/src/probe.c | 1 + libs/blkid/src/probers/Makefile.am | 1 + libs/blkid/src/probers/probers.h | 1 + libs/blkid/src/probers/udf.c | 165 ++++++++++++++++++++++++++++++++++++ 4 files changed, 168 insertions(+), 0 deletions(-) commit 828f432e1279cf9de0d01d728564947d533a9a07 Author: Karel Zak Date: Thu Oct 16 14:46:50 2008 +0200 blkid: add LVM2 support and a fix _sprintf_uuid() bug Signed-off-by: Karel Zak libs/blkid/src/blkidP.h | 1 + libs/blkid/src/probe.c | 9 ++- libs/blkid/src/probers/Makefile.am | 3 +- libs/blkid/src/probers/lvm.c | 135 ++++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 1 + 5 files changed, 144 insertions(+), 5 deletions(-) commit 90a6502a5014b627f6780caa6296c7ad6ca99a99 Author: Karel Zak Date: Mon Oct 13 16:06:03 2008 +0200 blkid: add iso9600 Notes: - the original libblkid does not make difference between High Sierra and the standard iso9660 (the superblock is different). This bugs is fixed. - the original libblkid does not detect for MS Joliet Extension. This bugs is fixed. Signed-off-by: Karel Zak libs/blkid/src/probe.c | 3 +- libs/blkid/src/probers/Makefile.am | 3 +- libs/blkid/src/probers/iso9660.c | 139 ++++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 2 +- 4 files changed, 144 insertions(+), 3 deletions(-) commit 4b2140d27cdeb658056c60747487348775780def Author: Karel Zak Date: Mon Oct 13 12:17:19 2008 +0200 blkid: add missing hfs.c Signed-off-by: Karel Zak libs/blkid/src/probers/hfs.c | 315 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 315 insertions(+), 0 deletions(-) commit 214cb872e866923af431b4b445e67daca8042c4c Author: Karel Zak Date: Mon Oct 13 12:16:28 2008 +0200 blkid: add HTFS Signed-off-by: Karel Zak libs/blkid/src/probe.c | 3 +- libs/blkid/src/probers/Makefile.am | 1 + libs/blkid/src/probers/ntfs.c | 197 ++++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 1 + 4 files changed, 201 insertions(+), 1 deletions(-) commit 3fc02f3b958f6eb2860f766cd86e60287ab377bf Author: Karel Zak Date: Mon Oct 13 11:34:58 2008 +0200 blkid: add GFS2 UUID support Signed-off-by: Karel Zak libs/blkid/src/probers/gfs.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) commit 2a0f4c4e678513af123f19c91b0c6903bcbb80bd Author: Karel Zak Date: Thu Oct 9 12:00:20 2008 +0200 blkid: add HFS and HFS+ Signed-off-by: Karel Zak libs/blkid/src/probe.c | 9 +++++---- libs/blkid/src/probers/Makefile.am | 3 ++- libs/blkid/src/probers/probers.h | 2 ++ 3 files changed, 9 insertions(+), 5 deletions(-) commit 08a5309923191b44f62e20b0ee8ffec009134b2b Author: Karel Zak Date: Fri Sep 26 00:47:51 2008 +0200 add reiser and reiser4 Signed-off-by: Karel Zak libs/blkid/src/probe.c | 2 + libs/blkid/src/probers/Makefile.am | 1 + libs/blkid/src/probers/probers.h | 3 + libs/blkid/src/probers/reiserfs.c | 128 ++++++++++++++++++++++++++++++++++++ 4 files changed, 134 insertions(+), 0 deletions(-) commit daa076d95b6488bf55250b930025e19ca9486f88 Author: Karel Zak Date: Thu Sep 25 23:55:00 2008 +0200 blkid: fix blkid_probe_sprintf_version() usage Signed-off-by: Karel Zak libs/blkid/src/probers/isw_raid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a9e7005ba250e544e0824f4826c500a6f9fcdcaf Author: Karel Zak Date: Thu Sep 25 23:54:19 2008 +0200 blkid: add __attribute__ ((format)) Signed-off-by: Karel Zak libs/blkid/src/blkidP.h | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) commit 7fd65bed4324fcd889816a6015e70a4ba96b204d Author: Karel Zak Date: Thu Sep 25 23:25:38 2008 +0200 blkid: add ocfs and oracleasm Signed-off-by: Karel Zak libs/blkid/src/probe.c | 3 + libs/blkid/src/probers/Makefile.am | 1 + libs/blkid/src/probers/ocfs.c | 185 ++++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 3 + 4 files changed, 192 insertions(+), 0 deletions(-) commit 95f9229777fb15c922176d92deda51f454117a53 Author: Karel Zak Date: Tue Sep 23 15:40:12 2008 +0200 blkid: add romfs Signed-off-by: Karel Zak libs/blkid/src/probe.c | 1 + libs/blkid/src/probers/Makefile.am | 3 +- libs/blkid/src/probers/probers.h | 1 + libs/blkid/src/probers/romfs.c | 58 ++++++++++++++++++++++++++++++++++++ 4 files changed, 62 insertions(+), 1 deletions(-) commit 81f81873282230835633d760e9d19e2c5224edc0 Author: Karel Zak Date: Tue Sep 23 15:22:55 2008 +0200 blkid: add GFS and GFS2 Signed-off-by: Karel Zak libs/blkid/src/probe.c | 2 + libs/blkid/src/probers/Makefile.am | 3 +- libs/blkid/src/probers/gfs.c | 138 ++++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 2 + 4 files changed, 144 insertions(+), 1 deletions(-) commit 9ef231e4d40831a53a35afcda93005c785abce03 Author: Karel Zak Date: Tue Sep 23 14:59:53 2008 +0200 blkid: fix xfs label Signed-off-by: Karel Zak libs/blkid/src/probers/xfs.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 5283b12e317c9a74147f59106c320d0548c5d7ee Author: Karel Zak Date: Tue Sep 23 14:57:53 2008 +0200 blkid: fix ext2 SEC_TYPE Signed-off-by: Karel Zak libs/blkid/src/blkidP.h | 1 - libs/blkid/src/probe.c | 4 ---- libs/blkid/src/probers/ext.c | 9 +++++++-- 3 files changed, 7 insertions(+), 7 deletions(-) commit 15fe4400e9e610150d172658555e9e8ff8693192 Author: Karel Zak Date: Thu Sep 18 13:23:56 2008 +0200 blkid: add xfs Signed-off-by: Karel Zak libs/blkid/src/probe.c | 1 + libs/blkid/src/probers/Makefile.am | 1 + libs/blkid/src/probers/probers.h | 1 + libs/blkid/src/probers/xfs.c | 69 ++++++++++++++++++++++++++++++++++++ 4 files changed, 72 insertions(+), 0 deletions(-) commit 148e2f9e3e9bded02ad5bdca711c34d0fd0a1a26 Author: Karel Zak Date: Thu Sep 18 13:15:21 2008 +0200 blkid: add blkid_probe_get_sb() macro Signed-off-by: Karel Zak libs/blkid/src/blkidP.h | 7 ++++++- libs/blkid/src/probers/cramfs.c | 4 ++-- libs/blkid/src/probers/jfs.c | 4 +++- 3 files changed, 11 insertions(+), 4 deletions(-) commit 80f26373c4ac379507c21985ae59dff09adb7b7c Author: Karel Zak Date: Thu Sep 18 12:08:40 2008 +0200 blkid: add jfs Signed-off-by: Karel Zak libs/blkid/src/probe.c | 1 + libs/blkid/src/probers/Makefile.am | 1 + libs/blkid/src/probers/jfs.c | 79 ++++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 1 + 4 files changed, 82 insertions(+), 0 deletions(-) commit 8e7e30e4b6f4cdd5de6ce8f4a8c92c1a3a3bbf10 Author: Karel Zak Date: Mon Sep 15 14:11:23 2008 +0200 blkid: add ext{2,3,4,4devel} support Signed-off-by: Karel Zak libs/blkid/src/blkidP.h | 1 + libs/blkid/src/probe.c | 29 ++- libs/blkid/src/probers/Makefile.am | 3 +- libs/blkid/src/probers/ext.c | 534 ++++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 5 + 5 files changed, 563 insertions(+), 9 deletions(-) commit 288c2da13380ca2700d4be46b1157eff0a0741e8 Author: Karel Zak Date: Tue Sep 9 12:44:57 2008 +0200 blkid: correctly initialize magics[] arrays Signed-off-by: Karel Zak libs/blkid/src/blkidP.h | 2 ++ libs/blkid/src/probers/adaptec_raid.c | 3 ++- libs/blkid/src/probers/ddf_raid.c | 3 ++- libs/blkid/src/probers/isw_raid.c | 3 ++- libs/blkid/src/probers/jmicron_raid.c | 3 ++- libs/blkid/src/probers/linux_raid.c | 3 ++- libs/blkid/src/probers/lsi_raid.c | 3 ++- libs/blkid/src/probers/nvidia_raid.c | 3 ++- libs/blkid/src/probers/promise_raid.c | 3 ++- libs/blkid/src/probers/silicon_raid.c | 3 ++- libs/blkid/src/probers/via_raid.c | 3 ++- 11 files changed, 22 insertions(+), 10 deletions(-) commit dc61d909a950e70b10180e5b2ef6e315043a2be2 Author: Karel Zak Date: Tue Sep 9 12:36:00 2008 +0200 blkid: blkdev size fallback Signed-off-by: Karel Zak libs/blkid/src/Makefile.am | 3 ++- libs/blkid/src/probe.c | 11 ++++++++--- libs/blkid/src/probers/probers.h | 4 ++-- 3 files changed, 12 insertions(+), 6 deletions(-) commit 8ccb81be32fd33a3f711cb361ac35e833cf5949f Author: Karel Zak Date: Tue Sep 9 12:16:14 2008 +0200 blkid: add Linux RAID Signed-off-by: Karel Zak libs/blkid/src/probe.c | 3 +- libs/blkid/src/probers/Makefile.am | 3 +- libs/blkid/src/probers/linux_raid.c | 165 +++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 1 + 4 files changed, 170 insertions(+), 2 deletions(-) commit d515672161a519655737d015db57137aa08e72e1 Author: Karel Zak Date: Tue Sep 9 11:39:34 2008 +0200 blkid: update gitignore Signed-off-by: Karel Zak libs/blkid/.gitignore | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 46be4f093b7a02a3678d6cb802f8532b92b61ccc Author: Karel Zak Date: Tue Sep 9 11:38:39 2008 +0200 blkid: add VIA RAID Signed-off-by: Karel Zak libs/blkid/src/probe.c | 3 +- libs/blkid/src/probers/Makefile.am | 3 +- libs/blkid/src/probers/probers.h | 1 + libs/blkid/src/probers/via_raid.c | 83 ++++++++++++++++++++++++++++++++++++ 4 files changed, 88 insertions(+), 2 deletions(-) commit b9938904345a7460443ed5b2b51c630ff58d7166 Author: Karel Zak Date: Tue Sep 9 11:32:06 2008 +0200 blkid: add Silicon Image Medlay RAID Signed-off-by: Karel Zak libs/blkid/src/probe.c | 3 +- libs/blkid/src/probers/Makefile.am | 3 +- libs/blkid/src/probers/probers.h | 1 + libs/blkid/src/probers/silicon_raid.c | 80 +++++++++++++++++++++++++++++++++ 4 files changed, 85 insertions(+), 2 deletions(-) commit e86961bac1260d9e108957744619efd2163fd26d Author: Karel Zak Date: Tue Sep 9 11:01:26 2008 +0200 blkid: Promise raid Signed-off-by: Karel Zak libs/blkid/src/probe.c | 3 +- libs/blkid/src/probers/Makefile.am | 3 +- libs/blkid/src/probers/probers.h | 1 + libs/blkid/src/probers/promise_raid.c | 66 +++++++++++++++++++++++++++++++++ 4 files changed, 71 insertions(+), 2 deletions(-) commit aa7bb1f1baed8512ab834dfc3d62cd94cdf9f1a5 Author: Karel Zak Date: Tue Sep 9 10:51:54 2008 +0200 blkid: NVIDIA raid Signed-off-by: Karel Zak libs/blkid/src/probe.c | 3 +- libs/blkid/src/probers/Makefile.am | 3 +- libs/blkid/src/probers/nvidia_raid.c | 63 ++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 1 + 4 files changed, 68 insertions(+), 2 deletions(-) commit 539e21b1826a4970b3697838b1988e40512cc068 Author: Karel Zak Date: Tue Sep 9 01:20:43 2008 +0200 blkid: LSI MegaRAID Signed-off-by: Karel Zak libs/blkid/src/probe.c | 3 +- libs/blkid/src/probers/Makefile.am | 3 +- libs/blkid/src/probers/lsi_raid.c | 56 ++++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 1 + 4 files changed, 61 insertions(+), 2 deletions(-) commit 56ad7426260230b07932f46891eee75f30918818 Author: Karel Zak Date: Tue Sep 9 01:11:53 2008 +0200 blkid: add JMicron RAID Signed-off-by: Karel Zak libs/blkid/src/probe.c | 3 +- libs/blkid/src/probers/Makefile.am | 3 +- libs/blkid/src/probers/jmicron_raid.c | 66 +++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 1 + 4 files changed, 71 insertions(+), 2 deletions(-) commit f8504a4e9c14b86dc6eb580813a9c72a11cf131d Author: Karel Zak Date: Tue Sep 9 01:05:39 2008 +0200 blkid: add ISW raid Signed-off-by: Karel Zak libs/blkid/src/probe.c | 3 +- libs/blkid/src/probers/Makefile.am | 3 +- libs/blkid/src/probers/isw_raid.c | 68 ++++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 1 + 4 files changed, 73 insertions(+), 2 deletions(-) commit 4eaf9d9ded5559032fe0ee8a51b4da8ab2c2ebf6 Author: Karel Zak Date: Tue Sep 9 00:52:46 2008 +0200 blkid: add DDF raid Signed-off-by: Karel Zak libs/blkid/src/probe.c | 3 +- libs/blkid/src/probers/Makefile.am | 5 ++- libs/blkid/src/probers/ddf_raid.c | 64 ++++++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 1 + 4 files changed, 70 insertions(+), 3 deletions(-) commit 409b115da09744974144abc381dc4446096e7900 Author: Karel Zak Date: Tue Sep 9 00:49:01 2008 +0200 blkid: optimize for string UUIDs Signed-off-by: Karel Zak libs/blkid/src/probe.c | 25 +++++++++++++++++++++++-- 1 files changed, 23 insertions(+), 2 deletions(-) commit a109a8b7fc5d6ac5c340a359e96097060cc99cdb Author: Karel Zak Date: Mon Sep 8 15:05:01 2008 +0200 blkid: add adaptec raid Signed-off-by: Karel Zak libs/blkid/src/blkidP.h | 2 + libs/blkid/src/probe.c | 4 +- libs/blkid/src/probers/Makefile.am | 5 +- libs/blkid/src/probers/adaptec_raid.c | 115 +++++++++++++++++++++++++++++++++ libs/blkid/src/probers/probers.h | 1 + 5 files changed, 124 insertions(+), 3 deletions(-) commit 51410fc6deb29cae54a2669aafabae6c49f964fc Author: Karel Zak Date: Sat Sep 6 15:28:40 2008 +0200 blkid: add low level probing API (sorry from the huge patch..) Signed-off-by: Karel Zak config/include-Makefile.am | 1 + configure.ac | 3 + libs/blkid/.gitignore | 3 +- libs/blkid/Makefile.am | 6 +- libs/blkid/bin/Makefile.am | 18 + libs/blkid/bin/blkid.c | 432 +++++++++ libs/blkid/bin/blkid.sh.in | 10 + libs/blkid/blkid.8.in | 164 ++++ libs/blkid/src/Makefile.am | 19 +- libs/blkid/src/blkid.h | 49 +- libs/blkid/src/blkid.sym | 14 + libs/blkid/src/blkidP.h | 94 ++- libs/blkid/src/probe.c | 1819 +++++++++--------------------------- libs/blkid/src/probe.h | 711 -------------- libs/blkid/src/probers/Makefile.am | 9 + libs/blkid/src/probers/cramfs.c | 68 ++ libs/blkid/src/probers/probers.h | 22 + libs/blkid/src/probers/swap.c | 150 +++ libs/blkid/src/verify.c | 202 ++++ 19 files changed, 1712 insertions(+), 2082 deletions(-) commit ca7eeefdfa50dc33ea7cd075ae73d81b018f9dfd Author: Karel Zak Date: Wed Aug 27 15:22:50 2008 +0200 blkid: minor changes to library build system Signed-off-by: Karel Zak .gitignore | 3 +++ libs/blkid/.gitignore | 2 ++ libs/blkid/src/Makefile.am | 6 +++--- 3 files changed, 8 insertions(+), 3 deletions(-) commit a0948ffe403658f567a9267f50a26a694fe417da Author: Karel Zak Date: Wed Aug 27 15:09:47 2008 +0200 blkid: merge libblkid code from e2fsprogs/lib/blkid Signed-off-by: Karel Zak configure.ac | 65 ++- libs/blkid/Makefile.am | 7 +- libs/blkid/blkid.pc.in | 2 +- libs/blkid/libblkid.3.in | 80 ++ libs/blkid/src/Makefile.am | 52 ++ libs/blkid/src/blkid.h | 107 +++ libs/blkid/src/blkid.sym | 29 + libs/blkid/src/blkidP.h | 182 +++++ libs/blkid/src/blkid_types.h.in | 134 ++++ libs/blkid/src/cache.c | 209 ++++++ libs/blkid/src/dev.c | 257 +++++++ libs/blkid/src/devname.c | 643 ++++++++++++++++ libs/blkid/src/devno.c | 234 ++++++ libs/blkid/src/getsize.c | 207 +++++ libs/blkid/src/list.h | 179 +++++ libs/blkid/src/llseek.c | 142 ++++ libs/blkid/src/probe.c | 1581 +++++++++++++++++++++++++++++++++++++++ libs/blkid/src/probe.h | 711 ++++++++++++++++++ libs/blkid/src/read.c | 493 ++++++++++++ libs/blkid/src/resolve.c | 141 ++++ libs/blkid/src/save.c | 194 +++++ libs/blkid/src/tag.c | 473 ++++++++++++ libs/blkid/src/tst_types.c | 63 ++ libs/blkid/src/version.c | 48 ++ 24 files changed, 6220 insertions(+), 13 deletions(-) commit 6809e7b563bd7a2ebbf41176b639c995a7d2d663 Author: Karel Zak Date: Wed Aug 27 11:55:39 2008 +0200 blkid: add basic configure.ac stuff and blkid.pc Note, the configure.in stuff is incomplete -- but it's seem we can remove the libbevmapper crap from blkid at all. So this code autoconf is temporary only. Signed-off-by: Karel Zak configure.ac | 37 +++++++++++++++++++++++++++++++++++++ libs/blkid/Makefile.am | 6 +++++- libs/blkid/blkid.pc.in | 12 ++++++++++++ 3 files changed, 54 insertions(+), 1 deletions(-) commit 971f57f68a29868a2a3ae80ef56d3cddaae98414 Author: Karel Zak Date: Wed Jan 16 01:11:02 2008 +0100 build-sys: define libdir Signed-off-by: Karel Zak configure.ac | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 24a06aeb1b5f57c5dc008644501aa9568a8275a2 Author: Karel Zak Date: Wed Aug 27 11:00:35 2008 +0200 blkid: create basic directories Signed-off-by: Karel Zak Makefile.am | 1 + configure.ac | 2 + libs/Makefile.am | 1 + libs/blkid/Makefile.am | 3 ++ libs/blkid/README.blkid | 78 +++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 85 insertions(+), 0 deletions(-) commit 525dd3163586a47f2c91abb749d436b5cf4f7dd9 Author: Karel Zak Date: Fri Feb 6 22:23:13 2009 +0100 fdisk: cleanup _PATH_DEV_* macros Signed-off-by: Karel Zak fdisk/common.h | 4 ---- fdisk/partname.c | 5 +++-- include/pathnames.h | 2 ++ 3 files changed, 5 insertions(+), 6 deletions(-) commit 30e8b186b4c6c58883486cbe27a8023848edbbdb Author: Karel Zak Date: Thu Feb 5 23:37:37 2009 +0100 agetty: check for termios.c_line struct member by autoconf Reported-by: Robert Millan Signed-off-by: Karel Zak configure.ac | 3 +++ login-utils/agetty.c | 2 +- 2 files changed, 4 insertions(+), 1 deletions(-) commit 95356e8b744439336925eeb36f01399f1ee8a5e9 Author: Karel Zak Date: Thu Feb 5 15:44:17 2009 +0000 mkfs.minix: remove local implementation of {set,clr}bit We needn't to duplicate stuff from . Signed-off-by: Karel Zak disk-utils/Makefile.am | 4 +- disk-utils/fsck.minix.c | 8 ++---- disk-utils/minix_bitops.h | 54 --------------------------------------------- disk-utils/mkfs.minix.c | 11 ++------ 4 files changed, 8 insertions(+), 69 deletions(-) commit 108cfeca72b4a4350afc8cdd5d9d398b72372b68 Author: Karel Zak Date: Thu Feb 5 15:41:41 2009 +0000 fsck.minix: add regression test Signed-off-by: Karel Zak tests/Makefile.am | 1 + tests/commands.sh.in | 1 + tests/expected/ts-minix-fsck | 8 ++++++++ tests/ts-minix-fsck | 39 +++++++++++++++++++++++++++++++++++++++ tests/ts-minix-mkfs | 2 +- 5 files changed, 50 insertions(+), 1 deletions(-) commit 7ac99951a1acf44d55b59d585c7d017443dce270 Author: Karel Zak Date: Thu Feb 5 15:20:17 2009 +0000 mkfs.minix: add regression test Signed-off-by: Karel Zak tests/Makefile.am | 1 + tests/commands.sh.in | 1 + tests/expected/ts-minix-mkfs | 10 ++++++++ tests/ts-minix-mkfs | 48 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 60 insertions(+), 0 deletions(-) commit 6d99d91c38e385739b74302d00620ed9b4c1ee4f Author: Karel Zak Date: Thu Feb 5 15:51:14 2009 +0100 docs: add suggestion about TZ=UTC to TODO file Signed-off-by: Karel Zak TODO | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) commit a6f72ab47ed750148a2373a0ffed5c9ec77c1dd5 Author: Karel Zak Date: Wed Feb 4 23:36:39 2009 +0100 fsck.cramfs: segfault with INCLUDE_FS_TESTS and no -x option The current implementation causes a segmentation fault if INCLUDE_FS_TESTS is defined, but the -x option is not specified. The error is caused by the extract_dir variable being null. Reported-by: Roy Peled Signed-off-by: Karel Zak disk-utils/fsck.cramfs.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 3ff2557c92398a611e42ad6b428c78e9c5c120ed Author: Karel Zak Date: Wed Feb 4 22:38:34 2009 +0100 tests: check also for /dev/loop/X Signed-off-by: Karel Zak tests/functions.sh | 11 +++++++++++ tests/ts-cramfs-mkfs | 3 +-- tests/ts-fstab-devname | 6 ++---- tests/ts-fstab-devname2label | 2 +- tests/ts-fstab-devname2uuid | 2 +- tests/ts-fstab-label | 8 +++----- tests/ts-fstab-label2devname | 6 ++---- tests/ts-fstab-label2uuid | 6 ++---- tests/ts-fstab-symlink | 6 ++---- tests/ts-fstab-uuid | 6 +++--- tests/ts-fstab-uuid2devname | 6 ++---- tests/ts-fstab-uuid2label | 5 ++--- tests/ts-mount-devname | 2 +- tests/ts-mount-label | 6 ++---- tests/ts-mount-uuid | 4 ++-- 15 files changed, 37 insertions(+), 42 deletions(-) commit c17e59b4b31de15ae0d90e31d09cf7ee1cc3ee89 Author: Roy Peled Date: Fri Nov 28 16:57:00 2008 +0200 mkfs.cramfs: lower memory requirements for layouts with duplicate files mkfs.cramfs allocates memory based on a calculated upper-bound of required filesystem size. If there are duplicate files or hard links, the current implementation unnecessarily increases the upper-bound per each copy of the file, even though cramfs does not store copies of contents of identical files. This patch improves the calculation of fslen_ub, the upper bound of required filesystem size, by making the upper bound aware of duplicate files. This is very helpful for layouts that hold a lot of hard links, which are seen as duplicate files by mkfs.cramfs. For example, this drastically reduces the memory requirements for creating a standard Busybox layout. Signed-off-by: Roy Peled disk-utils/mkfs.cramfs.c | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) commit fbaec83bc0fda4341862cc60ac9796277235e4b9 Author: Signed-off-by: Roy Peled Date: Wed Feb 4 14:56:54 2009 +0100 mkfs.cramfs: add endianness support to cramfs tools cramfs is an endianness dependent file system. So far, the cramfs utilities did not support cramfs images of different endianness than the host machine. A separate utility, cramfsswap, was required in order to change the endianness of the image before and after using cramfs utilities. The extra utility introduced extra maintenance and an additional step in the process. This patch adds endianness support to mkfs.cramfs and fsck.cramfs. fsck.cramfs now automatically detects the image endianness, and can work on images of either endianness. mkfs.cramfs now accepts a new optional parameter (-N) that allows creating the cramfs image in either endianness. Signed-off-by: Roy Peled Signed-off-by: Karel Zak configure.ac | 1 + disk-utils/Makefile.am | 5 +- disk-utils/cramfs_common.c | 105 ++++++++++++++++++++++++++++++ disk-utils/cramfs_common.h | 37 +++++++++++ disk-utils/fsck.cramfs.c | 49 +++++++++++---- disk-utils/mkfs.cramfs.c | 32 ++++++++- tests/Makefile.am | 2 + tests/commands.sh.in | 1 + tests/expected/ts-cramfs-endianness-fsck | 8 ++ tests/expected/ts-cramfs-endianness-mkfs | 4 + tests/input/cramfs-big.img | Bin 0 -> 4096 bytes tests/input/cramfs-little.img | Bin 0 -> 4096 bytes tests/ts-cramfs-endianness-fsck | 59 +++++++++++++++++ tests/ts-cramfs-endianness-mkfs | 55 ++++++++++++++++ 14 files changed, 340 insertions(+), 18 deletions(-) commit 0959f8063bf9b4d576822fe742a2bc9f5d1d1dbc Author: Karel Zak Date: Fri Jan 16 12:21:15 2009 +0100 mount: non-setuid (POSIX file capabilities) support The mount command does not work properly if you replace suid with POSIX file capabilities. We still need to check for non-root mounts and the command has to work in very restricted mode for non-root users. This patch allows you to remove suid bit from mount and umount. Note that you need a system with filesystem capability support, e.g. Fedora 10). # ls -l /bin/mount -rwxr-xr-x 1 root root 65192 2008-11-09 22:59 /bin/mount # getcap /bin/mount /bin/mount = cap_dac_override,cap_sys_admin+ep [kzak@redhat.com: all the above comments] Don't bypass security checks when [u]mount uses POSIX file capabilities rather than setuid root to permit non-root mounts. Signed-off-by: Geoff Johnstone mount/mount.c | 33 +++++++++++++++++++++------------ mount/umount.c | 22 +++++++++++++++------- 2 files changed, 36 insertions(+), 19 deletions(-) commit 9ca1a11bf96f9732037c5027124f84c31bc4d252 Author: Karel Zak Date: Wed Feb 4 12:39:02 2009 +0100 fdisk: add 0xaf HFS / HFS partition type Signed-off-by: Karel Zak fdisk/i386_sys_types.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 6c00cbbe97e7cf9cb640d62e5793cfcad44b1ae6 Author: Karel Zak Date: Tue Feb 3 10:22:07 2009 +0100 chrt: output buglet when reporting scheduling class % chrt -i 0 ./a.out & [1] 60479 % chrt -p 60479 pid 60479's current scheduling policy: SCHED_IDLE SCHED_RR pid 60479's current scheduling priority: 0 We have a spurious and incorrect SCHED_RR in there... Address-Red-Hat-Bugzilla: #483706 Signed-off-by: Karel Zak schedutils/chrt.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 97fd43f5d30eac2524cda508ed6b247f140e45ad Author: Karel Zak Date: Mon Feb 2 11:21:04 2009 +0100 ionice: fix typo in manpage Reported-by: Jakob Unterwurzacher Signed-off-by: Karel Zak schedutils/ionice.1 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 19ac06a5c09e2a6ecc1c8d8ab85b2eaca0d6a61f Author: Karel Zak Date: Sat Jan 31 01:50:26 2009 +0100 mount: fix typo in volume_id code Signed-off-by: Karel Zak mount/fsprobe_volumeid.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit a0d4e9d91b054a99c45c7a4569c9273f1476b54b Author: Karel Zak Date: Thu Jan 29 17:47:20 2009 +0100 rtcwake: add mising .RE to the man page Signed-off-by: Karel Zak sys-utils/rtcwake.8 | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 06b2b6af77dd19ae33e045ee481bd0aec116612b Author: Karel Zak Date: Tue Jan 27 15:00:35 2009 +0100 namei: add missing options to namei.1 Signed-off-by: Karel Zak misc-utils/namei.1 | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit c3ecdb3ea40f32eb4ef1517d01f93e8912f27cce Author: Karel Zak Date: Tue Jan 27 14:48:32 2009 +0100 namei: add --vertical option Signed-off-by: Karel Zak misc-utils/namei.1 | 2 ++ misc-utils/namei.c | 29 +++++++++++++++++++++-------- 2 files changed, 23 insertions(+), 8 deletions(-) commit 8e88e8fc1efb0428aac984c036ba066ea05f4417 Author: Karel Zak Date: Mon Jan 26 22:00:22 2009 +0100 rtcwake: explain supported modes in rtcwake.8 Signed-off-by: Karel Zak sys-utils/rtcwake.8 | 29 ++++++++++++++++++++++++++--- 1 files changed, 26 insertions(+), 3 deletions(-) commit e4b0fc36ffb565f19db8934bc13c9b6a2bce572f Author: Marco d'Itri Date: Sun Jan 25 17:44:16 2009 +0100 rtcwake: support not suspending People usually want to use pm-utils to suspend the system instead of the raw kernel interface, so I added an option to just exit after configuring the wakeup time. Actually I think that all the suspend code should be removed from rtcwake, since it does not really belong there. Signed-off-by: Marco d'Itri sys-utils/rtcwake.8 | 4 ++-- sys-utils/rtcwake.c | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) commit 922a121b6065ae8fd124a72cd0b7e8b9b890f9f6 Author: Karel Zak Date: Mon Jan 26 11:36:31 2009 +0100 namei: don't duplicate '/' directory sake@lelux ~ namei -l / f: / drwxr-xr-x root root / drwxr-xr-x root root The duplicate '/' directory is unexpected behavior. Reported-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/namei.c | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) commit 9bc0e24612e709449e3ff6fea926dd2ae746dfca Author: Karel Zak Date: Thu Jan 22 12:54:06 2009 +0100 ionice: a little cleanup of "none" description We practically have three io scheduling classes. The "none" is de facto "best-effort" class for processes that has not asked for io priority. Signed-off-by: Karel Zak schedutils/ionice.1 | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) commit 22b51bd22dce0bcf0bb785ad8eaf491dd6f986dc Author: Sukadev Bhattiprolu Date: Thu Jan 15 22:41:42 2009 -0800 mount: document newinstance and ptmxmode options to devpts Support for multiple instances of devpts were included in 2.6.29-rc1. Update man pages to document the new options. Additional details about the new options are described in 'Documentation/filesystems/devpts.txt' of kernel source tree. Reviewed-by: WANG Cong Signed-off-by: Sukadev Bhattiprolu Signed-off-by: Karel Zak mount/mount.8 | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 55 insertions(+), 0 deletions(-) commit 78e7f4ec68960b0ef316128fd69580a6ed1908d2 Author: Sam Varshavchik Date: Tue Dec 2 22:16:32 2008 -0500 mount: cleans up mount(8) troff markup My patches correct troff markup only. No content changes. Signed-off-by: Karel Zak mount/mount.8 | 48 +++++++++++++++++++++++------------------------- 1 files changed, 23 insertions(+), 25 deletions(-) commit 9b93a2238901231006ccd888446cd8eb13229a50 Author: Jakob Unterwurzacher Date: Sat Dec 27 22:39:10 2008 +0100 ionice: Extend the man page to explain the "none" class and cpu-nice inheritance Extend the ionice man page to explain the "none" class and how the cpu-nice => io-priority inheritance works. Signed-off-by: Jakob Unterwurzacher schedutils/ionice.1 | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) commit 11ea22d5a3dbb69557a4e1c7e3c862b0765102b5 Author: Adam Jackson Date: Thu Jan 8 11:44:27 2009 -0500 dmesg: Add -r (raw) option. Useful for debugging which kernel messages are ruining your quiet bootup. Signed-off-by: Adam Jackson sys-utils/dmesg.1 | 5 ++++- sys-utils/dmesg.c | 8 ++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) commit 448d12483cc24cd1ba50fde6b95d4c0f5080f038 Author: Karel Zak Date: Wed Jan 7 00:18:41 2009 +0100 umount: cleanup gefs_by_specdir() fix: - don't call canonicalize_spec() for LABELs/UUIDs - simplify the code - rename to getfs_by_devdir(), because we use it only for device names and not for SPECes (see umount.c). Signed-off-by: Karel Zak mount/fstab.c | 45 +++++++++++++++++++-------------------------- mount/fstab.h | 2 +- mount/umount.c | 4 ++-- 3 files changed, 22 insertions(+), 29 deletions(-) commit b2cf00d440cff65681a9eecf23e1157fc4104827 Author: Karel Zak Date: Wed Jan 7 00:00:35 2009 +0100 mount: finalize support of quoted LABELs/UUIDs The [u]mount does not properly support LABEL="foo" or UUID="foo" in /etc/fstab. This patch fix last places where we assume unquoted LABELs/UUIDs only. Signed-off-by: Karel Zak mount/fstab.c | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 deletions(-) commit f0daecf3c52a249bd244890ed53c50e165f2793f Author: Karel Zak Date: Tue Jan 6 15:20:37 2009 +0100 mount: suggest to use blockdev --setro rather than losetup Thanks to Christoph Hellwig. Signed-off-by: Karel Zak mount/mount.8 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 370dc7a23e0c115d05821e79855ac88f7d1ff242 Author: Karel Zak Date: Tue Jan 6 14:39:58 2009 +0100 mount: add info about semantics of read-only mount to mount.8 Reported-by: Joachim Wagner Signed-off-by: Karel Zak mount/mount.8 | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit f7ed29a7b6fe4cd7a6d53619674115355771aed5 Author: Karel Zak Date: Tue Jan 6 14:26:12 2009 +0100 namei: fix buffer overflow $ ./namei /usr/bin/java *** glibc detected *** ./namei: free(): invalid next size (fast): 0x00000000018e5070 *** [...] Aborted Reported-by: Sami Kerola Signed-off-by: Karel Zak misc-utils/namei.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 6db46818025102003d0c739f024500ef3925b4db Author: Karel Zak Date: Fri Dec 26 01:09:34 2008 +0100 raw: default to /dev/raw/rawctl The raw devices are in the raw/ subdirectory. It makes sense to use the same subdirectory also for the control file. The old /dev/rawctl is also supported as a fallback. The #ifdef OLD_RAW_DEVS (/dev/raw) is unsupported from now. Signed-off-by: Karel Zak disk-utils/raw.c | 20 +++++++++----------- 1 files changed, 9 insertions(+), 11 deletions(-) commit b80d3b31df01ad5e4b4ecb9613fe1474ce3147ca Author: Karel Zak Date: Mon Dec 22 18:46:45 2008 +0100 mount: add rootcontext= SELinux mount option Note, the description in the mount.8 man page is copy & paste from rootcontext= kernel patch (by James Morris). I didn't found anything more useful... (patches welcomed:-) Signed-off-by: Karel Zak mount/mount.8 | 8 +++++++- mount/mount.c | 4 ++++ 2 files changed, 11 insertions(+), 1 deletions(-) commit f1b3f066f7cbeee0864317fb85e8bb622da34917 Author: Karel Zak Date: Sat Dec 13 02:47:42 2008 +0100 mount: clean up SPEC canonicalization The SPEC (fsname) field in fstab/mtab could be: - devname - NAME=value (e.g LABEL, UUID) - directory (MS_MOVE, MS_BIND, ..) - pseudo-fs keyword (tmpfs, proc, sysfs, ...) the pseudo-fs keywords shouldn't be canonicalized to absolute path. It means we have to differ between SPEC and mountpoint (fs_dir). Unfortunately, the keywords was checked on wrong place. This patch move this check to the new function canonicalize_spec(). The fsname in mtab entry is canonicalized when the FS type is not pseudo filesystem. Signed-off-by: Karel Zak mount/fsprobe.c | 5 +++++ mount/fstab.c | 13 +++++++------ mount/mount.c | 18 ++++++++++++------ mount/realpath.c | 22 ++++++++++++++++------ mount/realpath.h | 3 ++- 5 files changed, 42 insertions(+), 19 deletions(-) commit a7d70ba71593f60c71781b0870055fd169e80a17 Author: Karel Zak Date: Fri Dec 12 15:20:06 2008 +0100 fdisk: remove unnecessary gettext call Signed-off-by: Karel Zak fdisk/fdisksgilabel.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 126836e85286463a77753d198563e59643d1c3fb Author: Karel Zak Date: Fri Dec 12 15:13:44 2008 +0100 pg: add gettext call for the help string Signed-off-by: Karel Zak text-utils/pg.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) commit 1205b9fe5fa627a50e44bcc381c746ab7c49e6a9 Author: Karel Zak Date: Fri Dec 12 15:03:18 2008 +0100 refresh gitignore Signed-off-by: Karel Zak login-utils/.gitignore | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 2449f6b0fafd0934f4b2d0453c2d550d56faa76b Author: Karel Zak Date: Fri Dec 12 15:01:15 2008 +0100 simpleinit: cleanup gettext calls, use snprintf() Signed-off-by: Karel Zak login-utils/simpleinit.c | 36 ++++++++++++++++++++---------------- 1 files changed, 20 insertions(+), 16 deletions(-) commit 26fb9222c40acb44a8ba2ba4a0671b45a834b937 Author: Karel Zak Date: Fri Dec 12 14:44:04 2008 +0100 chfn: several strings without gettext calls Signed-off-by: Karel Zak login-utils/chfn.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 12318be41b6f0f15a5857644b68d7339ca24344d Author: Karel Zak Date: Fri Dec 12 14:41:34 2008 +0100 TODO: add request to use nl_langinfo() Signed-off-by: Karel Zak TODO | 3 +++ login-utils/agetty.c | 1 + 2 files changed, 4 insertions(+), 0 deletions(-) commit ad067f162595be1e8cb0d4fbb88899745674968a Author: Karel Zak Date: Fri Dec 12 14:33:29 2008 +0100 Revert "login-utils: several strings without gettext calls" This reverts commit 64fefaf5bffdd4041190f1e5ed4b5d0100638c0d. It does not make sense to localize config options (wdays in checktty.c) and debug messages (main() in checktty.c. login-utils/agetty.c | 12 +++++------- login-utils/checktty.c | 9 ++++----- login-utils/chfn.c | 8 ++++---- login-utils/simpleinit.c | 6 +++--- 4 files changed, 16 insertions(+), 19 deletions(-) commit 4b7473c30f8844de31ce965d465ab2725c54909b Author: Karel Zak Date: Fri Dec 12 14:04:19 2008 +0100 mount: fix mount_static_LDADD Signed-off-by: Karel Zak mount/Makefile.am | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 9775d40fff67087f277a1aa9c33aa65b26041c4a Author: Karel Zak Date: Mon Dec 8 12:36:07 2008 +0100 tests: add md5 regression test Signed-off-by: Karel Zak tests/commands.sh.in | 1 + tests/expected/ts-md5 | 7 +++++++ tests/input/ts-md5 | 7 +++++++ tests/ts-md5 | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 51 insertions(+), 0 deletions(-) commit 8bce47d976e599a6e05106e8bc05c4270cc7810e Author: Karel Zak Date: Mon Dec 8 11:16:37 2008 +0100 include: use __BYTE_ORDER rather than AC specific WORDS_BIGENDIAN Signed-off-by: Karel Zak configure.ac | 1 - include/bitops.h | 10 +++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) commit 6fc2c88210780982b67f9b7a053663fecf4b2621 Author: Karel Zak Date: Mon Dec 8 11:12:30 2008 +0100 lib: add __BYTE_ORDER to md5.c Signed-off-by: Karel Zak lib/md5.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) commit 788a14403d032682c172c8021550db2e2a81c1a4 Author: Karel Zak Date: Sat Dec 6 01:43:55 2008 +0100 tests: add MD5 regression test Signed-off-by: Karel Zak tests/helpers/.gitignore | 1 + tests/helpers/Makefile.am | 5 ++++- tests/helpers/test_md5.c | 30 ++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 1 deletions(-) commit 0112925a991035f7dc6e83daf8a286ec2d29c62a Author: Karel Zak Date: Fri Dec 5 16:27:19 2008 +0100 tests: add swabN() regression test Signed-off-by: Karel Zak tests/commands.sh.in | 1 + tests/expected/ts-bitops-swapbytes | 21 +++++++ tests/helpers/.gitignore | 1 + tests/helpers/Makefile.am | 2 +- tests/helpers/test_byteswap.c | 114 ++++++++++++++++++++++++++++++++++++ tests/ts-bitops-swapbytes | 29 +++++++++ 6 files changed, 167 insertions(+), 1 deletions(-) commit dee98cdedc3c0e36fc6619fca06ad578da373f83 Author: Karel Zak Date: Fri Dec 5 15:53:40 2008 +0100 include: swapheader.h is missing in Makefile.am Signed-off-by: Karel Zak include/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 727b3c2f26e1bf5e29c3aefc5cedcedd0422c238 Author: Karel Zak Date: Fri Dec 5 14:38:54 2008 +0100 mkfs.minix: (and fsck) rename bitops.h This patch renames bitops.h to minix_bitops.h to avoid possible collisions with global include/bitops.h file. Signed-off-by: Karel Zak disk-utils/Makefile.am | 4 +- disk-utils/bitops.h | 54 --------------------------------------------- disk-utils/fsck.minix.c | 4 +- disk-utils/minix_bitops.h | 54 +++++++++++++++++++++++++++++++++++++++++++++ disk-utils/mkfs.minix.c | 4 +- 5 files changed, 60 insertions(+), 60 deletions(-) commit 43f2d5bcbc61d2fb4731a7a28908fee20132727f Author: Karel Zak Date: Fri Dec 5 14:01:12 2008 +0100 build-sys: add missing AC_C_BIGENDIAN This configure test is required in include/bitops.h. Signed-off-by: Karel Zak configure.ac | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 3399a218f4eff4016a22044e7c416521bc37c53c Author: Matthias Koenig Date: Thu Nov 27 12:32:56 2008 +0100 swapon: add swap format detection and pagesize check As swap format depends on the pagesize being used, it may happen that the pagesize of the swap space and the current pagesize differ, resulting in swapon to fail when trying to enable such a swap space. In such a case swapon should rather reinitialize the swap space. [kzak@redhat.com: - add blkdev.c to the global swapon_SOURCES - don't try to detect for huge pages on small swap areas (or when read() returns less than MAX_PAGESIZE) - fix fprintf() format string] Co-Author: Olaf Hering Signed-off-by: Matthias Koenig Signed-off-by: Karel Zak mount/Makefile.am | 4 +- mount/swapon.c | 128 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 130 insertions(+), 2 deletions(-) commit d60819b36d1a9fcb6c0f9678b6549cd7810d0943 Author: Matthias Koenig Date: Thu Nov 27 12:32:55 2008 +0100 include: move swapheader.h to include [kzak@redhat.com: add ifndef _SWAPHEADER_H] Signed-off-by: Matthias Koenig Signed-off-by: Karel Zak disk-utils/Makefile.am | 2 +- disk-utils/swapheader.h | 19 ------------------- include/swapheader.h | 24 ++++++++++++++++++++++++ 3 files changed, 25 insertions(+), 20 deletions(-) commit 3933bc2e4a1a4dfce89aa534c381498b5f34c7f9 Author: Mike Frysinger Date: Fri Nov 28 16:57:24 2008 -0500 mount: remove spurious newline from mount.8 The man page display shows quote marks instead of being interpreted by the .B statement and hidden away due to a spurious newline. Signed-off-by: Mike Frysinger mount/mount.8 | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit e273df94bab7785df778de7eaeacfa729ee7d56e Author: Karel Zak Date: Fri Dec 5 11:41:28 2008 +0100 setterm: fix -blank man page Signed-off-by: Karel Zak misc-utils/setterm.1 | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit ff5717391c3cebb4799c8e5d6dd9876fc5005fd0 Author: Alexey Gladkov Date: Mon Nov 24 18:15:36 2008 +0300 flock: Allow lock directory With this patch, you can lock directory. Additionally, lockfile opens with O_NOCTTY. Try to open file with O_CREAT flag first, and without it if open fails with EISDIR. Suggested by H. Peter Anvin. Signed-off-by: Alexey Gladkov sys-utils/flock.1 | 8 +++++--- sys-utils/flock.c | 7 ++++++- 2 files changed, 11 insertions(+), 4 deletions(-) commit 8da18ddb8167ddbf4c3eeddfcb699f5a81e33c2f Author: Karel Zak Date: Tue Dec 2 14:27:37 2008 +0100 docs: add feature-requests from RH bugzilla to TODO list Signed-off-by: Karel Zak TODO | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) commit 97e83bfe9e2b55fd45e9b91134a15b27249a98a6 Author: Karel Zak Date: Thu Nov 27 14:16:37 2008 +0100 mount: use subsections in mount.8 DESCRIPTION The DESCRIPTION section is huge non-structuralized mess. This patch is attempt to make this part of the man page more readable. Signed-off-by: Karel Zak mount/mount.8 | 137 +++++++++++++++++++++++++++++++++----------------------- 1 files changed, 81 insertions(+), 56 deletions(-) commit 464bb99400f9a1a1bde594c290bd3ebb1a3722be Author: Karel Zak Date: Thu Nov 27 13:29:44 2008 +0100 mount: create separate section for fs-independent options in mount.8 Signed-off-by: Karel Zak mount/mount.8 | 51 ++++++++++++++++++++++++++++++++------------------- 1 files changed, 32 insertions(+), 19 deletions(-) commit b825eb893b1ba0ca97862c836e1da98c2d6454fd Author: Karel Zak Date: Thu Nov 27 13:03:25 2008 +0100 mount: reorder list of options in mount.8 Signed-off-by: Karel Zak mount/mount.8 | 172 +++++++++++++++++++++++++++++--------------------------- 1 files changed, 89 insertions(+), 83 deletions(-) commit 4fa5e73d16828c94234ba0aeafaec2470f79011c Author: Karel Zak Date: Thu Nov 27 12:08:44 2008 +0100 mount: add i_version support Signed-off-by: Karel Zak mount/mount.8 | 6 ++++++ mount/mount.c | 4 ++++ mount/mount_constants.h | 3 +++ 3 files changed, 13 insertions(+), 0 deletions(-) commit 08e4114ab2dab16cfb2ee301ce3b5e32ce89f6ef Author: Karel Zak Date: Wed Nov 26 14:40:45 2008 +0100 tailf: unistd.h is included more than once Signed-off-by: Karel Zak text-utils/tailf.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 16cccfc19bd37403c81f37e51e22e2532118d4b7 Author: Karel Zak Date: Wed Nov 26 14:40:03 2008 +0100 rdev: cleanup includes Signed-off-by: Karel Zak sys-utils/rdev.c | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) commit 5476bf9b5bb3d672c4e97cfe670adf79ae423154 Author: Karel Zak Date: Wed Nov 26 14:38:36 2008 +0100 login: cleanup includes Signed-off-by: Karel Zak login-utils/login.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) commit df73ad460d83c5865ceaa7a09988020428e4caff Author: Karel Zak Date: Wed Nov 26 14:35:31 2008 +0100 agetty: sys/types.h and time.h are included more than once Signed-off-by: Karel Zak login-utils/agetty.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit 715814d9507e9365129bf58be67a8ab5a4dd18d6 Author: Karel Zak Date: Wed Nov 26 14:31:19 2008 +0100 hwclock: clock.h is included more than once Signed-off-by: Karel Zak hwclock/kd.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) commit d7327f20924a993a55573666149149b72ea8af32 Author: Karel Zak Date: Wed Nov 26 14:25:25 2008 +0100 getopt: remove unnecessary ifdefs Signed-off-by: Karel Zak getopt/Makefile.am | 3 --- getopt/getopt.c | 8 -------- 2 files changed, 0 insertions(+), 11 deletions(-) commit 76fe37dae132d50cbc2b42eb6aac23648339db0d Author: Karel Zak Date: Wed Nov 26 14:24:52 2008 +0100 fdisk: rename ENABLE_CMDTAGQ macro Signed-off-by: Karel Zak fdisk/fdisksgilabel.h | 2 +- tools/checkconfig.sh | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) commit 043102bf197e1f0e082cc0eaf4d3d5d7c3b79f7b Author: Karel Zak Date: Wed Nov 26 13:42:16 2008 +0100 tools: add checkconfig to top-level Makefile Signed-off-by: Karel Zak Makefile.am | 7 ++++++- tools/checkconfig.sh | 37 +++++++++++++++++++++++-------------- 2 files changed, 29 insertions(+), 15 deletions(-) commit 685758e852db5ad1c50116725662741433298e7b Author: Karel Zak Date: Wed Nov 26 12:48:37 2008 +0100 tools: rename codecheck-config to checkconfig.sh Signed-off-by: Karel Zak tools/checkconfig.sh | 38 ++++++++++++++++++++++++++++++++++++++ tools/codecheck-config | 38 -------------------------------------- 2 files changed, 38 insertions(+), 38 deletions(-) commit 44e293d65c78b8a97c22be4e94657bd5fb2b9bfd Author: Karel Zak Date: Wed Nov 26 12:42:35 2008 +0100 tools: add checkincludes.pl (from linux kernel) Signed-off-by: Karel Zak Makefile.am | 11 +++++++++++ tools/checkincludes.pl | 24 ++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 0 deletions(-) commit 60aeb5b76d93063f09ae254ae9d7e25d28c1d73b Author: Karel Zak Date: Tue Nov 25 16:19:36 2008 +0100 fdisk: fix man page typo Signed-off-by: Karel Zak fdisk/fdisk.8 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7e37b8cc03e3f99349b46a0d7f43f22ff41930a8 Author: Américo Wang Date: Wed Nov 19 18:11:23 2008 +0000 tests: remove useless return value checks in testing scripts Signed-off-by: WANG Cong tests/ts-fstab-devname | 20 ++++++++------------ tests/ts-fstab-devname2label | 13 +++++-------- tests/ts-fstab-devname2uuid | 12 ++++-------- tests/ts-fstab-label | 30 ++++++++++++------------------ tests/ts-fstab-label2devname | 24 ++++++++++-------------- tests/ts-fstab-label2uuid | 27 +++++++++++---------------- tests/ts-fstab-symlink | 21 +++++++++------------ tests/ts-fstab-uuid | 27 +++++++++------------------ tests/ts-fstab-uuid2devname | 23 +++++++++-------------- tests/ts-fstab-uuid2label | 26 ++++++++++---------------- tests/ts-mount-devname | 12 ++++-------- tests/ts-mount-label | 25 +++++++++++-------------- tests/ts-mount-remount | 18 ++++++++---------- tests/ts-mount-uuid | 22 ++++++++-------------- tests/ts-swapon-devname | 10 ++++------ tests/ts-swapon-label | 14 ++++++-------- tests/ts-swapon-uuid | 13 +++++-------- 17 files changed, 133 insertions(+), 204 deletions(-) commit 4ea5676c44c8db359eeabba4e1cd4bc04ed2d46a Author: Karel Zak Date: Wed Nov 19 13:38:01 2008 +0100 tests: update namei reg.test Signed-off-by: Karel Zak tests/expected/ts-namei-logic | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) commit f0b561b63207f679881e73a23a2374c08d340086 Author: Américo Wang Date: Thu Nov 6 15:46:22 2008 +0000 tests: clean up the testing scripts Do some cleanups to the testing scripts. Signed-off-by: WANG Cong tests/functions.sh | 4 ++-- tests/ts-ipcs-limits | 6 +----- tests/ts-mount-special | 4 ++-- 3 files changed, 5 insertions(+), 9 deletions(-) commit 7177d32ecfc2c1404e6067a573362af3324840fb Author: Alon Bar-Lev Date: Fri Nov 14 18:40:25 2008 +0200 build-sys: add --disable-mount I use busybox for most of the utilities, still lacks a few that I wish to use from util-linux... So mount comes from busybox. And during the cross compile I don't want to compile the mount dependencies only to make the configure script happy... Signed-off-by: Alon Bar-Lev Signed-off-by: Karel Zak Makefile.am | 7 +++++-- configure.ac | 34 +++++++++++++++++++++++----------- 2 files changed, 28 insertions(+), 13 deletions(-) commit 1dabcd2498d12753a99832b88a75300d30eb1f66 Author: Karel Zak Date: Wed Nov 19 11:15:44 2008 +0100 pivot_root: clean up Signed-off-by: Karel Zak sys-utils/pivot_root.c | 31 ++++++++++++++++--------------- 1 files changed, 16 insertions(+), 15 deletions(-) commit 5947572d5e527b842210e67d07e53eed5d95fbb2 Author: Karel Zak Date: Wed Nov 19 11:07:58 2008 +0100 build-sys: move pivot_root(8) to sys-utils This patch moves pivot_root.{8,c) from mount/ to sys-utils/ directory. There is not ant relation between pivot_root source code and the rest of code in the mount. Signed-off-by: Karel Zak mount/.gitignore | 1 - mount/Makefile.am | 5 --- mount/pivot_root.8 | 68 ------------------------------------------------ mount/pivot_root.c | 32 ---------------------- po/POTFILES.in | 2 +- sys-utils/.gitignore | 29 ++++++++++---------- sys-utils/Makefile.am | 5 +++ sys-utils/pivot_root.8 | 68 ++++++++++++++++++++++++++++++++++++++++++++++++ sys-utils/pivot_root.c | 32 ++++++++++++++++++++++ 9 files changed, 121 insertions(+), 121 deletions(-) commit c268327edd764be783cf11f99bea73b9790b2e02 Author: Karel Zak Date: Tue Nov 18 15:50:38 2008 +0100 losetup: add warning about read-only mode Signed-off-by: Karel Zak mount/lomount.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit bc984ef97cddc4899e67b9139ed206a9bca1b156 Author: Matthias Koenig Date: Thu Nov 6 14:45:38 2008 +0100 losetup: try to set up loop readonly if EACCES Currently mounting/losetup an image fails if it is accessable readonly. There are no problems if it is a file on a local filesystem. It seems only to happen if it is a NFS mounted image, which is read-write in permission but with root_squash option. set_loop checks only for EROFS to retry open with readonly mode, but in this case we get EACCES. Signed-off-by: Matthias Koenig mount/lomount.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 4b13a5a66b264886b3d16f67667cd7914f31697e Author: Matthias Koenig Date: Thu Nov 6 15:49:30 2008 +0100 cfdisk: accept yes/no as fallback Accept "yes" or "no" as fallback in case the question has not been translated. [kzak@redhat.com: note that rpmatch(3) looks at only the first character of response, but we need have to check the full yes/no string.] Signed-off-by: Matthias Koenig fdisk/cfdisk.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 943add28825b3e514e5e2390764af14851b33c64 Author: Matthias Koenig Date: Thu Nov 6 15:43:46 2008 +0100 mkfs.minix: fix size detection blkdev_get_size returns size in bytes, so BLOCKS has to be calculated accordingly. Use stat value for size if device is not a block device. Signed-off-by: Matthias Koenig disk-utils/mkfs.minix.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) commit 6ee3f81faedf297f087bd6c83456fef5898d490e Author: Matthias Koenig Date: Thu Nov 6 15:24:24 2008 +0100 fdisk: add some missing includes Currently these missing includes prevent that HDIO_GETGEO is defined, so is_probably_full_disk always uses the "silly heuristic" method. [kzak@redhat.com: add also unistd.h] Signed-off-by: Matthias Koenig Signed-off-by: Karel Zak fdisk/partname.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 4cfcf09b33ecfbdae554c6b5de95ec32d059d664 Author: Karel Zak Date: Thu Oct 30 13:42:50 2008 +0100 namei: add --owners and --long options Added file owner and group name printing support. The groupnames and usernames are cached to avoid an extra overhead. This implementation does not use fixed width of user/group name columns. $ namei -l /var/www/cgi-bin f: /var/www/cgi-bin drwxr-xr-x root root / drwxr-xr-x root root var drwxr-xr-x root root www drwxr-xr-x root root cgi-bin Signed-off-by: Karel Zak misc-utils/namei.c | 145 +++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 138 insertions(+), 7 deletions(-) commit c84a633a92f534452a0b79bc6f909d0f2e1c17d5 Author: Karel Zak Date: Thu Oct 30 10:19:39 2008 +0100 namei: new re-written version This new version: * not based on chdir() * implemented without recursion (does not depend on stack size) * list of directories is stored in allocated memory (the code is extendable with new functionality (e.g. show usernames, groupnames, selunux contexts, ...). * supports long command line options * adds a new command line option: -n, --nosymlinks don't follow symlinks Signed-off-by: Karel Zak misc-utils/namei.1 | 18 +- misc-utils/namei.c | 623 +++++++++++++++++++++++++--------------------------- 2 files changed, 303 insertions(+), 338 deletions(-) commit 5ea8931c95b2e0b1663f28591d2c721f07a88181 Author: Karel Zak Date: Thu Nov 13 23:08:34 2008 +0100 fdisk: support +cylinder notation Currently fdisk does not support +cylinder notation and reports "Unsupported suffix: ''". Reported-by: Matthias Koenig Signed-off-by: Karel Zak fdisk/fdisk.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 981b80b797bbd8076ae280d7dd2e3dfda3ad76ec Author: Karel Zak Date: Thu Nov 13 15:37:22 2008 +0100 fdisk: read /proc/partitions in more robust way Signed-off-by: Karel Zak fdisk/fdisk.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) commit 197d1d7c794a383cd3b9d3c0c1437d9860af9da2 Author: Karel Zak Date: Thu Nov 13 14:56:17 2008 +0100 fdisk: cannot create partition with starting beyond 1 TB fdisk(8) uses "unsigned long long" for all internal calculations -- let use it for start of partition too. Address-Red-Hat-Bugzilla: #471369 Signed-off-by: Karel Zak fdisk/fdisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit c655294a392c329eca7dfc339ab79d8c910283d9 Author: CAI Qian Date: Wed Oct 22 21:21:14 2008 -0700 sfdisk: fix Compilation Error This patch fixes a compilation error in the latest tree. Signed-off-by: CAI Qian fdisk/sfdisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit cf474aacfc30fde89c0efb43211b56c24cab546b Author: Matthias Koenig Date: Tue Oct 21 18:45:40 2008 +0200 lscpu: return EXIT_SUCCESS at the end Signed-off-by: Matthias Koenig sys-utils/lscpu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7bfa31b953ad7ae129cb3c8fcc1e8346f23e1cbd Author: Karel Zak Date: Wed Oct 22 13:56:07 2008 +0200 tests: refresh Makefile.am (add missing lscpu tests) Signed-off-by: Karel Zak tests/Makefile.am | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) commit 5e8f283e905797e9f166e4ebfd572c75219edaba Author: Karel Zak Date: Wed Oct 22 13:49:23 2008 +0200 tests: add lscpu(1) test for fullvirt. Xen x86_64 Signed-off-by: Karel Zak tests/expected/ts-lscpu-x86_64-xenfull | 22 +++++++++++ .../ts-lscpu-x86_64-xenfull/proc/bus/pci/devices | 8 ++++ tests/input/ts-lscpu-x86_64-xenfull/proc/cpuinfo | 38 ++++++++++++++++++++ .../sys/devices/system/cpu/cpu0/cache/index0/level | 1 + .../system/cpu/cpu0/cache/index0/shared_cpu_map | 1 + .../sys/devices/system/cpu/cpu0/cache/index0/size | 1 + .../sys/devices/system/cpu/cpu0/cache/index0/type | 1 + .../sys/devices/system/cpu/cpu0/cache/index1/level | 1 + .../system/cpu/cpu0/cache/index1/shared_cpu_map | 1 + .../sys/devices/system/cpu/cpu0/cache/index1/size | 1 + .../sys/devices/system/cpu/cpu0/cache/index1/type | 1 + .../sys/devices/system/cpu/cpu0/cache/index2/level | 1 + .../system/cpu/cpu0/cache/index2/shared_cpu_map | 1 + .../sys/devices/system/cpu/cpu0/cache/index2/size | 1 + .../sys/devices/system/cpu/cpu0/cache/index2/type | 1 + .../devices/system/cpu/cpu0/topology/core_siblings | 1 + .../system/cpu/cpu0/topology/thread_siblings | 1 + .../sys/devices/system/node/node0/cpumap | 1 + tests/ts-lscpu-x86_64-xenfull | 3 ++ 19 files changed, 86 insertions(+), 0 deletions(-) commit 750e040e0091ec38ad21abaccfc7e5f19dd30bd6 Author: Karel Zak Date: Wed Oct 22 13:22:21 2008 +0200 tests: add lscpu(1) test for paravirt. Xen i386 Signed-off-by: Karel Zak tests/expected/ts-lscpu-i386-xenpara | 19 ++++++++++ tests/input/ts-lscpu-i386-xenpara/proc/cpuinfo | 38 ++++++++++++++++++++ .../sys/devices/system/cpu/cpu0/cache/index0/level | 1 + .../system/cpu/cpu0/cache/index0/shared_cpu_map | 1 + .../sys/devices/system/cpu/cpu0/cache/index0/size | 1 + .../sys/devices/system/cpu/cpu0/cache/index0/type | 1 + .../sys/devices/system/cpu/cpu0/cache/index1/level | 1 + .../system/cpu/cpu0/cache/index1/shared_cpu_map | 1 + .../sys/devices/system/cpu/cpu0/cache/index1/size | 1 + .../sys/devices/system/cpu/cpu0/cache/index1/type | 1 + .../sys/devices/system/cpu/cpu0/cache/index2/level | 1 + .../system/cpu/cpu0/cache/index2/shared_cpu_map | 1 + .../sys/devices/system/cpu/cpu0/cache/index2/size | 1 + .../sys/devices/system/cpu/cpu0/cache/index2/type | 1 + tests/ts-lscpu-i386-xenpara | 3 ++ 15 files changed, 72 insertions(+), 0 deletions(-) commit 6c7bba315c0737931dc2d4b0a5393146c2afb83b Author: Karel Zak Date: Wed Oct 22 13:13:41 2008 +0200 tests: add mk-lscpu-input.sh This script makes a copy from system /proc and /sys. The result is useful for lscpu(1) regression tests. Signed-off-by: Karel Zak tests/Makefile.am | 1 + tests/mk-lscpu-input.sh | 48 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 0 deletions(-) commit c8b64f6d7770d62065bdc4fa5c4f80cc2326e203 Author: Karel Zak Date: Wed Oct 1 01:29:32 2008 +0200 lscpu: add Hypervisor detection This patch adds two new fields: * "Hypervisor vendor" -- based on CPUID and hypervisor specific PCI devices. lscpu(1) supports KVM, XEN, Microsoft HV now. * "Virtualization type" - "none" = Xen dom0 - "full" = full virtualization (KVM, Xen, ...) - "para" = Xen paravirtualization Co-Author: Ky Srinivasan Signed-off-by: Karel Zak sys-utils/lscpu.1 | 2 + sys-utils/lscpu.c | 184 +++++++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 166 insertions(+), 20 deletions(-) commit 846baede1680a56cdcaab2dae68fa35c7899174e Author: Karel Zak Date: Thu Oct 16 23:44:59 2008 +0200 docs: update TODO list Signed-off-by: Karel Zak TODO | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 433c8bea8a4047aec35d894a3283853d1a48f897 Author: Karel Zak Date: Thu Oct 16 23:37:38 2008 +0200 hwclock: remove "cli" and "sti" from i386 CMOS code The protection against context switch is nonsense. There is possible to optimize the access to CMOS by mlockall(MCL_CURRENT) and SCHED_FIFO. For more details see: http://lkml.org/lkml/2008/10/12/132 Reported-by: Arjan van de Ven Signed-off-by: Karel Zak hwclock/cmos.c | 29 ++++------------------------- 1 files changed, 4 insertions(+), 25 deletions(-) commit bf7b8d773bb36c3aae4001a5dd6cd80bff0c04ec Author: Karel Zak Date: Tue Oct 7 10:23:23 2008 +0200 ipcs: fix exit codes, remove tailing white-spaces Addresses-Red-Hat-Bugzilla: #465911 Signed-off-by: Karel Zak sys-utils/ipcs.c | 137 ++++++++++++++++++++++++------------------------------ 1 files changed, 61 insertions(+), 76 deletions(-) commit b9f2b3de43c820a4259ec8855359a2d8d18abe01 Author: Karel Zak Date: Mon Oct 6 12:56:37 2008 +0200 mount: sync tmpfs info in mount.8 with Documentation/filesystems/tmpfs.txt Addresses-Red-Hat-Bugzilla: #465761 Signed-off-by: Karel Zak mount/mount.8 | 71 +++++++++++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 62 insertions(+), 9 deletions(-) commit 2e5e25bc13f7821f25f816dc0d03371c76c01d3b Author: Karel Zak Date: Mon Oct 6 12:25:59 2008 +0200 mount: sync FAT info in mount.8 with Documentation/filesystems/vfat.txt Signed-off-by: Karel Zak mount/mount.8 | 54 ++++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 48 insertions(+), 6 deletions(-) commit c64061c9b306f2db49ba97d066b8487f66a914fa Author: Vincent Deffontaines Date: Tue Sep 16 13:08:12 2008 +0200 fdisk: suggest partprobe(8) and kpartx(8) when BLKRRPART failed Signed-off-by: Vincent Deffontaines Signed-off-by: Karel Zak Co-Author: Karel Zak fdisk/cfdisk.8 | 17 +++++++++++------ fdisk/cfdisk.c | 8 ++++---- fdisk/fdisk.8 | 4 +++- fdisk/fdisk.c | 12 +++++------- fdisk/sfdisk.8 | 4 +++- fdisk/sfdisk.c | 13 +++++++------ 6 files changed, 33 insertions(+), 25 deletions(-) commit 6e52d20f4624c93ab59c64580d44ffef0ce4b3f7 Author: Karel Zak Date: Fri Oct 3 09:34:25 2008 +0200 mount: remove link to namesys.com Ricardo Catalinas Jiménez wrote: In the man page mount(8) there is the url "http://www.namesys.com/mount-options.html". The web site has been down for a long time and the Namesys company is trying to be sold. Reported-By: Ricardo Catalinas Jiménez Signed-off-by: Karel Zak mount/mount.8 | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 7c7f4ff8e0a07e36fa8a5e7539fed40f0b9ef3b8 Author: Pedro Ribeiro Date: Fri Oct 3 09:31:44 2008 +0200 pg: several strings without gettext calls Signed-off-by: Pedro Ribeiro Signed-off-by: Karel Zak text-utils/pg.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 39a5a2314be3e3b5af50f5c5cb56d853eabb2bfb Author: Pedro Ribeiro Date: Fri Oct 3 09:27:33 2008 +0200 readprofile: several strings without gettext calls Signed-off-by: Pedro Ribeiro Signed-off-by: Karel Zak sys-utils/readprofile.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 5bbba4a5bd0dd56cbbad5f522d1a7179bd975db8 Author: Pedro Ribeiro Date: Fri Oct 3 09:25:10 2008 +0200 losetup: several strings without gettext strings Signed-off-by: Pedro Ribeiro Signed-off-by: Karel Zak mount/lomount.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 331b7044810c192877134ce7ee487ecce299777a Author: Pedro Ribeiro Date: Fri Oct 3 09:17:07 2008 +0200 logger: several strings without gettext calls Signed-off-by: Pedro Ribeiro Signed-off-by: Karel Zak misc-utils/logger.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 64fefaf5bffdd4041190f1e5ed4b5d0100638c0d Author: Pedro Ribeiro Date: Fri Oct 3 09:13:20 2008 +0200 login-utils: several strings without gettext calls Signed-off-by: Pedro Ribeiro Signed-off-by: Karel Zak login-utils/agetty.c | 12 +++++++----- login-utils/checktty.c | 9 +++++---- login-utils/chfn.c | 8 ++++---- login-utils/simpleinit.c | 6 +++--- 4 files changed, 19 insertions(+), 16 deletions(-) commit f9e151dddb7c1e4e0590c3988671c4f546c49404 Author: Pedro Ribeiro Date: Fri Oct 3 08:57:43 2008 +0200 hwclock: several strings without gettext calls Signed-off-by: Pedro Ribeiro Signed-off-by: Karel Zak hwclock/cmos.c | 8 ++++---- hwclock/hwclock.c | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) commit add5133f4ad5136aac3ce7627e615d14893d0aeb Author: Pedro Ribeiro Date: Fri Oct 3 08:52:35 2008 +0200 fdisk: several strings without gettext calls Signed-off-by: Pedro Ribeiro Signed-off-by: Karel Zak fdisk/fdisk.c | 4 ++-- fdisk/fdisksgilabel.c | 2 +- fdisk/fdisksunlabel.c | 4 ++-- fdisk/sfdisk.c | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) commit 5dd48fb28f83d5b37bee5d9a242d06671df101b5 Author: Pedro Ribeiro Date: Fri Oct 3 08:46:36 2008 +0200 raw: add NLS support [kzak@redhat.com: - add setlocale(), ... - remove tailing white spaces] Signed-off-by: Pedro Ribeiro Signed-off-by: Karel Zak disk-utils/raw.c | 75 ++++++++++++++++++++++++++++------------------------- 1 files changed, 40 insertions(+), 35 deletions(-) commit 5044f6d7f0e5f30ab8113eea7697f9cba207bf6f Author: Pedro Ribeiro Date: Fri Oct 3 08:35:16 2008 +0200 mkfs.cramfs: several strings without gettext calls Signed-off-by: Pedro Ribeiro Signed-off-by: Karel Zak disk-utils/mkfs.cramfs.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit e56644ca45461fce9a71a7b6482ce3bd667a29f3 Author: Pedro Ribeiro Date: Fri Oct 3 08:30:33 2008 +0200 fsck.cramfs: add NLS support [kzak@redhat.com: - add setlocale(), ...] Signed-off-by: Pedro Ribeiro Signed-off-by: Karel Zak disk-utils/fsck.cramfs.c | 116 ++++++++++++++++++++++++---------------------- 1 files changed, 60 insertions(+), 56 deletions(-) commit 90d43eca4ef58e74281345da3562b5fd59400137 Author: Pedro Ribeiro Date: Fri Oct 3 08:22:50 2008 +0200 elvtune: add NLS support [kzak@redhat.com: - add missing setlocale(), ...] Signed-off-by: Pedro Ribeiro Signed-off-by: Karel Zak disk-utils/elvtune.c | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) commit 7a451aa99547d67a64b3313ea906c71217e5c6f2 Author: Karel Zak Date: Wed Oct 1 00:27:37 2008 +0200 mount: mtab created multiple times with -a option When /etc/mtab does not exist and mount is called with -a, for every mount point that is mounted a root-fs record is added to mtab. This is because get_mtab_info() sets the flag mtab_does_not_exist to 1 when it doesn't find /etc/mtab. However, if it actually finds /etc/mtab, the variable is not reset to 0. So on every subsequent call to get_mtab_info() (as it is the case when mounting several mount points with the -a option), mount will think that /etc/mtab does not exist, even if it was created in the meantime by mount itself. Reported-By: Jonas Kramer Signed-off-by: Karel Zak mount/fstab.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) commit af17e0d170a7dbdd2b9cefdcfa4e6c850152a5c0 Author: Karel Zak Date: Tue Sep 30 12:49:58 2008 +0200 losetup: missing EBUSY error hint message old version: # losetup /dev/loop0 /foo.img # losetup /dev/loop0 /bar.img; echo $? 2 new version: # losetup /dev/loop0 /foo.img # losetup /dev/loop0 /bar.img; echo $? losetup: /dev/loop0: device is busy 2 Signed-off-by: Karel Zak mount/lomount.c | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) commit a063e16c5d5b9307cb0e027686998677877b1fe9 Author: Karel Zak Date: Mon Sep 29 12:53:39 2008 +0200 login: fix compiler warning (int32 time() arg) login.c: In function ‘dolastlog’: login.c:1438 warning: passing argument 1 of ‘time’ from incompatible pointer type Unfortunately, on-disk lastlog format is always 32bit, bits/utmp.h: struct lastlog { #if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32 int32_t ll_time; #else __time_t ll_time; #endif Signed-off-by: Karel Zak login-utils/login.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) commit 293889d084c4524930f44785dad8cae4f1be060b Author: Karel Zak Date: Mon Sep 29 12:24:38 2008 +0200 fsck.cramfs: fix compiler warning fsck.cramfs.c: In function ‘main’: fsck.cramfs.c:676 warning: ‘length’ may be used uninitialized in this function Signed-off-by: Karel Zak disk-utils/fsck.cramfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 1069973afa00944714f91c9b34d296a89e8403df Author: Signed-off-by: Guan Xin Date: Mon Sep 29 12:13:54 2008 +0200 umount: no checking mount point removal No longer checks if mount point has been renamed or removed. Linux reports EBUSY for these actions, so this check is redundant. [kzak@redhat.com: - remove the check rather than "#if 0" - remove unnecessary mnt_err2 stuff] Signed-off-by: Guan Xin Signed-off-by: Karel Zak mount/umount.c | 29 ++++------------------------- 1 files changed, 4 insertions(+), 25 deletions(-) commit feec8bd17eb9e4459161d40e4a2637d9fc6782d3 Author: Guan Xin Date: Mon Sep 29 11:43:45 2008 +0200 mount: fix typo Signed-off-by: Guan Xin mount/mount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 992283e8e49d941069973832e166eacb8ea6cf6c Author: Guan Xin Date: Mon Sep 29 11:38:06 2008 +0200 umount: check for overlaid mounts Linux cannot umount a device whose mount point is hidden by subsequent mount(s). i.e. We must umount the devices associated to a mount point in the reverse order of when they were mounted. If umount was called violating this rule, report error and exit. Signed-off-by: Guan Xin Signed-off-by: Karel Zak mount/umount.c | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-) commit 6a0fbe22165409019ea6ddf14e651ba2391af3a2 Author: Karel Zak Date: Mon Sep 29 11:04:59 2008 +0200 mount: add info about /proc/mounts to mount.1 Signed-off-by: Karel Zak mount/mount.8 | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) commit aa24a176ecfb996e362ce43249a530622715873b Author: Karel Zak Date: Thu Sep 25 22:25:38 2008 +0200 mount: fix typo Signed-off-by: Karel Zak mount/mount.8 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit bd9d9f05e64be60ca5c6db2c35715dcba99b810a Author: Karel Zak Date: Tue Sep 23 23:17:36 2008 +0200 chrt: add NLS support, clean error messages and return codes Signed-off-by: Karel Zak schedutils/chrt.c | 174 +++++++++++++++++++++-------------------------------- 1 files changed, 69 insertions(+), 105 deletions(-) commit c779d6e94ff6880a92213693c6bd955a7d167df9 Author: Martin Steigerwald Date: Tue Sep 23 14:23:03 2008 +0200 chrt: support CFS SCHED_IDLE priority and document it Signed-off-by: Martin Steigerwald Signed-off-by: Karel Zak schedutils/chrt.1 | 11 +++++++++-- schedutils/chrt.c | 25 ++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 3 deletions(-) commit af53f0f1ca9ccebfded560eeaca50289a49e6fa5 Author: Karel Zak Date: Wed Sep 17 13:49:45 2008 +0200 build-sys: add -luuid to BLKID_LIBS The libblkid is always linked with libuuild, so this indirect dependence in BLKID_LIBS is not a problem. This change helps to people who compile util-linux-ng with non-standard prefix, ..etc. Signed-off-by: Karel Zak configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 3342f88dec9af581385a52a9add92c40c0939b6d Author: maximilian attems Date: Sun Sep 7 21:57:24 2008 +0200 partx: don't redeclare daddr_t klibc porting fix, use proper include, nuke redefinition. solaris.c:8: error: redefinition of typedef ‘daddr_t’ /usr/lib/klibc/include/sys/types.h:29: error: previous declaration of ‘daddr_t’ was here Signed-off-by: maximilian attems partx/solaris.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit f635c336c45c1c998ace05c37a83cab5d398bee9 Author: Karel Zak Date: Wed Sep 10 16:03:43 2008 +0200 ipcmk: add NLS support Signed-off-by: Karel Zak po/POTFILES.in | 1 + sys-utils/ipcmk.c | 26 ++++++++++++++++---------- 2 files changed, 17 insertions(+), 10 deletions(-) commit cc41c0a33e3ef408c0b3df3a676b991dcc3fe06b Author: Karel Zak Date: Wed Sep 10 16:00:17 2008 +0200 ipcmk: fix error codes and error messages Signed-off-by: Karel Zak sys-utils/ipcmk.c | 46 ++++++++++++++++++++++++++++++++-------------- 1 files changed, 32 insertions(+), 14 deletions(-) commit 1b3f13304381e0c78ebc904af02672c2aaf936e5 Author: Hayden James Date: Wed Sep 10 15:31:36 2008 +0200 ipcmk: new command Small patch to create an application that can easily create ad-hoc ipc resources, along with man page. [kzak@redhat.com: - rename from ipccreat to ipcmk - minor coding style changes] Signed-off-by: Hayden James Signed-off-by: Karel Zak sys-utils/.gitignore | 1 + sys-utils/Makefile.am | 4 +- sys-utils/ipcmk.1 | 39 ++++++++++++++ sys-utils/ipcmk.c | 140 +++++++++++++++++++++++++++++++++++++++++++++++++ sys-utils/ipcrm.1 | 1 + sys-utils/ipcs.1 | 3 +- 6 files changed, 185 insertions(+), 3 deletions(-) commit 030d18fd2a75784359a970d0560446952575f024 Author: Karel Zak Date: Sat Sep 6 14:54:01 2008 +0200 ionice: add strtol() checks, cleanup usage text and man page * cleanup usage() output * check strtol(); don't ignore wrong command line options The original ionice design was a little broken, because it was possible to specify a PID and also a COMMAND: ionice -c2 -p 123 /bin/foo but the command /bin/foo was executed without requested scheduling class. That's stupid behaviour. Now you have to use "-p PID" **or** COMMAND, but not both. Nothing is ignored and all options are checked. Signed-off-by: Karel Zak schedutils/ionice.1 | 8 ++++-- schedutils/ionice.c | 58 +++++++++++++++++++++++++++++++++++--------------- 2 files changed, 45 insertions(+), 21 deletions(-) commit ef0fe2e8aa09bd29ac514c2a5386c98cdeeaa8ca Author: Stephan Maka Date: Wed Aug 20 23:51:55 2008 +0200 ionice: let -p handle multiple PIDs Makes ionice -p usable like renice, this time backwards compatible [kzak@redhat.com: - fix coding style - add ioprio_setpid()] Signed-off-by: Stephan Maka Signed-off-by: Karel Zak schedutils/ionice.1 | 6 ++-- schedutils/ionice.c | 81 ++++++++++++++++++++++++++++++++++----------------- 2 files changed, 57 insertions(+), 30 deletions(-) commit 53e9eda352e0eabfc5a8f21828a8d5335f4520f0 Author: Karel Zak Date: Mon Sep 1 12:41:57 2008 +0200 login: fix warning "dereferencing type-punned pointer will break strict-aliasing rules" This patch fix problems with odd pam_get_iten( ..., void **) API. (tested by gcc-4.1.2-42.el5.i386) Signed-off-by: Karel Zak login-utils/login.c | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) commit 65158b10813e326396bd13a029aed108019324a2 Author: Karel Zak Date: Thu Aug 21 12:06:25 2008 +0200 losetup: remove dependence on minor numbers The latest kernel supports partitioned loop devices (kernel commit 476a4813cfddf7cf159956cc0e2d3c830c1507e3). Unfortunately, this change makes minor numbers useless, because mirror number does not match with loop device name (loop). We have to follow loop device names only. Signed-off-by: Karel Zak mount/lomount.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 32b40fec8f64c05c130c7a96857ca2bf40ea9c0d Author: Karel Zak Date: Wed Aug 20 23:27:50 2008 +0200 fdisk: round reported sizes rather than truncate Exmaples (-old, +new): - Disk /dev/mapper/bar: 266.6 GB, 266666666496 bytes + Disk /dev/mapper/bar: 266.7 GB, 266666666496 bytes - WARNING: The size of this disk is 2.1 TB (2199023255552 bytes). + WARNING: The size of this disk is 2.2 TB (2199023255552 bytes). Reported-by: Stepan Kasal Signed-off-by: Karel Zak fdisk/fdisk.c | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) commit 455824187a51aceb37d2890030d7ffe88359bfcf Author: Benno Schulenberg Date: Fri Aug 15 00:27:02 2008 +0200 ipcs: adjust some field positions and widths for correct alignment [kzak@redhat.com: - note that "ipcs -m -t" did not work correctly on terminal with 80 columns - the change of output alignment should be mentioned in the Release Notes] Signed-off-by: Benno Schulenberg sys-utils/ipcs.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 11658135af13105cbae293ce81c0bcbed311a311 Author: Benno Schulenberg Date: Fri Aug 15 00:27:03 2008 +0200 ipcs: ungettextize the spacing of the table headers It makes no sense to allow translators to adjust the spacing when they cannot adjust the spacing of the actual data too. Adjusting such spacing is not really a translator's task. Signed-off-by: Benno Schulenberg sys-utils/ipcs.c | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-) commit 3174598ae340f80914af67c29f4d00f6a76e1821 Author: Karel Zak Date: Tue Aug 19 11:21:09 2008 +0200 fdisk: don't check for GPT when asked for disk size only Signed-off-by: Karel Zak fdisk/fdisk.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit ee5355e0052889792601c18cae2db0c17d68f61b Author: Karel Zak Date: Tue Aug 19 13:53:28 2008 +0200 fdisk: warn users about 2.2TB dos partition limit Signed-off-by: Karel Zak fdisk/fdisk.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit 1b414d89359f79b128373a6c39cf44dc1e358306 Author: Karel Zak Date: Tue Aug 19 01:14:14 2008 +0200 swapon: -a has to complain, fix leaks The "swapon -a" command (without "-e" option) has to complain always when LABEL or UUID does not exist. Test: # grep foo /etc/fstab LABEL=foo swap swap defaults 0 0 Old version: # swapon -a; echo $? 0 Fixed version: # swapon -a; echo $? swapon: cannot find the device for LABEL=foo 255 # swapon -a -e; echo $? 0 This version also fix two memory leaks. Signed-off-by: Karel Zak mount/swapon.c | 38 +++++++++++++++++++++++--------------- 1 files changed, 23 insertions(+), 15 deletions(-) commit 27f9db17bd57b85947445c03e2cd9dda36ca377f Author: Karel Zak Date: Mon Aug 18 14:08:57 2008 +0200 hwclock: don't open /dev/rtc repeatedly Signed-off-by: Karel Zak hwclock/rtc.c | 52 ++++++++++++++++++++++++++++++---------------------- 1 files changed, 30 insertions(+), 22 deletions(-) commit d92026e4c27eea3863c1d5b7db1b8ce826932aa8 Author: Karel Zak Date: Mon Aug 18 13:15:10 2008 +0200 fdisk: remove obsolete information from man page Signed-off-by: Karel Zak fdisk/fdisk.8 | 30 ++++++++++-------------------- 1 files changed, 10 insertions(+), 20 deletions(-) commit c2abd9a0a51a5e80721b8e3b83cc2f99416f1539 Author: Cai Qian Date: Thu Aug 14 13:15:43 2008 +0200 lscpu: regression tests This patch added regression tests for lscpu. It tests lscpu for 3 architecutres, i386, x86_64 and ia64, with data from 3 different machines each. Signed-off-by: Cai Qian Signed-off-by: Karel Zak tests/commands.sh.in | 1 + tests/expected/ts-lscpu-i386-amdshanghai | 27 ++ tests/expected/ts-lscpu-i386-dellpe700 | 16 + tests/expected/ts-lscpu-i386-intels5000phb | 26 ++ tests/expected/ts-lscpu-ia64-hpmatterhorn | 26 ++ tests/expected/ts-lscpu-ia64-hprx1620 | 20 + tests/expected/ts-lscpu-ia64-pg0 | 35 ++ tests/expected/ts-lscpu-x86_64-hpdl585 | 36 ++ tests/expected/ts-lscpu-x86_64-ibme326m | 20 + tests/expected/ts-lscpu-x86_64-necem14 | 19 + tests/input/ts-lscpu-i386-amdshanghai/proc/cpuinfo | 184 ++++++++++ [..cut, too long..] tests/ts-lscpu-i386-amdshanghai | 3 + tests/ts-lscpu-i386-dellpe700 | 3 + tests/ts-lscpu-i386-intels5000phb | 3 + tests/ts-lscpu-ia64-hpmatterhorn | 3 + tests/ts-lscpu-ia64-hprx1620 | 3 + tests/ts-lscpu-ia64-pg0 | 3 + tests/ts-lscpu-x86_64-hpdl585 | 3 + tests/ts-lscpu-x86_64-ibme326m | 3 + tests/ts-lscpu-x86_64-necem14 | 3 + tests/ts-lscpu.sh | 34 ++ 1217 files changed, 2805 insertions(+), 0 deletions(-) commit 928e9f327fb7c35c533034a8e68016f613decbc7 Author: Karel Zak Date: Thu Aug 14 13:01:04 2008 +0200 tests: detect libvolume_id when mount(8) is compiled Signed-off-by: Karel Zak tests/functions.sh | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) commit 47b6e8b684ad28228c9255fe4237b5a8a1c8c7d3 Author: Cai Qian Date: Sun Aug 10 15:33:51 2008 +0800 lscpu: --sysroot option and stable cache output This patch added a --sysroot command-line option for testing purpose. It also sorted cache names, and displayed cache information in a sorted manner instead of randomly before. In addition, it had some other minor fixes. Signed-off-by: Cai Qian sys-utils/lscpu.c | 94 +++++++++++++++++++++++++++++++++------------------- 1 files changed, 60 insertions(+), 34 deletions(-) commit f4a94b4b2e058f6173b384726cb8986a7dbe4d7e Author: Karel Zak Date: Thu Aug 14 11:48:26 2008 +0200 docs: TODO update Signed-off-by: Karel Zak TODO | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 5bd11d0d11ffad2d343040ac5c3eba433f4620dd Author: Karel Zak Date: Thu Aug 14 11:40:08 2008 +0200 ionice: cleanup error messages, add NLS support Signed-off-by: Karel Zak schedutils/ionice.c | 54 +++++++++++++++++++++++++++----------------------- 1 files changed, 29 insertions(+), 25 deletions(-) commit 8eec9db2436d52b74b18a34b2d479ba1acdf09b9 Author: Karel Zak Date: Thu Aug 14 11:19:07 2008 +0200 ionice: cleanup man page Signed-off-by: Karel Zak schedutils/ionice.1 | 41 +++++++++++++++++------------------------ 1 files changed, 17 insertions(+), 24 deletions(-) commit 0c723f3490df9ee9a5e133de374a06b06fdad76f Author: Karel Zak Date: Wed Jul 30 12:39:04 2008 +0200 scriptreplay: new implementation is out-of-sync Reproduction steps: 1. Run "script -t 2>timing". 2. When the prompt comes up, hit return. 3. New prompt. Wait several seconds, then type "true" and hit return. 4. Repeat (3) as desired, then exit scripted shell. 5. Run "scriptreplay timing". You'll find on the replay that, rather than waiting several seconds between the prompt and true, the wait will actually occur after the first "t" of true. Reported-by: Micah Cowan Signed-off-by: Karel Zak misc-utils/scriptreplay.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 55a4a75ca09173264a622a1e0b7e0537806ed526 Author: Karel Zak Date: Wed Aug 13 11:47:10 2008 +0200 hwclock: read_hardware_clock_rtc() need to return error codes We shouldn't ignore RTC_RD_TIME/RTCGET error codes. Signed-off-by: Karel Zak hwclock/rtc.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit ac1bb1ef9350a79a016d504022c710336244a112 Author: Kalev Soikonen Date: Mon Jul 28 02:26:44 2008 +0300 hwclock: delay loop in set_hardware_clock_exact - Avoid delaying 1.5 seconds when 0.5 will do. - Guard for forward time resets as well. [kzak@redhat.com: - fix the "Delaying.." debug message - add comments] Signed-off-by: Kalev Soikonen Signed-off-by: Karel Zak hwclock/hwclock.c | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) commit 982a4a5d98c7034004ec04bff7faea6e1dfcf131 Author: Karel Zak Date: Tue Aug 12 13:58:51 2008 +0200 hwclock: use time limit for synchronization busy wait Signed-off-by: Karel Zak hwclock/clock.h | 1 + hwclock/hwclock.c | 2 +- hwclock/rtc.c | 23 ++++++++++++----------- 3 files changed, 14 insertions(+), 12 deletions(-) commit 3b96a7acbc8e3805c6af6c3e185f007b1d68118d Author: Karel Zak Date: Sat Aug 9 01:22:08 2008 +0200 hwclock: use carefully synchronize_to_clock_tick() return codes * It seems that rtc-isl1208 0-006f: chip found, driver version 0.3 rtc-isl1208 0-006f: rtc core: registered rtc-isl1208 as rtc0 rtc-isl1208 0-006f: rtc power failure detected, please set clock. causes that hardware clock returns persistent time and synchronization is impossible. The hwclock(8) has to ignore this problem and allows to set clock anyway. * synchronize_to_clock_tick() shouldn't to print the "...got clock tick" debug message in case of failure. Signed-off-by: Karel Zak hwclock/hwclock.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) commit e8abdb315028d2bb7d1ced187169c8026af656cb Author: Karel Zak Date: Tue Aug 12 14:58:50 2008 +0200 mount: add docs about utf8=0 for vfat Addresses-Red-Hat-Bugzilla: #454354 Signed-off-by: Karel Zak mount/mount.8 | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) commit 442d61c6e975e34087ad19c9106cd4b3a347cddd Author: David Brownell Date: Tue Aug 12 03:13:52 2008 -0700 hwclock: remove x86_64-specific bogon I was puzzled why "hwclock" wrongly reported my x86_64 sytem didn't support RTC update interrupts. Bogus #ifdef, that's why ... added by the 2.11y patch (from 2.11t). Probably this whole #ifdef should just vanish ... if the kernel rejects UIE_ON, the program ought to just cope with it. Signed-off-by: David Brownell hwclock/rtc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 9ea8ac37750a0fda6a019f53f6f4bbacb6273438 Author: Arkadiusz Miskiewicz Date: Fri Aug 8 08:21:23 2008 +0200 build-sys: tgets is not in ncurses but in tinfo ncurses library can be build with terminal related functions landing in separate libtinfo library. Check for ncurses function when testing ncurses library existence. Signed-off-by: Arkadiusz Miśkiewicz configure.ac | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit b9ae48db4aa4702fa37237dca3fa5c7c4a7c549d Author: Denis ChengRq Date: Thu Aug 7 17:07:49 2008 +0800 sfdisk: print version should end with a newline Signed-off-by: Denis ChengRq fdisk/sfdisk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 28e984a41990ffd3d8b8ecf6520d2debad95ee51 Author: Karel Zak Date: Wed Aug 6 13:19:40 2008 +0200 hwclock: cleanup help output and man page Signed-off-by: Karel Zak hwclock/hwclock.8 | 49 ++++++++++---------------------------------- hwclock/hwclock.c | 58 ++++++++++++++++++++++++++++------------------------ 2 files changed, 42 insertions(+), 65 deletions(-) commit d458f94a7cdf0ec9bc11518d49c8ad39d78da7c0 Author: Kalev Soikonen Date: Mon Jul 28 02:13:53 2008 +0300 hwclock: unshadow a diagnostic printf - Bogus if test means one message is never produced. - Avoid needless passing of a global variable (debug). The --test option flag ought to be a global as well (and perhaps -n/--dry-run). Signed-off-by: Kalev Soikonen hwclock/hwclock.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) commit f8d87ab139a948300c7c0721b1d78ab2d5e7b5a6 Author: Karel Zak Date: Wed Aug 6 12:36:10 2008 +0200 rtcwake: cleanup return codes Signed-off-by: Karel Zak sys-utils/rtcwake.c | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) commit fc18118430fae01d578440560a91bf7035f310d4 Author: Gabriel Burt Date: Tue Aug 5 00:18:52 2008 -0500 rtcwake: prefer RTC_WKALM_SET over RTC_ALM_SET rtcwake: Prefer RTC_WKALM_SET over RTC_ALM_SET, fixing bug with not waking up with new RTCs. Also, return error if unable to set the alarm. Signed-off-by: Gabriel Burt Signed-off-by: Karel Zak sys-utils/rtcwake.c | 35 +++++++++++++++++------------------ 1 files changed, 17 insertions(+), 18 deletions(-) commit e8c7a57b4fafb16a4cbf535c8e07066b20ed9551 Author: Andrew McGill Date: Tue Jul 29 23:56:05 2008 +0200 script: don't flush input when starting script script currently flushed the input buffer when starting up. This undocumented behaviour prevents typeahead when starting up (e.g. as part of .profile). Rather retain queued input. Don't discard queued output either. Signed-off-by: Andrew McGill misc-utils/script.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 8e678e21245cb4d7daf23a01bba5cb6a77d89af8 Author: Alexey Gladkov Date: Thu Jul 31 15:45:57 2008 +0400 Fix dmesg.1 installation Signed-off-by: Alexey Gladkov sys-utils/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit edb68d0ca36c54fa5996bfd917eb236780f0ff80 Author: Karel Zak Date: Fri Aug 1 12:18:03 2008 +0200 losetup: looplist_* refactoring, remove scandir() This patch replaces scandir-based implementation with readdir(). The readdir(3) is less expensive and more portable (to non-glibc environment). The patch also replaces sysfs-based solution with simpler /proc/partitions parsing. The /proc/partitions includes all used loop devices on all systems (include 2.4). This solution seems faster than scandir(/sys/block/) too. Summary, the losetup (with this patch) uses three methods to found a loop device: a) parse /proc/partitions to found already used loop devices (for loserup -a) b) stat(2) for all loop[0-7] devices (default number of loop devices). This is classic method from util-linux <= 2.13. This method is good enough for standard Linux machines with default number of loop devices. c) scan all /dev or /dev/loop/ for loop devices. This is useful for crazy people who need more than 8 loop devices. Signed-off-by: Karel Zak include/pathnames.h | 1 + mount/lomount.c | 302 ++++++++++++++++++++++++++------------------------- 2 files changed, 154 insertions(+), 149 deletions(-) commit d144727bc3e5f77692fc2d6b5c1dbf5d05fc495c Author: maximilian attems Date: Wed Jul 30 11:46:32 2008 +0200 use getpagesize() getpagesize() is said to be more portable than sysconf(_SC_PAGESIZE) to anything Linux. this patch helps klibc porting effort as the sysconf multiplex API is not supported there. also remove comment of the switch to sysconf in mkswap.c. Signed-off-by: maximilian attems disk-utils/fsck.cramfs.c | 2 +- disk-utils/mkfs.cramfs.c | 2 +- disk-utils/mkswap.c | 6 +----- sys-utils/ipcs.c | 2 +- tests/helpers/test_sysinfo.c | 2 +- 5 files changed, 5 insertions(+), 9 deletions(-) commit d50c5917f07a0674e4e48a19d6902d17fb43e5bc Author: Matthias Koenig Date: Mon Jun 9 16:38:25 2008 +0200 mount: retry on ENOMEDIUM Due to a change in kernel behaviour when opening CDROM devices, we need to retry the open/mount call when ENOMEDIUM is returned. Explanation from Tejun Heo: Okay, the difference is from the addition of cdrom_get_media_event() call to both sr_drive_status() and ide_cdrom_drive_status(). Previously, the cdrom driver can't differentiate between tray closed w/ no media and tray open and always returned tray open, which triggers close and retry in the open logic which probably have delayed things enough to get the media recognized. Now the cdrom driver can discern between tray closed w/o media and device not ready for other reasons and returns -ENOMEDIUM on the former. This is all good and dandy but the problem seems that some drives report no media right after the tray is closed but it hasn't properly detected the media yet. It seems the only way to work around the problem is via sensible retries (e.g. try three times 5 secs apart) and I don't think we can add that type of retry logic into cdrom open path. Please note that the previous logic wasn't water proof. Some drives can take longer to recognize the media is there and could have failed the in-kernel retry too. Also, reading the media can take quite some time and during that period the drive reports media present but device not ready. The driver will retry the command (e.g. READ TOC for open) five times but all of them can fail w/ EMEDIUMTYPE. [kzak@redhat.com: - add CRDOM_NOMEDIUM_RETRIES to blkdev.h - add verbose message to mount.c] Signed-off-by: Matthias Koenig Signed-off-by: Karel Zak include/blkdev.h | 3 +++ mount/fsprobe_volumeid.c | 11 ++++++++++- mount/mount.c | 13 +++++++++++++ 3 files changed, 26 insertions(+), 1 deletions(-) commit 6a99c0b286384c98a012620a94fbc50a7c1adcbb Author: maximilian attems Date: Fri Jul 25 09:29:25 2008 +0200 mount: add shortoptions for bind, move and rbind Reserving uppercase letters for mount operations: --move | -M --bind | -B --rbind | -R Add lowercase for the most needed mount operation that happen in initramfs: mount -M /sys /root/sys Note, we still have shared-subtree operations (--make-{slave,private,...}) without short options. [kzak@redhat.com: minor change in mount.8] Signed-off-by: maximilian attems Signed-off-by: Karel Zak mount/mount.8 | 23 +++++++++++++++++++++-- mount/mount.c | 26 +++++++++++++------------- 2 files changed, 34 insertions(+), 15 deletions(-) commit 9615cd1d2fee4f306c50fb6978e87230111cc077 Author: Karel Zak Date: Mon Jul 28 11:18:27 2008 +0200 mount: add info about tz=UTC option for FAT to mount.8 CC: Joe Peterson Signed-off-by: Karel Zak mount/mount.8 | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit d3e8f6598b6b52c983e4b856aaf902f62e97ae29 Author: maximilian attems Date: Fri Jul 25 00:14:44 2008 +0200 remove CVS keywords this patch removes old CVS keywords from comments. mount(8) works for newer Linux then 0.99 ;) Signed-off-by: maximilian attems login-utils/vipw.8 | 1 - misc-utils/mcookie.c | 2 -- mount/mount.c | 3 +-- mount/sundries.c | 1 - sys-utils/flock.1 | 1 - sys-utils/flock.c | 1 - sys-utils/tunelp.c | 2 +- text-utils/rev.1 | 1 - 8 files changed, 2 insertions(+), 10 deletions(-) commit 7e0c3d28e9f9c858e15847284c5614c265de032e Author: maximilian attems Date: Thu Jul 24 15:22:11 2008 +0200 fdisk: exit(3) needs stdlib.h include partitiontype.c:57: warning: incompatible implicit declaration of built-in function ‘exit’ Signed-off-by: maximilian attems fdisk/partitiontype.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit d5c28ebc32697ca6461990cee69fd47a56b3a730 Author: maximilian attems Date: Thu Jul 24 15:08:16 2008 +0200 disk-utils: include fcntl.h directly (mkfs.cramfs, raw) helps klibc support, glibc compile tested. Signed-off-by: maximilian attems disk-utils/mkfs.cramfs.c | 2 +- disk-utils/raw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 7574f09b3d7c1cf2842819ac922b7fc056892e18 Author: maximilian attems Date: Thu Jul 24 14:25:06 2008 +0200 whereis: include dirent.h instead sys/dir.h sys/dir.h is an old BSD'ism not carried by klibc, include dirent directly. compile tested against glibc. Signed-off-by: maximilian attems misc-utils/whereis.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 172b3c277d3a0cc08edbab939f20882e2f996999 Author: maximilian attems Date: Thu Jul 24 14:18:00 2008 +0200 misc-utils: write include signal.h directly another small step for better klibc support, glibc compile tested. Signed-off-by: maximilian attems misc-utils/script.c | 2 +- misc-utils/write.c | 1 - 2 files changed, 1 insertions(+), 2 deletions(-) commit 5423ccb1a1306fb615ce790a635c8a291dedd170 Author: maximilian attems Date: Thu Jul 24 13:44:44 2008 +0200 dmesg: nuke old glibc 5 support dmesg.c:42: error: expected declaration specifiers or ‘...’ before ‘klogctl’ dmesg.c:42: error: expected declaration specifiers or ‘...’ before ‘type’ dmesg.c:42: error: expected declaration specifiers or ‘...’ before ‘b’ dmesg.c:42: error: expected declaration specifiers or ‘...’ before ‘len’ without belows compat section dmesg just compiles fine against klibc. as bonus reorder the includes. Signed-off-by: maximilian attems sys-utils/dmesg.c | 15 ++------------- 1 files changed, 2 insertions(+), 13 deletions(-) commit fc68cd49731b580ecc2532adc07cad5322cfe1e7 Author: maximilian attems Date: Thu Jul 24 13:00:48 2008 +0200 disk-utils: s/MOUNTED/_PATH_MOUNTED/ no longer use deprecated alias. helps compiling util-linux-ng against klibc. add pathnames.h include, where _PATH_MOUNTED is defined. Signed-off-by: maximilian attems disk-utils/fsck.minix.c | 5 +++-- disk-utils/mkfs.minix.c | 3 ++- disk-utils/mkswap.c | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) commit abd0b5686db6e8ea4dfd53ef9f3f91a13fdddcd0 Author: Samuel Thibault Date: Thu Jul 24 01:27:14 2008 +0100 ldattach: don't compile for non-linux systems There is just ldattach which doesn't compile because line disciplines are not implemented that way on the Hurd. Is TIOCSETD any kind of standard? Else I guess the patch below would be fine. Signed-off-by: Samuel Thibault sys-utils/Makefile.am | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 43c212404139d74ce0efb5bf4d7ec96ee2471822 Author: Karel Zak Date: Thu Jul 24 01:20:00 2008 +0200 mount: make file_t SELinux warning optional and shorter The patch: Commit: 4edebc1486133231e38b3881325c374eda567f74 Date: Mon Jun 23 13:00:00 2008 +0200 Subject: mount: warn on "file_t" selinux context introduces a new warning. This warning should be shorter and optional -- it means visible in verbose mode only. Signed-off-by: Karel Zak mount/mount.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) commit 098fa6b1201bd66bc8fcb54b103ff241e3136dca Author: Samuel Thibault Date: Thu Jul 24 01:15:07 2008 +0200 disk-utils: clean up code, use blkdev_* functions [kzak@redhat.com: split the original patch to small patches] Signed-off-by: Samuel Thibault Signed-off-by: Karel Zak disk-utils/Makefile.am | 17 +++++++++-------- disk-utils/fsck.cramfs.c | 8 ++++---- disk-utils/mkfs.bfs.c | 24 ++++++++++-------------- disk-utils/mkswap.c | 31 +------------------------------ 4 files changed, 24 insertions(+), 56 deletions(-) commit 6b0054a2c6dddb43155220cac13848df98d74423 Author: Samuel Thibault Date: Thu Jul 24 00:46:05 2008 +0200 fdisk: non-linux support (BLK* and HDIO_*) BLK* and HDIO_* are not available on all platform. Work around this in a few places. [kzak@redhat.com: split the original patch to small patches] Signed-off-by: Samuel Thibault Signed-off-by: Karel Zak fdisk/cfdisk.c | 4 ++++ fdisk/fdisk.c | 7 ++++++- fdisk/fdisksgilabel.c | 2 ++ fdisk/fdisksunlabel.c | 5 ++++- fdisk/gpt.c | 4 ++++ fdisk/sfdisk.c | 12 ++++++++++-- 6 files changed, 30 insertions(+), 4 deletions(-) commit 268cefe6cb34fb8799b34187677154071ad45eb7 Author: Samuel Thibault Date: Thu Jul 24 00:30:21 2008 +0200 lib: blkdev.c clean up, non-linux support [kzak@redhat.com: split the original patch to small patches] Signed-off-by: Samuel Thibault Signed-off-by: Karel Zak include/blkdev.h | 10 +++++-- lib/blkdev.c | 67 +++++++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 66 insertions(+), 11 deletions(-) commit 8af7b7d1506bdf90e872f047afb0b1c07084a5d7 Author: maximilian attems Date: Wed Jul 23 12:06:48 2008 +0200 mount: s/MOUNTED/_PATH_MOUNTED/ no longer use deprecated alias. clears a useless compile error when compiling against klibc: mount.c:995: error: `MOUNTED' undeclared (first use in this function) Signed-off-by: maximilian attems mount/mount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit c23f3b28d088a95283dcd58617c7739efffff27a Author: maximilian attems Date: Wed Jul 23 23:17:40 2008 +0200 mount: sundries.h add klibc support In file included from mount.c:34: sundries.h:16:23: error: rpc/types.h: No such file or directory nuke rpc/types.h to fix aboves. The file is archaism from old integrated NFS code. Cc: Christoph Hellwig Cc: "H. Peter Anvin" Signed-off-by: maximilian attems mount/sundries.h | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) commit ca04a95a3b4ccc943dc3ba05fc0b885f74ba5645 Author: Samuel Thibault Date: Tue Apr 22 02:11:48 2008 +0100 fdisk: don't use get_linux_version() for non-linux The get_linux_version() function is Linux-specific. Work around it in a few places. [kzak@redhat.com: split the original patch to small patches] Signed-off-by: Samuel Thibault Signed-off-by: Karel Zak fdisk/Makefile.am | 6 +++++- fdisk/sfdisk.c | 5 ++++- lib/Makefile.am | 8 ++++++-- 3 files changed, 15 insertions(+), 4 deletions(-) commit ff035f67ed16dc205c8c8870de0c0c9ed8816ce6 Author: Samuel Thibault Date: Tue Apr 22 02:11:48 2008 +0100 mkswap: non-linux support GNU/Hurd uses linux-like swapspace, so mkswap makes sense on non-linux platforms too. [kzak@redhat.com: split the original patch to small patches] Signed-off-by: Samuel Thibault Signed-off-by: Karel Zak disk-utils/Makefile.am | 5 ++++- disk-utils/mkswap.c | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) commit a485aec8ce29840e64df206c52d6a8d6f65774db Author: Karel Zak Date: Tue Jul 22 15:08:42 2008 +0200 build-sys: cleanup sys-utils/Makefile.am Signed-off-by: Karel Zak sys-utils/Makefile.am | 30 +++++++++++------------------- 1 files changed, 11 insertions(+), 19 deletions(-) commit 5dd7507c18fa3d739266aeda4847be41e0613fad Author: Cai Qian Date: Thu Jul 17 14:19:40 2008 +0200 lscpu: new command Add a lscpu(1) utility program. [kzak@redhat.com: - indent by linux-2.6/scripts/Lindent - add lscpu.{c,1} to sys-utils/Makefile.am - add NLS suport - complete code refactoring ] Co-Author: Karel Zak Signed-off-by: Cai Qian Signed-off-by: Karel Zak README.licensing | 2 + po/POTFILES.in | 1 + sys-utils/.gitignore | 1 + sys-utils/Makefile.am | 4 +- sys-utils/lscpu.1 | 29 +++ sys-utils/lscpu.c | 529 +++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 564 insertions(+), 2 deletions(-) commit bf09b61a3283ddce337700e791c0c02aa2265aae Author: Karel Zak Date: Mon Jul 7 15:22:22 2008 +0200 write: doesn't check for tty group write(1) selects a wrong tty, because there is not a proper check of tty group ownership: $ write kzak write: kzak is logged in more than once; writing to tty7 write: /dev/tty7: Permission denied $ ls -la /dev/tty7 crw--w---- 1 root root 4, 7 2008-07-04 00:32 /dev/tty7 ^^^^ $ ls -la /usr/bin/write -rwxr-sr-x 1 root tty 11864 2008-04-02 16:24 /usr/bin/write ^ ^^^ We have to check for tty group owner, because we don't have permissions to write to arbitrary tty. Fixed version: $ write kzak write: kzak is logged in more than once; writing to pts/6 ^^^^ Message from test@nb on pts/7 at 15:22 ... ^C $ ls -la /dev/pts/6 crw--w---- 1 kzak tty 136, 6 2008-07-07 15:35 /dev/pts/6 ^^^ Addresses-Red-Hat-Bugzilla: #454252 Signed-off-by: Karel Zak misc-utils/write.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) commit b4cbb7b8976f511a60dd49eeb28233c5a01d7d2d Author: Karel Zak Date: Wed Jul 2 15:16:11 2008 +0200 losetup: clean up code around LO_FLAGS_AUTOCLEAR Signed-off-by: Karel Zak mount/lomount.c | 41 ++++++++++++++++++++--------------------- 1 files changed, 20 insertions(+), 21 deletions(-) commit e84feaecfdf44a33ef9eccc5a56c8a6999466140 Author: Karel Zak Date: Wed Jul 2 14:26:51 2008 +0200 umount: improve "-d" option for autoclear loops The new loop auto-destruct feature detaches automatically loop devices when no longer used. This means they are detached with the umount() call. But when we call umount with -d, del_loop() is called and fails because the ioctl() returns ENXIO. We have to check for autoclear loop devices rather than blindly call del_loop(). Reported-by: Matthias Koenig Signed-off-by: Karel Zak mount/lomount.c | 23 +++++++++++++++++++++++ mount/lomount.h | 1 + mount/umount.c | 12 ++++++++++-- 3 files changed, 34 insertions(+), 2 deletions(-) commit 4ba66edf82e03109bd9110682179254d823c58a3 Author: Karel Zak Date: Tue Jul 1 14:24:58 2008 +0200 selinux: is_selinux_enabled() returns 0, 1 and -1 Unfortunately, the current libselinux implementation of is_selinux_enabled() returns -1 on error. This behavior is undocumented. The proper solution is to use "if (is_selinux_enabled() > 0)". Signed-off-by: Karel Zak disk-utils/mkswap.c | 2 +- login-utils/chfn.c | 2 +- login-utils/chsh.c | 2 +- login-utils/selinux_utils.c | 2 +- login-utils/vipw.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) commit 4edebc1486133231e38b3881325c374eda567f74 Author: Karel Zak Date: Mon Jun 23 13:00:00 2008 +0200 mount: warn on "file_t" selinux context Currently if I mount a file system without labels, it works fine, but later or SELinux will start printing denials and stopping certain applications from working. It would be nice if the mount command checked it in selinux mode. Addresses-Red-Hat-Bugzilla: #390691 Signed-off-by: Karel Zak mount/mount.c | 29 ++++++++++++++++++++++++++--- 1 files changed, 26 insertions(+), 3 deletions(-) commit cdedde039c4a5656b991234a1f60cee038bd0d46 Author: Karel Zak Date: Tue Jun 17 13:12:12 2008 +0200 hwclock: always reads hardware clock It's a pity that hwclock first tries to read the clock when running hwclock --systohc --noadjfile --utc and exits as this fails. I cannot see a reason to read first in that case. Old version: # hwclock --systohc --noadjfile --utc --debug hwclock from util-linux-ng 2.14 Using /dev interface to clock. Assuming hardware clock is kept in UTC time. Waiting for clock tick... /dev/rtc does not have interrupt functions. Waiting in loop for time from /dev/rtc to change ...got clock tick Time read from Hardware Clock: 2008/06/17 11:18:24 Hw clock time : 2008/06/17 11:18:24 = 1213701504 seconds since 1969 Time elapsed since reference time has been 0.904855 seconds. Delaying further to reach the next full second. Setting Hardware Clock to 11:18:24 = 1213701504 seconds since 1969 ioctl(RTC_SET_TIME) was successful. New version: # hwclock --systohc --noadjfile --utc --debug hwclock from util-linux-ng 2.14 Using /dev interface to clock. Assuming hardware clock is kept in UTC time. Time elapsed since reference time has been 0.572151 seconds. Delaying further to reach the next full second. Setting Hardware Clock to 11:18:52 = 1213701532 seconds since 1969 ioctl(RTC_SET_TIME) was successful. Addresses-Debian-Bug: #478663 Signed-off-by: Karel Zak hwclock/hwclock.c | 26 +++++++++++++++++--------- hwclock/rtc.c | 2 +- 2 files changed, 18 insertions(+), 10 deletions(-) commit 76e8b3364f12e3a15f813e6b98f6e5c248cdf997 Author: Karel Zak Date: Mon Jun 16 13:53:30 2008 +0200 mount: add norealtime to mount.8 Signed-off-by: Karel Zak mount/mount.8 | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 4d125dfc419b9e54dcec85c8a4e929de4d3a4b50 Author: Lubomir Kundrak Date: Mon Apr 28 13:15:26 2008 +0200 ionice: add -t option This patch allows "tolerant" behavior, i.e. proceeding even if priority could not be set. This might be of use in case something (selinux, old kernel, etc.) does not allow the requested scheduling priority to be set. This could be to some extend done as follows: ionice -c3 command || command but the downside is that one could not really tell if what failed was setting priority or command itself, which could result in duplicate command run. This patch solves the situation, so that user can do ionice -t -c3 command Addresses-Red-Hat-Bugzilla: #443842 Signed-off-by: Lubomir Kundrak Signed-off-by: Karel Zak schedutils/ionice.1 | 5 +++++ schedutils/ionice.c | 14 ++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) commit 0b0beca2bbc88abd3d20a70a19a27b9c4fdaba4a Author: Matthias Koenig Date: Mon Jun 2 16:51:57 2008 +0200 hwclock: omit warning about drift if --noadjfile given Currently, if hwclock is given the --noadjfile option it will nevertheless display information about the drift rate when invoked with the --debug option. Signed-off-by: Matthias Koenig hwclock/hwclock.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) commit e9eb4dad0ece03914f67f6d1ded74cfbbe694ba4 Author: Mike Frysinger Date: Sat Jun 7 13:22:45 2008 -0400 more: dont use a.out.h The a.out.h header is not friendly to portable systems (iow, those that lack a.out support), and since the defines are only used in a cheesy magic, just use the magic constants. It's not like they're ever going to change. Signed-off-by: Mike Frysinger text-utils/more.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) commit 115e6f00b81a3a30d91294250419ef006d102258 Author: James Youngman Date: Wed May 14 09:51:40 2008 +0100 more: minor fixes to magic() Read the magic bytes into signed chars instead of vanilla chars in order to ensure consistent results even on systems whose char type has no sign. Eliminate spurious parentheses in return statements. Correct grammatical errors in comments. Signed-off-by: James Youngman text-utils/more.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)