I thought there was also a way to use camtool sync to a dummy /dev/null-ish check-hash-only target.
Or maybe I'm thinking of the web interface to sync, which does have an integrity check for whether a configured sync pair (e.g. my home machine to AWS S3) is properly in sync. In any case, CLI tools for camtool sync with an integrity check target seems simple enough to add. My main dev machine is down at the moment due to a move, but I hope to be unpacked and re-networked soon. On Thu, Oct 6, 2016 at 2:56 PM, Mathieu Lonjaret <[email protected] > wrote: > 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. > -- 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.
