]> err.no Git - util-linux/log
util-linux
15 years agotests: add UBIFS test image to blkid test suite
Corentin Chary [Mon, 24 Aug 2009 11:11:56 +0000 (13:11 +0200)]
tests: add UBIFS test image to blkid test suite

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add UBIFS support
Corentin Chary [Mon, 24 Aug 2009 11:11:55 +0000 (13:11 +0200)]
libblkid: add UBIFS support

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add UBI volume support
Corentin Chary [Mon, 24 Aug 2009 11:11:54 +0000 (13:11 +0200)]
libblkid: add UBI volume support

Probe UBI volume under /dev (or /devfs, /devices).
ubi_ctrl skip is hardcoded, maybe we should find a
cleaner way to do that. Also change probe.c to handle
char devices.

[kzak@redhat.com: - rebase the patch to the current HEAD]

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: allow to use -s <TAG> for low-level probing (-p mode)
Karel Zak [Thu, 24 Sep 2009 12:44:47 +0000 (14:44 +0200)]
blkid: allow to use -s <TAG> for low-level probing (-p mode)

 # blkid -p -s TYPE /dev/sda3
 /dev/sda3: TYPE="swap"

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: add blkid regression tests for ISO9660
Karel Zak [Thu, 24 Sep 2009 08:46:25 +0000 (10:46 +0200)]
tests: add blkid regression tests for ISO9660

Note that Rock-Ridge detection is not supported yet.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add LVM topology support (for old kernels)
Karel Zak [Wed, 23 Sep 2009 19:27:01 +0000 (21:27 +0200)]
libblkid: add LVM topology support (for old kernels)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: minor changes to dm topology code
Karel Zak [Wed, 23 Sep 2009 19:23:21 +0000 (21:23 +0200)]
libblkid: minor changes to dm topology code

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: cleanup topology fallback
Karel Zak [Wed, 23 Sep 2009 09:28:28 +0000 (11:28 +0200)]
libblkid: cleanup topology fallback

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: announce Joliet extension
Maxim Levitsky [Wed, 23 Sep 2009 07:47:49 +0000 (09:47 +0200)]
libblkid: announce Joliet extension

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agofallocate: new command
Karel Zak [Tue, 18 Aug 2009 11:33:27 +0000 (13:33 +0200)]
fallocate: new command

The fallocate(1) utility is used to preallocate blocks to a file.

This can be useful for virtual images, database files, testing, etc.
Normally we'd hope that various tools will start using preallocation
internally, but until then such a utility may be useful, and could be
scripted as well.

The original Eric's version is available at:
http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/2490

This version:
 - checks for fallocate glibc function and kernel syscall
 - does not provide a fallback and does not call posix_fallocate()
 - adds long options
 - uses err.h for errro messages
 - adds NLS support
 - cleanups man page

Co-Author: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: document changed semantics of tmpfs size option in mount.8
kevin.granade@gmail.com [Mon, 7 Sep 2009 23:16:55 +0000 (18:16 -0500)]
mount: document changed semantics of tmpfs size option in mount.8

Linux kernel commit 818db35992c249dc32c1d86daf7d533fb0952f5d fixed a
problem where invoking mount -t tmpfs with a size argument smaler than the
size of one page caused the limits on the size of a tmpfs to not operate.
The commit also caused the number supplied by the size option to be
rounded up to the  nearest page size instead of down.  This alters the man
page to match the behavior of the kernel in this instance.

Signed-off-by: Kevin Granade <kevin.granade@gmail.com>
15 years agolibblkid: prefer ISO9660 PVD Label to Joliet Label
Karel Zak [Tue, 22 Sep 2009 12:58:34 +0000 (14:58 +0200)]
libblkid: prefer ISO9660 PVD Label to Joliet Label

The old good libvolume_id had the same behavior.

Reported-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: trim tailing whitespace from unicode LABELs
Karel Zak [Tue, 22 Sep 2009 10:32:34 +0000 (12:32 +0200)]
libblkid: trim tailing whitespace from unicode LABELs

old version:
$ ./blkid -o udev -p iso-joliet.img
ID_FS_LABEL=ThisIsLabel
ID_FS_LABEL_ENC=ThisIsLabel\x20\x20\x20\x20\x20
ID_FS_VERSION=Joliet\x20Extension
ID_FS_TYPE=iso9660
ID_FS_USAGE=filesystem

