Re: [zfs-discuss] Is write(2) made durable atomically?

2009-12-01 Thread Robert Milkowski
Neil Perrin wrote: Under the hood in ZFS, writes are committed using either shadow paging or logging, as I understand it. So I believe that I mean to ask whether a write(2), pushed to ZPL, and pushed on down the stack, can be split into multiple transactions? Or, instead, is it guaranteed

[zfs-discuss] Is write(2) made durable atomically?

2009-11-30 Thread Chris Frost
Will a write(2) to a ZFS file be made durable atomically? Under the hood in ZFS, writes are committed using either shadow paging or logging, as I understand it. So I believe that I mean to ask whether a write(2), pushed to ZPL, and pushed on down the stack, can be split into multiple

Re: [zfs-discuss] Is write(2) made durable atomically?

2009-11-30 Thread Neil Perrin
Under the hood in ZFS, writes are committed using either shadow paging or logging, as I understand it. So I believe that I mean to ask whether a write(2), pushed to ZPL, and pushed on down the stack, can be split into multiple transactions? Or, instead, is it guaranteed to be committed in a

Re: [zfs-discuss] Is write(2) made durable atomically?

2009-11-30 Thread Chris Frost
On Mon, Nov 30, 2009 at 11:03:07PM -0700, Neil Perrin wrote: A write made through the ZPL (zfs_write()) will be broken into transactions that contain at most 128KB user data. So a large write could well be split across transaction groups, and thus committed separately. That answers my exact

Re: [zfs-discuss] Is write(2) made durable atomically?

2009-11-30 Thread Chris Frost
On Mon, Nov 30, 2009 at 10:23:06PM -0800, Chris Frost wrote: On Mon, Nov 30, 2009 at 11:03:07PM -0700, Neil Perrin wrote: A write made through the ZPL (zfs_write()) will be broken into transactions that contain at most 128KB user data. So a large write could well be split across transaction