mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 10:10:00 +00:00
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:
parent
e3ab1425c7
commit
fb5eef1d7e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user