lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 22 Nov 2008 10:50:25 +0800
From:	"rae l" <>
To:	"Theodore Tso" <>
Cc:	"Alexey Salmin" <>,
Subject: Re: Maximum filename length

On Sat, Nov 22, 2008 at 6:32 AM, Theodore Tso <> wrote:
> So the problem is that even if we were to add that enhancement to
> ext4, there are lots of other things, both in and outside of the
> kernel, that would likely need to be changed in order to support this.
> I will say personally that its rare for me to use filenames longer
> than 50-60 characters, just because they are a pain in the *ss to
> type.  However, I can see how someone using a graphical interface
> might be happy with filenames in the 100-120 character range.  The
> question though is whether it is worth trying to fix this by
> increasing the filename length beyond 255 bytes or not, given the
> amount of effort that would be required in the kernel, libc,
> userspace, etc.

In China, there's also a trend moving ahead from 2bytes charsets
(GB2312/GBK/GB18030/BIG5) to UTF-8, so all Chinese characters will
need 3 bytes for each to each instead of 2 from then on. The 255
filename length limit the Chinese filename to 85 characters:

now try to touch a file with 86 Chinese characters:

gektop@tux ~/tmp 0 $ touch
touch: cannot touch
File name too long

It's very difficult to solve all these problems in the kernel, libc,
userspace, I know, but I think we should keep the option to fix them
in the future. Maybe in the next POSIX standard, we should change
NAME_MAX to [255 * max_bytes_per_character] ?


>                                        - Ted
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to
> More majordomo info at

Cheng Renquan, Shenzhen, China
Yogi Berra  - "I never said most of the things I said."

Powered by blists - more mailing lists