mkfs.f2fs: 512 UTF-16 characters for label

We can use 512 UTF-16 characters for label.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Jaegeuk Kim 2015-03-24 00:20:15 -07:00
parent e3ab1425c7
commit fb5eef1d7e

View File

@ -81,9 +81,9 @@ static void f2fs_parse_options(int argc, char *argv[])
config.extension_list = strdup(optarg);
break;
case 'l': /*v: volume label */
if (strlen(optarg) > 512) {
if (strlen(optarg) > 1024) {
MSG(0, "Error: Volume Label should be less than\
512 characters\n");
512 UTF-16 characters\n");
mkfs_usage();
}
config.vol_label = optarg;