summaryrefslogtreecommitdiff
path: root/fdisks
AgeCommit message (Collapse)AuthorFilesLines
2013-09-16fdisk: (sgi) don't try to convert MBR to SGIKarel Zak1-1/+2
.. because there don't have to be old MBR at all. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: make internal command line case sensitiveKarel Zak1-2/+7
Hey, this is Linux, year 2013... Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: use new menusKarel Zak4-78/+10
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: add bsd, dos and sgi menusKarel Zak1-6/+56
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: detect menu entries collisions in debug modeKarel Zak1-0/+50
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: add sun menuKarel Zak1-2/+23
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: add new stuff to display menusKarel Zak2-0/+213
fdisk menus: - driven by menu and menu_entry structs - supports normal and expect mode - supports multiple independent menus - supports menu separators to make output more readable - allows to exclude by whole menu or menu entries by label type TODO: - define per label menus - per menu callback - sensitive only to keys defined in the currently printed menu Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (gpt) add t, v and x to menuKarel Zak1-3/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: revert add 'G' to create SGI label to the main menuKarel Zak1-4/+0
'G' does not make sense, fdisk menus are case insensitive. Yes... Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: always allow 'p'rint command in expert menuKarel Zak1-5/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: add asktype "string" and support UUID partition changeKarel Zak2-3/+21
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: (sun) move driver from fdisk to libraryKarel Zak7-1048/+9
... and also add fdisk_info_new_partition() Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: add fdisk_scround()Karel Zak1-18/+18
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (gpt, sun) use fdisk_partname()Karel Zak1-5/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sun) use tt.c to list disk labelKarel Zak2-30/+63
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sun) consolidate 'p'rint outputKarel Zak2-28/+18
* use label operation list() * use generic fdisk geometry output for sun * don't duplicate geometry information Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: add fdisk_context_enable_details()Karel Zak1-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: add list() label operationKarel Zak1-9/+5
... and use it for GPT Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: add new 'ask' type TABLEKarel Zak1-0/+3
The new type could be used to print table-like output (for example list of the partitions). Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sun) remove dead codeKarel Zak2-9/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-07-15sfdisk: don't use word 'disk'.Karel Zak1-18/+18
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-07-09sfdisk: assigned value is never read [clang-analyzer]Sami Kerola1-1/+1
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-07-09docs: add missing options to sfdisk manualSami Kerola1-4/+22
And improve what is said about four of the dangerous options. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-07-09sfdisk: make unhiding as complete as possibleSami Kerola1-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>
2013-07-09docs: make description of --activate clearer on man page of sfdiskBenno Schulenberg1-16/+18
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-07-09docs: improve formatting and wording of man pages for fdisk and cfdiskBenno Schulenberg2-81/+80
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-07-01sfdisk: fix typoKarel Zak1-1/+1
Reported-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-07-01sfdisk: clean up unhide codeKarel Zak1-6/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-07-01sfdisk: replace my_warn() with warnx()Sami Kerola1-119/+104
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>
2013-07-01docs: correct sfdisk --activate instructionsSami Kerola1-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>
2013-07-01sfdisk: use program_invocation_short_name to determine program nameSami Kerola1-7/+2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-07-01sfdisk: clean up usage() functionsSami Kerola1-21/+18
Includes removal of unhide usage function, which was never implemented. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-07-01sfdisk: use libc error printing function, and symbolic exit valuesSami Kerola1-77/+43
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>
2013-06-13fdisk: add support for the MicroBlaze architectureNathan Rossi1-1/+2
Add support to fdisk for the MicroBlaze architecture. Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
2013-06-12fdisk: don't use ptes[] in generic codeKarel Zak2-3/+5
... the array is MBR specific. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-20cfdisk: add long options to the commandSami Kerola2-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>
2013-05-20sfdisk: don't call BLKRRPART for non-block devicesKarel Zak1-4/+6
Reported-by: Bertrand Jacquin <beber@meleeweb.net> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-09libfdisk: do not use va_list in the Ask APIKarel Zak1-10/+3
# 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>
2013-04-26textual: fixing typos in a warning and an error messageBenno Schulenberg1-1/+1
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-04-26cfdisk: fix ambiguous codeKarel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-26sfdisk: check writing to a file descriptor was successfulSami Kerola1-7/+23
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26cfdisk: check writing to a file descriptor was successfulSami Kerola1-2/+6
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26cfdisk: check writing to a file was successfulSami Kerola1-3/+15
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26Fix various typosYuri Chornoivan3-4/+4
2013-04-18fdisk: fix list typesKarel Zak1-13/+22
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-17fdisks: fix compiler warningKarel Zak1-2/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-09various: fix shadow declarations [smatch scan]Sami Kerola1-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>
2013-04-09various: fix variable and function declarations [smatch scan]Sami Kerola1-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>
2013-03-21build-sys: set dependence fdisk -> libfdisk -> libuuidKarel Zak1-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-21fdisk: remove unwanted operator [smatch scan]Karel Zak1-1/+1
Reported-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>