summaryrefslogtreecommitdiff
path: root/devdocs/elisp/files-and-storage.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/files-and-storage.html
new repository
Diffstat (limited to 'devdocs/elisp/files-and-storage.html')
-rw-r--r--devdocs/elisp/files-and-storage.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/devdocs/elisp/files-and-storage.html b/devdocs/elisp/files-and-storage.html
new file mode 100644
index 00000000..a5064be8
--- /dev/null
+++ b/devdocs/elisp/files-and-storage.html
@@ -0,0 +1,6 @@
+ <h3 class="section">Files and Secondary Storage</h3> <p>After Emacs changes a file, there are two reasons the changes might not survive later failures of power or media, both having to do with efficiency. First, the operating system might alias written data with data already stored elsewhere on secondary storage until one file or the other is later modified; this will lose both files if the only copy on secondary storage is lost due to media failure. Second, the operating system might not write data to secondary storage immediately, which will lose the data if power is lost. </p> <p>Although both sorts of failures can largely be avoided by a suitably configured file system, such systems are typically more expensive or less efficient. In more-typical systems, to survive media failure you can copy the file to a different device, and to survive a power failure you can use the <code>write-region</code> function with the <code>write-region-inhibit-fsync</code> variable set to <code>nil</code>. See <a href="writing-to-files">Writing to Files</a>. </p><div class="_attribution">
+ <p class="_attribution-p">
+ Copyright &copy; 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
+ <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Files-and-Storage.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Files-and-Storage.html</a>
+ </p>
+</div>