summaryrefslogtreecommitdiffstats
path: root/fdisks
Commit message (Collapse)AuthorAgeFilesLines
* sfdisk: don't use word 'disk'.Karel Zak2013-07-151-18/+18
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: assigned value is never read [clang-analyzer]Sami Kerola2013-07-091-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: add missing options to sfdisk manualSami Kerola2013-07-091-4/+22
| | | | | | And improve what is said about four of the dangerous options. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* sfdisk: make unhiding as complete as possibleSami Kerola2013-07-091-1/+2
| | | | | | | | | | | | It is unlikely anyone will ever need this, but I like idea commands being complete. The partition id's that can be unhide after this change are; Hidden HPFS/NTFS Hidden W95 FAT32 Hidden W95 FAT32 (LBA) Hidden W95 FAT16 (LBA) Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: make description of --activate clearer on man page of sfdiskBenno Schulenberg2013-07-091-16/+18
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: improve formatting and wording of man pages for fdisk and cfdiskBenno Schulenberg2013-07-092-81/+80Star
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* sfdisk: fix typoKarel Zak2013-07-011-1/+1
| | | | | Reported-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: clean up unhide codeKarel Zak2013-07-011-6/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: replace my_warn() with warnx()Sami Kerola2013-07-011-119/+104Star
| | | | | | | | | | | | | This change adds program name in front of error messages. Often that helps user to know which command sent message, when the command is executed as part of script. Unfortunately the prefixing can break scripts, as someone might have wrote automation which expects output in the format it has always been. In programmer terms, the change has an ABI change, which some may find annoying. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: correct sfdisk --activate instructionsSami Kerola2013-07-011-2/+31
| | | | | | | | | The activate can be enabled by renaming the command to 'activate'. Quite confusingly the option and command arguments are interchangeable, and depending on which one is defined as --activate option argument the command will behave different rather different ways. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* sfdisk: use program_invocation_short_name to determine program nameSami Kerola2013-07-011-7/+2Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* sfdisk: clean up usage() functionsSami Kerola2013-07-011-21/+18Star
| | | | | | Includes removal of unhide usage function, which was never implemented. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* sfdisk: use libc error printing function, and symbolic exit valuesSami Kerola2013-07-011-77/+43Star
| | | | | | | | The commit removes all references to perror(), and replaces them with either warn() or err(). References: http://marc.info/?l=util-linux-ng&m=137060043804592&w=2 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fdisk: add support for the MicroBlaze architectureNathan Rossi2013-06-131-1/+2
| | | | | | Add support to fdisk for the MicroBlaze architecture. Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
* fdisk: don't use ptes[] in generic codeKarel Zak2013-06-122-3/+5
| | | | | | ... the array is MBR specific. Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: add long options to the commandSami Kerola2013-05-202-37/+52
| | | | | | | | | Includes update to bash completion, and manual as well. [kzak@redhat.com: - remove <<< syntax from bash-completion script] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: don't call BLKRRPART for non-block devicesKarel Zak2013-05-201-4/+6
| | | | | Reported-by: Bertrand Jacquin <beber@meleeweb.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: do not use va_list in the Ask APIKarel Zak2013-05-091-10/+3Star
| | | | | | | | | | | | | | | | # fdisk /dev/sda Welcome to fdisk (util-linux 2.23). [...] Command (m for help): a Segmentation fault (core dumped) It's too fragile, the va_list implementation is architecture specific and it seems we need such thing in libfdisk at all. Reported-by: "Gabor Z. Papp" <gzp@papp.hu> Signed-off-by: Karel Zak <kzak@redhat.com>
* textual: fixing typos in a warning and an error messageBenno Schulenberg2013-04-261-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* cfdisk: fix ambiguous codeKarel Zak2013-04-261-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: check writing to a file descriptor was successfulSami Kerola2013-04-261-7/+23
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* cfdisk: check writing to a file descriptor was successfulSami Kerola2013-04-261-2/+6
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* cfdisk: check writing to a file was successfulSami Kerola2013-04-261-3/+15
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* Fix various typosYuri Chornoivan2013-04-263-4/+4
|
* fdisk: fix list typesKarel Zak2013-04-181-13/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisks: fix compiler warningKarel Zak2013-04-171-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* various: fix shadow declarations [smatch scan]Sami Kerola2013-04-091-19/+19
| | | | | | | | | | | | | | | | | | | | | | libmount/src/tab.c:990:34: warning: symbol 'fs' shadows an earlier one libmount/src/tab.c:970:26: originally declared here misc-utils/findmnt.c:492:30: warning: symbol 'tmp' shadows an earlier one misc-utils/findmnt.c:473:14: originally declared here fdisks/fdiskdoslabel.c:211:36: warning: symbol 'pe' shadows an earlier one fdisks/fdiskdoslabel.c:180:20: originally declared here fdisks/fdiskdoslabel.c:639:34: warning: symbol 'i' shadows an earlier one fdisks/fdiskdoslabel.c:578:16: originally declared here fdisks/fdiskdoslabel.c:947:21: warning: symbol 'i' shadows an earlier one fdisks/fdiskdoslabel.c:924:16: originally declared here fdisks/fdiskdoslabel.c:976:29: warning: symbol 'i' shadows an earlier one fdisks/fdiskdoslabel.c:924:16: originally declared here fdisks/fdiskdoslabel.c:984:29: warning: symbol 'i' shadows an earlier one fdisks/fdiskdoslabel.c:924:16: originally declared here [kzak@redhat.com: - don't use local 'tmp' in findmnt.c] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* various: fix variable and function declarations [smatch scan]Sami Kerola2013-04-091-4/+4
| | | | | | | | | | | | | | | | | disk-utils/fsck.minix.c:511:9: warning: mixing declarations and code fdisks/sfdisk.c:982:5: warning: mixing declarations and code fdisks/sfdisk.c:1254:5: warning: mixing declarations and code fdisks/sfdisk.c:1564:5: warning: mixing declarations and code lib/mbsalign.c:279:7: warning: mixing declarations and code libblkid/src/devname.c:378:17: warning: mixing declarations and code libfdisk/src/alignment.c:219:9: warning: mixing declarations and code term-utils/wall.c:111:9: warning: mixing declarations and code text-utils/col.c:418:19: warning: non-ANSI function declaration of function 'flush_blanks' text-utils/col.c:553:12: warning: non-ANSI function declaration of function 'alloc_line' text-utils/rev.c:105:9: warning: mixing declarations and code text-utils/tailf.c:245:9: warning: mixing declarations and code Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: set dependence fdisk -> libfdisk -> libuuidKarel Zak2013-03-211-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: remove unwanted operator [smatch scan]Karel Zak2013-03-211-1/+1
| | | | | Reported-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: improve MBR detectionKarel Zak2013-03-121-0/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: no more AIX "support"Karel Zak2013-03-125-150/+1Star
| | | | | | | | The whole AIX support in fdisk has been limited to pretty poor AIX magic string detection and warning that the AIX is unsupported. It's too expensive to maintain such fdisk driver. Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: use comma in the ask-partition-number dialog (again)Karel Zak2013-03-121-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) support non-nested version tooKarel Zak2013-03-112-19/+6Star
| | | | | | | note that btrydev() should be unnecessary, regular list_table() should be enough for all types. Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: remove comma from ask number dialogKarel Zak2013-03-111-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: use fdisk_ask_partnum() everywhereKarel Zak2013-03-112-86/+29Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bds) use nested partition tableKarel Zak2013-03-113-34/+35
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) use new dialog to ask for prim. partitionsKarel Zak2013-03-111-27/+24Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add disk_partition_is_used()Karel Zak2013-03-111-15/+6Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (sun) cleanup header fileKarel Zak2013-03-111-3/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_partition_toggle_flag()Karel Zak2013-03-116-40/+105
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (sun) use fdisk_ prefix for label specific public functionsKarel Zak2013-03-113-18/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: remove global unit variablesKarel Zak2013-03-117-121/+120Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (sun) use yes/no from libfdiskKarel Zak2013-03-111-4/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add Yes/No to Ask APIKarel Zak2013-03-111-1/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (sun) use Ask API for new-partiton dialogKarel Zak2013-03-111-17/+64
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: sort menuKarel Zak2013-03-111-11/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: allow zero as default offset/sizeKarel Zak2013-03-111-6/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (sun) use fdisk_{info,warnx}Karel Zak2013-03-111-39/+49
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add 'G' to create SGI label to the main menuKarel Zak2013-03-111-1/+5
| | | | | | | | For unknown reason you have to go to the expert menu to create SGI label. It's inconsistent behavior as we have all "create label" operations in the main menu. Signed-off-by: Karel Zak <kzak@redhat.com>