* [PATCH] Revert "mkfs.f2fs: 512 UTF-16 characters for label"
@ 2015-04-03 23:00 Jaegeuk Kim
0 siblings, 0 replies; only message in thread
From: Jaegeuk Kim @ 2015-04-03 23:00 UTC (permalink / raw)
To: linux-f2fs-devel; +Cc: Jaegeuk Kim
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(-)
diff --git a/mkfs/f2fs_format_main.c b/mkfs/f2fs_format_main.c
index 43e5c03..9a96798 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) > 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;
--
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/
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-04-03 23:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-03 23:00 [PATCH] Revert "mkfs.f2fs: 512 UTF-16 characters for label" Jaegeuk Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).