]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
15 years agofdisk: (and partx) remove BLKGETLASTSECT
Karel Zak [Thu, 26 Feb 2009 22:03:46 +0000 (23:03 +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 <kzak@redhat.com>
15 years agopartx: don't duplicate lib/blkdev.c code
Karel Zak [Thu, 26 Feb 2009 14:28:11 +0000 (15:28 +0100)] 
partx: don't duplicate lib/blkdev.c code

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopartx: convert hard sector size to 512-byte sectors
Karel Zak [Thu, 26 Feb 2009 13:23:06 +0000 (14:23 +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 <kzak@redhat.com>
15 years agoaddpart: 512-byte sectors in code, bytes in man-page
Karel Zak [Thu, 26 Feb 2009 11:31:07 +0000 (12:31 +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 <kzak@redhat.com>
15 years agoblockdev: add note that the StartSec is in 512-byte sectors
Karel Zak [Thu, 26 Feb 2009 09:56:35 +0000 (10:56 +0100)] 
blockdev: add note that the StartSec is in 512-byte sectors

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agofdisk: use real sector size in verify() and warn_cylinders()
Karel Zak [Thu, 26 Feb 2009 09:19:05 +0000 (10:19 +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 <kzak@redhat.com>
15 years agofdisk: doesn't handle large (4KiB) sectors properly
Eric Sandeen [Thu, 26 Feb 2009 08:53:09 +0000 (09:53 +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 <sandeen@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: remove useless if-before-free tests
Karel Zak [Tue, 24 Feb 2009 15:41:17 +0000 (16:41 +0100)] 
mount: remove useless if-before-free tests

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agogetopt: remove useless if-before-free tests
Karel Zak [Tue, 24 Feb 2009 15:41:06 +0000 (16:41 +0100)] 
getopt: remove useless if-before-free tests

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agofsck: remove useless if-before-free tests
Karel Zak [Tue, 24 Feb 2009 15:40:52 +0000 (16:40 +0100)] 
fsck: remove useless if-before-free tests

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: fix a syntax nit
Karel Zak [Tue, 24 Feb 2009 15:39:04 +0000 (16:39 +0100)] 
blkid: fix a syntax nit

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: remove useless if-before-free tests
Jim Meyering [Tue, 24 Feb 2009 14:58:37 +0000 (15:58 +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 <meyering@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: don't dereference NULL upon slashless module dependency line
Jim Meyering [Tue, 24 Feb 2009 14:46:27 +0000 (15:46 +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 <meyering@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: add missing files to include/Makefile.am
Karel Zak [Fri, 20 Feb 2009 12:21:40 +0000 (13:21 +0100)] 
build-sys: add missing files to include/Makefile.am

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agofsck: remove \007 from warning message
Karel Zak [Fri, 20 Feb 2009 12:18:28 +0000 (13:18 +0100)] 
fsck: remove \007 from warning message

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: remove obsolete stuff from Makefile.am
Karel Zak [Fri, 20 Feb 2009 11:14:48 +0000 (12:14 +0100)] 
tests: remove obsolete stuff from Makefile.am

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolosetup: cleanup man page
Karel Zak [Thu, 19 Feb 2009 18:01:34 +0000 (19:01 +0100)] 
losetup: cleanup man page

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolosetup: detach more devices by "-d <loop> [<loop> ..]"
Karel Zak [Thu, 19 Feb 2009 17:36:25 +0000 (18:36 +0100)] 
losetup: detach more devices by "-d <loop> [<loop> ..]"

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 <kzak@redhat.com>
15 years agotests: refresh expected mount(8) outputs
Karel Zak [Wed, 18 Feb 2009 22:40:17 +0000 (23:40 +0100)] 
tests: refresh expected mount(8) outputs

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: disable suid mount test
Karel Zak [Wed, 18 Feb 2009 22:33:25 +0000 (23:33 +0100)] 
tests: disable suid mount test

Unfortunately, libtool wrapper cannot be suid...

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: inform about UID and eUID when verbose > 2
Karel Zak [Wed, 18 Feb 2009 22:16:57 +0000 (23:16 +0100)] 
mount: inform about UID and eUID when verbose > 2

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: blkid_evaluate_spec() shouldn't ignore $BLKID_FILE
Karel Zak [Wed, 18 Feb 2009 21:46:01 +0000 (22:46 +0100)] 
blkid: blkid_evaluate_spec() shouldn't ignore $BLKID_FILE

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: refresh ipcs expected outputs
Karel Zak [Wed, 18 Feb 2009 20:50:55 +0000 (21:50 +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 <kzak@redhat.com>
15 years agotests: refresh cal(1) expected outputs
Karel Zak [Wed, 18 Feb 2009 20:45:48 +0000 (21:45 +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 <kzak@redhat.com>
15 years agotests: we needn't blkid.sh
Karel Zak [Wed, 18 Feb 2009 20:44:00 +0000 (21:44 +0100)] 
tests: we needn't blkid.sh

after "libtoolization" we needn't extra blkid.sh wrapper

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: chmod -x ts/lscpu/mk-input.sh
Karel Zak [Wed, 18 Feb 2009 20:28:23 +0000 (21:28 +0100)] 
tests: chmod -x ts/lscpu/mk-input.sh

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: cleanup ts/md5
Karel Zak [Wed, 18 Feb 2009 20:27:18 +0000 (21:27 +0100)] 
tests: cleanup ts/md5

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: cleanup ts/minix
Karel Zak [Wed, 18 Feb 2009 20:19:47 +0000 (21:19 +0100)] 
tests: cleanup ts/minix

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: add fsck binary to .gitignore
Karel Zak [Wed, 18 Feb 2009 16:20:30 +0000 (17:20 +0100)] 
build-sys: add fsck binary to .gitignore

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: cleanup lscpu reg.tests
Karel Zak [Wed, 18 Feb 2009 16:16:46 +0000 (17:16 +0100)] 
tests: cleanup lscpu reg.tests

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: cleanup ts/cramfs/mkfs-endianness
Karel Zak [Wed, 18 Feb 2009 15:48:20 +0000 (16:48 +0100)] 
tests: cleanup ts/cramfs/mkfs-endianness

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: cleanup ts/cramfs/fsck-endianness
Karel Zak [Wed, 18 Feb 2009 15:45:01 +0000 (16:45 +0100)] 
tests: cleanup ts/cramfs/fsck-endianness

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: cleanup ts/bitops
Karel Zak [Wed, 18 Feb 2009 15:34:34 +0000 (16:34 +0100)] 
tests: cleanup ts/bitops

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: add fsck:ismounted reg.test
Karel Zak [Wed, 18 Feb 2009 15:10:45 +0000 (16:10 +0100)] 
tests: add fsck:ismounted reg.test

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolib: add test_ismounted for regression test
Karel Zak [Wed, 18 Feb 2009 14:43:34 +0000 (15:43 +0100)] 
lib: add test_ismounted for regression test

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopo: update list of .c files
Karel Zak [Wed, 18 Feb 2009 14:35:28 +0000 (15:35 +0100)] 
po: update list of .c files

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agofsck: cosmetic changes (NLS, paths, ...)
Karel Zak [Wed, 18 Feb 2009 14:34:51 +0000 (15:34 +0100)] 
fsck: cosmetic changes (NLS, paths, ...)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agofsck: link with generic fsprobe wrapper
Karel Zak [Wed, 18 Feb 2009 14:25:50 +0000 (15:25 +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 <kzak@redhat.com>
15 years agolib: make open_device() optional in fsprobe.c
Karel Zak [Wed, 18 Feb 2009 14:21:55 +0000 (15:21 +0100)] 
lib: make open_device() optional in fsprobe.c

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agofsck: move fsck from e2fsprogs to util-linux-ng
Karel Zak [Wed, 18 Feb 2009 14:06:49 +0000 (15:06 +0100)] 
fsck: move fsck from e2fsprogs to util-linux-ng

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: fix low-probe mode return codes
Karel Zak [Tue, 17 Feb 2009 23:49:58 +0000 (00:49 +0100)] 
blkid: fix low-probe mode return codes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: add TODO hint about blkid_parse_tag_string()
Karel Zak [Tue, 17 Feb 2009 23:41:42 +0000 (00:41 +0100)] 
blkid: add TODO hint about blkid_parse_tag_string()

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: add cmdline interface for blkid_probe_filter_usage()
Karel Zak [Tue, 17 Feb 2009 23:37:28 +0000 (00:37 +0100)] 
blkid: add cmdline interface for blkid_probe_filter_usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: check calloc() return value
Karel Zak [Tue, 17 Feb 2009 22:57:15 +0000 (23:57 +0100)] 
blkid: check calloc() return value

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: add TODO hint about DM devnames in sysfs
Karel Zak [Tue, 17 Feb 2009 21:23:08 +0000 (22:23 +0100)] 
blkid: add TODO hint about DM devnames in sysfs

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: use pkg-config for blkid and volume_id
Karel Zak [Tue, 17 Feb 2009 20:28:09 +0000 (21:28 +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 <kzak@redhat.com>
15 years agomount: generic blkid/volume_id wrapper, use blkid_evaluate_*
Karel Zak [Tue, 17 Feb 2009 00:01:35 +0000 (01:01 +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 <kzak@redhat.com>
15 years agoblkid: add Christoph's note about libdisk to TODO
Karel Zak [Mon, 16 Feb 2009 15:52:16 +0000 (16:52 +0100)] 
blkid: add Christoph's note about libdisk to TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: refresh TODO file
Karel Zak [Mon, 16 Feb 2009 10:15:55 +0000 (11:15 +0100)] 
blkid: refresh TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: add temporary libtool *.m4 stuff
Karel Zak [Mon, 16 Feb 2009 09:40:25 +0000 (10:40 +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 <kzak@redhat.com>
15 years agobuild-sys: libtoolize mount/Makefile.am
Karel Zak [Fri, 13 Feb 2009 12:08:07 +0000 (13:08 +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 <kzak@redhat.com>
15 years agobuild-sys: libtoolize by libtool-2
Karel Zak [Fri, 13 Feb 2009 09:54:24 +0000 (10:54 +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 <kzak@redhat.com>
15 years agoblkid: start to use ABI versioning
Karel Zak [Tue, 10 Feb 2009 16:20:11 +0000 (17:20 +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_<maj>.<min>

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 <maj>.<min>.<rel>. The <maj>.<min> 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_<maj>.<min>
  SONAME:                      libblkid.1
  .so version:                 libblkid.so.<maj.<min> (e.g. 1.41)
  blkid_get_library_version(): @BLKID_VERSION@ (e.g. 1.41.1)

  (BLKID_VERSION = <maj>.<min>.<rel>)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: add --with=fsprobe=builtin
Karel Zak [Tue, 10 Feb 2009 10:43:50 +0000 (11:43 +0100)] 
build-sys: add --with=fsprobe=builtin

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: add findfs(8)
Karel Zak [Sat, 7 Feb 2009 23:23:55 +0000 (00:23 +0100)] 
blkid: add findfs(8)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: refresh TODO file
Karel Zak [Sat, 7 Feb 2009 22:46:59 +0000 (23:46 +0100)] 
blkid: refresh TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: clean up man pages
Karel Zak [Thu, 5 Feb 2009 23:21:07 +0000 (00:21 +0100)] 
blkid: clean up man pages

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: add -L -U options (evaluation API)
root [Wed, 4 Feb 2009 00:02:56 +0000 (01:02 +0100)] 
blkid: add -L -U options (evaluation API)

Signed-off-by: root <root@nb.net.home>
15 years agoblkid: add blkid_evaluate_spec()
Karel Zak [Tue, 3 Feb 2009 23:07:46 +0000 (00:07 +0100)] 
blkid: add blkid_evaluate_spec()

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: move realpath.c code to lib/
Karel Zak [Tue, 3 Feb 2009 21:12:03 +0000 (22:12 +0100)] 
mount: move realpath.c code to lib/

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: fix typo (syntax error)
Karel Zak [Tue, 3 Feb 2009 20:59:25 +0000 (21:59 +0100)] 
blkid: fix typo (syntax error)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: compile TEST_PROGRAMs
Karel Zak [Tue, 3 Feb 2009 15:07:46 +0000 (16:07 +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 <kzak@redhat.com>
15 years agoblkid: add support for /etc/blkid.conf file
Karel Zak [Tue, 3 Feb 2009 14:23:18 +0000 (15:23 +0100)] 
blkid: add support for /etc/blkid.conf file

We need a config file for the library. Now the library supports
config options:

EVALUATION=<method>[,<method>]

SEND_UEVENT=<yes|not>

CACHE_FILE=<path>

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: add new options to blkid.8 and help output
Karel Zak [Thu, 29 Jan 2009 16:56:09 +0000 (17:56 +0100)] 
blkid: add new options to blkid.8 and help output

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: support via raid version 2
Sven Jost [Thu, 29 Jan 2009 15:35:54 +0000 (16:35 +0100)] 
blkid: support via raid version 2

[kzak@redhat.com: patch from udev volume_id]

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: refresh TODO file
Karel Zak [Tue, 27 Jan 2009 17:08:21 +0000 (18:08 +0100)] 
blkid: refresh TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: fix typo in low-probe test
Karel Zak [Tue, 27 Jan 2009 17:05:04 +0000 (18:05 +0100)] 
tests: fix typo in low-probe test

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: cleanup _LOGPROBE debug messages
Karel Zak [Tue, 27 Jan 2009 16:57:18 +0000 (17:57 +0100)] 
blkid: cleanup _LOGPROBE debug messages

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: add blkid_do_safeprobe()
Karel Zak [Tue, 27 Jan 2009 16:25:06 +0000 (17:25 +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 <kzak@redhat.com>
15 years agoblkid: add lvm2 reg.test
Karel Zak [Tue, 27 Jan 2009 14:21:31 +0000 (15:21 +0100)] 
blkid: add lvm2 reg.test

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: add version support to LVM2
Karel Zak [Tue, 27 Jan 2009 14:09:56 +0000 (15:09 +0100)] 
blkid: add version support to LVM2

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: add GFS2 reg. test
Karel Zak [Mon, 26 Jan 2009 14:56:25 +0000 (15:56 +0100)] 
blkid: add GFS2 reg. test

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: add uuid and version support to gfs2
Karel Zak [Mon, 26 Jan 2009 14:53:54 +0000 (15:53 +0100)] 
blkid: add uuid and version support to gfs2

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: add reg.tests for HFS and HFS+
Karel Zak [Mon, 26 Jan 2009 14:07:28 +0000 (15:07 +0100)] 
blkid: add reg.tests for HFS and HFS+

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: add vol_id call to blkid regression test
Karel Zak [Fri, 23 Jan 2009 23:16:34 +0000 (00:16 +0100)] 
blkid: add vol_id call to blkid regression test

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: add to reiser
Karel Zak [Fri, 23 Jan 2009 23:04:20 +0000 (00:04 +0100)] 
blkid: add  to reiser

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: add ocfs2 version
Karel Zak [Fri, 23 Jan 2009 22:27:17 +0000 (23:27 +0100)] 
blkid: add ocfs2 version

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: fix ..._strncpy_uuid
Karel Zak [Fri, 23 Jan 2009 21:55:37 +0000 (22:55 +0100)] 
blkid: fix ..._strncpy_uuid

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: add ddf raid regression test
Karel Zak [Thu, 22 Jan 2009 00:35:39 +0000 (01:35 +0100)] 
blkid: add ddf raid regression test

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: fix blkid_do_probe()
Karel Zak [Thu, 22 Jan 2009 00:28:39 +0000 (01:28 +0100)] 
blkid: fix blkid_do_probe()

Fix small non-sense from from a recent commit.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: remove unnecessary debug message
Karel Zak [Thu, 22 Jan 2009 00:18:13 +0000 (01:18 +0100)] 
blkid: remove unnecessary debug message

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: use blkid_probe_strcpy_uuid() for luks
Karel Zak [Thu, 22 Jan 2009 00:17:08 +0000 (01:17 +0100)] 
blkid: use blkid_probe_strcpy_uuid() for luks

LUKS stores UUID as a string...

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: improve ddf detection
Karel Zak [Thu, 22 Jan 2009 00:15:02 +0000 (01:15 +0100)] 
blkid: improve ddf detection

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: set size for non-blkdevs, add blkid_probe_strcpy_uuid()
Karel Zak [Thu, 22 Jan 2009 00:06:57 +0000 (01:06 +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 <kzak@redhat.com>
15 years agoblkid: add netware regression test
Karel Zak [Wed, 21 Jan 2009 21:09:53 +0000 (22:09 +0100)] 
blkid: add netware regression test

Thanks to Kay Sievers for the image and information.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: netware SB has to be packed
Karel Zak [Wed, 21 Jan 2009 18:23:10 +0000 (19:23 +0100)] 
blkid: netware SB has to be packed

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: add hpfs regression test
Karel Zak [Wed, 21 Jan 2009 16:09:51 +0000 (17:09 +0100)] 
blkid: add hpfs regression test

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: fix udev output
Karel Zak [Wed, 21 Jan 2009 16:01:22 +0000 (17:01 +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 <kzak@redhat.com>
15 years agotests: remove unexpected exit from *_subtest functions
Karel Zak [Wed, 21 Jan 2009 16:00:55 +0000 (17:00 +0100)] 
tests: remove unexpected exit from *_subtest functions

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: fix blkid_safe_string()
Karel Zak [Wed, 21 Jan 2009 15:58:04 +0000 (16:58 +0100)] 
blkid: fix blkid_safe_string()

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: add a note to TODO list
Karel Zak [Tue, 20 Jan 2009 22:58:44 +0000 (23:58 +0100)] 
blkid: add a note to TODO list

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: add libblkid regression tests (images from e2fsprogs)
Karel Zak [Tue, 20 Jan 2009 22:43:56 +0000 (23:43 +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 <kzak@redhat.com>
15 years agotests: fix the final message for subtests
Karel Zak [Tue, 20 Jan 2009 22:42:33 +0000 (23:42 +0100)] 
tests: fix the final message for subtests

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: add support for subtests
Karel Zak [Tue, 20 Jan 2009 14:38:01 +0000 (15:38 +0100)] 
tests: add support for subtests

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: move some generic stuff from ts_init() to a new ts_init_env()
Karel Zak [Tue, 20 Jan 2009 12:19:43 +0000 (13:19 +0100)] 
tests: move some generic stuff from ts_init() to a new ts_init_env()

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: add "byte-order" to helpers/test_sysinfo
Karel Zak [Tue, 20 Jan 2009 12:18:22 +0000 (13:18 +0100)] 
tests: add "byte-order" to helpers/test_sysinfo

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: fix output string
Karel Zak [Mon, 19 Jan 2009 23:57:57 +0000 (00:57 +0100)] 
tests: fix output string

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: cleanup ts/mount
Karel Zak [Mon, 19 Jan 2009 23:50:01 +0000 (00:50 +0100)] 
tests: cleanup ts/mount

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: cleanup ts/swapon
Karel Zak [Mon, 19 Jan 2009 23:24:23 +0000 (00:24 +0100)] 
tests: cleanup ts/swapon

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: cleanup ts/script
Karel Zak [Mon, 19 Jan 2009 23:16:53 +0000 (00:16 +0100)] 
tests: cleanup ts/script

Signed-off-by: Karel Zak <kzak@redhat.com>