summaryrefslogtreecommitdiffstats
path: root/libfdisk/samples
Commit message (Collapse)AuthorAgeFilesLines
* docs: fix typos [codespell]Sami Kerola2019-02-181-1/+1
| | | | | Reference: https://github.com/codespell-project/codespell Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* misc: fix typos using codespellRuediger Meier2018-02-161-2/+2
| | | | | | Some more funny typos, please review carefully. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* libfdisk: add --grain to mkpart sampleKarel Zak2017-08-221-1/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add --nopartno to mkpart sampleKarel Zak2017-08-011-6/+14
| | | | | | | | * disable dialogs for the mkpart sample * add --nopartno use-case to force libfdisk to use default partno(s) * add test for this feature Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: support default partno in mkpart-fullspec sampleKarel Zak2017-07-191-15/+36
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: use fdisk_sector_t consistently and fix printf format stringsRuediger Meier2017-07-181-3/+3
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: don't use errno in outputKarel Zak2017-07-122-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: don't hardcode label type in samplesKarel Zak2017-07-112-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add sample-fdisk-mkpart-fullspecKarel Zak2017-07-113-2/+195
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: do not use plain 0 as NULL [smatch scan]Sami Kerola2017-03-171-4/+4
| | | | | | Likewise commit 87918040658f2fa9b1bf78f1f8f4f5c065a2e3a3. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libfdisk: add sample-fdisk-mkpart binaryKarel Zak2017-02-172-0/+183
For example: # sample-fdisk-mkpart --device /dev/sdc 1M 2M 3M - 5M # fdisk -l /dev/sdc ... Device Boot Start End Sectors Size Id Type /dev/sdc1 2048 4095 2048 1M 83 Linux /dev/sdc2 4096 8191 4096 2M 83 Linux /dev/sdc3 8192 14335 6144 3M 83 Linux /dev/sdc4 14336 204799 190464 93M 5 Extended /dev/sdc5 16384 26623 10240 5M 83 Linux Addresses: https://github.com/karelzak/util-linux/issues/204 Signed-off-by: Karel Zak <kzak@redhat.com>