new version:
$ ./blkid -o udev -p iso-joliet.img
ID_FS_LABEL=ThisIsLabel
ID_FS_LABEL_ENC=ThisIsLabel
ID_FS_VERSION=Joliet\x20Extension
ID_FS_TYPE=iso9660
ID_FS_USAGE=filesystem

Reported-by: Maxim Levitsky <maximlevitsky@gmail.com>
Addresses-Ubuntu-Bug: #432215
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: fix blkid_probe_set_utf8label() call for Joliet
Karel Zak [Tue, 22 Sep 2009 09:53:07 +0000 (11:53 +0200)]
libblkid: fix blkid_probe_set_utf8label() call for Joliet

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: minor changes to samples
Karel Zak [Mon, 21 Sep 2009 13:39:00 +0000 (15:39 +0200)]
libblkid: minor changes to samples

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add EVMS topology support (for old kernels)
Karel Zak [Mon, 21 Sep 2009 13:32:09 +0000 (15:32 +0200)]
libblkid: add EVMS topology support (for old kernels)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add DM topology support (for old kernels)
Karel Zak [Mon, 21 Sep 2009 11:41:10 +0000 (13:41 +0200)]
libblkid: add DM topology support (for old kernels)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add MD topology support (for old kernels)
Karel Zak [Mon, 21 Sep 2009 09:52:26 +0000 (11:52 +0200)]
libblkid: add MD topology support (for old kernels)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: cosmetic change in topology sample
Karel Zak [Fri, 18 Sep 2009 11:21:19 +0000 (13:21 +0200)]
libblkid: cosmetic change in topology sample

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: fix probing for binary interface
Karel Zak [Fri, 18 Sep 2009 11:18:31 +0000 (13:18 +0200)]
libblkid: fix probing for binary interface

The probing for binary interface has to always start from scratch.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add private blkid_topology_set_*() functions
Karel Zak [Fri, 18 Sep 2009 11:07:52 +0000 (13:07 +0200)]
libblkid: add private blkid_topology_set_*() functions

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add blkid_driver_has_major()
Karel Zak [Fri, 18 Sep 2009 11:07:05 +0000 (13:07 +0200)]
libblkid: add blkid_driver_has_major()

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: fix blkid_devno_to_wholedisk()
Karel Zak [Fri, 18 Sep 2009 08:48:32 +0000 (10:48 +0200)]
libblkid: fix blkid_devno_to_wholedisk()

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: allows more probing methods for topology chain
Karel Zak [Fri, 18 Sep 2009 08:19:59 +0000 (10:19 +0200)]
libblkid: allows more probing methods for topology chain

This patch moves the current topology code to the separate sysfs.c
file.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: minor fix in topology sample
Karel Zak [Thu, 17 Sep 2009 22:06:17 +0000 (00:06 +0200)]
libblkid: minor fix in topology sample

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: fix topology information values
Eric Sandeen [Thu, 17 Sep 2009 21:56:00 +0000 (16:56 -0500)]
libblkid: fix topology information values

Looks like the topology values returned are being
inflated by x 512, but the kernel reports them in bytes;
no need for the multiplication, just return the value as-is.

With the patch it all matches:

# mdadm -D /dev/md0  | grep Chunk
     Chunk Size : 64K
# cat /sys/devices/virtual/block/md0/queue/minimum_io_size
65536
# blkid/samples/topology /dev/md0
----- NAME=value interface (values: 0):
MINIMUM_IO_SIZE = 65536
OPTIMAL_IO_SIZE = 131072
----- binary interface:
alignment offset : 0
minimum io size  : 65536
optimal io size  : 131072

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
15 years agomount: fix mount.8, xfs attr2 is enabled by default
Karel Zak [Thu, 17 Sep 2009 15:29:40 +0000 (17:29 +0200)]
mount: fix mount.8, xfs attr2 is enabled by default

Address-Red-Hat-Bug: #510845
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add blkid_partition_get_type_string()
Karel Zak [Thu, 17 Sep 2009 15:01:19 +0000 (17:01 +0200)]
libblkid: add blkid_partition_get_type_string()

.. because for example Mac and GPT don't use numbers, but strings or
UUIDs as partition type identifier.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: fix reference to samba-client in mount.8
Karel Zak [Thu, 17 Sep 2009 09:13:07 +0000 (11:13 +0200)]
mount: fix reference to samba-client in mount.8

