summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* build-sys: fix blkid.h include for old e2fsprogsKarel Zak2009-05-111-0/+4
| | | | | | | | | | | When building util-linux-ng-2.15, I get this: ../lib/fsprobe.c:10:19: error: blkid.h: No such file or directory Unfortunately, the blkid.pc uses -I${includedir}/blkidi since e2fsprogs v1.41.2. The old versions use -I${includedir} only. Reported-by: Robert Schwebel <r.schwebel@pengutronix.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: rename blkid_evaluate_spec to blkid_evaluate_tagKarel Zak2009-04-291-7/+7
| | | | | | | "SPEC" is usually used in mount(8) as a generic term for device name or tag (LABEL, UUID). The function blkid_evaluate_* works with TAGs only. Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: do not include <linux/fd.h> in ismounted.cAurelien Jarno2009-04-201-1/+0Star
| | | | | | | <linux/fd.h> is included for no reason in lib/ismounted.c. This obviously breaks on non-Linux systems. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* lib: fsprobe - fix gcc warningKarel Zak2009-03-161-1/+1
| | | | | | | 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 <kzak@redhat.com>
* lib: wholedisk - extend API, add test programKarel Zak2009-03-123-16/+40
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: pttype - extend the API to work with file descriptorsKarel Zak2009-03-121-7/+15
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: pttype: fix DOS detectionKarel Zak2009-03-121-7/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: pttype: add BSD subpartitions supportKarel Zak2009-03-121-2/+26
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: add pttype.c for PT types detectionKarel Zak2009-03-123-2/+264
| | | | | | | 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 <kzak@redhat.com>
* lib: add is_whole_disk() from fdisk codeKarel Zak2009-03-111-0/+31
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: fix fsprobe wrapper (const char * is nonsense)Karel Zak2009-03-031-21/+21
| | | | | | The fsprobe_ functions return newly allocated strings. Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: gcc warning in fix fsprobeKarel Zak2009-03-031-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add fsck binary to .gitignoreKarel Zak2009-02-181-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add fsck:ismounted reg.testKarel Zak2009-02-181-4/+7
| | | | 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>
* fsck: cosmetic changes (NLS, paths, ...)Karel Zak2009-02-181-3/+4
| | | | 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-181-0/+199
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use pkg-config for blkid and volume_idKarel Zak2009-02-171-1/+1
| | | | | | | | | | | | 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-171-0/+388
| | | | | | | | | | | | | | | | | | * 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>
* mount: move realpath.c code to lib/Karel Zak2009-02-111-0/+152
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: add __BYTE_ORDER to md5.cKarel Zak2008-12-081-1/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: blkdev.c clean up, non-linux supportSamuel Thibault2008-07-241-8/+59
| | | | | | | [kzak@redhat.com: split the original patch to small patches] Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: don't use get_linux_version() for non-linuxSamuel Thibault2008-07-241-2/+6
| | | | | | | | | | 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 <samuel.thibault@ens-lyon.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: ignore a bunch of generated files, mostly binariesJames Youngman2008-04-141-0/+1
| | | | | Signed-off-by: James Youngman <jay@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: move test_bkdev to lib/Karel Zak2007-11-281-0/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: add blkdev.{c,h}Stefan Krah2007-11-071-0/+93
| | | | | | | | | Now we duplicate BLK* ioctls on many places... This patch also fix BLKGETSIZE64 usage in dependence on kernel version. Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Stefan Krah <stefan@bytereef.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: add linux_version.{c,h}Stefan Krah2007-11-061-0/+25
| | | | | Signed-off-by: Stefan Krah <stefan@bytereef.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: do not build convenience libraries in lib/Stepan Kasal2007-05-161-7/+0Star
| | | | | | | Build lib/*.c individually for each project which uses it, so that the right set of flags is applied each time. Signed-off-by: Stepan Kasal <skasal@redhat.com>
* build-sys: remove generated autotools stuff from gitKarel Zak2007-01-031-486/+0Star
| | | | | | | The generated autotools stuff shouldn't be maintained by SCM. After check out from git use ./autogen.sh. For more details see README.devel. Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.13-pre6 tarball.Karel Zak2006-12-071-1/+1
|
* Imported from util-linux-2.13-pre4 tarball.Karel Zak2006-12-071-0/+2
|
* Imported from util-linux-2.13-pre3 tarball.Karel Zak2006-12-071-2/+2
|
* Imported from util-linux-2.13-pre2 tarball.Karel Zak2006-12-072-98/+62Star
|
* Imported from util-linux-2.13-pre1 tarball.Karel Zak2006-12-0720-581/+528Star
|
* Imported from util-linux-2.12a tarball.Karel Zak2006-12-072-19/+21
|
* Imported from util-linux-2.12 tarball.Karel Zak2006-12-071-1/+1
|
* Imported from util-linux-2.11x tarball.Karel Zak2006-12-074-1/+292
|
* Imported from util-linux-2.11t tarball.Karel Zak2006-12-073-3/+3
|
* Imported from util-linux-2.11m tarball.Karel Zak2006-12-071-0/+1
|
* Imported from util-linux-2.11f tarball.Karel Zak2006-12-071-2/+2
|
* Imported from util-linux-2.11b tarball.Karel Zak2006-12-076-8/+34
|
* Imported from util-linux-2.10s tarball.Karel Zak2006-12-076-4/+34
|
* Imported from util-linux-2.10f tarball.Karel Zak2006-12-076-180/+171Star
|
* Imported from util-linux-2.9v tarball.Karel Zak2006-12-076-15/+120
|
* Imported from util-linux-2.9i tarball.Karel Zak2006-12-078-0/+570