summaryrefslogtreecommitdiffstats
path: root/disk-utils
Commit message (Collapse)AuthorAgeFilesLines
* libfdisk: (gpt) use generic API to change UUID and nameKarel Zak2014-10-071-2/+28
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (dos) implement fdisk_set_partition() backendKarel Zak2014-10-071-82/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: support -N for primary partitionsKarel Zak2014-10-071-4/+110
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: require confirmation before write to the deviceKarel Zak2014-10-071-37/+119
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: make yes/no dialogs more robustKarel Zak2014-10-071-4/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: improve UIKarel Zak2014-10-071-35/+105
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: cleanup script size= codeKarel Zak2014-10-071-4/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: return partno when add new partitionKarel Zak2014-10-073-13/+30
| | | | | | | * improve the way how sfdisk report results * the API change simplify applications Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: implement command_fdisk()Karel Zak2014-10-071-8/+129
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: cleanup comments and command_activate()Karel Zak2014-10-071-9/+29
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add --activateKarel Zak2014-10-071-7/+74
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add comments, remove unnecessary functionKarel Zak2014-10-071-12/+15
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add --show-sizeKarel Zak2014-10-071-6/+71
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: refactor /proc/partitions usageKarel Zak2014-10-072-33/+47
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: update usage()Karel Zak2014-10-071-2/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add --dump functionalityKarel Zak2014-10-071-15/+57
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: --list just one deviceKarel Zak2014-10-071-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: implement --listKarel Zak2014-10-072-27/+145
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: improve --list outputKarel Zak2014-10-073-1/+253
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: move --list functionality to separated fileKarel Zak2014-10-073-221/+7Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: basic main() and friendsKarel Zak2014-10-072-3188/+79Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* textual: use usage() text element macrosSami Kerola2014-10-011-3/+2Star
| | | | | | | Translating these text elements should happen only once, which is more likely when the text macros are used properly. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* textual: use manual tail usage() macroSami Kerola2014-10-012-1/+2
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* textual: use version printing macro everywhereSami Kerola2014-10-012-3/+2Star
| | | | | | | Only mount, umount, and blkid remains not using the macro because they are print also library references. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: update deprecation bannersSami Kerola2014-10-011-0/+9
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* cfdisk: don't modify ncurses LINES and COLSKarel Zak2014-10-011-29/+37
| | | | | | | | | | | | | | | | | | | | | | | | On Sun, Sep 28, 2014 at 01:48:38AM -0700, pv4 wrote: If ncurses is build with --enable-reentrant, building util-linux-2.25.1 fails with the folllowing error: disk-utils/cfdisk.c: In function 'resize': disk-utils/cfdisk.c:202:9: error: lvalue required as left operand of assignment LINES = ws.ws_row; ^ disk-utils/cfdisk.c:203:8: error: lvalue required as left operand of assignment COLS = ws.ws_col; ^ man COLS gives the following: Depending on the configuration, these may be actual variables, or macros (see curs_threads(3X)) which provide read-only access to curses's state. In either case, applications should treat them as read-only to avoid confusing the library. Addresses: https://github.com/karelzak/util-linux/issues/125 Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'misc' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2014-09-221-6/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'misc' of git://github.com/kerolasa/lelux-utiliteetit: textual: share crypt() error message in sulogin and newgrp newgrp: avoid use of obsolete getpass() function newgrp: use libc function to read gshadow if it is available setarch: use personality() system call when it is available setarch: reindent code hwclock: remove referal to deprecated keyboard interface eject: make open_device() and select_speed() to use struct eject_control eject: add struct eject_control to remove global variables mountpoint: simplify if statement mkfs.minix: fix couple compiler warnings mountpoint: add struct mountpoint_control last: improve code readability by renaming variable names last: make is_phantom() when kernel config does not include audit support lib: remove xgetpass() include: simplify fputc_careful() in carefulputc.h libuuid: add extern qualifiers to uuid/uuid.h system header
| * mkfs.minix: fix couple compiler warningsSami Kerola2014-09-191-6/+10
| | | | | | | | | | | | | | disk-utils/mkfs.minix.c:366:3: warning: ISO C forbids 'return' with expression, in function returning void [-Wpedantic] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | swapon: split swapon-common.cKarel Zak2014-09-222-8/+11
|/ | | | | | | | | | | swapon - requires libmount and libblkid swapoff - requires libmount swaplabel - requires libblkid This patch add lib/swapprober.c with blkid stuff for swap. It allows to use and link libblkid only when necessary. Signed-off-by: Karel Zak <kzak@redhat.com>
* fdformat: fixing copy'n'paste issue in the manualJaromir Capik2014-09-161-1/+1
| | | | The end track default is media specific, not zero.
* libfdisk: use reference counting for contextKarel Zak2014-08-283-7/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: fix typo in the previous commitKarel Zak2014-08-261-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: wrong interpretation of yes in non-english languageKarel Zak2014-08-261-2/+2
| | | | | Reported-by: tnut@nutyx.org Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: remove debug dump function, cleanup APIKarel Zak2014-08-221-1/+1
| | | | | | | The fdisk_dump_* prefix will be used for sfdisk-like functionality. The patch also add FDISK_ prefix to fdisk_get_unit() options. Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: fix fdisk_get_optimal_iosize() and update testsKarel Zak2014-08-201-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add independent debug stuffKarel Zak2014-08-153-22/+46
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: use libfdisk public API onlyKarel Zak2014-08-153-38/+61
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: use only public libfdisk APIKarel Zak2014-08-151-14/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: final parttype API cleanupKarel Zak2014-08-142-36/+43
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: move get_parttypes to label APIKarel Zak2014-08-142-7/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: make it possible to get fields for all labesKarel Zak2014-08-142-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: cleanup label geometry APIKarel Zak2014-08-141-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: cleanup fdisk_is_label stuffKarel Zak2014-08-133-15/+15
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: clean up API (alignment.c)Karel Zak2014-08-131-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: clean up API (context.c)Karel Zak2014-08-133-39/+39
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: add libfdisk independent debug stuffKarel Zak2014-08-131-33/+55
| | | | | | | | Now it's possible to use CFDISK_DEBUG=0xffff ./cfdisk to debug only cfdisk UI. Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: rename fdisk_column to fdisk_fieldKarel Zak2014-08-132-50/+43Star
| | | | | | .. to make the API and fdisk(s) code more readable. Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: remove dependence on libsmartcolsKarel Zak2014-08-133-31/+103
| | | | | | It's application business to convert libfdisk_table to string. Signed-off-by: Karel Zak <kzak@redhat.com>
* textual: remove some inconsistent periods from error messagesBenno Schulenberg2014-08-111-3/+3
| | | | | | While doing so, also improve translatability and some wordings. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* fdisk: update tests and clean up outputKarel Zak2014-08-081-5/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>