summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* blkid: fix shadow declarationSami Kerola2012-07-261-4/+4
| | | | | | | misc-utils/blkid.c:402:15: warning: declaration of 'usage' shadows a global declaration [-Wshadow] misc-utils/blkid.c:63:13: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* sulogin: fix shadow declarationSami Kerola2012-07-261-10/+10
| | | | | | | login-utils/sulogin.c:337:8: warning: declaration of 'sushell' shadows a global declaration [-Wshadow] login-utils/sulogin.c:332:13: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libmount: fix shadow declarationSami Kerola2012-07-261-1/+1
| | | | | | | libmount/src/tab_update.c:203:8: warning: declaration of 'rc' shadows a previous local [-Wshadow] libmount/src/tab_update.c:159:6: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* mkswap: fix shadow declarationSami Kerola2012-07-261-2/+2
| | | | | | | disk-utils/mkswap.c:366:57: warning: declaration of 'is_blkdev' shadows a global declaration [-Wshadow] ./include/blkdev.h:92:5: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: look: add words fileSami Kerola2012-07-262-3/+4
| | | | | | Archlinux words 2.0-4 package does not have 'apple-pie' in words file. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: partx changed default output formatSami Kerola2012-07-265-15/+20
| | | | | Reference: commit 7cfd1b26437acd45f1e2e75c9648afabb8f5b2da Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* lsblk: add read-ahead column.Milan Broz2012-07-261-0/+8
| | | | Signed-off-by: Milan Broz <mbroz@redhat.com>
* fdisk: API: comment labels arrayDavidlohr Bueso2012-07-261-1/+3
| | | | Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* fdisk: API: fix fdisk_add_partition comment styleDavidlohr Bueso2012-07-261-1/+1
| | | | Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* build-sys: add -Wall to warningsKarel Zak2012-07-261-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* utmpdump: fix compiler warning [-Wunused-result]Karel Zak2012-07-262-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: fix compiler warning [-Wsign-compare]Karel Zak2012-07-261-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix compiler warning [-Wsign-compare]Karel Zak2012-07-261-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include/optutils: remove unnecessary exclusive_option()Karel Zak2012-07-261-14/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* wdctl: use err_exclusive_options()Karel Zak2012-07-261-9/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* prlimit: use err_exclusive_options()Karel Zak2012-07-261-10/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: use err_exclusive_options()Karel Zak2012-07-261-33/+14Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: use err_exclusive_options()Karel Zak2012-07-261-18/+10Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: use err_exclusive_options()Karel Zak2012-07-261-19/+9Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: use err_exclusive_options()Karel Zak2012-07-261-58/+32Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: use err_exclusive_options()Karel Zak2012-07-261-20/+10Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* chcpu: use err_exclusive_options()Karel Zak2012-07-261-15/+9Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* wipefs: use err_exclusive_options()Karel Zak2012-07-261-9/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: use err_exclusive_options()Karel Zak2012-07-261-19/+12Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: use err_exclusive_options()Karel Zak2012-07-261-32/+13Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: use err_exclusive_options()Karel Zak2012-07-261-8/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* partx: use err_exclusive_options()Karel Zak2012-07-261-7/+15
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include/optutils: add err_exclusive_options()Karel Zak2012-07-261-0/+75
| | | | | | | | | | | This is improved implementation of exclusive_option(). The new implementation: - uses regular struct option to compose error messages - relationships between options are described in one const static array - the current status is stored in one int array Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: fix dm_name usageKarel Zak2012-07-251-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* agetty: remove unnecessary sleep(10)Mantas Mikulėnas2012-07-251-2/+0Star
| | | | | | | I'm quite sure this is not supposed to be here (apparently added as part of commit 783b08fc1c6e5c906e). Signed-off-by: Mantas Mikulėnas <grawity@gmail.com>
* Revert "fdisk: de-duplicate disk label strings"Karel Zak2012-07-241-3/+3
| | | | | | | | ... because it's not expected that fdisk_label will be exported by API and accessible for applications (like fdisk.c). It's private libfdisk stuff. This reverts commit e7818642600d6cd573a8e1ed5363fce52def5821.
* fdisk: de-duplicate disk label stringsBernhard Voelker2012-07-241-3/+3
| | | | Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* fdisk: return success from sgi_create_disklabelPetr Uzel2012-07-241-0/+1
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* fdisk: fix compiler warning [-Werror=unused-variable]Petr Uzel2012-07-241-1/+0Star
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* dmesg: add fileback for SEEK_DATAKarel Zak2012-07-241-0/+11
| | | | | Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: don't ignore 1MiB granularity on 512-byte sector devicesKarel Zak2012-07-241-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | Note that +10MB is 100000 (10^N) and relative values (+<size> convention) should be be aligned to the default grain (= 1 MiB). Old version: Last sector, +sectors or +size{K,M,G} (2048-2047999, default 2047999): +10MB Partition 1 of type Linux and of size 9.5 MiB is set ... /dev/loop0p1 2048 21578 9765+ 83 Linux /dev/loop0p2 21579 43062 10742 83 Linux New version: Last sector, +sectors or +size{K,M,G} (2048-2047999, default 2047999): +10MB Partition 1 of type Linux and of size 10 MiB is set ... /dev/loop0p1 2048 22527 10240 83 Linux /dev/loop0p2 22528 43007 10240 83 Linux Addresses: http://thread.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/5913/focus=5929 Reported-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: remove unused variablesKarel Zak2012-07-241-4/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: make label API more robustKarel Zak2012-07-241-9/+27
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: API: add fdisk_label_changeDavidlohr Bueso2012-07-2412-56/+75
| | | | | | | | [kzak@redhat.com: - rename function - remove fdisk_create_default_disklabel()] Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* fdisk: API: add verify to label operationsDavidlohr Bueso2012-07-2411-96/+122
| | | | | | | [kzak@redhat.com: - rename some functions] Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: API: add new partition to label operationsDavidlohr Bueso2012-07-2412-84/+108
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* fdisk: API: add write to label operationsDavidlohr Bueso2012-07-2412-64/+104
| | | | | | | | [kzak@redhat.com: - rename functions - use errno] Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* fdisk: API: add delete partition to label operationsDavidlohr Bueso2012-07-2312-97/+107
| | | | | Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: set label pointer in fdisk_create_default_disklabel()Karel Zak2012-07-231-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: API: add to label operations to contextDavidlohr Bueso2012-07-233-21/+29
| | | | | | | | | | | The context structure is the fdisk API's main data type as it keeps all data together. Add the label structure to it, so that the pt-specific operations can be called from the context. [kzak@redhat.com: - merge with latest changes - don't allocate the label, use const pointer] Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* fdisk: rename cxt->mbr buffer to cxt->firstsectorKarel Zak2012-07-2311-36/+36
| | | | | | | MBR is regular name for DOS partition table, let use less confusing name for the buffer. Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: move label specific stuff to fdiskdoslabel.cKarel Zak2012-07-235-9/+15
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: move DOS geometry code from generic part to label specificKarel Zak2012-07-234-57/+65
| | | | | | get_partition_table_geometry() should be called from DOS code Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update oddinput testKarel Zak2012-07-231-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: fix error message for too small devicesKarel Zak2012-07-231-1/+4
| | | | | | | | | | | # touch ~/a # fdisk -l ~/a # fdisk: cannot open /root/a: Success should be (at least): fdisk: cannot open /root/a: Invalid argument Signed-off-by: Karel Zak <kzak@redhat.com>