Deduplication for P2P storage systems