From: Arvin Schnell Date: Fri, 21 Oct 2011 10:07:24 +0000 (+0200) Subject: - create read-only btrfs snapshots X-Git-Tag: v0.1.3~263 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=449ffad33684c85c543f90ad2ab4f677a649906e;p=thirdparty%2Fsnapper.git - create read-only btrfs snapshots --- diff --git a/doc/snapper.8.in b/doc/snapper.8.in index 181ab3fd..499fcccc 100644 --- a/doc/snapper.8.in +++ b/doc/snapper.8.in @@ -13,8 +13,10 @@ snapper \fBhelp\fR .SH "DESCRIPTION" .LP Snapper is a command\-line program for filesystem snapshot management. It can -create, delete and compare snapshots and undo changes between -snapshots. Supported filesystems are btrfs and ext4. +create, delete and compare snapshots and undo changes done between snapshots. +.LP +Snapper never modifies the content of snapshots. Thus snapper creates +read-only snapshots. Supported filesystems are btrfs and ext4. .SH CONCEPTS diff --git a/package/snapper.changes b/package/snapper.changes index d5d424e4..98126142 100644 --- a/package/snapper.changes +++ b/package/snapper.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 21 11:34:27 CEST 2011 - aschnell@suse.de + +- create read-only btrfs snapshots + ------------------------------------------------------------------- Wed Oct 12 15:12:41 CEST 2011 - aschnell@suse.de diff --git a/snapper/Filesystem.cc b/snapper/Filesystem.cc index 3fae80c8..b5b09cbe 100644 --- a/snapper/Filesystem.cc +++ b/snapper/Filesystem.cc @@ -87,7 +87,7 @@ namespace snapper void Btrfs::createSnapshot(unsigned int num) const { - SystemCmd cmd(BTRFSBIN " subvolume snapshot " + quote(subvolume) + " " + + SystemCmd cmd(BTRFSBIN " subvolume snapshot -r " + quote(subvolume) + " " + quote(snapshotDir(num))); if (cmd.retcode() != 0) throw CreateSnapshotFailedException();