Hi,

The easiest, high-level, way I can think of is to reindex your data.
The indexer reads all the blobs, so if a blob does not hash properly,
that should give you an error. Moreover, it goes through all your file
schemata, so once again if something is wrong there, it should be
detected. You may want to inspect the code in pkg/index/receive.go and
change a log.Print into a log.Fatal here and there to make things
stricter if you want.

You could also pull out of pkg/index/receive.go whatever you think is
enough for your needs and run it on top of an enumeration of all the
blobs (look at things like camtool sync to get a feel of how such an
enumeration would be done).

hth,
Mathieu


On 6 October 2016 at 23:02, Jai Sharma <[email protected]> wrote:
> Any idea on how to get started on verifying blob integrity?
>
> Thanks,
> Jai
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Camlistore" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Camlistore" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to