diff options
author | Arne Jansen <sensille@gmx.net> | 2011-03-23 11:34:19 -0400 |
---|---|---|
committer | Arne Jansen <sensille@gmx.net> | 2011-05-12 08:48:31 -0400 |
commit | 8628764e1a5e1998a42b9713e9edea7753653d01 (patch) | |
tree | 19c88f4d4eb806f7d5de83a1fc36996658ace17d /fs/btrfs/ioctl.h | |
parent | 96e369208e65a7d017a52361fd572df41fde8472 (diff) |
btrfs: add readonly flag
setting the readonly flag prevents writes in case an error is detected
Signed-off-by: Arne Jansen <sensille@gmx.net>
Diffstat (limited to 'fs/btrfs/ioctl.h')
-rw-r--r-- | fs/btrfs/ioctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.h b/fs/btrfs/ioctl.h index 1a638ceeead8..e5e0ee2cad4e 100644 --- a/fs/btrfs/ioctl.h +++ b/fs/btrfs/ioctl.h | |||
@@ -81,6 +81,7 @@ struct btrfs_scrub_progress { | |||
81 | * Intermittent error. */ | 81 | * Intermittent error. */ |
82 | }; | 82 | }; |
83 | 83 | ||
84 | #define BTRFS_SCRUB_READONLY 1 | ||
84 | struct btrfs_ioctl_scrub_args { | 85 | struct btrfs_ioctl_scrub_args { |
85 | __u64 devid; /* in */ | 86 | __u64 devid; /* in */ |
86 | __u64 start; /* in */ | 87 | __u64 start; /* in */ |