Address-Red-Hat-Bug: #521367
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopo: update POTFILES.in
Karel Zak [Wed, 16 Sep 2009 19:58:56 +0000 (21:58 +0200)]
po: update POTFILES.in

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: add partitions probing test
Karel Zak [Fri, 11 Sep 2009 11:15:18 +0000 (13:15 +0200)]
tests: add partitions probing test

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: rename blkid/images to blkid/images-fs
Karel Zak [Fri, 11 Sep 2009 10:20:28 +0000 (12:20 +0200)]
tests: rename blkid/images to blkid/images-fs

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: gtkdocize (API docs generated by gtk-docs)
Karel Zak [Wed, 16 Sep 2009 19:25:38 +0000 (21:25 +0200)]
libblkid: gtkdocize (API docs generated by gtk-docs)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add missing comments
Karel Zak [Wed, 16 Sep 2009 14:42:12 +0000 (16:42 +0200)]
libblkid: add missing comments

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add mkfs sample
Karel Zak [Wed, 16 Sep 2009 14:27:32 +0000 (16:27 +0200)]
libblkid: add mkfs sample

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add partitions sample
Karel Zak [Wed, 16 Sep 2009 14:24:14 +0000 (16:24 +0200)]
libblkid: add partitions sample

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add EFI GPT partitions support
Karel Zak [Wed, 16 Sep 2009 14:21:17 +0000 (16:21 +0200)]
libblkid: add EFI GPT partitions support

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolib: add a generic crc32()
Karel Zak [Wed, 16 Sep 2009 14:17:41 +0000 (16:17 +0200)]
lib: add a generic crc32()

This is public domain implementation, based on static crc32_table[].
This implementation is used on may places (libparted, FreeBSD kernel,
PostgreSQL, ...). The Linux kernel uses on-the-fly generated and
allocated tables. That's useless in shared libraries.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add MINIX partitions support
Karel Zak [Wed, 16 Sep 2009 14:12:29 +0000 (16:12 +0200)]
libblkid: add MINIX partitions support

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add MS-DOS partitions support
Karel Zak [Wed, 16 Sep 2009 14:10:43 +0000 (16:10 +0200)]
libblkid: add MS-DOS partitions support

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add MAC partitions support
Karel Zak [Wed, 16 Sep 2009 14:08:37 +0000 (16:08 +0200)]
libblkid: add MAC partitions support

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add SGI partitions support
Karel Zak [Wed, 16 Sep 2009 14:07:16 +0000 (16:07 +0200)]
libblkid: add SGI partitions support

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add SUN partitions support
Karel Zak [Wed, 16 Sep 2009 14:06:07 +0000 (16:06 +0200)]
libblkid: add SUN partitions support

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add SOLARIS-X86 partitions support
Karel Zak [Wed, 16 Sep 2009 14:04:38 +0000 (16:04 +0200)]
libblkid: add SOLARIS-X86 partitions support

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add UNIXWARE partitions support
Karel Zak [Wed, 16 Sep 2009 14:02:28 +0000 (16:02 +0200)]
libblkid: add UNIXWARE partitions support

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add BSD partitions support
Karel Zak [Wed, 16 Sep 2009 13:57:45 +0000 (15:57 +0200)]
libblkid: add BSD partitions support

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add AIX partitions support
Karel Zak [Wed, 16 Sep 2009 13:55:58 +0000 (15:55 +0200)]
libblkid: add AIX partitions support

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add partitions filter routines
Karel Zak [Wed, 16 Sep 2009 13:49:44 +0000 (15:49 +0200)]
libblkid: add partitions filter routines

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add partitions parsing support
Karel Zak [Wed, 16 Sep 2009 13:39:14 +0000 (15:39 +0200)]
libblkid: add partitions parsing support

