btrfs: add readonly flag

setting the readonly flag prevents writes in case an error is detected

Signed-off-by: Arne Jansen <sensille@gmx.net>
This commit is contained in:
Arne Jansen
2011-03-23 16:34:19 +01:00
parent 96e369208e
commit 8628764e1a
4 changed files with 16 additions and 12 deletions

View File

@@ -81,6 +81,7 @@ struct btrfs_scrub_progress {
* Intermittent error. */
};
#define BTRFS_SCRUB_READONLY 1
struct btrfs_ioctl_scrub_args {
__u64 devid; /* in */
__u64 start; /* in */