Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* btrfs-image hash collision option, super slow
@ 2017-11-12  0:18 Chris Murphy
  2017-11-12  0:42 ` Hugo Mills
  0 siblings, 1 reply; 8+ messages in thread
From: Chris Murphy @ 2017-11-12  0:18 UTC (permalink / raw)
  To: Btrfs BTRFS

OK this might be in the stupid questions category, but I'm not
understanding the purpose of computing hash collisions with -ss. Or
more correctly, why it's taking so much longer than -s.

It seems like what we'd want is every filename to have the same hash,
but for the file to go through a PBKDF so the hashes we get aren't
(easily) brute forced. So I totally understand that -ss should take
much longer than -s, but this is at least two orders magnitude longer
(so far). That's why I'm confused.

-s option on this file system took 5 minutes, start to finish.
-ss option is at 8 hours and counting.

The other part I'm not groking is that some filenames fail with:

WARNING: cannot find a hash collision for 'Tool', generating garbage,
it won't match indexes

So? That seems like an undesirable outcome. And if it were just being
pushed through a PBKDF function, it wouldn't fail. Every
file/directory "Tool" would get the same hash on *this* run of
btrs-image. If I run it again, or someone else runs it, they'd get
some other hash (same hashes for each instance of "Tool" on their
filesystem).



-- 
Chris Murphy

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-11-13 18:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-12  0:18 btrfs-image hash collision option, super slow Chris Murphy
2017-11-12  0:42 ` Hugo Mills
2017-11-12  0:54   ` Chris Murphy
2017-11-12 14:05     ` Piotr Pawłow
2017-11-13  3:28       ` Duncan
2017-11-13  3:42       ` Chris Murphy
2017-11-13  8:02         ` Piotr Pawłow
2017-11-13 18:18           ` Chris Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox