Re: HFS plus filenames.

From: Benjamin Herrenschmidt
Date: Wed Sep 17 2003 - 04:08:04 EST


On Wed, 2003-09-17 at 08:55, Rogier Wolff wrote:
> Hi,
>
> We used the new hfsplus driver lately. However it showed lots
> of files which had a "/" in the filename. Yes in the fileNAME.
>
> ls would find a file called "a/b" and then stat it, but no directory
> "a" would then be found....
>
> I tried modifying the unicode->ascii strcpy function, which I saw
> being called in the "readdir" code. That somehow didn't work,
> although I think it should have. (Not that it would have /worked/, but
> it should at least have shown "a_b" instead of "a/b") But it didn't.
> I didn't have the time to figure it out, but one of these days
> we should mangle those names in a predictable way to make filesystems
> like this usable under Linux... Right?

I haven't looked at the code to see if it does any such mangling,
but what could be done is like OS X, that is convert back and forth
between ":" and "/" which are the path separators of respectively
MacOS and Linux.

Ben.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/