From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f46.google.com ([209.85.218.46]:56167 "EHLO mail-oi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757091AbbAZXnx (ORCPT ); Mon, 26 Jan 2015 18:43:53 -0500 Received: by mail-oi0-f46.google.com with SMTP id a141so9887232oig.5 for ; Mon, 26 Jan 2015 15:43:52 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 27 Jan 2015 00:43:52 +0100 Message-ID: Subject: Re: Get the diff from a file in two snapshots. From: Stef Bon To: Chris Murphy Cc: Btrfs BTRFS Content-Type: text/plain; charset=UTF-8 Sender: linux-btrfs-owner@vger.kernel.org List-ID: 2015-01-26 22:14 GMT+01:00 Chris Murphy : >> 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