HFS plus filenames.
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?
Roger.
Signature · 3 lines
** [email protected] ** http://www.BitWizard.nl/ ** +31-15-2600998 ** *-- BitWizard writes Linux device drivers for any device you may have! --* **** "Linux is like a wigwam - no windows, no gates, apache inside!" ****
Quoted 8 lines · Rogier Wolff
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....
Quoted 7 lines
I tried modifying the
unicode->asciistrcpy 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.