summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* tests: chmod -x ts/lscpu/mk-input.shKarel Zak2009-02-181-0/+0
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: cleanup ts/md5Karel Zak2009-02-183-11/+6Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: cleanup ts/minixKarel Zak2009-02-184-12/+7Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add fsck binary to .gitignoreKarel Zak2009-02-182-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: cleanup lscpu reg.testsKarel Zak2009-02-181253-42/+16Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: cleanup ts/cramfs/mkfs-endiannessKarel Zak2009-02-182-7/+5Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: cleanup ts/cramfs/fsck-endiannessKarel Zak2009-02-184-9/+7Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: cleanup ts/bitopsKarel Zak2009-02-182-5/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add fsck:ismounted reg.testKarel Zak2009-02-184-4/+55
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: add test_ismounted for regression testKarel Zak2009-02-183-6/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* po: update list of .c filesKarel Zak2009-02-181-4/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck: cosmetic changes (NLS, paths, ...)Karel Zak2009-02-182-11/+13
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck: link with generic fsprobe wrapperKarel Zak2009-02-182-8/+18
| | | | | | | 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>
* lib: make open_device() optional in fsprobe.cKarel Zak2009-02-181-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck: move fsck from e2fsprogs to util-linux-ngKarel Zak2009-02-189-2/+2222
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: fix low-probe mode return codesKarel Zak2009-02-181-17/+18
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add TODO hint about blkid_parse_tag_string()Karel Zak2009-02-181-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add cmdline interface for blkid_probe_filter_usage()Karel Zak2009-02-183-13/+62
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: check calloc() return valueKarel Zak2009-02-171-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add TODO hint about DM devnames in sysfsKarel Zak2009-02-171-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use pkg-config for blkid and volume_idKarel Zak2009-02-173-34/+44
| | | | | | | | | | | | 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>
* mount: generic blkid/volume_id wrapper, use blkid_evaluate_*Karel Zak2009-02-1715-562/+618
| | | | | | | | | | | | | | | | | | * 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>
* blkid: add Christoph's note about libdisk to TODOKarel Zak2009-02-161-0/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: refresh TODO fileKarel Zak2009-02-161-12/+24
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add temporary libtool *.m4 stuffKarel Zak2009-02-168-16/+16393
| | | | | | | | | | 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>
* build-sys: libtoolize mount/Makefile.amKarel Zak2009-02-132-56/+52Star
| | | | | | | | * 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>
* build-sys: libtoolize by libtool-2Karel Zak2009-02-137-73/+58Star
| | | | | | | | | | 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>
* blkid: start to use ABI versioningKarel Zak2009-02-133-20/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* build-sys: add --with=fsprobe=builtinKarel Zak2009-02-132-9/+23
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add findfs(8)Karel Zak2009-02-115-3/+110
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: refresh TODO fileKarel Zak2009-02-111-26/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: clean up man pagesKarel Zak2009-02-116-13/+25
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add -L -U options (evaluation API)root2009-02-111-9/+40
| | | | Signed-off-by: root <root@nb.net.home>
* blkid: add blkid_evaluate_spec()Karel Zak2009-02-115-2/+280
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: move realpath.c code to lib/Karel Zak2009-02-1114-86/+103
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: fix typo (syntax error)Karel Zak2009-02-111-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: compile TEST_PROGRAMsKarel Zak2009-02-112-4/+20
| | | | | | | Well, the src/Makefile.am is not prefect. Maybe it's time to switch to libtools .... Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add support for /etc/blkid.conf fileKarel Zak2009-02-115-10/+260
| | | | | | | | | | | | | 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>
* blkid: add new options to blkid.8 and help outputKarel Zak2009-02-112-46/+67
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: support via raid version 2Sven Jost2009-02-111-1/+1
| | | | | | [kzak@redhat.com: patch from udev volume_id] Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: refresh TODO fileKarel Zak2009-02-111-14/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix typo in low-probe testKarel Zak2009-02-111-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: cleanup _LOGPROBE debug messagesKarel Zak2009-02-111-9/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add blkid_do_safeprobe()Karel Zak2009-02-118-7/+66
| | | | | | | | | | | | | | | | | | | 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>
* blkid: add lvm2 reg.testKarel Zak2009-02-112-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add version support to LVM2Karel Zak2009-02-111-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add GFS2 reg. testKarel Zak2009-02-112-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add uuid and version support to gfs2Karel Zak2009-02-111-6/+4Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add reg.tests for HFS and HFS+Karel Zak2009-02-114-0/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add vol_id call to blkid regression testKarel Zak2009-02-111-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>