]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- remove read-only mount option for new fstab entry in mksubvolume (bsc#1030257) 336/head
authorArvin Schnell <aschnell@suse.de>
Wed, 22 Mar 2017 15:52:42 +0000 (16:52 +0100)
committerArvin Schnell <aschnell@suse.de>
Wed, 22 Mar 2017 15:52:42 +0000 (16:52 +0100)
VERSION
client/mksubvolume.cc
package/snapper.changes

diff --git a/VERSION b/VERSION
index 17b2ccd9bf9050efdf57d7800677e87919b9b5b9..6f2743d65dc06508954334e88edb660bf8efea20 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.4.3
+0.4.4
index 0bab2ab801f103302aaab0443deb3d21167a0ab2..de56856e77806509529191caa9f3171e6aaa8af4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) [2015] SUSE LLC
+ * Copyright (c) [2015-2017] SUSE LLC
  *
  * All Rights Reserved.
  *
@@ -63,7 +63,7 @@ do_tmp_mount(const libmnt_fs* fs, const char* tmp_mountpoint, const string& subv
     if (!subvol_option.empty())
        mnt_context_set_options(cxt, ("subvol=" + subvol_option).c_str());
     else
-       mnt_context_set_options(cxt, "subvolid=5"); // 5 is the btrfs initial top-level subvolume
+       mnt_context_set_options(cxt, "subvolid=5"); // 5 is the btrfs top-level subvolume
 
     int ret = mnt_context_mount(cxt);
     if (ret != 0)
@@ -139,6 +139,7 @@ do_add_fstab_and_mount(MntTable& mnt_table, const libmnt_fs* fs, const string& s
 
     char* options = mnt_fs_strdup_options(x);
     mnt_optstr_remove_option(&options, "defaults");
+    mnt_optstr_remove_option(&options, "ro");
     mnt_optstr_set_option(&options, "subvol", full_subvol_option.c_str());
     mnt_fs_set_options(x, options);
     free(options);
@@ -202,7 +203,7 @@ do_set_nocow()
 bool
 is_subvol_mount(const string& fs_options)
 {
-    list<string> tmp1;
+    vector<string> tmp1;
     boost::split(tmp1, fs_options, boost::is_any_of(","), boost::token_compress_on);
     for (const string& tmp2 : tmp1)
     {
index 34ea4dfd390455ab3c85789ce26e9227395c11fe..bc0cee05534d459ea608de517fae5fdfffaaa2e3 100644 (file)
@@ -1,3 +1,10 @@
+-------------------------------------------------------------------
+Wed Mar 22 16:47:56 CET 2017 - aschnell@suse.com
+
+- remove read-only mount option for new fstab entry in mksubvolume
+  (bsc#1030257)
+- version 0.4.4
+
 -------------------------------------------------------------------
 Thu Feb 02 19:07:40 CET 2017 - aschnell@suse.com