This patch is large, but not invasive. There is a new code only.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add samples/topology.c
Karel Zak [Thu, 30 Jul 2009 08:44:08 +0000 (10:44 +0200)]
libblkid: add samples/topology.c

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add topology support
Karel Zak [Wed, 16 Sep 2009 12:40:41 +0000 (14:40 +0200)]
libblkid: add topology support

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add blkid_devno_to_wholedisk()
Karel Zak [Wed, 16 Sep 2009 09:37:08 +0000 (11:37 +0200)]
libblkid: add blkid_devno_to_wholedisk()

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: use the new API in whole u-l-ng
Karel Zak [Mon, 14 Sep 2009 21:33:01 +0000 (23:33 +0200)]
libblkid: use the new API in whole u-l-ng

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: refresh blkid.{h,sym}
Karel Zak [Tue, 15 Sep 2009 21:14:50 +0000 (23:14 +0200)]
libblkid: refresh blkid.{h,sym}

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add generic function for binary data
Karel Zak [Tue, 15 Sep 2009 21:00:12 +0000 (23:00 +0200)]
libblkid: add generic function for binary data

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: allow to read in sectors
Karel Zak [Tue, 15 Sep 2009 20:55:05 +0000 (22:55 +0200)]
libblkid: allow to read in sectors

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: allow to change dimension of probing area
Karel Zak [Tue, 15 Sep 2009 20:53:25 +0000 (22:53 +0200)]
libblkid: allow to change dimension of probing area

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add blkid_probe_get_{size,sectorsize,devno}
Karel Zak [Tue, 15 Sep 2009 20:50:11 +0000 (22:50 +0200)]
libblkid: add blkid_probe_get_{size,sectorsize,devno}

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add missing comments to probe.c
Karel Zak [Tue, 15 Sep 2009 20:43:58 +0000 (22:43 +0200)]
libblkid: add missing comments to probe.c

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: use chains in blkid_do_{safe,full,}_probe()
Karel Zak [Tue, 15 Sep 2009 20:37:33 +0000 (22:37 +0200)]
libblkid: use chains in blkid_do_{safe,full,}_probe()

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: use chains in prober (de)initialization
Karel Zak [Tue, 15 Sep 2009 20:33:34 +0000 (22:33 +0200)]
libblkid: use chains in prober (de)initialization

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: use private {lookup,get}_value functions
Karel Zak [Tue, 15 Sep 2009 20:22:16 +0000 (22:22 +0200)]
libblkid: use private {lookup,get}_value functions

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: remove superblock functions from probe.c
Karel Zak [Tue, 15 Sep 2009 20:18:31 +0000 (22:18 +0200)]
libblkid: remove superblock functions from probe.c

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: use superblock filter functions
Karel Zak [Tue, 15 Sep 2009 20:02:20 +0000 (22:02 +0200)]
libblkid: use superblock filter functions

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add superblocks filter functions
Karel Zak [Tue, 15 Sep 2009 19:45:15 +0000 (21:45 +0200)]
libblkid: add superblocks filter functions

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: move blkid_known_fstype() to superblocks.c
Karel Zak [Tue, 15 Sep 2009 19:42:07 +0000 (21:42 +0200)]
libblkid: move blkid_known_fstype() to superblocks.c

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add superblocks chain
Karel Zak [Tue, 15 Sep 2009 19:38:46 +0000 (21:38 +0200)]
libblkid: add superblocks chain

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add BLKID_SUBLKS_* flags
Karel Zak [Tue, 15 Sep 2009 19:37:03 +0000 (21:37 +0200)]
libblkid: add BLKID_SUBLKS_* flags

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add generic filter functions
Karel Zak [Tue, 15 Sep 2009 19:31:07 +0000 (21:31 +0200)]
libblkid: add generic filter functions

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add functions for chain tags
Karel Zak [Tue, 15 Sep 2009 19:27:54 +0000 (21:27 +0200)]
libblkid: add functions for chain tags

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add chain structs
Karel Zak [Tue, 15 Sep 2009 19:12:55 +0000 (21:12 +0200)]
libblkid: add chain structs

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: move filter macros to header file
Karel Zak [Tue, 15 Sep 2009 18:51:30 +0000 (20:51 +0200)]
libblkid: move filter macros to header file

 * move blkid_bmp_* macros to blkidP.h
 * add blkid_bmp_nbytes() -- returns size of bitmap in bytes
 * add blkid_bmp_nwords() -- returns size of bitmap in words
                             (rename from blkid_bmp_size())

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: create a generic blkid_encode_to_utf8()
Karel Zak [Tue, 15 Sep 2009 18:45:47 +0000 (20:45 +0200)]
libblkid: create a generic blkid_encode_to_utf8()

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: create a generic blkid_unparse_uuid()
Karel Zak [Tue, 15 Sep 2009 18:36:46 +0000 (20:36 +0200)]
libblkid: create a generic blkid_unparse_uuid()

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: use superblocks.h
Karel Zak [Tue, 28 Jul 2009 12:11:45 +0000 (14:11 +0200)]
libblkid: use superblocks.h

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: move FS/raid stuff to superblocks directory
Karel Zak [Wed, 22 Jul 2009 21:21:27 +0000 (23:21 +0200)]
libblkid: move FS/raid stuff to superblocks directory

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: fix typo (swsupend -> swsuspend)
Karel Zak [Mon, 14 Sep 2009 08:24:07 +0000 (10:24 +0200)]
libblkid: fix typo (swsupend -> swsuspend)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: more explicitly explain 'strictatime' in mount.8
Karel Zak [Fri, 11 Sep 2009 12:08:40 +0000 (14:08 +0200)]
mount: more explicitly explain 'strictatime' in mount.8

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agosfdisk: dump has to be $LANG insensitive
Karel Zak [Fri, 11 Sep 2009 12:00:50 +0000 (14:00 +0200)]
sfdisk: dump has to be $LANG insensitive

