libbtrfsutil: add btrfs_util_[gs]et_read_only()
commit172c0d1a1218187f20460988a3c3d6212748f825
authorOmar Sandoval <osandov@fb.com>
Thu, 18 Jan 2018 21:39:57 +0000 (18 13:39 -0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 6 Mar 2018 10:28:36 +0000 (6 11:28 +0100)
tree31c30ae8f17850224bcdff37c85ec0198d033f02
parent0d36261bd54a93b1b1b616bdd32d33b3f4278f09
libbtrfsutil: add btrfs_util_[gs]et_read_only()

In the future, btrfs_util_[gs]et_subvolume_flags() might be useful, but
since these are the only subvolume flags we've defined in all this time,
this will do for now.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
libbtrfsutil/btrfsutil.h
libbtrfsutil/python/btrfsutilpy.h
libbtrfsutil/python/module.c
libbtrfsutil/python/subvolume.c
libbtrfsutil/python/tests/test_subvolume.py
libbtrfsutil/subvolume.c