DragonFly users List (threaded) for 2008-08
DragonFly BSD
DragonFly users List (threaded) for 2008-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Hammer: Transactional file updates


From: Daniel Taylor <daniel_h_taylor@xxxxxxxxxxx>
Date: Fri, 1 Aug 2008 21:34:19 +0000 (GMT)

--- On Fri, 1/8/08, Michael Neumann <mneumann@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]