summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* build-sys: cleanup static buildingKarel Zak2009-11-054-6/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add superblocks.c sampleKarel Zak2009-11-023-1/+70
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add sector size funcs to blkid.h.inKarel Zak2009-11-021-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: add long options to mount.8Karel Zak2009-11-021-46/+26Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add regression test listing empty/nonsense imagesZdenek Behan2009-11-023-0/+52
| | | | Signed-off-by: Zdenek Behan <rain@matfyz.cz>
* mkswap: restore device argument in mkswap.8 synopsisPeter Breitenlohner2009-11-021-0/+1
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* wipefs: remove obsolete commentKarel Zak2009-10-301-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: refresh GPT regression testKarel Zak2009-10-301-5/+5
| | | | | | | The n+1 change has been introduced by commit 4c8e837230bb96dc3c447706d9c3b11e4167ba13. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: does not return useless binary dataKarel Zak2009-10-301-1/+1
| | | | | | | | | Currently, the binary blkid_probe_get_{topology,partitions}() API returns empty structs when information has not been gathered. This is confusing for applications. It's seems better to return NULL. Reported-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: topology - add logical and physical sector sizeKarel Zak2009-10-308-5/+99
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add HAVE_LIBBLKID_INTERNALKarel Zak2009-10-273-8/+7Star
| | | | | | | It's better to use one macro for all situations where we depends on in-tree (internal) libblkid. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add BLKID_{VERSION,DATE} to blkid.hKarel Zak2009-10-275-1/+13
| | | | | | | | The original e2fsprogs has BLKID_{VERSION,DATE} macros in blkid.h. Although the macros are not updated for many years in e2fsprogs. So I guess nobody uses it. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: return first detected crypto deviceScott James Remnant2009-10-261-4/+5
| | | | | | | | | | | | | Crypto devices may sometimes have multiple additional prober matches, however just like RAID, there's no danger of activating the wrong one since special help is needed to activate the block device before it can be used. Thus modify blkid_do_safeprobe() to break out of the loop when a crypto device is detected, as it does already for RAID. Signed-off-by: Scott James Remnant <scott@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add test cases for VMFSMike Hommey2009-10-264-0/+14
| | | | Signed-off-by: Mike Hommey <mh@glandium.org>
* mount: and libblkid: covert /dev/dm-N to /dev/mapper/<name>Karel Zak2009-10-263-29/+47
| | | | | | | | | | | | | * mount(8) uses private device-mapper names in mtab * libblkid returns private device-mapper names when evaluate udev /dev/disk-by symlinks. * on systems where DM is fully integrated with udev the /dev/mapper/<name> files are symlinks to /dev/dm-N. It means we need a special care to hide private device-mapper names. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: convert GPT partition LBA to 512-byte sectorsKarel Zak2009-10-221-4/+9
| | | | | | | | | | | | | | The libblkid keeps information about partitions in 512-byte counts. This patch: * convert GPT partition LBA to 512-byte sectors * fix n+1 bug in GPT partition size, because: "The partition is defined as all the logical blocks **inclusive** of the StartingLBA and EndingLBA." (UEFI 2.3) Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: use BLKSSZGET for GPT sectorsKarel Zak2009-10-223-12/+34
| | | | | | | | | | | | | | The current implementation uses fixed sector size (512 bytes), that's wrong. UEFI standard requires real logical sector size -- it means BLKSSZGET for Linux. The size of GPT header is not static, but whole sector is allocated for the header. In theory the HeaderSize field could be greater than sizeof(struct gpt_header). It means we have to read whole sector with the header, because the header crc32 checksum is counted according to HeaderSize. Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: fix typo in man pageKen Kopin2009-10-191-1/+1
| | | | Signed-off-by: LaMont Jones <lamont@debian.org>
* libblkid: topology - ignore non-blockdevsKarel Zak2009-10-191-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add support for topology ioctlsKarel Zak2009-10-194-0/+73
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: add 'unshare' and 'wipefs' to AUTHORSKarel Zak2009-10-191-1/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update AUTHORS fileKarel Zak2009-10-191-0/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* po: merge changesKarel Zak2009-10-1924-33868/+40930
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* po: update po/POTFILES.inKarel Zak2009-10-191-1/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* po: update vi.po (from translationproject.org)Clytie Siddall2009-10-191-556/+270Star
|
* po: update ja.po (from translationproject.org)Makoto Kato2009-10-191-817/+619Star
|
* po: update id.po (from translationproject.org)Arif E. Nugroho2009-10-191-710/+325Star
|
* po: update fr.po (from translationproject.org)Nicolas Provost2009-10-191-843/+359Star
|
* po: update fi.po (from translationproject.org)Lauri Nurmi2009-10-191-478/+204Star
|
* po: update cs.po (from translationproject.org)Petr Pisar2009-10-191-439/+198Star
|
* initctl: fix strict-aliasing bugsKarel Zak2009-10-171-2/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mkfs.minix: fix strict-aliasing bugsKarel Zak2009-10-171-2/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.minix: fix strict-aliasing bugsKarel Zak2009-10-171-1/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: fix strict-aliasing bugsKarel Zak2009-10-176-6/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc 4.4 produces tons of "dereferencing type-punned pointer will break strict-aliasing rules" warnings for fdisk code where is char buffer[BUFSIZ]; ((struct disklabel *) MBRBuffer)->foo There are two ways how fix the problem: 1/ union { char buffer[BUFSIZ], struct disklabel label } MBRBuffer; 2/ use allocated buffer, this way seems less invasive. This patch implements 2/. Old version: $ make -C fdisk | grep -c warning 236 New version: $ make -C fdisk | grep -c warning 0 About aliasing: - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40665 - http://cellperformance.beyond3d.com/articles/2006/06/understanding-strict-aliasing.html - C99 Signed-off-by: Karel Zak <kzak@redhat.com>
* Revert "build-sys: move fsck/mkfs for bfs/cramfs/minix to /usr"Karel Zak2009-10-161-7/+6Star
| | | | | | See http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/2689/focus=2690 This reverts commit d4fa971c42467fb69e5d89d28e1b98c491a1505a.
* fdisk: sgi label - remove duplicate swab16swab[16,32]() definitionsKarel Zak2009-10-162-17/+6Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add support for VMFS (VMware File System)Mike Hommey2009-10-164-2/+108
| | | | | Signed-off-by: Mike Hommey <mh@glandium.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: update docs/.gitignoreKarel Zak2009-10-161-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add missing packed attributesKarel Zak2009-10-1626-46/+50
| | | | | | | | This patch add __attribute__((packed)) to almost all superblock and disk label definitions. Well, in many cases this is not necessary, but it's a cheap way how to keep the code robust... Signed-off-by: Karel Zak <kzak@redhat.com>
* include: use c.h in canonicalize.hKarel Zak2009-10-161-4/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* namei: use c.hKarel Zak2009-10-161-4/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: use c.h in samplesKarel Zak2009-10-162-8/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* setterm: use c.h, remove tailing whitespaceKarel Zak2009-10-161-13/+9Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* newgrp: use c.h, remove tailing whitespaceKarel Zak2009-10-161-11/+5Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: use c.hKarel Zak2009-10-161-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* partx: use c.hKarel Zak2009-10-161-3/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: remove unused macroKarel Zak2009-10-161-2/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: use c.hKarel Zak2009-10-161-9/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* kill: use c.hKarel Zak2009-10-161-5/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: use c.hKarel Zak2009-10-163-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>