We can use 512 UTF-16 characters for label. Signed-off-by: Jaegeuk Kim <jaeg...@kernel.org> --- mkfs/f2fs_format_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mkfs/f2fs_format_main.c b/mkfs/f2fs_format_main.c index 9a96798..43e5c03 100644 --- a/mkfs/f2fs_format_main.c +++ b/mkfs/f2fs_format_main.c @@ -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; -- 2.1.1 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel