summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* mount: cleanup notes about -l option in mount.8Karel Zak2009-06-011-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: add --set-capacityKarel Zak2009-05-293-6/+50
| | | | | | | | | | | | | | | | | | | | | | The LOOP_SET_CAPACITY allows to resize loop device size. Example: # blockdev --getsize64 /dev/loop0 10485760 # dd if=/dev/zero of=/home/images/aaa.img count=10 bs=1M oflag=append conv=notrunc # blockdev --getsize64 /dev/loop0 10485760 # ./losetup --set-capacity /dev/loop0 # blockdev --getsize64 /dev/loop0 20971520 CC: J. R. Okajima <hooanon05@yahoo.co.jp> Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: use TAG parsing function from libblkidKarel Zak2009-05-292-22/+5Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: Allow setting the none classJakob Unterwurzacher2009-05-272-3/+6
| | | | | | | | | | Allow users to set the "none" class on processes. Using the none class has the distict advantage that the io priority is inherited from the cpu nice level. Update the man page to reflect the change. Signed-off-by: Jakob Unterwurzacher <jakobunt@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add device-mapper snapshot cow device probeMilan Broz2009-05-273-1/+12
| | | | | | | | | | The copy-on-write area of device-mapper snapshot has SnAp identifier, disk header is written directly by kernel. [kzak@redhat.com: - rename from "snap_cow" to "DM_snapshot_cow"] Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: fix LVM1 probeMilan Broz2009-05-271-11/+45
| | | | | | Fix LVM1 probe and UUID parse. Signed-off-by: Milan Broz <mbroz@redhat.com>
* hwclock: fix mismatched popen/fclose.John Keeping2009-05-271-1/+1
| | | | | | | date_child_fp is opened by popen, so should be closed with pclose. Signed-off-by: John Keeping <john.keeping@lineone.net> Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
* docs: add missing commands/projects to AUTHORS fileKarel Zak2009-05-271-5/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix script that creates lscpu dumpsKarel Zak2009-05-271-21/+12Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: move lscpu /proc and /sys dumps to tarballsKarel Zak2009-05-271207-2523/+11Star
| | | | | | It's easy to maintain few tarballs that tons of files. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: remove broken Xen dumps for lscpuKarel Zak2009-05-2732-111/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: don't run some mount tests for non-root usersKarel Zak2009-05-273-3/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix reiserfs testKarel Zak2009-05-271-1/+1
| | | | | | For more details see 5b3f8e4f961298a9ca296f8362a717c1a4dd2ee0. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add mdraid libblkid testKarel Zak2009-05-272-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix reiserfs nameKarel Zak2009-05-251-1/+1
| | | | | Reported-by: Jonas Karlsson <cj.karlsson@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix 'delete extended partition' checksumKarel Zak2009-05-221-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-uuiddKarel Zak2009-05-222-2/+19
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* uuidd: new command (UUID daemon from e2fsprogs)Karel Zak2009-05-228-1/+739
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libuuid: add .gitignoreKarel Zak2009-05-221-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* uuidgen: new command (from e2fsprogs)Karel Zak2009-05-224-1/+147
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-tlsKarel Zak2009-05-224-10/+81
| | | | | | | | | | | * add AX_TLS autoconf macro * add --disabletls option * cleanup gen_uuid.c code to remove gcc warnings when compiled without TLS macro. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: enable fsck by defaultKarel Zak2009-05-221-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-libblkid, remove volume_id supportKarel Zak2009-05-221-87/+72Star
| | | | | | | | | | | | | | | Supported scenarios: * internal libblkid (--enable-libblkid, default) * external libblkid (--disable-libblkid) - systems without pkg-config - systems with pkg-config * systems without libblkid at all (requires --disable-mount and --disable-fsck) Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: (and fsck) remove libvolume_id supportKarel Zak2009-05-223-145/+3Star
| | | | | | | The libvolume_id is deprecated in favor of libblkid. The libblkid from u-l-ng provides the same functionality as libvolume_id. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup libuuid stuffKarel Zak2009-05-223-19/+56
| | | | | | | | | | | | | | Supported scenarios: * internal libuuid (--enable-libuuid, default) * external libuuid (--disable-libuuid) - systems without pkg-config - systems with pkg-config * systems without libuuid at all (the library is optional for u-l-ng) Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix headers in mkswap and libblkidKarel Zak2009-05-222-3/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add UTIL_{SET,RESTORE}_FLAGSKarel Zak2009-05-221-9/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: update man pageKarel Zak2009-05-221-3/+32
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libuuid: add info about u-l-ng to man pagesKarel Zak2009-05-229-28/+36
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libuuid: add --disable-libuuid and LIBUUID_VERSIONKarel Zak2009-05-223-4/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libuuid: import UUID library from e2fsprogsKarel Zak2009-05-2233-1/+2579
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: fix undefined reference to `security_get_initial_context'Karel Zak2009-05-212-1/+6
| | | | | | | | | | > Gentoo-hardened stable have: sys-libs/libselinux-1.34.14 > I have: > mount.c:(.text+0x12ce): undefined reference to `security_get_initial_context' Reported-by: Максим Бритов <maxim.britov@gmail.com> Addresses-Gentoo-Bug: #270168 Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add simple test for doslabel stuffZdenek Behan2009-05-193-1/+101
| | | | | | | | | | | | Initial tests/fdisk patch to test most of the doslabel-related stuff. Coverage of dos-related functions is about 60%, does not test the verify/fix-PT code. [kzak@redhat.com: - fix test design to match to output/expect/diff idea] Signed-off-by: Zdenek Behan <rain@matfyz.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add functions for work withdisk imagesKarel Zak2009-05-191-5/+15
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (and cfdisk) fix to be consistent about maximum headsChris Webb2009-05-192-2/+2
| | | | | | | | | | | | | | | Fix fdisk and cfdisk to be consistent about maximum heads Without this patch, fdisk allows up to 256 heads to be set via the menu, but only up to 255 heads by command line -H. Similarly, cfdisk's -H option also enforces heads <= 255 instead of heads <= 256. The strange limit of 256 comes about because (heads - 1) should fit in a single byte for legacy CHS. Geometries of 256 heads and 32 sectors are seen in disks from other operating systems where cylinder-aligned partitions which are also aligned to a 4MB boundary are wanted. Signed-off-by: Chris Webb <chris@arachsys.com>
* cal: uClibc has langinfo.h but not _NL_TIME_WEEK_1STDAY.Tom Prince2009-05-192-1/+3
| | | | Signed-off-by: Tom Prince <cougar@hermes>
* blkid: cleanup debug messages and return codes in blkid_do_probe()Karel Zak2009-05-141-8/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: blkid_do_safeprobe() has to be tolerant to RAIDsKarel Zak2009-05-141-1/+8
| | | | | | | | It's pretty generic that RAID signature is on the same device as FS signature. We have to be tolerant and ignore filesystems signatures on such devices. The RAID signature is always preferred. Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: fix "hangs forever with partition type mdraid"Karel Zak2009-05-141-13/+15
| | | | | | | | | | | > #:> blkid /dev/sda7 > /dev/sda7: UUID="c193d159-1fd4-1a4b-4037-f3433e016f3d" TYPE="mdraid" > > The blkid binary build from the util-linux-ng sources just hangs > forever with 100% cpu load with the same command. Reported-by: Juergen Daubert <jue@jue.li> Signed-off-by: Karel Zak <kzak@redhat.com>
* 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>