diff options
Diffstat (limited to 'include/blkdev.h')
-rw-r--r-- | include/blkdev.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/blkdev.h b/include/blkdev.h index c994795a2..46fb2cef0 100644 --- a/include/blkdev.h +++ b/include/blkdev.h @@ -97,6 +97,9 @@ struct hd_geometry { /* are we working with block device? */ int is_blkdev(int fd); +/* open block device or file */ +int open_blkdev_or_file(const struct stat *st, const char *name, const int oflag); + /* Determine size in bytes */ off_t blkdev_find_size (int fd); |