aboutsummaryrefslogtreecommitdiffstats
path: root/disk-utils/sfdisk.c
AgeCommit message (Expand)AuthorFilesLines
2025-09-08libfdisk: improve collision reportingKarel Zak1-9/+19
2025-08-24sfdisk: reject spurious arguments for --reorder/--backup-pt-sectorsThomas Weißschuh1-12/+15
2025-06-30lib/strutils: add ul_ prefix to startswith() and endswith()Karel Zak1-3/+3
2025-05-29lib/colors: call gettext() only when the argument of --color is invalidBenno Schulenberg1-2/+1
2025-04-07Use the 'fallthrough' attributeMatteo Croce1-3/+3
2025-02-18sfdisk: make sure partition number > 0 [coverity scan]Karel Zak1-0/+2
2025-01-13Fix non-Linux buildSamuel Thibault1-0/+7
2024-10-14sfdisk: add --sector-size commanand line optionKarel Zak1-0/+14
2024-09-17sfdisk: add --discard-freeKarel Zak1-0/+75
2024-09-02sfdisk: ignore last-lba from script on --forceKarel Zak1-2/+8
2024-06-04*: spelling and grammar fixesVille Skyttä1-1/+1
2023-10-25Make the ways of using output stream consistent in usage()Masatake YAMATO1-4/+3
2022-08-11sfdisk: inform about failed fsync() [coverity scan]Karel Zak1-2/+3
2022-08-11sfdisk: improve code readability for coverity scanKarel Zak1-3/+3
2022-05-10fix various formatsRosen Penev1-4/+4
2021-12-09sfdisk add --backup-pt-sectorsKarel Zak1-2/+35
2021-11-08sfdisk: fix typo in --move-data when check partition sizeKarel Zak1-1/+1
2021-08-19sfdisk: write empty label also when only ignored partition specifiedKarel Zak1-2/+3
2021-06-18libfdisk: add and fix __format__ attributesKarel Zak1-2/+2
2021-03-25sfdisk: fix resources leak [coverity scan]Karel Zak1-0/+1
2021-02-23sfdisk: support for type="partition type name"Karel Zak1-0/+1
2020-11-06sfdisk: fix backward --move-dataKarel Zak1-6/+13
2020-11-04sfdisk: correct --json --dump false exclusiveDimitri John Ledkov1-1/+2
2020-10-16sfdisk: do not free device name too soon [coverity scan]Sami Kerola1-1/+2
2020-10-15sfdisk: disable bootbits protection on '--wipe always'Karel Zak1-2/+4
2020-09-30fdisk: always report fdisk_create_disklabel() errorsKarel Zak1-4/+5
2020-05-27sfdisk: add --lock and LOCK_BLOCK_DEVICEKarel Zak1-42/+46
2020-05-12sfdisk: avoid unneeded empty lines with '--list-free'Wolfram Sang1-7/+3
2020-05-11(s)fdisk: avoid unneeded empty lines with '--list'Wolfram Sang1-7/+3
2020-04-22sfdisk: only report I/O errors on --move-dataKarel Zak1-27/+31
2020-04-20[clang-tidy] do not use else after returnRosen Penev1-3/+9
2020-03-03Merge branch 'topic/fdisk'Karel Zak1-2/+5
2020-03-03sfdisk: extend --part-type, support aliasesKarel Zak1-2/+5
2020-03-02sfdisk: fix previous --append patch, improve man pageKarel Zak1-3/+6
2020-03-02sfdisk: fix --append to PT with gapsKarel Zak1-8/+9
2020-02-05sfdisk: add --relocate commandKarel Zak1-2/+49
2020-02-04sfdisk: fix ref-counting for the scriptKarel Zak1-0/+1
2020-02-04libfdisk: (script) accept sector-size, ignore unknown headersKarel Zak1-1/+5
2020-01-23sfdisk: add --disk-id to change disk UUID/IDKarel Zak1-0/+54
2020-01-23sfdisk: remove broken step alignment for --moveKarel Zak1-9/+4
2020-01-23sfdisk: make sure we do not overlap on --moveKarel Zak1-2/+12
2020-01-15sfdisk: remove never read value [clang scan]Karel Zak1-1/+0
2020-01-15sfdisk: check fdisk_script_set_header() return code [coverity scan]Karel Zak1-2/+2
2020-01-09docs: fix typos [fossies codespell scan]Karel Zak1-1/+1
2019-09-30sfdisk: (move-data) improve MiB/s progress barKarel Zak1-9/+19
2019-09-06sfdisk: (--move-data) add speed to progress bar, don't use POSIX_FADV_DONTNEEDKarel Zak1-9/+29
2019-09-06sfdisk: (--move-data) add simple progress barKarel Zak1-1/+18
2019-09-06sfdisk: add --move-use-fsync, disable fsync() by defaultKarel Zak1-1/+9
2019-09-06sfdisk: (--move-data) make log optionalKarel Zak1-28/+36
2019-09-06sfdisk: (--move-data) keep step size based on optimal I/OKarel Zak1-11/+13
2019-09-06sfdisk: make --no-act usable for --move-data tooKarel Zak1-31/+41
2019-09-05tests: update sfdisk wipe outputKarel Zak1-1/+1
2019-09-04fdisk: cleanup wipe warningKarel Zak1-3/+5
2019-09-03sfdisk: add -J between mutually exclusive optionsKarel Zak1-1/+1
2019-09-02sfdisk: mark --dump and --list-free as mutually exclusiveKarel Zak1-0/+1
2019-08-30sfdisk: write all message to stdoutKarel Zak1-1/+1
2019-08-24po: remove possibility to translate static option argumentsSami Kerola1-3/+6
2019-05-20sfdisk: use xstrcpy()Karel Zak1-1/+1
2019-05-18sfdisk: remove unnecessary size check [cppcheck]Sami Kerola1-2/+0
2019-05-14fdisk: initialize buffers for get_user_reply() [coverity scan]Karel Zak1-2/+2
2019-04-16misc: consolidate version printing and close_stdout()Karel Zak1-4/+2
2019-02-18various: fix 'uninitialized when used' warnings [clang]Sami Kerola1-1/+1
2019-02-18sfdisk: Avoid out of boundary read with readlineTobias Stoeckmann1-1/+3
2018-10-04sfdisk: disable --activate for Hybrid GPT/MBRKarel Zak1-0/+3
2018-10-04sfdisk: be more verbose about PMBR on --activateKarel Zak1-0/+2
2018-01-17include/debug: introduce __UL_INIT_DEBUG_FROM_STRING()Karel Zak1-1/+1
2018-01-09libfdisk: (script) support R (RAID) and V (LVM) shortcutsKarel Zak1-2/+2
2018-01-02sfdisk: wait before re-readKarel Zak1-1/+8
2017-11-03sfdisk: create empty label on 'write' commandKarel Zak1-1/+1
2017-11-02sfdisk: allow to disable bootable flag on all partitionsKarel Zak1-1/+5
2017-11-02sfdisk: allow to use --activate for PMBRKarel Zak1-3/+9
2017-07-14sfdisk: use fdisk_device_is_used()Karel Zak1-27/+1
2017-06-29misc: consolidate macro style USAGE_HELP_OPTIONSRuediger Meier1-1/+1
2017-06-27misc: introduce print_usage_help_options()Ruediger Meier1-2/+2
2017-06-26misc: cosmetics, remove argument from usage(FILE*)Ruediger Meier1-3/+4
2017-06-24include/c.h: add USAGE_COMMANDS and USAGE_COLUMNSJ William Piggott1-1/+1
2017-05-22sfdisk: disambiguate units of --show-sizeChris Morin1-2/+12
2017-05-17sfdisk: add hints for scanners [coverity scan]Karel Zak1-0/+2
2017-03-14fdisk, sfdisk: avoid non-ANSI function declarations [smatch scan]Sami Kerola1-0/+1
2017-03-13misc: stop mixing declarations and codeSami Kerola1-1/+1
2017-02-20misc: add static keyword to where needed [smatch scan]Sami Kerola1-1/+1
2017-02-20misc: do not use plain 0 as NULL [smatch scan]Sami Kerola1-1/+1
2017-02-14sfdisk: improve --wipe functionalityKarel Zak1-19/+35
2017-02-10sfdisk: --quiet fixesKarel Zak1-4/+6
2017-01-05sfdisk: unused parameter 'sf' [-Wunused-parameter]Karel Zak1-2/+7
2016-12-19Use --help suggestion on invalid optionKarel Zak1-1/+1
2016-11-30sfdisk: support empty label use-caseKarel Zak1-0/+17
2016-11-30sfdisk: cleanup --dump error messagesKarel Zak1-1/+4
2016-11-29sfdisk: don't be silent when list non-existing deviceKarel Zak1-6/+10
2016-10-04sfdisk: cleanup before going out of scope [coverity scan]Karel Zak1-5/+12
2016-10-04sfdisk: free before going out of scope [coverity scan]Karel Zak1-0/+2
2016-09-02sfdisk: add --no-tell-kernelKarel Zak1-3/+12
2016-08-31sfdisk: make non-interactive output more readableKarel Zak1-14/+26
2016-08-08sfdisk: add show-pt-geometry to usage() and sfdisk.8Karel Zak1-1/+2
2016-08-08sfdisk: Add --show-pt-geometry compatibility codeStanislav Brabec1-1/+4
2016-07-20Revert "sfdisk: exit with error if rereading partition table fails"Karel Zak1-1/+1
2016-05-31misc: Fix various typosSebastian Rasmussen1-5/+5
2016-05-05sfdisk: exit with error if rereading partition table failsVictor Dodon1-1/+1
2016-05-04sfdisk: add --wipe-partitions=auto|never|defaultKarel Zak1-5/+61
2016-03-16fdisk, cfdisk, sfdisk: improve the grammar of three messagesBenno Schulenberg1-2/+2
2016-03-16sfdisk: improve the wording of seven error messagesBenno Schulenberg1-7/+7
2016-03-10misc: remove duplicate includesKarel Zak1-1/+0
2016-03-10sfdisk, fdisk: add fflush()Karel Zak1-0/+2
2016-03-08Revert "include sysmacros.h where used"Karel Zak1-1/+0
2016-03-08include sysmacros.h where usedMike Frysinger1-0/+1
2016-03-07misc: again fixing many printf format stringsRuediger Meier1-7/+10
2016-03-07wipefs, sfdisk: include libgen.h for basename(3p)Ruediger Meier1-0/+1
2016-02-18sfdisk: add --wipeKarel Zak1-1/+31
2016-02-01sfdisk: make --quiet really quietKarel Zak1-3/+5
2015-09-17sfdisk: add --deleteKarel Zak1-0/+50
2015-09-17sfdisk: fix -N return code detection, add debug messagesKarel Zak1-5/+14
2015-09-09sfdisk: cleanup and optimize --move-dataKarel Zak1-20/+32
2015-09-08sfdisk: add --move-dataKarel Zak1-10/+199
2015-09-07sfdisk: add --reorderKarel Zak1-1/+39
2015-08-05cfdisk, sfdisk: remove unused variablesKarel Zak1-2/+1
2015-08-03textual: adjust grammar and punctuation of some messagesBenno Schulenberg1-14/+14
2015-07-28sfdisk: add --list-freeKarel Zak1-1/+33
2015-07-27fdisk: init libsmartcols debugKarel Zak1-0/+2
2015-06-17sfdisk: show that the command --verify optionally takes device namesBenno Schulenberg1-1/+1
2015-06-15sfdisk: add --jsonKarel Zak1-1/+9
2015-04-23libfdisk: (gpt) add extra check for First/Last LBAKarel Zak1-2/+3
2015-04-17sfdisk: don't use BLKRRPART to check loopdev usageKarel Zak1-1/+3
2015-04-16sfdisk: accept empty partitions from dumpKarel Zak1-3/+19
2015-04-13sfdisk: enable bootbits protectionKarel Zak1-0/+1
2015-04-13sfdisk: improve -N warningsKarel Zak1-2/+7
2015-03-27sfdisk: cleanup prompt usageKarel Zak1-6/+13
2015-03-26sfdisk: fix -a vs. -A bugKarel Zak1-6/+6
2015-03-25sfdisk: add readline supportKarel Zak1-8/+65
2015-02-25sfdisk: add missing --colorKarel Zak1-3/+15
2015-02-24rpmatch: use symbolic value when evaluation return codesSami Kerola1-1/+1
2015-02-16sfdisk: include rpmatch.hSami Kerola1-0/+1
2015-02-10textual: sort the options in the usage text of sfdisk alphabeticallyBenno Schulenberg1-7/+7
2015-01-28sfdisk: fix --id fallthrough [coverity scan]Karel Zak1-0/+1
2015-01-28libfdisk: support unknown partition types in sfdisk scriptsKarel Zak1-2/+2
2015-01-26libfdisk: don't use off_t in public APIKarel Zak1-3/+3
2015-01-26textual: fix various minor typosYuri Chornoivan1-10/+10
2015-01-26textual: fix spellos and inconsistencies in several program messagesBenno Schulenberg1-14/+14
2015-01-20libfdisk: accept Start offset in {B,M,G..}iB in sfdisk scriptsKarel Zak1-2/+3
2015-01-19sfdisk: fix --bytesKarel Zak1-4/+6
2015-01-19libfdiskL add API to print SIZE field in bytesKarel Zak1-2/+8
2015-01-06textual: add a docstring to most of the utilitiesBenno Schulenberg1-0/+3
2014-12-19sfdisk: in the usage text show -v for --version instead of -VBenno Schulenberg1-1/+1
2014-11-26libfdisk: rename and move functionKarel Zak1-2/+2
2014-11-20libfdisk: (dos) allow to maximize partitionKarel Zak1-0/+2
2014-10-31sfdisk: return deterministic value from sfdisk_deinit()Sami Kerola1-2/+1
2014-10-24include/debug: fix typoKarel Zak1-1/+1
2014-10-20sfdisk: fix compiler warnings about uninitialized variablesSami Kerola1-3/+3
2014-10-15libfdisk: cleanup parttype APIKarel Zak1-1/+1
2014-10-15libfdisk: make it possible to use zero for size and startKarel Zak1-1/+1
2014-10-13tests: add PMBR sfdisk testKarel Zak1-1/+1
2014-10-10sfdisk: leave on errorKarel Zak1-7/+10
2014-10-09sfdisk: ask on EOFKarel Zak1-1/+1
2014-10-08sfdisk: cleanup isatty() usageKarel Zak1-9/+10
2014-10-07sfdisk: add --label-nested for hybrid GPTKarel Zak1-1/+23
2014-10-07libfdisk: fix sun and sgi to be usable from sfdiskKarel Zak1-1/+6
2014-10-07sfdisk: add --output <list> for print command(s)Karel Zak1-1/+11
2014-10-07sfdisk: add --part-attrsKarel Zak1-0/+65
2014-10-07sfdisk: cleanup option namesKarel Zak1-33/+44
2014-10-07sfdisk: add --nameKarel Zak1-32/+94
2014-10-07sfdisk: add --uuid commandKarel Zak1-20/+107
2014-10-07sfdisk: add --appendKarel Zak1-7/+39
2014-10-07sfdisk: be sensitive to PT limitsKarel Zak1-2/+41
2014-10-07sfdisk: add --backup and --backup-fileKarel Zak1-13/+113
2014-10-07sfdisk: add --no-reread and --forceKarel Zak1-2/+50
2014-10-07sfdisk: add --no-actKarel Zak1-14/+26
2014-10-07sfdisk: add deprecated --LinuxKarel Zak1-2/+9
2014-10-07sfdisk: add --quietKarel Zak1-14/+28
2014-10-07sfdisk: add --unit and --show-geometry, update deprecated.txtKarel Zak1-5/+69
2014-10-07sfdisk: cleanup sync() usage, fix --activateKarel Zak1-8/+12
2014-10-07sfdisk: use fdisk_set_partition_type()Karel Zak1-20/+9
2014-10-07sfdisk: cleanup usage() and long optionsKarel Zak1-17/+20
2014-10-07sfdisk: add --parttypeKarel Zak1-11/+134
2014-10-07sfdisk: add --verifyKarel Zak1-11/+80
2014-10-07sfdisk: add --list-typesKarel Zak1-1/+46
2014-10-07sfdisk: add missing stuff to usage()Karel Zak1-1/+4
2014-10-07libfdisk: (dos) implement fdisk_set_partition() backendKarel Zak1-82/+1
2014-10-07sfdisk: support -N for primary partitionsKarel Zak1-4/+110
2014-10-07sfdisk: require confirmation before write to the deviceKarel Zak1-37/+119
2014-10-07sfdisk: improve UIKarel Zak1-35/+105
2014-10-07libfdisk: cleanup script size= codeKarel Zak1-4/+10
2014-10-07libfdisk: return partno when add new partitionKarel Zak1-11/+28
2014-10-07sfdisk: implement command_fdisk()Karel Zak1-8/+129
2014-10-07sfdisk: cleanup comments and command_activate()Karel Zak1-9/+29
2014-10-07sfdisk: add --activateKarel Zak1-7/+74
2014-10-07sfdisk: add comments, remove unnecessary functionKarel Zak1-12/+15
2014-10-07sfdisk: add --show-sizeKarel Zak1-6/+71
2014-10-07sfdisk: update usage()Karel Zak1-2/+5
2014-10-07sfdisk: add --dump functionalityKarel Zak1-15/+57
2014-10-07sfdisk: --list just one deviceKarel Zak1-2/+2
2014-10-07sfdisk: implement --listKarel Zak1-18/+136
2014-10-07sfdisk: basic main() and friendsKarel Zak1-3182/+69
2014-08-11textual: remove some inconsistent periods from error messagesBenno Schulenberg1-3/+3
2014-07-28sfdisk: use pluralized translation.Lauri Nurmi1-1/+2
2014-06-17sfdisk: use sysfs_devno_is_wholedisk()Karel Zak1-18/+30
2014-05-27sfdisk: suppress Linux-irrelevant warnings with -LPetr Uzel1-1/+1
2014-05-06textual: remove square brackets from around three dotsBenno Schulenberg1-3/+3
2014-03-11build-sys: ove fdisks to disk-utilsKarel Zak1-0/+3230
2006-12-07Imported from util-linux-2.9i tarball.v2.9iKarel Zak1-2857/+0
2006-12-07Imported from util-linux-2.8 tarball.v2.8Karel Zak1-19/+164
2006-12-07Imported from util-linux-2.7.1 tarball.v2.7.1Karel Zak1-0/+2712