daemon: Fix ext2 labels error message (RHBZ#1294956).

This commit is contained in:
Richard W.M. Jones
2016-01-04 15:33:45 +00:00
parent 307c83177c
commit 1007b2555c
2 changed files with 4 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -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;
}