Fwd: Re: Long pathnames
Arne Babenhauserheide
arne_bab at web.de
Sun Jul 20 14:19:16 CDT 2008
Am Sonntag 20 Juli 2008 11:52:51 schrieben Sie:
> I'm confused about your statement, because I thought Linux
> doesn't have a path length limit (besides the disk capacity)?
I did think so, too, but my system told me differently
What I did:
I downloaded some dynamic websites and tried to put them under version
control.
Sadly some algorithms made the filenames _very_ long.
What happened:
trouble committing
2007-11-14/www.daskochrezept.de/kuechengeraete/index.html?param_search_string=bob+home+staubsauger+\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"crazy+vac\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"!
transaction abort!
rollback completed
abort: File name too
long: /home/arne/Dokumente/Kochrezepte/.hg/store/data/2007-11-14/www.daskochrezept.de/kuechengeraete/index.html~3fparam__search__string=bob+home+staubsauger+~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~22crazy+vac~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~5c~22.i
Would it be possible to shorten these long paths to
store/data/path/beginning_of_the_filename-HASH_OVER_THE_END.i
That would preserve full streaming access for short filenames, and for long
filenames it should mostly preserve it (it might change the order only for
names which only differ on the hashed part).
And the names could be adapted (transparently?) to the restrictions of the
platform (if the full names are stored somewhere else - I don't know enough
of the internals to be sure that this would work).
Best wishes,
Arne
> Windows Explorer and most others Windows tools can't handle
> path lengths longer than 260 chars.
>
> I'm currently working on an improved version of
> http://selenic.com/pipermail/mercurial-devel/2008-July/007158.html
> which builds on previously presented ideas and patches that
> were published by others (including but not limited to Matt, Jesse,
> Patrick and Peter).
--
-- Weblog: http://blog.draketo.de
-- Infinite Hands: http://infinite-hands.draketo.de - singing a part of the
history of free software.
-- Ein Würfel System: http://1w6.org - einfach saubere (Rollenspiel-) Regeln
-- PGP/GnuPG: http://draketo.de/inhalt/ich/pubkey.txt
-------------------------------------------------------
--
-- Weblog: http://blog.draketo.de
-- Infinite Hands: http://infinite-hands.draketo.de - singing a part of the
history of free software.
-- Ein Würfel System: http://1w6.org - einfach saubere (Rollenspiel-) Regeln
-- PGP/GnuPG: http://draketo.de/inhalt/ich/pubkey.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://selenic.com/pipermail/mercurial/attachments/20080720/33e4877a/attachment.pgp
More information about the Mercurial
mailing list