mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
daemon: Fix ext2 labels error message (RHBZ#1294956).
This commit is contained in:
@@ -131,7 +131,7 @@ do_set_e2label (const char *device, const char *label)
|
||||
CLEANUP_FREE char *err = NULL;
|
||||
|
||||
if (strlen (label) > EXT2_LABEL_MAX) {
|
||||
reply_with_error ("%s: ext2 labels are limited to %d bytes",
|
||||
reply_with_error ("%s: ext2/3/4 labels are limited to %d bytes",
|
||||
label, EXT2_LABEL_MAX);
|
||||
return -1;
|
||||
}
|
||||
@@ -448,7 +448,7 @@ do_mke2journal_L (int blocksize, const char *label, const char *device)
|
||||
int r;
|
||||
|
||||
if (strlen (label) > EXT2_LABEL_MAX) {
|
||||
reply_with_error ("%s: ext2 labels are limited to %d bytes",
|
||||
reply_with_error ("%s: ext2/3/4 labels are limited to %d bytes",
|
||||
label, EXT2_LABEL_MAX);
|
||||
return -1;
|
||||
}
|
||||
@@ -538,7 +538,7 @@ do_mke2fs_JL (const char *fstype, int blocksize, const char *device,
|
||||
}
|
||||
|
||||
if (strlen (label) > EXT2_LABEL_MAX) {
|
||||
reply_with_error ("%s: ext2 labels are limited to %d bytes",
|
||||
reply_with_error ("%s: ext2/3/4 labels are limited to %d bytes",
|
||||
label, EXT2_LABEL_MAX);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ do_mkfs (const char *fstype, const char *device, int blocksize,
|
||||
if (optargs_bitmask & GUESTFS_MKFS_LABEL_BITMASK) {
|
||||
if (extfs) {
|
||||
if (strlen (label) > EXT2_LABEL_MAX) {
|
||||
reply_with_error ("%s: ext2 labels are limited to %d bytes",
|
||||
reply_with_error ("%s: ext2/3/4 labels are limited to %d bytes",
|
||||
label, EXT2_LABEL_MAX);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user