diff options
author | Anand Jain <Anand.Jain@oracle.com> | 2013-10-22 13:53:22 +0800 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-10-24 05:57:44 -0400 |
commit | d33b2a48429563b3c777249ae03cfbecb13d9d07 (patch) | |
tree | ad1e58f2f53961c69f3644f3088f4758f1b5a60d /utils.h | |
parent | 811e993db4f447e577c87fb2a0539eb723798685 (diff) | |
download | btrfs-progs-d33b2a48429563b3c777249ae03cfbecb13d9d07.tar.gz |
btrfs-progs: filesystem show of specified mounted disk should work
Originally, thinking was user will use mount point if the disk
is mounted. But thats not really true, actually user don't
(or shouldn't) care to check if disk mounted, so whether disk
is mounted/unmounted when disk path is specified it should work.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -33,8 +33,9 @@ #define BTRFS_UPDATE_KERNEL 1 #define BTRFS_ARG_UNKNOWN 0 -#define BTRFS_ARG_PATH 1 +#define BTRFS_ARG_MNTPOINT 1 #define BTRFS_ARG_UUID 2 +#define BTRFS_ARG_BLKDEV 3 int make_btrfs(int fd, const char *device, const char *label, u64 blocks[6], u64 num_bytes, u32 nodesize, @@ -76,6 +77,7 @@ int set_label(const char *btrfs_dev, const char *label); char *__strncpy__null(char *dest, const char *src, size_t n); int is_block_device(const char *file); +int is_mount_point(const char *file); int open_path_or_dev_mnt(const char *path, DIR **dirstream); u64 btrfs_device_size(int fd, struct stat *st); /* Helper to always get proper size of the destination string */ |