From: Lutz Vieweg <lvml@5t9.de>
To: linux-btrfs@vger.kernel.org
Subject: Can I get a checksum for a file from btrfs (without reading the whole file)?
Date: Thu, 05 Feb 2015 11:40:10 +0100 [thread overview]
Message-ID: <mavhab$f8m$1@ger.gmane.org> (raw)
Hi,
use case: You have two huge files on a btrfs, you assume they contain the same bytes,
but you do not know for sure.
Is there a way to get a checksum of both files from btrfs with less effort than
reading the whole of both files and computing a hash sum?
(I was thinking that the btrfs-internal CRCs might be of use, here...)
Regards,
Lutz Vieweg
next reply other threads:[~2015-02-05 10:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-05 10:40 Lutz Vieweg [this message]
2015-02-06 5:20 ` Can I get a checksum for a file from btrfs (without reading the whole file)? Qu Wenruo
2015-02-06 13:00 ` Lutz Vieweg
2015-02-06 18:04 ` David Sterba
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='mavhab$f8m$1@ger.gmane.org' \
--to=lvml@5t9.de \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox