summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* build-sys: complete /libs to /shlibs renameKarel Zak2009-05-146-21/+19Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: rename /libs to /shlibsKarel Zak2009-05-1475-0/+0
| | | | | | | | On Wed, May 13, 2009 at 05:38:49AM -0400, Christoph Hellwig wrote: > Also the lib vs libs toplevel directories probably aren't a too good > choice. Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: make libuuid optionalKarel Zak2009-05-123-7/+0Star
| | | | | | | | | read.c:28:23: error: uuid/uuid.h: No such file or directory make[3]: *** [read.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... Reported-by: Olaf <mailinglists@ban-solms.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix blkid.h include for old e2fsprogsKarel Zak2009-05-112-1/+17
| | | | | | | | | | | 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>
* build-sys: fix "make -C" bugKarel Zak2009-05-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | Running: ./configure --with-fsprobe=builtin make -C mount mount causes the following error: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -include ../config.h -I../include -DLOCALEDIR=\"/home/matthew/util-linux-ng/share/locale\" -fsigned-char -I../libs/blkid/src -g -O2 -MT mount-setproctitle.o -MD -MP -MF .deps/mount-setproctitle.Tpo -c -o mount-setproctitle.o `test -f '../lib/setproctitle.c' || echo './'`../lib/setproctitle.c mv -f .deps/mount-setproctitle.Tpo .deps/mount-setproctitle.Po make -C make: option requires an argument -- 'C' Usage: make [options] [target] ... ... Reported-by: Matthew Burgess <matthew@linuxfromscratch.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: handle symlinks in /dev/loop/Mike Frysinger2009-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The loop_scandir() expects all the files in /dev/loop/ to be actual devices and not symlinks to devices. However, udev by default sets up symlinks in /dev/loop/ thereby breaking the fallback scan logic when looking for devices more than the default number of 8. Simple way to reproduce is: - <detach all devices> - cd /dev/loop - rm -f [2-7] - losetup 0 autogen.sh - mv 1 8 - for n in {1..7} ; do ln -s 0 $n ; done - losetup -f <error but should have found /dev/loop/8> [kay.sievers@vrfy.org: just a note, udev does not do that by default. It is devfs-nonsense, which the "default" never did.] Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reported-by: Mario Bachmann <grafgrimm77@gmx.de>
* lscpu: fix cpuid code on x86/PICMike Frysinger2009-05-111-3/+13
| | | | | | | | | | | | If we build lscpu as PIE, we currently get a build failure: lscpu.c: In function 'main': lscpu.c:333: error: can't find a register in class 'BREG' while reloading 'asm' lscpu.c:333: error: 'asm' operand has impossible constraints make[2]: *** [lscpu.o] Error 1 So we need a little bit of register shuffling to keep gcc happy. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* chrt: don't assume SCHED_BATCH and SCHED_IDLE existAurelien Jarno2009-05-072-4/+27
| | | | | | | | | | | | | | | | | | | | | | | | | SCHED_FIFO, SCHED_OTHER, SCHED_RR are part of POSIX 1003.1b Process Scheduling, so it is correct to assume they always exists. SCHED_BATCH and SCHED_IDLE are Linux specific, we should not assume they exists. Defining SCHED_BATCH and SCHED_IDLE to random values (ie the ones found on Linux systems) is not an option as they may *collide* with the one of other systems. For example on GNU/kFreeBSD we have: #define SCHED_RR 3 and on Linux we have: #define SCHED_BATCH 3 [kzak@redhat.com: - add "Linux specific" notes to chrt.1 - add a note about BATCH and PR conflict to this commit message] Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: Highlight today even when month or year specifiedRajeev V. Pillai2009-05-071-2/+5
| | | | | | | | * misc-utils/cal.c: Unconditionally call time() and highlight today where possible. Signed-off-by: Rajeev V. Pillai <rajeevvp@gmail.com> Signed-off-by: Pádraig Brady <P@draigBrady.com>
* build-sys: release++ (v2.15)Karel Zak2009-05-053-2/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update v2.15 ReleaseNotesKarel Zak2009-05-051-2/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update AUTHORS fileKarel Zak2009-05-051-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: use /sys/block/dm-<N>/dm/nameKarel Zak2009-05-051-1/+27
| | | | | | | | | | | The Linux kernel (since 2.6.29, patch 784aae735d9b0bba3f8b9faef4c8b30df3bf0128) exports the real DM device names in /sys/block/<ptname>/dm/name. The sysfs based solution is nicer and faster than scan for devno in /dev/mapper/. CC: Milan Broz <mbroz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: use /dev/mapper/<name> rather than /dev/dm-<N>Karel Zak2009-05-051-1/+12
| | | | | | | | | | | | | | | | | | | | The libblkid (since v1.41.1) returns private device-mapper names (e.g. /dev/dm-0). It's because the probe_one() function scans /dev before /dev/mapper. brw-rw---- 1 root disk 253, 0 2009-04-27 13:41 /dev/dm-0 brw-rw---- 1 root disk 253, 0 2009-04-27 13:41 /dev/mapper/TestVolGroup-TestLogVolume Old version: # blkid -t LABEL="TEST-LABEL" -o device /dev/dm-0 Fixed version: # blkid -t LABEL="TEST-LABEL" -o device /dev/mapper/TestVolGroup-TestLogVolume Addresses-Red-Hat-Bug: #497259 Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: linux_raid - fix logic for volumes with size == 0Karel Zak2009-04-292-16/+25
| | | | | | | | | | | | | Based on commit 7643819062985d9fc6c7664072576e71d3822b10 Author: Kay Sievers <kay.sievers@vrfy.org> Date: Sat Sep 6 16:23:21 2008 +0200 from udev upstream tree. Reported-by: Scott James Remnant <scott@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix -regex in run.shKarel Zak2009-04-291-2/+2
| | | | | Reported-by: Scott James Remnant <scott@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* po: merge changesKarel Zak2009-04-2924-2443/+3530
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* po: update id.po (from translationproject.org)Arif E. Nugroho2009-04-291-1049/+777Star
|
* po: update fr.po (from translationproject.org)Nicolas Provost2009-04-291-1192/+810Star
|
* po: update cs.po (from translationproject.org)Petr Pisar2009-04-291-797/+667Star
|
* blkid: rename blkid_evaluate_spec to blkid_evaluate_tagKarel Zak2009-04-298-17/+17
| | | | | | | "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>
* docs: add entry about /proc/partitions parsingKarel Zak2009-04-291-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: fix possible buffer overflowKarel Zak2009-04-291-4/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: fix max. ptnameKarel Zak2009-04-291-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blockdev: fix possible buffer overflowKarel Zak2009-04-291-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: split SONAME and LIBBLKID_VERSIONKarel Zak2009-04-286-25/+28
| | | | | | | | | | | | | | | It seems better to split SONAME and the public library version. The library version will be the same as util-linux-ng PACKAGE_VERSION. PACKAGE_VERSION: <maj>.<min>[-<suffix>] e.g. 2.15-rc2 Symbols versioning: BLKID_<maj>.<min> e.g. BLKID_2.15 blkid_get_library_version(): <maj>.<min>.0 e.g. 2.15.0 SONAME: libblkid.so.1 See also the original patch a0487b1cb5beffb8f6783476664b01e8833e0ea8 where was introduced library versioning. Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: fix "cannot seek on disk drive" bugKarel Zak2009-04-282-1/+3
| | | | | Addresses-Debian-Bug: #511161 Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: remove whole-disk entries from cache when partitions are foundEric Sandeen2009-04-241-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | We can get into a situation in blkid where whole disks remain in the cache, even though partitions are found. For labels such as sun disklabels which may have the first partition beginning at sector 0, this is even somewhat likely. 1) create a sun disklabel w/partitions 2) mkfs the first partition (at sector 0) 3) remove the partition table 4) run blkid - this finds the fs on the whole disk, places in cache 5) recreate the partition table 6) run blkid - this finds the partition, places in cache And now we have both /dev/sda and /dev/sda1 in cache. There are heuristics in probe_all to avoid putting the whole disk in cache if it has partitions, but there is nothing to remove the whole-disk entry in the above case. I think the below patch suffices, although I haven't quite convinced myself that setting the lens[which]=0; is the right logic for that bit of state... Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Karel Zak <kzak@redhat.com>
* agetty: IUCLC and OLCUC are Linux extensionsAurelien Jarno2009-04-231-0/+4
| | | | | | | IUCLC and OLCUC are Linux extensions to termios. The same way it is already done for XCASE, they can be ignored if not supported. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* losetup: mount endless loop hangKarel Zak2009-04-231-1/+5
| | | | | | | | | | | | Based on fix-hang-on-stale-nfs.diff from SUSE src.rpm package. It seems better to more precisely check for ENXIO rather than assume that all LOOP_GET_STATUS errors mean that the device is not used. Addresses-Novell-Bugzilla: #449646 Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: change Jens Axboe's emailKarel Zak2009-04-232-2/+2
| | | | | | | | Based on util-linux-2.14.2-schedutils_fix_email.patch from SUSE src.rpm package. Signed-off-by: Karel Zak <kzak@redhat.com>
* chrt: add a comment about non POSIX 1003.1b attributes in chrt.1Aurelien Jarno2009-04-231-0/+8
| | | | | | | Mention that only SCHED_FIFO, SCHED_OTHER and SCHED_RR are part of POSIX 1003.1b Process Scheduling in chrt.1. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* docs: add a note about /proc/sys/kernel/random/uuidKarel Zak2009-04-221-0/+6
| | | | 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>
* blkid: rename blkid_debug_init to blkid_init_debugKarel Zak2009-04-2012-16/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.15-rc2)Karel Zak2009-04-172-1/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update v2.15 ReleaseNotesKarel Zak2009-04-171-0/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* po: merge changesKarel Zak2009-04-1724-3120/+3360
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add tst_types.c to Makefile.amKarel Zak2009-04-171-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update AUTHORS fileKarel Zak2009-04-171-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* login: use open(2) rather then access(2) for $HOME/.hushloginKarel Zak2009-04-101-1/+16
| | | | | | | | | | As an NFS client with home directories on mounted NFS share - If the NFS server exports the share with default root squashed, login cannot access the filesystem to check for the existence of .hushlogin file. It seems better to use open(2) rather than access(2). Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add new requirements to TODO listKarel Zak2009-04-091-0/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add TODO note about blkid_evaluate_spec_to_buffer()Karel Zak2009-04-081-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: update TODOKarel Zak2009-04-061-11/+5Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add ZSF testKarel Zak2009-04-032-0/+3
| | | | | | Thanks to Andreas Dilger. Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add ZSF supportAndreas Dilger2009-04-034-2/+70
| | | | | Signed-off-by: Andreas Dilger <adilger@sun.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: check idinfo[] indexKarel Zak2009-04-031-1/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: Add strictatime supportMatthew Garrett2009-03-273-0/+14
| | | | | | | | 2.6.30 adds (patch d0adde574b8487ef30f69e2d08bba769e4be513f) support for a strictatime mount parameter, used to request strict atime update semantics. The following patch adds support for it to mount. Signed-off-by: Matthew Garrett <mjg@redhat.com>
* blkid: fix exit codes in blkid(8)Scott James Remnant2009-03-241-2/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: fix typo, cal(8) --> cal(1)Karel Zak2009-03-191-1/+1
| | | | | Reported-by: Pádraig Brady <P@draigBrady.com> Signed-off-by: Karel Zak <kzak@redhat.com>