summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKarel Zak2009-03-11 14:00:21 +0100
committerKarel Zak2009-03-11 14:00:21 +0100
commit929f243f79c4fdf3e89dad5134e53bf001598a5e (patch)
tree16f02b38f82ccc64bd7b199c786cc732163ae0a1 /include
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 'include')
-rw-r--r--include/blkdev.h2
-rw-r--r--include/wholedisk.h7
2 files changed, 9 insertions, 0 deletions
diff --git a/include/blkdev.h b/include/blkdev.h
index 3cca79b94..9d9453bc7 100644
--- a/include/blkdev.h
+++ b/include/blkdev.h
@@ -3,6 +3,8 @@
#include <sys/types.h>
#include <sys/ioctl.h>
+#include <fcntl.h>
+#include <unistd.h>
#define DEFAULT_SECTOR_SIZE 512
diff --git a/include/wholedisk.h b/include/wholedisk.h
new file mode 100644
index 000000000..f367e4010
--- /dev/null
+++ b/include/wholedisk.h
@@ -0,0 +1,7 @@
+#ifndef WHOLEDISK_H
+#define WHOLEDISK_H
+
+extern int is_whole_disk(const char *name);
+
+#endif /* WHOLEDISK_H */
+