btrfs-progs: open RW to register device using btrfs-control
authorAnand Jain <anand.jain@oracle.com>
Wed, 15 Oct 2014 00:46:54 +0000 (08:46 +0800)
committerDavid Sterba <dsterba@suse.cz>
Thu, 16 Oct 2014 10:08:59 +0000 (12:08 +0200)
commitbdac35cea24d11d3bcb6682038f907ba05484525
tree66e41f8711c8fd3f6e55071ee9e18137c7e10b41
parent38cfeef1033e254c0a1446fe6f4bbe6f30e1f5db
btrfs-progs: open RW to register device using btrfs-control

We are passing device path to be registered with in kernel,
so we need to open with RW

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
utils.c