All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stef Bon <stefbon@gmail.com>
To: Chris Murphy <lists@colorremedies.com>
Cc: Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: Get the diff from a file in two snapshots.
Date: Tue, 27 Jan 2015 00:43:52 +0100	[thread overview]
Message-ID: <CANXojcxps7KPRC2dbfU7hFvUDzkK2CmT4EroDrO6HO56h7j3cg@mail.gmail.com> (raw)
In-Reply-To: <CAJCQCtRyv+m0kxBL6LW=xZv=sUzf2to4R6xPsxy6CkihHmrV0A@mail.gmail.com>

2015-01-26 22:14 GMT+01:00 Chris Murphy <lists@colorremedies.com>:
>> is there a way to get the difference between these two files by making
>> use of btrfs?
>
> Snapper has this functionality built into it. I'm not sure if it uses
> diff or something else. But the Snapper GUI in yast2 on opensuse will
> let you see what files have changed between snapshots, click on the
> file and it shows a color coded diff.

Hi Chris,

I think (I'm not sure) it's using a high level tool like diff/rdiff.

I will contact the developers of snapper anyway, since my project is
simular to theirs.

But what I'm asking is is there a lowlevel tool to give you a list of
blocks where two versions
of one file differ. I'm asking since btrfs keeps track of the blocks
where files differ, and where they
are the same.

So a lowlevel call to the btrfs filesystem.

Stef

  reply	other threads:[~2015-01-26 23:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-26 20:52 Get the diff from a file in two snapshots Stef Bon
2015-01-26 21:14 ` Chris Murphy
2015-01-26 23:43   ` Stef Bon [this message]
2015-01-28  3:46     ` Zygo Blaxell
2015-01-28 10:28       ` Stef Bon

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=CANXojcxps7KPRC2dbfU7hFvUDzkK2CmT4EroDrO6HO56h7j3cg@mail.gmail.com \
    --to=stefbon@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lists@colorremedies.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.