Andi Kleen wrote:
i wouldn't call them v3 dirs either, that implies its an `upgrade' to
v2, when in fact its a downgrade (non-broken -> broken). maybe call
them v0 (afaik xfs only has two dir formats v1 and v2). or call it
something entirely different, like broken_dirs ;-)
I would not call them broken, but what is a bit worrying is that it can
be quite complicated to lower case letters. In the American ASCII subset it's
easy, but for other languages it usually needs huge lookup tables and worse
there are different character set.
When we did this for the Amiga (oh so many years ago) it was a royal
PITA. We ended up punting for the most part on anything that was
outside of the ISO-Latin-1 code page and even there we had a problem
due to some "differences" of opinion by certain language groups what
was supposed to happen.
This gets worse when you look at behavior patterns due to the fact that
a file, especially one accessed over the network, may be accessed by
a machine with different locale settings and thus have slightly different
rules as to what is the lowercase form of an uppercase letter or wordform.
While I can fully understand the need to do this somewhere closer to the
filesystem (as the performance impact can be massive otherwise) there
is no really good solution to this in the international space when you
start to network machines accross locale settings.
(A pair of files that are correctly unique names in one locale may not
be unique in another locale!)
You either only support UTF-8 Unicode (shifting the burden of conversion
to user space) or you need to store a "codepage" per filesystem. Linux seems
to go towards the UTF-8 route. The kernel already has some code for this
(JFS does it), but it will be not pretty.
I have not looked at the JFS code at all but this can not be very pretty
if they supported the locale preferences. (Unless, in the last 10 years
there was some new agreement such that case conversion for all locales
are consistant with eachother)
Michael Sinz -- Director, Systems Engineering -- Worldgate Communications
A master's secrets are only as good as
the master's ability to explain them to others.