[zfs-discuss] User level transactional API

2010-08-12 Thread Jason
Has any thought been given to exposing some sort of transactional API for ZFS at the user level (even if just consolidation private)? Just recently, it would seem a poorly timed unscheduled poweroff while NWAM was attempting to update nsswitch.conf left me with a 0 byte nsswitch.conf (which when

Re: [zfs-discuss] User level transactional API

2010-08-12 Thread Norm Jacobs
For single file updates, this is commonly solved by writing data to a temp file and using rename(2) to move it in place when it's ready. -Norm On 08/12/10 04:51 PM, Jason wrote: Has any thought been given to exposing some sort of transactional API for ZFS at the user level (even if just

Re: [zfs-discuss] User level transactional API

2010-08-12 Thread Nicolas Williams
On Thu, Aug 12, 2010 at 07:48:10PM -0500, Norm Jacobs wrote: For single file updates, this is commonly solved by writing data to a temp file and using rename(2) to move it in place when it's ready. For anything more complicated you need... a more complicated approach. Note that transactional