Message ID | 1400519022-5540-4-git-send-email-anand.jain@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index e174770..ff27c08 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -3702,10 +3702,17 @@ static long btrfs_ioctl_scrub(struct file *file, void __user *arg) goto out; } + btrfs_info(root->fs_info, "Scrub started"); + ret = btrfs_scrub_dev(root->fs_info, sa->devid, sa->start, sa->end, &sa->progress, sa->flags & BTRFS_SCRUB_READONLY, 0); + if (ret) + btrfs_info(root->fs_info, "Scrub failed - %d", ret); + else + btrfs_info(root->fs_info, "Scrub finished"); + if (copy_to_user(arg, sa, sizeof(*sa))) ret = -EFAULT;
so to help problem understanding and solving Signed-off-by: Anand Jain <anand.jain@oracle.com> --- fs/btrfs/ioctl.c | 7 +++++++ 1 file changed, 7 insertions(+)