diff options
author | Zhao Lei <zhaolei@cn.fujitsu.com> | 2015-10-12 21:23:04 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-11-02 09:35:02 +0100 |
commit | 14ac9851462c29f3f97355df5b4c3c9f1953c043 (patch) | |
tree | 2cb62539b0eb9a368cc5d0508a06b65b86319155 /Makefile.extrawarn | |
parent | 0b4e2d0c8a02e3eaaeca47bb306692ab76a0a200 (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 'Makefile.extrawarn')
0 files changed, 0 insertions, 0 deletions