summaryrefslogtreecommitdiffstats
path: root/fdisks/fdisk.c
diff options
context:
space:
mode:
authorKarel Zak2013-05-02 11:23:25 +0200
committerKarel Zak2013-09-16 16:46:53 +0200
commita5c1b0fa2079b3584c8b71548f95391879b685b0 (patch)
tree09132e0d50ee79c3e103992841df5e5c0d6a1c44 /fdisks/fdisk.c
parentlibfdisk: add list() label operation (diff)
downloadkernel-qcow2-util-linux-a5c1b0fa2079b3584c8b71548f95391879b685b0.tar.gz
kernel-qcow2-util-linux-a5c1b0fa2079b3584c8b71548f95391879b685b0.tar.xz
kernel-qcow2-util-linux-a5c1b0fa2079b3584c8b71548f95391879b685b0.zip
libfdisk: add fdisk_context_enable_details()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisk.c')
-rw-r--r--fdisks/fdisk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c
index 3da40b6a9..570d61def 100644
--- a/fdisks/fdisk.c
+++ b/fdisks/fdisk.c
@@ -810,6 +810,8 @@ expert_command_prompt(struct fdisk_context *cxt)
assert(cxt);
+ fdisk_context_enable_details(cxt, 1);
+
while(1) {
assert(cxt->label);
@@ -875,6 +877,7 @@ expert_command_prompt(struct fdisk_context *cxt)
case 'q':
handle_quit(cxt);
case 'r':
+ fdisk_context_enable_details(cxt, 0);
return;
case 's':
user_sectors = read_int(cxt, 1, cxt->geom.sectors, 63, 0,