Skip to contentSkip to conversation

Revert "mkfs.f2fs: 512 UTF-16 characters for label"

PATCH New Jaegeuk Kim 1 participant 1 message Apr 3, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "mkfs.f2fs: 512 UTF-16 characters for label"

The mkfs.f2fs gets 512 characters, which will be recorded as UTF-16 characters.

This reverts commit fb5eef1d7e4060d9c5a913514c49b260c29d3ed2.

---
 mkfs/f2fs_format_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mkfs/f2fs_format_main.c +2 -2
index 43e5c03..9a96798 100644
@@ -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) > 1024) {
+			if (strlen(optarg) > 512) {
 				MSG(0, "Error: Volume Label should be less than\
-						512 UTF-16 characters\n");
+						512 characters\n");
 				mkfs_usage();
 			}
 			config.vol_label = optarg;
Signature · 9 lines
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/