summaryrefslogtreecommitdiffstats
path: root/fdisk/fdisk.c
diff options
context:
space:
mode:
authorKarel Zak2009-03-11 14:00:21 +0100
committerKarel Zak2009-03-11 14:00:21 +0100
commit929f243f79c4fdf3e89dad5134e53bf001598a5e (patch)
tree16f02b38f82ccc64bd7b199c786cc732163ae0a1 /fdisk/fdisk.c
parentflock: add NLS support, remove tailing white-spaces (diff)
downloadkernel-qcow2-util-linux-929f243f79c4fdf3e89dad5134e53bf001598a5e.tar.gz
kernel-qcow2-util-linux-929f243f79c4fdf3e89dad5134e53bf001598a5e.tar.xz
kernel-qcow2-util-linux-929f243f79c4fdf3e89dad5134e53bf001598a5e.zip
lib: add is_whole_disk() from fdisk code
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisk/fdisk.c')
-rw-r--r--fdisk/fdisk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c
index 5593503b9..e3b6857f8 100644
--- a/fdisk/fdisk.c
+++ b/fdisk/fdisk.c
@@ -26,6 +26,7 @@
#include "blkdev.h"
#include "common.h"
#include "fdisk.h"
+#include "wholedisk.h"
#include "fdisksunlabel.h"
#include "fdisksgilabel.h"
@@ -2568,7 +2569,7 @@ tryprocpt(void) {
&ma, &mi, &sz, ptname) != 4)
continue;
snprintf(devname, sizeof(devname), "/dev/%s", ptname);
- if (is_probably_full_disk(devname))
+ if (is_whole_disk(devname))
try(devname, 0);
}
fclose(procpt);