linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hugo Mills <hugo@carfax.org.uk>
To: File's@jots.org, checksum?@jots.org
Cc: linux-btrfs@vger.kernel.org
Subject: Re: your mail
Date: Tue, 20 Sep 2011 16:35:40 +0100	[thread overview]
Message-ID: <20110920153540.GE21530@carfax.org.uk> (raw)
In-Reply-To: <c627c52800e0bb4e7884aa7174cb4a18@www.jots.org>

[-- Attachment #1: Type: text/plain, Size: 733 bytes --]

On Tue, Sep 20, 2011 at 11:24:30AM -0400, Ken D'Ambrosio wrote:
> Just wondering if/how one goes about getting the btrfs checksum of a given
> file.  Is there a way?

   Checksums are computed on individual 4k blocks, not on the whole
file. There's no explicit interface for retrieving checksums, but if
you understand the data structures, you can get hold of the checksums
for a file using the BTRFS_IOC_TREE_SEARCH ioctl.

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
   --- "How deep will this sub go?" "Oh,  she'll go all the way to ---   
                    the bottom if we don't stop her."                    

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

  reply	other threads:[~2011-09-20 15:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-20 15:24 (unknown) Ken D'Ambrosio
2011-09-20 15:35 ` Hugo Mills [this message]
2011-09-20 15:40   ` your mail Hugo Mills
     [not found] <1330599216.71336.YahooMailNeo@web30703.mail.mud.yahoo.com>
2012-03-01 12:41 ` (unknown) bella tk
2012-03-01 12:58   ` your mail David Sterba
2012-03-01 14:26     ` Chris Mason
2016-09-01  2:02 Fennec Fox
2016-09-01  7:44 ` your mail M G Berberich
2016-09-01 11:17   ` Austin S. Hemmelgarn
2016-09-01 16:44     ` Kyle Gates
2016-09-01 17:06       ` Austin S. Hemmelgarn
2016-09-02  1:51       ` Jeff Mahoney
2016-09-01 21:15     ` M G Berberich
2018-02-18  8:14 Tomasz Kłoczko
2018-02-18  9:28 ` your mail Tomasz Pala
2018-02-18  9:34   ` Tomasz Pala

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=20110920153540.GE21530@carfax.org.uk \
    --to=hugo@carfax.org.uk \
    --cc=File's@jots.org \
    --cc=checksum?@jots.org \
    --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;
as well as URLs for NNTP newsgroup(s).