mkfs.f2fs: 512 UTF-16 characters for label
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 24 Mar 2015 07:20:15 +0000 (00:20 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 24 Mar 2015 07:20:15 +0000 (00:20 -0700)
We can use 512 UTF-16 characters for label.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
mkfs/f2fs_format_main.c

index 9a96798..43e5c03 100644 (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;