Re: [zfs-discuss] zfs znode changes getting lost

2008-11-27 Thread shelly
thanx a lot perrin it really helped a lot. -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

[zfs-discuss] zfs znode changes getting lost

2008-11-26 Thread shelly
In place of padding in zfs znode i added a new field. stored an integer value and am able to see saved information. but after reboot it is not there. If i was able to access before reboot so it must be in memory. I think i need to save it to disk. how does one force zfs znode to disk. right

Re: [zfs-discuss] zfs znode changes getting lost

2008-11-26 Thread Neil Perrin
I suspect ZFS is unaware that anything has changed in the z_phys so it never gets written out. You probably need to create a dmu transaction and call dmu_buf_will_dirty(zp-z_dbuf, tx); Neil. On 11/26/08 03:36, shelly wrote: In place of padding in zfs znode i added a new field. stored an integer