From: Jan-Hendrik Palic <billgotchy@ki.tng.de>
To: linux-btrfs@vger.kernel.org
Subject: Computing size of snapshots approximatly
Date: Wed, 13 Jun 2012 14:15:33 +0200 [thread overview]
Message-ID: <4FD88465.3020303@ki.tng.de> (raw)
Hi,
we using on a server several lvm volumes with btrfs. We want to use
nightly build snapshots for some days as an alternative to backups.
Now I want to get the size of the snapshots in detail. Therefore I
played with
btrfs subvolume find-new $snapshot $gen-id.
And I know, that this is quite complicated and not implemented.
Therefore I try to go my own way:
Now assume there are two snapshots of one subvolume, snap1 and snap2.
Further get the find-new informations of these snapshots with $gen-id=1
and save them into different files. A diff of these files shows the
changes between snap1 and snap2, right?
Ok.
There are three operations on a filesystem, I think,
1. copy a file on the filesystem
2. change a file on the filesystem
3. delete a file on the filesystem
Am I right to assume, that operation 1 and 2 are not change much the
size of a snapshot and the delete operation let increase the size of a
snapshot in the size of the deleted files?
If it is so, it would be enough for me to get the deletions of files
between two snapshots and their size. But is there another way to get
these informations beside btrfs subvolume find-new? Perhaps it makes
sense to use ioctl for it? What about the send/receive feature, which is
upcoming?
Are there any hints?
Many thanks in advance.
Jan
next reply other threads:[~2012-06-13 12:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-13 12:15 Jan-Hendrik Palic [this message]
2012-06-13 13:27 ` Computing size of snapshots approximatly Hugo Mills
2012-06-13 14:01 ` Jan-Hendrik Palic
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=4FD88465.3020303@ki.tng.de \
--to=billgotchy@ki.tng.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;
as well as URLs for NNTP newsgroup(s).