Skip to content

Commit 2c99d80

Browse files
committed
btrfs-progs: prop set: enhance error message when changing subvolume from ro->rw
The error message for ro->rw is not clear enough, add more context for the received_uuid and send and point to the manual page that explains more. Asked at: https://www.reddit.com/r/btrfs/comments/1bkqor2/received_uuid_error_after_btrfs_send/ [ci skip] Issue: #763 Signed-off-by: David Sterba <dsterba@suse.com>
1 parent f240b9f commit 2c99d80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmds/property.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ static int prop_read_only(enum prop_object_type type,
109109
do_clear_received_uuid = true;
110110
} else {
111111
error(
112-
"cannot flip ro->rw with received_uuid set, use force if you really want that");
112+
"cannot flip ro->rw with received_uuid set, use force option -f if you really want unset the read-only status."
113+
" The value of received_uuid is used for incremental send, consider making a snapshot instead."
114+
" Read more at btrfs-subvolume(8) and Subvolume flags.");
113115
return -EPERM;
114116
}
115117
}

0 commit comments

Comments
 (0)