okio icon indicating copy to clipboard operation
okio copied to clipboard

FileSystem.withForceDurable()

Open swankjesse opened this issue 3 years ago • 1 comments

Lets make a Filesystem implementation that does all the right fsync things when you perform a write operation. It should share most of its code with the regular Filesystem implementations.

class FileSystem {
  ...

  /** 
   * Returns a filesystem that operates on the same data as this file system,
   * but whose write operations do not return until they are durable-enough
   * to survive an operating system crash or power loss. Such writes may
   * still be lost in the event of data corruption bug or hardware failure.
   */
  val withForceDurable(): FileSystem
}

swankjesse avatar Nov 17 '20 04:11 swankjesse

https://www.evanjones.ca/durability-filesystem.html

swankjesse avatar Jan 16 '21 19:01 swankjesse