]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- create read-only lvm snapshots
authorArvin Schnell <aschnell@suse.de>
Mon, 4 Feb 2013 15:15:12 +0000 (10:15 -0500)
committerArvin Schnell <aschnell@suse.de>
Mon, 4 Feb 2013 15:15:12 +0000 (10:15 -0500)
snapper/Lvm.cc

index 70e765bbd0375419253d679d941af5fd046fb6c3..a25eb783100e77077ad3e6f20771595c061981f7 100644 (file)
@@ -188,8 +188,8 @@ namespace snapper
 #endif
        }
 
-       SystemCmd cmd(LVCREATEBIN " --snapshot --name " + quote(snapshotLvName(num)) + " " +
-                     quote(vg_name + "/" + lv_name));
+       SystemCmd cmd(LVCREATEBIN " --permission r --snapshot --name " +
+                     quote(snapshotLvName(num)) + " " + quote(vg_name + "/" + lv_name));
        if (cmd.retcode() != 0)
            throw CreateSnapshotFailedException();