{"id":701,"date":"2011-09-13T19:01:42","date_gmt":"2011-09-13T17:01:42","guid":{"rendered":"http:\/\/www.lucas-nussbaum.net\/blog\/?p=701"},"modified":"2011-09-13T19:01:42","modified_gmt":"2011-09-13T17:01:42","slug":"why-dont-cp-and-tar-use-fsync","status":"publish","type":"post","link":"https:\/\/www.lucas-nussbaum.net\/blog\/?p=701","title":{"rendered":"Why don&#8217;t cp and tar use fsync()?"},"content":{"rendered":"<p>I must admit that I&#8217;m a bit lost about the conclusions of the\u00a0<a href=\"http:\/\/webcache.googleusercontent.com\/search?q=cache:_Ksn-Xt4oBIJ:www.linuxfoundation.org\/news-media\/blogs\/browse\/2009\/03\/don%E2%80%99t-fear-fsync&amp;hl=fr\">Don&#8217;t fear the fsync()<\/a>!\u00a0(lf.org down; google cache) debate. My understanding was that using <code>fsync()<\/code> was the right thing to do when we cared about data being written to disk.<\/p>\n<p>When using <code>cp<\/code> or <code>tar<\/code>, I usually care about my data being written to the disk, so why don&#8217;t they use <code>fsync()<\/code>? Shouldn&#8217;t they?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I must admit that I&#8217;m a bit lost about the conclusions of the\u00a0Don&#8217;t fear the fsync()!\u00a0(lf.org down; google cache) debate. My understanding was that using fsync() was the right thing to do when we cared about data being written to disk. When using cp or tar, I usually care about my data being written to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"0","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,12],"tags":[],"class_list":["post-701","post","type-post","status-publish","format-standard","hentry","category-planetdebian","category-planetubuntu"],"_links":{"self":[{"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=701"}],"version-history":[{"count":1,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/701\/revisions"}],"predecessor-version":[{"id":702,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/701\/revisions\/702"}],"wp:attachment":[{"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}