This stupid bug has been introduced by:

commit add5133f4ad5136aac3ce7627e615d14893d0aeb
Author: Pedro Ribeiro <p.m42.ribeiro@gmail.com>
Date:   Fri Oct 3 08:52:35 2008 +0200
fdisk: several strings without gettext calls

... so it shows that we need to improve our review process... :-(

Address-Red-Hat-Bug: #522718
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibuuid: remove .UE macro from libuuid man pages.
Milan Broz [Mon, 7 Sep 2009 10:47:04 +0000 (12:47 +0200)]
libuuid: remove .UE macro from libuuid man pages.

On some system it produces insertion of "()".
There is missing .UR anyway.

[kzak@redhat.com: - this is u-l-ng bug, we don't use UR+UE macros like the
                    original man pages in e2fsprogs]

Signed-off-by: Milan Broz <mbroz@redhat.com>
15 years agodocs: README width and language correction
Jan Sarenik [Wed, 2 Sep 2009 18:03:20 +0000 (20:03 +0200)]
docs: README width and language correction

Signed-off-by: Jan Sarenik <jsarenik@redhat.com>
15 years agocfdisk: more key alternatives
Jan Sarenik [Wed, 2 Sep 2009 18:03:19 +0000 (20:03 +0200)]
cfdisk: more key alternatives

Signed-off-by: Jan Sarenik <jsarenik@redhat.com>
15 years agortcwake: ignore the tm_isdst field returned from the RTC
Paul Fox [Thu, 13 Aug 2009 15:35:53 +0000 (11:35 -0400)]
rtcwake: ignore the tm_isdst field returned from the RTC

Signed-off-by: Paul Fox <pgf@laptop.org>
15 years agopartx: work properly with 512 sectors (dos PT)
Karel Zak [Thu, 6 Aug 2009 08:34:36 +0000 (10:34 +0200)]
partx: work properly with 512 sectors (dos PT)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agortcwake: add S5 support
Karel Zak [Tue, 18 Aug 2009 13:48:34 +0000 (15:48 +0200)]
rtcwake: add S5 support

Based on patch from
   Piergiorgio Sartor <piergiorgio.sartor@nexgo.de>
at
   https://bugzilla.redhat.com/show_bug.cgi?id=449115

Piergiorgio's note about S5:
> According to the ACPI specifications, chapter 4.7.2.4 "Real Time
> Clock Alarm", the wakeup from RTC, when supported, should work from
> *sleep* state S1-S3 and, optionally, from S4.
>
> Note 3 (same chapter) says that S5 is *not* a sleep state and should
> not be supported. Actually it also says that: "The OS will disable
> the RTC_EN bit prior to entering the G2/S5 or G3 states regardless."
>
> Nevertheless, on all PC supporting the RTC wakeup I tested, all were
> able to wake from S5.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomkswap: fix memory leaks, cleanup check_blocks()
Karel Zak [Mon, 7 Sep 2009 06:59:27 +0000 (08:59 +0200)]
mkswap: fix memory leaks, cleanup check_blocks()

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomkswap: unbreak -c ("check") option.
Peter De Wachter [Sat, 5 Sep 2009 19:19:56 +0000 (21:19 +0200)]
mkswap: unbreak -c ("check") option.

In the check_blocks() loop, current_page is not incremented. Because of this
bug, the loop does not end when the end of the device is reached.  Instead it
tries to continue reading, which of course fails, and eventually mkswap aborts
("too many bad pages").

Note that this can only be tested with swap partitions, mkswap ignores the -c
option for swap files.

Signed-off-by: Peter De Wachter <pdewacht@gmail.com>
15 years agolibblkid: fix buffer overflow in blkid_encode_string()
Florian Zumbiehl [Wed, 2 Sep 2009 20:52:55 +0000 (22:52 +0200)]
libblkid: fix buffer overflow in blkid_encode_string()

[kzak@redhat.com: - this is patch is originally from udev repository
                    commit 8cfcf9980a3a7037a12a3052c38e4981cb0f0190]

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add *.ko.gz support to modules.dep parser
Karel Zak [Sun, 23 Aug 2009 18:33:10 +0000 (20:33 +0200)]
libblkid: add *.ko.gz support to modules.dep parser

Address-Red-Hat-Bug: #518572
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoreplace usleep() for systems that don't have them
Daniel Mierswa [Mon, 17 Aug 2009 19:22:02 +0000 (21:22 +0200)]
replace usleep() for systems that don't have them

This function is marked obsolete in POSIX.1-2001 and removed in
POSIX.1-2008.

Conditionally replaced with nanosleep().

Signed-off-by: Daniel Mierswa <impulze@impulze.org>
15 years agohwclocks: use time limit for KDGHWCLK busy wait
Karel Zak [Thu, 20 Aug 2009 13:46:10 +0000 (15:46 +0200)]
hwclocks: use time limit for KDGHWCLK busy wait

Currently the busy wait in synchronize_to_clock_tick_kd() is
restricted by number of loops. It's better to use time limit
(1.5s). We already use this method for RTC.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: mention mtab for single mount point mount in mount.8
Peter Volkov [Tue, 18 Aug 2009 12:21:33 +0000 (14:21 +0200)]
mount: mention mtab for single mount point mount in mount.8

Karel Zak wrote: "This is very old (10+years) feature. The mount(8) is
trying to found mountpoint/device in fstab and then in mtab.

I guess the original purpose for this feature is user-friendly 'mount
/node -o remount'. Unfortunately, the code does not check for
MS_REMOUNT flag and consults mtab in all cases. (The code is
consulting fstab/mtab before mount options parsing.)"

This commit documents this feature.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: clean up mount.8
Karel Zak [Tue, 18 Aug 2009 08:56:56 +0000 (10:56 +0200)]
mount: clean up mount.8

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoRevert "mount: clean up mount.8"
Karel Zak [Tue, 18 Aug 2009 08:53:15 +0000 (10:53 +0200)]
Revert "mount: clean up mount.8"

This reverts commit 98c7944b52c54c86fb5b9d73fbead9442bfa0e30.

Unfortunately, the patch has been committed by "git commit -a" and
includes unwanted changes in configure.ac and sys-utils/Makefile.am...

Sorry.

15 years agomount: clean up mount.8
Karel Zak [Mon, 17 Aug 2009 15:40:04 +0000 (17:40 +0200)]
mount: clean up mount.8

 * use "filesystem" everywhere (currently, the mount.8 man page is inconsistent
   and uses "file system" and "filesystem")

 * fix "The extN" to "The extN filesystem" (reported by Theodore Tso)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: add info about ext{3,4} barriers to mount.8
Karel Zak [Mon, 17 Aug 2009 13:35:13 +0000 (15:35 +0200)]
mount: add info about ext{3,4} barriers to mount.8

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: test for basic functionality of sun labels
Zdenek Behan [Wed, 12 Aug 2009 21:55:16 +0000 (23:55 +0200)]
tests: test for basic functionality of sun labels

Tests the following:
* Creation and deletion of first two partitions
* setting sysid to one (randomly chosen) value
* setting readonly/mountable flags

Signed-off-by: Zdenek Behan <rain@matfyz.cz>
15 years agotests: fdisk doslabel test also checks setting partition active
Zdenek Behan [Mon, 3 Aug 2009 01:54:11 +0000 (03:54 +0200)]
tests: fdisk doslabel test also checks setting partition active

* Yet another test, this time for setting active partition

Signed-off-by: Zdenek Behan <rain@matfyz.cz>
15 years agotests: fdisk doslabel test also checks changing partition type
Zdenek Behan [Mon, 3 Aug 2009 01:46:27 +0000 (03:46 +0200)]
tests: fdisk doslabel test also checks changing partition type

* Changed apostrophes around test commands to quotes, this makes vim
syntax highlighting more happy, and makes the newlines stand out.

* Added check for changing partition type. After the change is done and
checked, the partition is deleted and re-created to not mess with the
other md5's already in place...

Signed-off-by: Zdenek Behan <rain@matfyz.cz>
15 years agofsck.8: formatting
Peter Breitenlohner [Wed, 22 Jul 2009 09:29:50 +0000 (11:29 +0200)]
fsck.8: formatting

Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>