linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Maximum filename length
@ 2008-11-21 12:51 Alexey Salmin
  2008-11-21 22:32 ` Theodore Tso
  0 siblings, 1 reply; 7+ messages in thread
From: Alexey Salmin @ 2008-11-21 12:51 UTC (permalink / raw)
  To: linux-ext4

Hello! I'm not sure the developers mailing list is a right place for
philosophical discussions - it's more about features, bugs and
patches. But anyway I have an important for me topic I want to talk
about.
Limits of the ext4 file are really huge, I just can't imagine 1 EiB
disk array, it's out of my mind's bounds. Maximum file size is quite
big too. But there is one limitation looking tiny against these Tera-
and Exbi-bytes: maximum filename length is 255 bytes. Is 255
characters enough? I think it's enough for the vast majority of users.
But there is one problem: 255 bytes and 255 characters are no longer
equal. Multibyte encodings are spreading fast and it should be taken
into account. For a long time I was using the simple koi8-r encoding
and it was enough. Even when my favorite debian distribution moved to
utf8 I was still keeping it. Even when I discovered that gtk and qt
application always use utf8 and every io-operation causes conversions
I was using koi8. But when I found out that the first thing gcc does
with the source code is converting it to utf8 I thought that it is
really the time to move ahead. I was full of optimism converting my
file systems to utf8 but I discovered that my book collection can not
be stored correctly due to the 127 characters filename length
limitation. Actually I'm lucky having only two bytes per character,
utf8-character can contain up to 4 bytes which reduces the limit to 63
characters. Really I see no reasons for keeping such a terrible
limitation. Ext4 branch was created because there were to many things
to change compared to ext3. And it's very sad that such a simple
improvement was forgotten :(

Alexey

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-11-23 22:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21 12:51 Maximum filename length Alexey Salmin
2008-11-21 22:32 ` Theodore Tso
2008-11-22  2:50   ` rae l
2008-11-23  3:08     ` Theodore Tso
2008-11-22 18:48   ` Alexey Salmin
2008-11-22 23:36     ` Andreas Dilger
2008-11-23 22:15       ` Andi Kleen

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).