From: Aleksey Novikov Date: Wed, 18 May 2016 12:05:23 +0000 (+0300) Subject: - add setDefault method to the Snapshot class X-Git-Tag: v0.3.3~1^2~6 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=4518b84ad8dfe30f4f87f7926d04ccdd3e2c1f1c;p=thirdparty%2Fsnapper.git - add setDefault method to the Snapshot class --- diff --git a/snapper/Snapshot.cc b/snapper/Snapshot.cc index d0c33f24..38c95e10 100644 --- a/snapper/Snapshot.cc +++ b/snapper/Snapshot.cc @@ -133,6 +133,13 @@ namespace snapper } + void + Snapshot::setDefault() const + { + return snapper->getFilesystem()->setDefault(num); + } + + void Snapshots::read() { diff --git a/snapper/Snapshot.h b/snapper/Snapshot.h index fc38889f..df8eea27 100644 --- a/snapper/Snapshot.h +++ b/snapper/Snapshot.h @@ -104,6 +104,8 @@ namespace snapper bool isReadOnly() const; + void setDefault() const; + void mountFilesystemSnapshot(bool user_request) const; void umountFilesystemSnapshot(bool user_request) const; void handleUmountFilesystemSnapshot() const;