Hammer: Transactional file updates
daniel_h_taylor at yahoo.co.uk
Fri Aug 1 14:40:39 PDT 2008
--- On Fri, 1/8/08, Michael Neumann <mneumann at ntecs.de> wrote:
> fd = open(file); // behaves like START TRANSACTION
> read(fd, ...);
> write(fd, ...);
> close(fd); // behaves like COMMIT
If you want a commit on close, fsync() the file just before you close() it.
> That would be fine except that it would give me a new inode
> number, and
> the inode number is right now the only way to associate
> further data
> with a file.
Why do you care if you get a new inode vs multiple versions of the same inode?
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
More information about the Users