[zfs-discuss] getting inodeno for zfs from vnode in vfs kernel layer

2008-06-17 Thread Shriram Agarwal
i need to get inodeno on ZFS and i am not able to find how to find it in kernel at vfs layer. i have vnode pointer and i am doing VTOZ to get znode but printing z_id from znode pointer gives me deadbeef(unitialized) , can somebody point me how to get that? i looked at zfs_getattr code and it doe

[zfs-discuss] getting inode for zfs from vnode/vfs layer in kernel

2008-06-17 Thread Shriram Agarwal
i need to get inodeno on ZFS and i am not able to find how to find it in kernel at vfs layer. i have vnode pointer and i am doing VTOZ to get znode but printing z_id from znode pointer gives me deadbeef(unitialized) , can somebody point me how to get that? i looked at zfs_getattr code and it doe

[zfs-discuss] want to intercept all IO on ZFS file sytem

2008-03-11 Thread shriram agarwal
hi , i want to intercept IO on ZFS at vnode layer, i changed vnodeops pointer for zfs in vfs frame work but i only get IO for creating new file but i dont get for read,lookup,write,changing setattribute etc. can somebody explain why ? and how can i achieve that? similar thing works fine for vxfs