Skip to content

Commit a4852cf

Browse files
committed
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 <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent f07728d commit a4852cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fs/btrfs/scrub.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3866,8 +3866,9 @@ int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start,
38663866
if (!is_dev_replace && !readonly &&
38673867
!test_bit(BTRFS_DEV_STATE_WRITEABLE, &dev->dev_state)) {
38683868
mutex_unlock(&fs_info->fs_devices->device_list_mutex);
3869-
btrfs_err_in_rcu(fs_info, "scrub: device %s is not writable",
3870-
rcu_str_deref(dev->name));
3869+
btrfs_err_in_rcu(fs_info,
3870+
"scrub on devid %llu: filesystem on %s is not writable",
3871+
devid, rcu_str_deref(dev->name));
38713872
ret = -EROFS;
38723873
goto out;
38733874
}

0 commit comments

Comments
 (0)