fsync
Does msync sync all files on the filesystem to the disk like fsync on ext3?
as far as I know, on most ext3 system with log mode \"data=ordered\",fsync will not only sync the file specified with the fd, but will sync all files on the filesystem, and this proble开发者_StackOver[详细]
2023-04-12 01:54 分类:问答What exactly is file.flush() doing?
I found this in the Python documentation for File Objects: flush() does not necessarily write the file’s data to disk. Use flush() followed by os.fsync() to ens开发者_如何学编程ure this behavior.[详细]
2023-03-29 15:24 分类:问答Directories created by boost::filesystem::create_directories() not immediately accessible?
I am using boost::filesystem::create_directories() to create new directories. When I try to access these directories shortly after creation, I get an error saying: no such directory. But if I sleep fo[详细]
2023-03-29 10:27 分类:问答Calling os.fsync on the stdout/stderr file descriptors kills a subprocess
After spawning a subprocess using the Python subprocess library, I\'m using stderr to pass a message from the child process to the parent process containing some serialized data. I then want the paren[详细]
2023-03-20 15:52 分类:问答How should I handle an fsync exception from libSystem.B.dylib?
I got a crash report with this stack trace: Exception Type:EXC_CRASH (SIGABRT) Exception Codes: 0x00000000, 0x00000000[详细]
2023-02-13 21:49 分类:问答ext4/fsync situation unclear in Android (Java)
Tim Bray\'s article \"Saving Data Safely\" left me with open questions. Today, it\'s over a month old and I haven\'t seen any follow-up on it, so I decided to address the topic here.[详细]
2023-02-04 07:58 分类:问答PostgreSQL 9: could not fsync file "base/16386": Invalid argument
I\'m trying to test a small PostgreSQL setup, so I cobbled together a quick local install.However, when I\'m trying to create my personal db with createdb, it chokes on errors like this (notably, it s[详细]
2023-01-25 00:09 分类:问答Possible to implement journaling with a single fsync per commit?
Let\'s say you\'re building a journaling/write-ahead-logging storage system. Can you simply implement this by (for each transaction) appending the data (with write(2)), appendi开发者_如何学Cng a commi[详细]
2023-01-18 03:59 分类:问答How to durably rename a file in POSIX?
What\'s the correct way to durably rename a file in a POSIX file system?Specifically wondering about fsyncs on the directories.(If this depends on the OS/FS, I\'m asking about Linux and ext3/ext4).[详细]
2023-01-17 14:29 分类:问答Difference between fflush and fsync
I thought fsync() does fflush() internally, so using fsync() on a stream is OK. But I am getting an unexpected result when executed under network I/O.[详细]
2022-12-21 03:26 分类:问答