Skip to contentSkip to conversation

2.6: marking individual directories as synchronous?

DISCUSSION Dan Behman 2 participants 2 messages Jul 17, 2003 – Jul 20, 2003

lore
Share & tools
lore

Dan Behman

author
#0 lore raw

Hi,

I'm reading through Joseph Pranevich's great document "Wonderful World of Linux 2.6" and I came across something that I'd love to learn more about. In the "Block Device Support" -> "Filesystems" section, reference is made to "Individual directories can now be marked as synchronous so that all changes (additional files, etc.) will be atomic". I searched through the update info at kernelnewbies but couldn't find any more information on this - could someone please elaborate on this? What is it and how does it work? Is there any design documentation for this?

Thanks!

Dan Behman...

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus

#1 lore raw
Quoted 11 lines · Dan Behman

Hi,

I'm reading through Joseph Pranevich's great document "Wonderful World of Linux 2.6" and I came across something that I'd love to learn more about. In the "Block Device Support" -> "Filesystems" section, reference is made to "Individual directories can now be marked as synchronous so that all changes (additional files, etc.) will be atomic". I searched through the update info at kernelnewbies but
couldn't find any more information on this - could someone please elaborate on this? What is it and how does it work? Is there any design documentation for this?

He is is probably referring to "chattr +S". See the man page for chattr for more information. Note that strictly speaking this does not necessarily give you "atomic changes". It does mean that changes are scheduled to be immediately written to disk, but that does not guarantee atomicity, at least not for all filesystems and for all operations. You *can* be guaranteed that system calls will not return until the changes are on disk; note though that this does have has some significant performance impacts.

- Ted