you are viewing a single comment's thread
view the rest of the comments
[–] 4 points 2 months ago (1 child)

Not all modern filesystems are CoW like btrfs. ext4 is merely journaled, which means that there are rare instances where it can be corrupted, but recovery is fast. However in both cases you can still end up with individualy inconsistent files if, say, the power goes out while the CoW b-tree is percolating up and so the file never gets updated or if the ram cache never has a chance to flush.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 2 months ago* (last edited 2 months ago)

    ext4 is merely journaled, which means that there are rare instances where it can be corrupted, but recovery is fast.

    None of these things mean that the filesystem becomes corrupted; the filesystem will be in a filesystem consistent state when remounted. You can have a write that is partially performed on a file, but that does not cause the filesystem to become corrupt when it does not complete being written. The journal can contain that write, but it can not yet be committed, and won't yet be visible to a user. But that doesn't make the filesystem corrupt; the commit itself is atomic.

  • source
  • parent