<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openvz.org/index.php?action=history&amp;feed=atom&amp;title=Pfcache%2FAPI</id>
	<title>Pfcache/API - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openvz.org/index.php?action=history&amp;feed=atom&amp;title=Pfcache%2FAPI"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Pfcache/API&amp;action=history"/>
	<updated>2026-09-14T13:10:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Pfcache/API&amp;diff=12023&amp;oldid=prev</id>
		<title>Kir: moved Pfcache/internals to Pfcache/API</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Pfcache/API&amp;diff=12023&amp;oldid=prev"/>
		<updated>2012-02-21T11:24:56Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/index.php?title=Pfcache/internals&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Pfcache/internals (page does not exist)&quot;&gt;Pfcache/internals&lt;/a&gt; to &lt;a href=&quot;/Pfcache/API&quot; title=&quot;Pfcache/API&quot;&gt;Pfcache/API&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 11:24, 21 February 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Kir</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Pfcache/API&amp;diff=12022&amp;oldid=prev</id>
		<title>Kir: created</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Pfcache/API&amp;diff=12022&amp;oldid=prev"/>
		<updated>2012-02-21T11:17:01Z</updated>

		<summary type="html">&lt;p&gt;created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Kernel pfcache API is described in linux/pfcache.h&lt;br /&gt;
&lt;br /&gt;
== Filesystem attributes ==&lt;br /&gt;
&lt;br /&gt;
xattr &amp;quot;trusted.pfcache&amp;quot;  (PFCACHE_XATTR_NAME)&lt;br /&gt;
&lt;br /&gt;
for directories:&lt;br /&gt;
&amp;quot;auto&amp;quot; -- checksum files at create, inherited from parent on mkdir.&lt;br /&gt;
&lt;br /&gt;
for regular files:&lt;br /&gt;
SHA-1 checksum, 40 (PFCACHE_CSUM_SIZE * 2) chars length hex string.&lt;br /&gt;
&lt;br /&gt;
== ioctls ==&lt;br /&gt;
&lt;br /&gt;
=== FS_IOC_PFCACHE_OPEN ===&lt;br /&gt;
&lt;br /&gt;
 ioctl(fd, FS_IOC_PFCACHE_OPEN)&lt;br /&gt;
&lt;br /&gt;
Try to reopen pfcache peer for this inode&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Exit codes&lt;br /&gt;
|| -EPERM	|| no cap-sys-admin&lt;br /&gt;
|-&lt;br /&gt;
|  -ENODATA	|| no checksum&lt;br /&gt;
|-&lt;br /&gt;
|   -ENODEV	|| no prcache on fs&lt;br /&gt;
|-&lt;br /&gt;
|   -ENOENT	|| cache peer not found&lt;br /&gt;
|-&lt;br /&gt;
|   -EBUSY	|| already opened&lt;br /&gt;
|-&lt;br /&gt;
|   -EINVAL	|| cache peer does not match or not regular file&lt;br /&gt;
|-&lt;br /&gt;
|   -EMLINK	|| cache peer has itself cache peer, or symlinks mess&lt;br /&gt;
|-&lt;br /&gt;
|   -ETXTBSY	|| cache peer opened for write&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot;   | ... plus all the open(2) error codes&lt;br /&gt;
|-&lt;br /&gt;
|    0		|| success!&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== FS_IOC_PFCACHE_CLOSE ===&lt;br /&gt;
&lt;br /&gt;
 ioctl(fd, FS_IOC_PFCACHE_CLOSE)&lt;br /&gt;
&lt;br /&gt;
Close pfcache peer for this inode inode&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Exit codes&lt;br /&gt;
|    -EPERM	|| no cap-sys-admin&lt;br /&gt;
|-&lt;br /&gt;
|    -ENOENT	|| not opened&lt;br /&gt;
|-&lt;br /&gt;
|    0		|| success&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== FS_IOC_PFCACHE_DUMP ===&lt;br /&gt;
&lt;br /&gt;
 ioctl(fd, FS_IOC_PFCACHE_DUMP, struct pfcache_dump_request *)&lt;br /&gt;
&lt;br /&gt;
Dump in-memory inodes for this fs, see linux/pfcache.h for description.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Exit codes&lt;br /&gt;
|   -EPERM	|| no cap-sys-admin&lt;br /&gt;
|-&lt;br /&gt;
|   -EINVAL     || -&lt;br /&gt;
|-&lt;br /&gt;
|   -EINTR      || -&lt;br /&gt;
|-&lt;br /&gt;
|   &amp;gt;=0		|| Number of dumped inodes&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Kir</name></author>
		
	</entry>
</feed>