Theodore Ts’o 3/12/2009

Delayed allocation and the zero-length file problem

Read Original

This technical article discusses the ext4 filesystem's delayed allocation feature, its performance benefits, and the 'zero-length file' problem that can cause data loss after a crash. It explains why applications relying on ext3's default 5-second commit behavior are at risk on ext4 if they don't properly use fsync() or fdatasync(). The post analyzes the underlying filesystem mechanics and the security trade-offs of different journaling modes.

Delayed allocation and the zero-length file problem

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes