summaryrefslogtreecommitdiff
path: root/extent_io.c
diff options
context:
space:
mode:
authorZhao Lei <zhaolei@cn.fujitsu.com>2015-10-12 21:23:04 +0800
committerDavid Sterba <dsterba@suse.com>2015-11-02 09:35:02 +0100
commit14ac9851462c29f3f97355df5b4c3c9f1953c043 (patch)
tree2cb62539b0eb9a368cc5d0508a06b65b86319155 /extent_io.c
parent0b4e2d0c8a02e3eaaeca47bb306692ab76a0a200 (diff)
btrfs-progs: fragments: use btrfs_open_dir for btrfs-fragments command
We can use btrfs_open_dir() to check whether target dir is in btrfs's mount point before open, instead of checking it in deeper code, and return fuzzy error message. Before patch: ./btrfs-fragments -o 123 /mnt/tmp1 ERROR: can't perform the search After patch: # ./btrfs-fragments -o 123 /mnt/tmp1 ERROR: not a btrfs filesystem: /mnt/tmp1 Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'extent_io.c')
0 files changed, 0 insertions, 0 deletions