projects
/
platform
/
upstream
/
f2fs-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3ab142
)
mkfs.f2fs: 512 UTF-16 characters for label
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 24 Mar 2015 07:20:15 +0000
(
00:20
-0700)
committer
Jaegeuk 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
patch
|
blob
|
history
diff --git
a/mkfs/f2fs_format_main.c
b/mkfs/f2fs_format_main.c
index
9a96798
..
43e5c03
100644
(file)
--- 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;