Changes between v2.17-rc3 and v2.17 ----------------------------------- commit 36b00d61a79198997acc711345a291cc3a333af3 Author: Karel Zak Date: Thu Jan 7 22:41:05 2010 +0100 build-sys: release++ (v2.17) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) commit 040446cc654e45860e4dff528a165061e8f5af9f Author: Karel Zak Date: Thu Jan 7 22:31:31 2010 +0100 docs: update v2.17 ReleaseNotes Signed-off-by: Karel Zak docs/v2.17-ReleaseNotes | 47 ++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 40 insertions(+), 7 deletions(-) commit 6bebe669acab79b9a5b2b1c093360643c9720b69 Author: Karel Zak Date: Thu Jan 7 22:01:16 2010 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit f00c9b228cc991f392ab8999f88f9fabc5001b1b Author: Karel Zak Date: Thu Jan 7 21:59:56 2010 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 286 ++-- po/cs.po | 906 ++++++---- po/da.po | 286 ++-- po/de.po | 286 ++-- po/es.po | 286 ++-- po/et.po | 286 ++-- po/eu.po | 585 ++++--- po/fi.po | 935 ++++++---- po/fr.po | 287 ++-- po/hu.po | 286 ++-- po/id.po | 287 ++-- po/it.po | 286 ++-- po/ja.po | 287 ++-- po/nl.po | 286 ++-- po/pl.po | 816 +++++--- po/pt_BR.po | 286 ++-- po/ru.po | 286 ++-- po/sl.po | 286 ++-- po/sv.po | 286 ++-- po/tr.po | 286 ++-- po/uk.po | 286 ++-- po/util-linux-ng.pot | 286 ++-- po/vi.po | 287 ++-- po/zh_CN.po | 5273 +++++++++++++++++++++++++++++++++----------------- 24 files changed, 8274 insertions(+), 5679 deletions(-) commit 946826dec4142b1f69f1c6f134ece7a13bd00956 Author: Ray Wang Date: Thu Jan 7 21:54:22 2010 +0100 po: update zh_CN.po (from translationproject.org) po/zh_CN.po | 5286 ++++++++++++++++++++--------------------------------------- 1 files changed, 1818 insertions(+), 3468 deletions(-) commit 4b70f1c4baf83e629c928f303fce096cfd0b81a9 Author: Jakub Bogusz Date: Thu Jan 7 21:54:22 2010 +0100 po: update pl.po (from translationproject.org) po/pl.po | 743 ++++++++++++++++++++++++-------------------------------------- 1 files changed, 289 insertions(+), 454 deletions(-) commit 4ba075685db48491885fd39c315fc30437fafd56 Author: Lauri Nurmi Date: Thu Jan 7 21:54:22 2010 +0100 po: update fi.po (from translationproject.org) po/fi.po | 875 ++++++++++++++++++++++---------------------------------------- 1 files changed, 305 insertions(+), 570 deletions(-) commit 350b8cdfca857cfe66b91f99a13974cf0df8f661 Author: Mikel Olasagasti Date: Thu Jan 7 21:54:22 2010 +0100 po: update eu.po (from translationproject.org) po/eu.po | 2371 ++++++++++++++++++++++++++++++++------------------------------ 1 files changed, 1219 insertions(+), 1152 deletions(-) commit db9f76628457a1d3eca3d84bfeb174545abb1824 Author: Petr Pisar Date: Thu Jan 7 21:54:21 2010 +0100 po: update cs.po (from translationproject.org) po/cs.po | 646 ++++++++++++++++++++------------------------------------------ 1 files changed, 202 insertions(+), 444 deletions(-) commit 71ca5d3ca7eca4e3fc15f380df71f91218a36a17 Author: Karel Zak Date: Thu Jan 7 21:49:40 2010 +0100 tests: refresh lscpu tests Signed-off-by: Karel Zak tests/expected/lscpu/lscpu-i386-amdshanghai | 1 + tests/expected/lscpu/lscpu-i386-dellpe700 | 1 + tests/expected/lscpu/lscpu-i386-intels5000phb | 1 + tests/expected/lscpu/lscpu-x86_64-hpdl585 | 1 + tests/expected/lscpu/lscpu-x86_64-ibme326m | 1 + tests/expected/lscpu/lscpu-x86_64-necem14 | 1 + 6 files changed, 6 insertions(+), 0 deletions(-) commit 79e8b41a4a17763ac8d2dffbe72504783d002ddc Author: Karel Zak Date: Thu Jan 7 17:34:03 2010 +0100 lscpu: add {32,64}-bit CPU modes detection This patch add "CPU op-mode(s):" field that prints all supported CPU operation modes. The field is based on CPU flags: rm (real mode) 16-bit tm (transparent mode) 32-bit lm (long mode) 64-bit Example: $ lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit CPU(s): 2 Thread(s) per core: 1 Core(s) per socket: 2 CPU socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 15 Stepping: 11 CPU MHz: 1600.000 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 4096K Signed-off-by: Karel Zak sys-utils/lscpu.c | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-) commit e90709421ac86e2e81498143f75734e0b79f76d1 Author: Karel Zak Date: Wed Jan 6 11:12:43 2010 +0100 fdisk: sleep-after-sync and fsync usage It seems that sleep() after sync() is unnecessary legacy. It's very probably unnecessary since kernel 1.3.20. For example the libparted does not to use sleep() at all. It seems that more important is fsync() usage in fdisks. For more details see http://marc.theaimsgroup.com/?l=linux-kernel&m=105545785306867&w=3 http://marc.theaimsgroup.com/?l=linux-kernel&m=105545848607353&w=3 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=276369 Currently we use fsync() in fdisk only. This patch also add fsync() to sfdisk and cfdisk. Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=276369 Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=502639 Signed-off-by: Karel Zak fdisk/cfdisk.c | 8 ++++---- fdisk/fdisk.c | 2 -- fdisk/sfdisk.c | 4 +--- 3 files changed, 5 insertions(+), 9 deletions(-) commit 999a10fa770deac2e2d80dcedff50219f681db87 Author: Karel Zak Date: Mon Jan 4 14:27:52 2010 +0100 mount: fix typo in mount.8 Reported-by: Joe Peterson Signed-off-by: Karel Zak mount/mount.8 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0834e00a603b42d9f40b1bbe8b3d4158b918eb35 Author: Bastian Friedrich Date: Mon Jan 4 14:13:13 2010 +0100 libblkid: DRBD support for blkid DRBD is the Distributed Replicated Block Device, a replication service for low level block devices. The attached patch provides libblkid detection for v08 type drbd devices (v08 is the current one). [kzak@redhat.com: - port to libblkid 2.17 - use BLKID_USAGE_RAID flag - remove BLKID_IDINFO_TOLERANT flag - note that DRBD is supported since kernel v2.6.33-rc1] Signed-off-by: Bastian Friedrich Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/Makefile.am | 1 + shlibs/blkid/src/superblocks/drbd.c | 106 ++++++++++++++++++++++++++++ shlibs/blkid/src/superblocks/superblocks.c | 1 + shlibs/blkid/src/superblocks/superblocks.h | 1 + 4 files changed, 109 insertions(+), 0 deletions(-) commit dfb536c33812d24553350fc9ec08035bf7df52b6 Author: Karel Zak Date: Mon Jan 4 11:34:13 2010 +0100 sfdisk: confused about disk size The size of disk in the sfdisk command is based on number of cylinders (this is probably legacy from CHS epoch). That's wrong because partitions are addressed in sectors (LBA), so cylinders don't provide necessary resolution (granularity). On Sat, Jan 02, 2010 at 01:01:16PM +0100, Giulio wrote: > $ cat /sys/block/sda/size > 184549376 > > $ sfdisk -d /dev/sda > part.dump > $ cat part.dump > # partition table of /dev/sda > unit: sectors > > /dev/sda1 : start= 2048, size= 2097152, Id=83 > /dev/sda2 : start= 2099200, size= 12582912, Id=83 > /dev/sda3 : start= 14682112, size= 84934656, Id=83 > /dev/sda4 : start= 99616768, size= 84932608, Id=83 > > > $ sfdisk -L /dev/sda < part.dump > Checking that no-one is using this disk right now ... > OK > > Disk /dev/sda: 11487 cylinders, 255 heads, 63 sectors/track > Old situation: > Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 > > Device Boot Start End #cyls #blocks Id System > /dev/sda1 0+ 130- 131- 1048576 83 Linux > /dev/sda2 130+ 913- 784- 6291456 83 Linux > /dev/sda3 913+ 6200- 5287- 42467328 83 Linux > /dev/sda4 6200+ 11487- 5287- 42466304 83 Linux > Warning: given size (84932608) exceeds max allowable size (84921887) disk size: based on number of cylinders: 11487 * 8225280 = 94483791360 bytes based on number of sectors: 184549376 * 512 = 94489280512 bytes end of 4th partition (LBA in bytes): (99616768 + 84932608) * 512 = 94489280512 Reported-by: Giulio Signed-off-by: Karel Zak fdisk/sfdisk.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) commit 45b1087e74075b815e66edf225e0b8bc46a855fb Author: Mike Frysinger Date: Sat Dec 26 14:56:54 2009 -0500 pg: command enters infinite loop In a multibyte locale such as en_GB.UTF-8, the pg command cannot handle files containing a form feed character (ASCII 0x0c) at the start of a line. The program enters an infinite loop. I've traced the problem to the function endline_for_mb in file pg.c. The code assumes that the libc function wcwidth will return a nonnegative value, which is not true for a form feed character. wcwidth returns -1 and the unsigned variable "pos" goes into underflow. I'll attach a patch which tests whether the character is printable before calling wcwidth. If not, it uses instead the width of the constant L'?' which is later used to replace nonprintable characters. I trust that we can assume printability of this constant :-) Steps to Reproduce: 1. Select a multibyte locale (tested with en_GB.UTF-8) 2. Create a file with a form feed character (0x0c) at the start of a line. 3. Try to display this file using the pg command. Reported-by: Mark Calderbank Reported-by: Mike Frysinger Addresses: https://bugs.gentoo.org/297717 Signed-off-by: Karel Zak text-utils/pg.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 387ade2a24cc6fd13e8b5db123c4fa47f430948d Author: Karel Zak Date: Thu Dec 17 12:33:21 2009 +0100 umount: add --no-canonicalize Signed-off-by: Karel Zak mount/umount.8 | 4 ++++ mount/umount.c | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) commit be9adec40ffc81b28cbb051d0aa1f46f596f7b81 Author: Karel Zak Date: Thu Dec 17 12:27:16 2009 +0100 mount: disable --no-canonicalize for non-root users Signed-off-by: Karel Zak mount/mount.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 7e6bd2c5c11a0a6bbd7dcb3bda70d646ef1e3f2c Author: Karel Zak Date: Tue Dec 15 14:08:14 2009 +0100 tests: add silicon RAID test Signed-off-by: Karel Zak tests/expected/blkid/low-probe-silicon-raid | 3 +++ tests/ts/blkid/images-fs/silicon-raid.img.bz2 | Bin 0 -> 321 bytes 2 files changed, 3 insertions(+), 0 deletions(-) commit 75ee7085b31232fd1021626ab2cdd2d73f4c0a89 Author: Karel Zak Date: Tue Dec 15 14:07:53 2009 +0100 tests: add promise RAID test Signed-off-by: Karel Zak tests/expected/blkid/low-probe-promise-raid | 2 ++ tests/ts/blkid/images-fs/promise-raid.img.bz2 | Bin 0 -> 781 bytes 2 files changed, 2 insertions(+), 0 deletions(-) commit 148a015df7f1ee4edb99591dd1395bc5b6797b2d Author: Karel Zak Date: Tue Dec 15 14:07:10 2009 +0100 tests: add nvidia RAID test Signed-off-by: Karel Zak tests/expected/blkid/low-probe-nvidia-raid | 3 +++ tests/ts/blkid/images-fs/nvidia-raid.img.bz2 | Bin 0 -> 170 bytes 2 files changed, 3 insertions(+), 0 deletions(-) commit a1d39e5b1a73551af25442a2ebb5e1232078d1d6 Author: Karel Zak Date: Tue Dec 15 14:06:18 2009 +0100 tests: add lsi RAID test Signed-off-by: Karel Zak tests/expected/blkid/low-probe-lsi-raid | 2 ++ tests/ts/blkid/images-fs/lsi-raid.img.bz2 | Bin 0 -> 146 bytes 2 files changed, 2 insertions(+), 0 deletions(-) commit 19295f388022b9e30008c3712ef8a5f35348ba0a Author: Karel Zak Date: Tue Dec 15 14:05:54 2009 +0100 tests: add jmicron RAID test Signed-off-by: Karel Zak tests/expected/blkid/low-probe-jmicron-raid | 3 +++ tests/ts/blkid/images-fs/jmicron-raid.img.bz2 | Bin 0 -> 158 bytes 2 files changed, 3 insertions(+), 0 deletions(-) commit 44b4ef8f689726436ac18fbbcac5931077111ffd Author: Karel Zak Date: Tue Dec 15 14:04:44 2009 +0100 tests: add isw RAID test Signed-off-by: Karel Zak tests/expected/blkid/low-probe-isw-raid | 3 +++ tests/ts/blkid/images-fs/isw-raid.img.bz2 | Bin 0 -> 252 bytes 2 files changed, 3 insertions(+), 0 deletions(-) commit ced072017eb83df2cbba7a6574cba261ae9dcf57 Author: Karel Zak Date: Tue Dec 15 14:04:02 2009 +0100 tests: add hpt45x RAID test Signed-off-by: Karel Zak tests/expected/blkid/low-probe-hpt45x-raid | 2 ++ tests/ts/blkid/images-fs/hpt45x-raid.img.bz2 | Bin 0 -> 151 bytes 2 files changed, 2 insertions(+), 0 deletions(-) commit 0c28347a2a44c07dda60f35c1da5c99c128663b0 Author: Karel Zak Date: Tue Dec 15 14:01:40 2009 +0100 tests: add hpt37x RAID test Signed-off-by: Karel Zak tests/expected/blkid/low-probe-hpt37x-raid | 2 ++ tests/ts/blkid/images-fs/hpt37x-raid.img.bz2 | Bin 0 -> 116 bytes 2 files changed, 2 insertions(+), 0 deletions(-) commit d35c40e2378c6ccb7db3ce6e2dc99a61a8577f2d Author: Karel Zak Date: Tue Dec 15 14:01:03 2009 +0100 tests: add adaptec RAID test Signed-off-by: Karel Zak tests/expected/blkid/low-probe-adaptec-raid | 3 +++ tests/ts/blkid/images-fs/adaptec-raid.img.bz2 | Bin 0 -> 250 bytes 2 files changed, 3 insertions(+), 0 deletions(-) commit 9c100401c8673c2a31806c683a96bacaf98d9138 Author: Karel Zak Date: Tue Dec 15 12:30:02 2009 +0100 libblkid: rename highpoint RAIDs to hpt{37,45}x_raid_member Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/highpoint_raid.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 2f0eb081ffb7735006dd5641360c1dcfdbcc4cc4 Author: Karel Zak Date: Tue Dec 15 11:55:27 2009 +0100 libblkid: fix highpoint37x detection Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/highpoint_raid.c | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) commit 8b9e7578a7ec0f8ae8757255ffed39ccfbb3c98f Author: Karel Zak Date: Tue Dec 15 02:17:28 2009 +0100 libblkid: fix Adaptec RAID detection Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/adaptec_raid.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) commit b6ac30e130f388ca723379f6bfa94cf090884d72 Author: Karel Zak Date: Mon Dec 14 12:47:56 2009 +0100 docs: add LGPLv2+ to list of licenses Signed-off-by: Karel Zak README.licensing | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)