summaryrefslogtreecommitdiffstats
path: root/fdisks
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* fdisk: (sun) remove dead codeKarel Zak2013-03-111-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (sun): use ask API, remove global variableKarel Zak2013-03-111-21/+50
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (sun) share disk label struct with libblkidKarel Zak2013-03-112-156/+87Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* inlude/pt-sun: add flags and tagsKarel Zak2013-03-111-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (sun) use cpu_to_be* macros, remove other_endian global variableKarel Zak2013-03-112-92/+68Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add callacks for info, warn and warnx Ask APIKarel Zak2013-03-111-0/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: extend "ask" API, add support for offsetsKarel Zak2013-03-111-16/+90
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add callback for ask-numbers APIKarel Zak2013-03-114-7/+119
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: correctly initialize pointer to sun labelKarel Zak2013-03-111-1/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: fix typoKarel Zak2013-03-111-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add FDISK_LABEL_FL_ADDPART_NOPARTNOKarel Zak2013-03-113-4/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: remove fdisk_label from API functions, add asserts, use size_tKarel Zak2013-03-117-205/+263
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (gpt) move code from fdisk to libfdiskKarel Zak2013-03-114-1820/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) kill 'partitions' global variableKarel Zak2013-03-118-166/+218
| | | | | | ... and use size_t for partition numbers Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add part_get_status operationKarel Zak2013-03-114-2/+105
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) move dos specific codeKarel Zak2013-03-112-6/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) move 'toggle active' code to fdiskdoslabe.cKarel Zak2013-03-113-15/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) move dos specific codeKarel Zak2013-03-113-20/+18Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: remove dead codeKarel Zak2013-03-111-6/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) move dos_list_table_expert() to fdiskdoslabe.cKarel Zak2013-03-114-132/+134
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>