diff options
author | Karel Zak <kzak@redhat.com> | 2009-03-11 14:00:21 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2009-03-11 14:00:21 +0100 |
commit | 929f243f79c4fdf3e89dad5134e53bf001598a5e (patch) | |
tree | 16f02b38f82ccc64bd7b199c786cc732163ae0a1 /include | |
parent | db1749cf6c105a86adfc7246cb1ab60b1753f077 (diff) | |
download | util-linux-old-929f243f79c4fdf3e89dad5134e53bf001598a5e.tar.gz |
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.h | 2 | ||||
-rw-r--r-- | include/wholedisk.h | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/blkdev.h b/include/blkdev.h index 3cca79b9..9d9453bc 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 00000000..f367e401 --- /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 */ + |