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 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 now i dont do anything special for it. Just made an ioctl, accessed > znode and made changes. > > example in zfs_ioctl > > case add_new: > zp = VTOZ(vp); > zp->z_phys->new_field = 2; > return(0); _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss