so to help problem understanding and solving
Signed-off-by: Anand Jain <[email protected]>
---
fs/btrfs/ioctl.c | 7 +++++++
1 file changed, 7 insertions(+)
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;
--
1.8.5.3
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html