• [^] # Re: structure des disques

    Posté par . En réponse au journal personne n'aura besoin de plus de 640ko de RAM. Évalué à 6.

    Je crois que c'est un problème d'API : NTFS autorise les chemins jusqu'à 32768 caractères, mais les API C au-dessus n'acceptent que des chemins beaucoup plus courts. Mercurial a eu des problèmes avec ça. Voir :
    http://www.selenic.com/mercurial/bts/issue839
    http://www.selenic.com/mercurial/wiki/fncacheRepoFormat

    Voir aussi :
    http://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx

    « In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters. »

    Suivi de :

    « The Windows API has many functions that also have Unicode versions to permit an extended-length path for a maximum total path length of 32,767 characters. This type of path is composed of components separated by backslashes, each up to the value returned in the lpMaximumComponentLength parameter of the GetVolumeInformation function. To specify an extended-length path, use the "\\?\" prefix. For example, "\\?\D:\<very long path>". (The characters < > are used here for visual clarity and cannot be part of a valid path string.) »

    Amusant non ?