<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>set &#8211; bhzhuOS爱好者(原StartOS爱好者)</title>
	<atom:link href="https://www.bhzhu203.com/tag/set/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bhzhu203.com</link>
	<description>QQ群号125732839</description>
	<lastBuildDate>Sat, 30 Jun 2018 02:34:29 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.7</generator>
	<item>
		<title>How to make a btrfs snapshot writable?</title>
		<link>https://www.bhzhu203.com/2018/06/30/how-to-make-a-btrfs-snapshot-writable/</link>
		
		<dc:creator><![CDATA[bhzhu203]]></dc:creator>
		<pubDate>Sat, 30 Jun 2018 02:34:29 +0000</pubDate>
				<category><![CDATA[linux知识]]></category>
		<category><![CDATA[btrfs]]></category>
		<category><![CDATA[set]]></category>
		<category><![CDATA[snapshot]]></category>
		<guid isPermaLink="false">http://www.bhzhu203.com/?p=455</guid>

					<description><![CDATA[32 down vote accepted The btrfs manpage  [&#8230;]]]></description>
										<content:encoded><![CDATA[<div class="votecell post-layout--left">
<div class="vote"><span class="vote-count-post ">32</span> <a class="vote-down-off" title="This answer is not useful">down vote</a> <span class="vote-accepted-on load-accepted-answer-date" title="loading when this answer was accepted...">accepted</span></div>
</div>
<div class="answercell post-layout--right">
<div class="post-text">
<p>The btrfs manpage fails to document the <code>property</code> subcommand, which I found by grep&#8217;ing the source. It&#8217;s also in <code>btrfs --help</code>.</p>
<p>To set a snapshot to read-write, you do something like this:</p>
<pre><code>btrfs property set -ts /path/to/snapshot ro false
</code></pre>
<p>Change that to <code>true</code> to set it to read-only.</p>
<p>You can also use <code>list</code> to see the available properties:</p>
<pre><code>btrfs property list -ts /path/to/snapshot
ro                  Set/get read-only flag of subvolume.
</code></pre>
<p><code>-t</code> specifies the type of object to work on, <code>s</code> means subvolume. Other options are <code>f</code> (filesystem), <code>i</code> (inode), and <code>d</code> (device). If you don&#8217;t specify, it&#8217;ll show all applicable ones (for list) or try to guess for get/set.</p>
<p>Edit: in the newest btrfs tools, there is a <code>btrfs-property</code> manpage documenting that subcommand, although it&#8217;s not mentioned in the main manpage at all. It&#8217;s also available as the <a href="https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-property" rel="noreferrer">btrfs-property page on the wiki</a>.</p>
<p>(Note: This requires a new-enough btrfs-tools. Apparently on Debian Wheezy, you&#8217;ll have to install the updated one from wheezy-backports; thanks <a href="https://unix.stackexchange.com/users/23542/artfulrobot">artfulrobot</a>).</p>
</div>
</div>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
