diff options
author | Arne Jansen <sensille@gmx.net> | 2011-03-23 15:34:19 (GMT) |
---|---|---|
committer | Arne Jansen <sensille@gmx.net> | 2011-05-12 12:48:31 (GMT) |
commit | 8628764e1a5e1998a42b9713e9edea7753653d01 (patch) | |
tree | 19c88f4d4eb806f7d5de83a1fc36996658ace17d /fs/btrfs/ioctl.c | |
parent | 96e369208e65a7d017a52361fd572df41fde8472 (diff) | |
download | linux-fsl-qoriq-8628764e1a5e1998a42b9713e9edea7753653d01.tar.xz |
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.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 205cd01..f0a74f0 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -2547,7 +2547,7 @@ static long btrfs_ioctl_scrub(struct btrfs_root *root, void __user *arg) return PTR_ERR(sa); ret = btrfs_scrub_dev(root, sa->devid, sa->start, sa->end, - &sa->progress); + &sa->progress, sa->flags & BTRFS_SCRUB_READONLY); if (copy_to_user(arg, sa, sizeof(*sa))) ret = -EFAULT; |