Re: cpool path
Craig Barratt via BackupPC-devel <[email protected]> Wed, 20 Sep 2017 06:03:04 -0700
| Newsgroups | gmane.comp.sysutils.backup.backuppc.devel |
|---|---|
| Message-ID | <CADSzEFjsV1Zn1CAQiefs29gHRab6pfKuPavyr+nzX5jMWRhMCw@mail.gmail.com> |
--===============2184102378738501830== Content-Type: multipart/alternative; boundary="94eb2c05bd8ce3b43205599e99fe" --94eb2c05bd8ce3b43205599e99fe Content-Type: text/plain; charset="UTF-8" It uses 128 directories at each level. They are based on the first and second bytes of the digest, but each is anded with 0xfe. So, as you note, a digest starting with 0x25 goes in the directory 24. This is in the documentation. Craig On Tue, Sep 19, 2017 at 11:44 AM, Gandalf Corvotempesta < [email protected]> wrote: > If I understood properly, "cpool" path is made by the hash, so, an hash of > > 1a5af4351dde2e018797815ba062d46e01 > > will result in a path like the following: > > /cpool/1a/5a/1a5af4351dde2e018797815ba062d46e01 > > First level is the first 2 chars, second level is the thirth and fourth > chars. > > So, why the following hash: > > 2518c859f504cca9f59cdeaffe17ff2d > > is resulting in the following path? > > /cpool/24/18/2518c859f504cca9f59cdeaffe17ff2d > > What is the "24" at first level ? > > I think that I have some other strangenesses: > > /cpool/22/84/238510ce90e87ce31702181e7b82508b01 > /cpool/70/ec/70ed19e0558d4ec031e2c03e2365af1d01 > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > BackupPC-devel mailing list > [email protected] > List: https://lists.sourceforge.net/lists/listinfo/backuppc-devel > Wiki: http://backuppc.wiki.sourceforge.net > Project: http://backuppc.sourceforge.net/ > --94eb2c05bd8ce3b43205599e99fe Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">It uses 128 directories at each level.=C2=A0 They are base= d on the first and second bytes of the digest, but each is anded with 0xfe.= So, as you note, a digest starting with 0x25 goes in the directory 24.<div= ><br></div><div>This is in the documentation.<br><div><br></div><div>Craig<= /div></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">= On Tue, Sep 19, 2017 at 11:44 AM, Gandalf Corvotempesta <span dir=3D"ltr">&= lt;<a href=3D"mailto:[email protected]" target=3D"_blank">gan= [email protected]</a>></span> wrote:<br><blockquote class=3D"= gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-= left:1ex">If I understood properly, "cpool" path is made by the h= ash, so, an hash of<br> <br> 1a5af4351dde2e018797815ba062d4<wbr>6e01<br> <br> will result in a path like the following:<br> <br> /cpool/1a/5a/<wbr>1a5af4351dde2e018797815ba062d4<wbr>6e01<br> <br> First level is the first 2 chars, second level is the thirth and fourth cha= rs.<br> <br> So, why the following hash:<br> <br> 2518c859f504cca9f59cdeaffe17ff<wbr>2d<br> <br> is resulting in the following path?<br> <br> /cpool/24/18/<wbr>2518c859f504cca9f59cdeaffe17ff<wbr>2d<br> <br> What is the "24" at first level ?<br> <br> I think that I have some other strangenesses:<br> <br> /cpool/22/84/<wbr>238510ce90e87ce31702181e7b8250<wbr>8b01<br> /cpool/70/ec/<wbr>70ed19e0558d4ec031e2c03e2365af<wbr>1d01<br> <br> ------------------------------<wbr>------------------------------<wbr>-----= -------------<br> Check out the vibrant tech community on one of the world's most<br> engaging tech sites, Slashdot.org! <a href=3D"http://sdm.link/slashdot" rel= =3D"noreferrer" target=3D"_blank">http://sdm.link/slashdot</a><br> ______________________________<wbr>_________________<br> BackupPC-devel mailing list<br> <a href=3D"mailto:[email protected]">BackupPC-devel@list= s.<wbr>sourceforge.net</a><br> List:=C2=A0 =C2=A0 <a href=3D"https://lists.sourceforge.net/lists/listinfo/= backuppc-devel" rel=3D"noreferrer" target=3D"_blank">https://lists.sourcefo= rge.net/<wbr>lists/listinfo/backuppc-devel</a><br> Wiki:=C2=A0 =C2=A0 <a href=3D"http://backuppc.wiki.sourceforge.net" rel=3D"= noreferrer" target=3D"_blank">http://backuppc.wiki.<wbr>sourceforge.net</a>= <br> Project: <a href=3D"http://backuppc.sourceforge.net/" rel=3D"noreferrer" ta= rget=3D"_blank">http://backuppc.sourceforge.<wbr>net/</a><br> </blockquote></div><br></div> --94eb2c05bd8ce3b43205599e99fe-- --===============2184102378738501830== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot --===============2184102378738501830== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ BackupPC-devel mailing list [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-devel Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ --===============2184102378738501830==--