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