diff options
author | David Sterba <dsterba@suse.com> | 2020-07-09 11:25:40 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-11-05 13:02:58 +0100 |
commit | a4852cf268b5ae487ba18f2b24e44094afce0675 (patch) | |
tree | caa9bd94dc36386da33ee6545065826f8baaaabb /fs/btrfs/scrub.c | |
parent | btrfs: clean up NULL checks in qgroup_unreserve_range() (diff) | |
download | linux-a4852cf268b5ae487ba18f2b24e44094afce0675.tar.xz linux-a4852cf268b5ae487ba18f2b24e44094afce0675.zip |
btrfs: scrub: update message regarding read-only status
Based on user feedback update the message printed when scrub fails to
start due to write requirements. To make a distinction add a device id
to the messages.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/scrub.c')
-rw-r--r-- | fs/btrfs/scrub.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index cf63f1e27a27..e71e7586e9eb 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -3866,8 +3866,9 @@ int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start, if (!is_dev_replace && !readonly && !test_bit(BTRFS_DEV_STATE_WRITEABLE, &dev->dev_state)) { mutex_unlock(&fs_info->fs_devices->device_list_mutex); - btrfs_err_in_rcu(fs_info, "scrub: device %s is not writable", - rcu_str_deref(dev->name)); + btrfs_err_in_rcu(fs_info, + "scrub on devid %llu: filesystem on %s is not writable", + devid, rcu_str_deref(dev->name)); ret = -EROFS; goto out; } |