[ZODB-Dev] TransactionFileSystem

Kapil Thangavelu k_vertigo@yahoo.com
Thu, 7 Mar 2002 14:05:24 -0800 (PST)


hi folks,

i wrote a simple api for interacting with file systems
with transaction integration with the zodb transaction
semantics. its at

http://www.zope.org/Members/k_vertigo/Products/TransactionalFileSystem
 
its bit scant on documentation but has several
unittests. 

the basic approach is to create an abstraction fs
object passing it in two directories, a store and a
temp. files can be added and removed through the fs
object are moved at transaction states between the two
directories via the posix platform atomic commands
rename and unlink. a recovery protocol cleans up the
temp directory in the case of failure.

comments on this approach?

it has a small dependency on a zope file (README
contains directions on how to get around it).

cheers

kapil




__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/