Karel Zak
f01f252857
sfdisk: add --no-act
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:32 +02:00
Karel Zak
35ce145f6a
sfdisk: add deprecated --Linux
...
The sfdisk does not care about compatibility with classic DOS
partitioning, and it does not warn about incompatibility with DOS at
all. It means that --Linux is default and it's unnecessary to use
this option.
It's the same situation like with "--unit S", these options are very
probably often used in scripts, and these all is default now. So for
backward compatibility new sfdisk accepts these options on command
line, but prints "option is deprecated" warning message.
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:32 +02:00
Karel Zak
f0edb076ed
sfdisk: add --quiet
...
Note that original sfdisk implementation suppressed warning
messages for --quiet.
Now we keep warning and error messages visible, but suppress
extra info messages only (for example to make it more usable in
scripts). IMHO suppress warnings is bad idea.
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:32 +02:00
Karel Zak
d420a7f9f6
sfdisk: add --unit and --show-geometry, update deprecated.txt
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:32 +02:00
Karel Zak
21ca986d71
sfdisk: cleanup sync() usage, fix --activate
...
* use sync() only if we change disk layout
* don't use sync() when we change details (like partition type)
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:32 +02:00
Karel Zak
2e73a998f4
sfdisk: use fdisk_set_partition_type()
...
This is more simple than the generic fdisk_set_partition() API.
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:32 +02:00
Karel Zak
43a1ccecda
sfdisk: cleanup usage() and long options
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:31 +02:00
Karel Zak
8eab3194ce
sfdisk: add --parttype
...
The patch also makes --{id,change-id,print-id} deprecated in favour
of --parttype. The original --id is too generic option name and the
--print-id and --change-id are unnecessary and inconsistent with
another sfdisk options (e.g. we don't have --change-bootable)
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:31 +02:00
Karel Zak
d2c47697e1
sfdisk: add --verify
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:31 +02:00
Karel Zak
058dd97a1c
sfdisk: add --list-types
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:31 +02:00
Karel Zak
2aa36b7372
sfdisk: add missing stuff to usage()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:31 +02:00
Karel Zak
0ecf3ab504
libfdisk: (dos) implement fdisk_set_partition() backend
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:31 +02:00
Karel Zak
b4df449f53
sfdisk: support -N for primary partitions
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:31 +02:00
Karel Zak
e881349460
sfdisk: require confirmation before write to the device
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:31 +02:00
Karel Zak
3186f4a927
sfdisk: improve UI
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:31 +02:00
Karel Zak
d5bee4bb59
libfdisk: cleanup script size= code
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:31 +02:00
Karel Zak
c3bc748352
libfdisk: return partno when add new partition
...
* improve the way how sfdisk report results
* the API change simplify applications
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:31 +02:00
Karel Zak
7324f1bf8c
sfdisk: implement command_fdisk()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:31 +02:00
Karel Zak
254b1dfcc3
sfdisk: cleanup comments and command_activate()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:31 +02:00
Karel Zak
54b13b0c5c
sfdisk: add --activate
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:31 +02:00
Karel Zak
148f6e6d1c
sfdisk: add comments, remove unnecessary function
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:31 +02:00
Karel Zak
d2eb145785
sfdisk: add --show-size
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:31 +02:00
Karel Zak
e3bb13d96c
sfdisk: update usage()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:30 +02:00
Karel Zak
8a8d204cd1
sfdisk: add --dump functionality
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:30 +02:00
Karel Zak
207de32a97
sfdisk: --list just one device
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:30 +02:00
Karel Zak
9c1f9dd3a0
sfdisk: implement --list
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:30 +02:00
Karel Zak
1881390de2
sfdisk: basic main() and friends
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:30 +02:00
Benno Schulenberg
1d23119072
textual: remove some inconsistent periods from error messages
...
While doing so, also improve translatability and some wordings.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2014-08-11 14:51:54 +02:00
Lauri Nurmi
58ac82ae2f
sfdisk: use pluralized translation.
2014-07-28 11:45:30 +02:00
Karel Zak
83b69e409c
sfdisk: use sysfs_devno_is_wholedisk()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-17 12:16:05 +02:00
Petr Uzel
ee6369973e
sfdisk: suppress Linux-irrelevant warnings with -L
...
Sfdisk prints out a warning about extended partition not
starting at a cylinder boundary. Since this is irrelevant
for linux, the -L option should suppress this warning.
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2014-05-27 16:12:54 +02:00
Benno Schulenberg
aa06617f6e
textual: remove square brackets from around three dots
...
Also improve some option descriptions here and there.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2014-05-06 11:12:13 +02:00
Karel Zak
4ddd86d5d9
build-sys: ove fdisks to disk-utils
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-03-11 11:35:15 +01:00
Karel Zak
5c36a0eb7c
Imported from util-linux-2.9i tarball.
2006-12-07 00:25:37 +01:00
Karel Zak
2b6fc908bc
Imported from util-linux-2.8 tarball.
2006-12-07 00:25:35 +01:00
Karel Zak
fd6b7a7ffc
Imported from util-linux-2.7.1 tarball.
2006-12-07 00:25:34 +01:00