On 04/02/2012 06:32 PM, Matt Domsch wrote:
  I'm interested in two projects (I know it is little bit late, but there
still 4 days left!)
1. Chunk Checksums in Fedora's MirrorManager
  and

Can I get some specifics? Especially for the Checksum? I'm looking in the
code right now but I could use some guidelines ;)
Currently MirrorManager only publishes the whole SHA*SUM for a given
ISO file.  It doesn't chunk up the ISO and provide chunk data or
checksums.  You'd have to add the data fields into the MM database
schema, and write code into update-master-directory-list to detect new
ISO files, do the chunking, and store the data in the database.  Then
you need to extract and store the data via the mirrorlist_cache, and
present it via mirrorlist_server.py where metalinks are created.

MM still uses v3 metalinks.

response form author of MM :)
so first add to /server/mirrormanager/model.py changes. My first though was to create new class for file details but there is one, with place for md5 (836) and for my "first glance" I see MM count md5 in update-master-deirecotry-list (implemented under 131 line) there should be definition like
_checksums_from_files or _checksums_from_ISO
or just change code of _checksums_from_global eventually in make_repomd_file_details where should be detecting ISO function with chunking(for specific block size) and md5 (perhaps using haslib get md5 without opening file)
after that present data wont be difficult.

sorry if wrote same "obvious" or "ridiculous" thinks ;) I just starting with programming.

regards
Włodek

--
Goal of Open Source is to *Share *

--
You received this message because you are subscribed to the Google Groups "Metalink 
Discussion" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/metalink-discussion?hl=en.

Reply via email to