What's new

Does NAS performance matter?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

I must say that I don't understand much of what you are saying. Probably, my knowledge in the subject is insufficient. :)


Thats the problem, I too lack sufficient knowledge, it appears that the EXT3 filesystem journals changes to files, for reliability - but it is not practical to do recovery of those changes.

From what I can tell, when an block within a file changes instead of overwriting existing block in place, it uses a new block and marks the old one for garbage collection/reuse and records the block pointer change (journals it). This means that, provided the trash hasn't been taken out, the data is there - it could be reconstructed. Those changes are recorded (old and new block pointers, timestamps, etc) in the journal that lives along side of the file, part of the file's metadata, the inode.

I guess (again my ignorance) the advantage is that if a write fails, or the system crashes during I/O the previous block pointers can be used to reconstruct the file using fsck and filesystem built-in capabilities.

Anyone have a better understanding of journaling in EXT3?
 
Last edited:
the journaling in ext3 and ext4 has nothing to do with maintaining different versions of the same file.

it has to do with ensuring that when a data is written, it is wholy written and not partially written.

ie to avoid file corruption, not to provide file versioning.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top