mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-17 18:26:55 +00:00
btrfs-progs: pretty print device size in overflow error message
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
893934258d
commit
88fc7becac
@ -160,8 +160,8 @@ int btrfs_add_to_fsid(struct btrfs_trans_handle *trans,
|
|||||||
|
|
||||||
if (check_add_overflow(old_size, device_total_bytes, &new_size)) {
|
if (check_add_overflow(old_size, device_total_bytes, &new_size)) {
|
||||||
error(
|
error(
|
||||||
"adding device of %llu bytes would exceed max file system size",
|
"adding device of %llu (%s) bytes would exceed max file system size",
|
||||||
device->total_bytes);
|
device->total_bytes, pretty_size(device->total_bytes));
|
||||||
ret = -EOVERFLOW;
|
ret = -EOVERFLOW;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user