/*
- * Copyright (c) [2015] SUSE LLC
+ * Copyright (c) [2015-2017] SUSE LLC
*
* All Rights Reserved.
*
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)
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);
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)
{
+-------------------------------------------------------------------
+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