]> git.decadent.org.uk Git - kernel-news-talk.git/blobdiff - index.html
Add slide about O_TMPFILE
[kernel-news-talk.git] / index.html
index 977894b7702d6d225abe8bee4a3cb80cad334f63..ef03341a9e1b72d27a43f72d18323739d369c121 100644 (file)
@@ -59,6 +59,7 @@
   <ul>
     <li>
       Professional software engineer by day, Debian developer by night
+      (or sometimes the other way round)
     </li>
     <li>
       Regular Linux contributor in both roles since 2008
   </ul>
 </div>
 
+<div class="slide">
+  <h1>Unnamed temporary files [3.11]</h1>
+  <ul>
+    <li>
+      Open directory with option <tt>O_TMPFILE</tt> to create an
+      unnamed temporary file on that filesystem
+    </li>
+    <li>
+      As with <tt>tmpfile()</tt>, the file disppears on
+      last <tt>close()</tt>
+    </li>
+    <li>
+      File can be linked into the filesystem using
+      <tt>linkat(..., AT_EMPTY_PATH)</tt>, allowing for 'atomic'
+      creation of file with complete contents and metadata
+    </li>
+    <li>
+      Not supported on all filesystem types, so you will usually need
+      a fallback
+    </li>
+  </ul>
+</div>
+
 <div class="slide">
   <h1>Questions?</h1>
 </div>