]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- add setDefault method to the Snapshot class
authorAleksey Novikov <shader@yandex.ru>
Wed, 18 May 2016 12:05:23 +0000 (15:05 +0300)
committerAleksey Novikov <shader@yandex.ru>
Wed, 18 May 2016 12:05:23 +0000 (15:05 +0300)
snapper/Snapshot.cc
snapper/Snapshot.h

index d0c33f241b2c584209989ad5fe0e5cfc0bd46dd3..38c95e109b3e531ecddad4c2cba10b3ecb4c4cea 100644 (file)
@@ -133,6 +133,13 @@ namespace snapper
     }
 
 
+    void
+    Snapshot::setDefault() const
+    {
+       return snapper->getFilesystem()->setDefault(num);
+    }
+
+
     void
     Snapshots::read()
     {
index fc38889feabeb7f762e31882f0100ec15fdfcb00..df8eea2724c48230d3901375414caabefa7b15ad 100644 (file)
@@ -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;