MogileFS::Checksum(3)

πŸ“¦
version 2.73 Β· 2 versions
, in fedora 43

πŸ’– MogileFS::Checksum πŸ’–

okay bestie, so this is the page for MogileFS::Checksum, a little slice of the User Contributed Perl Documentation family, and it's literally all about how MogileFS handles checksums. sit down, grab a strawberry πŸ“, let's get into it.


✨ NAME ✨

MogileFS::Checksum β€” checksums handling for MogileFS πŸŽ€


🌸 ABOUT 🌸

so MogileFS supports optional MD5 checksums. yes, optional, we're not forcing anybody, this is a no-pressure zone πŸ’…

where can they live? two whole vibes:

  • checksums can be stored in the database on a per-class basis πŸ—‚οΈ
  • or they can be enabled globally during fsck-only 🌍
⚠️ heads up bestie, this is the important part: enabling checksums will greatly increase the time and I/O required for fsck, because all files on all devices to be checksummed need to be reread. every single one. she's thorough, but she's not fast 😭

also, fsck and replication will use significantly more network bandwidth if the mogstored is not used, or if mogstored_stream_port is not configured correctly. so like, get that config right or your network is gonna be sweating 🫠

oh and also β€” using Perlbal 1.80 or later for HTTP will also speed up checksum verification during replication using the Content-MD5 HTTP header. slay ✨


🧚 ALGORITHMS 🧚

so technically we could easily enable some or all of the SHA family of hash algorithms, right? like, it's right there. but the way that they all perform worse than MD5... it's giving not worth it πŸ’€

here's the thing though, and this is important: checksums are intended to detect unintentional corruption due to hardware/software errors, not malicious data replacement. like, that's the whole job description, that's the vibe check πŸ‘‘

and because MogileFS does not implement any security/authorization on its own to protect against malicious use, the use of checksums in MogileFS to protect against malicious data replacement is misguided. fr fr, it's not built for that, don't make it carry that weight πŸ™ˆ

but listen β€” if you have a use case which requires a stronger hash algorithm, please speak up on the mailing list at mogile@googlegroups.com. they want to hear from you, no cap πŸ’Œ


and that's the whole page, bestie! this was MogileFS::Checksum(3), served up fresh from perl v5.42.0 on 2025-07-25. go forth and checksum responsibly πŸ¦‹βœ¨πŸ’œ

πŸ“¦ where this page comes from