aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fdisk.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/fdisk.c')
-rw-r--r--util-linux/fdisk.c80
1 files changed, 80 insertions, 0 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 32a66d03d..af8073532 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -6,6 +6,86 @@
6 * 6 *
7 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
8 */ 8 */
9//config:config FDISK
10//config: bool "fdisk"
11//config: default y
12//config: select PLATFORM_LINUX
13//config: help
14//config: The fdisk utility is used to divide hard disks into one or more
15//config: logical disks, which are generally called partitions. This utility
16//config: can be used to list and edit the set of partitions or BSD style
17//config: 'disk slices' that are defined on a hard drive.
18//config:
19//config:config FDISK_SUPPORT_LARGE_DISKS
20//config: bool "Support over 4GB disks"
21//config: default y
22//config: depends on FDISK
23//config: depends on !LFS # with LFS no special code is needed
24//config: help
25//config: Enable this option to support large disks > 4GB.
26//config:
27//config:config FEATURE_FDISK_WRITABLE
28//config: bool "Write support"
29//config: default y
30//config: depends on FDISK
31//config: help
32//config: Enabling this option allows you to create or change a partition table
33//config: and write those changes out to disk. If you leave this option
34//config: disabled, you will only be able to view the partition table.
35//config:
36//config:config FEATURE_AIX_LABEL
37//config: bool "Support AIX disklabels"
38//config: default n
39//config: depends on FDISK && FEATURE_FDISK_WRITABLE
40//config: help
41//config: Enabling this option allows you to create or change AIX disklabels.
42//config: Most people can safely leave this option disabled.
43//config:
44//config:config FEATURE_SGI_LABEL
45//config: bool "Support SGI disklabels"
46//config: default n
47//config: depends on FDISK && FEATURE_FDISK_WRITABLE
48//config: help
49//config: Enabling this option allows you to create or change SGI disklabels.
50//config: Most people can safely leave this option disabled.
51//config:
52//config:config FEATURE_SUN_LABEL
53//config: bool "Support SUN disklabels"
54//config: default n
55//config: depends on FDISK && FEATURE_FDISK_WRITABLE
56//config: help
57//config: Enabling this option allows you to create or change SUN disklabels.
58//config: Most people can safely leave this option disabled.
59//config:
60//config:config FEATURE_OSF_LABEL
61//config: bool "Support BSD disklabels"
62//config: default n
63//config: depends on FDISK && FEATURE_FDISK_WRITABLE
64//config: help
65//config: Enabling this option allows you to create or change BSD disklabels
66//config: and define and edit BSD disk slices.
67//config:
68//config:config FEATURE_GPT_LABEL
69//config: bool "Support GPT disklabels"
70//config: default n
71//config: depends on FDISK && FEATURE_FDISK_WRITABLE
72//config: help
73//config: Enabling this option allows you to view GUID Partition Table
74//config: disklabels.
75//config:
76//config:config FEATURE_FDISK_ADVANCED
77//config: bool "Support expert mode"
78//config: default y
79//config: depends on FDISK && FEATURE_FDISK_WRITABLE
80//config: help
81//config: Enabling this option allows you to do terribly unsafe things like
82//config: define arbitrary drive geometry, move the beginning of data in a
83//config: partition, and similarly evil things. Unless you have a very good
84//config: reason you would be wise to leave this disabled.
85
86//applet:IF_FDISK(APPLET(fdisk, BB_DIR_SBIN, BB_SUID_DROP))
87
88//kbuild:lib-$(CONFIG_FDISK) += fdisk.o
9 89
10/* Looks like someone forgot to add this to config system */ 90/* Looks like someone forgot to add this to config system */
11//usage:#ifndef ENABLE_FEATURE_FDISK_BLKSIZE 91//usage:#ifndef ENABLE_FEATURE_FDISK_BLKSIZE