* HFS plus filenames.
@ 2003-09-17 6:55 Rogier Wolff
2003-09-17 9:07 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 2+ messages in thread
From: Rogier Wolff @ 2003-09-17 6:55 UTC (permalink / raw)
To: linux-kernel
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.
--
** R.E.Wolff@BitWizard.nl ** 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!" ****
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: HFS plus filenames.
2003-09-17 6:55 HFS plus filenames Rogier Wolff
@ 2003-09-17 9:07 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Herrenschmidt @ 2003-09-17 9:07 UTC (permalink / raw)
To: Rogier Wolff; +Cc: linux-kernel mailing list, Roman Zippel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-17 9:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-17 6:55 HFS plus filenames Rogier Wolff
2003-09-17 9:07 ` Benjamin Herrenschmidt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.