Thanks, fixes following two issues, I can get the right value:(1) Dividing
offset 0x657800(6649856) by 512 and take it as the iseek value.
(2) Run the dd command on device c2t0d0s0, not c2t0d0.
Zhihui
2009/6/26 m...@bruningsystems.com m...@bruningsystems.com
Hi Zhihui Chen,
zhihui Chen
I use following dtrace script to trace the postion of one file on zfs:
#!/usr/sbin/dtrace -qs
zio_done:entry
/((zio_t *)(arg0))-io_vd/
{
zio=(zio_t *)arg0;
printf(Offset:%x and Size:%x\n,zio-io_offset,zio-io_size);
printf(vd:%x\n,(unsigned long)(zio-io_vd));
Find that zio-io_offset is the absolute offset of device, not in sector
unit. And If we need use zdb -R to dump the block, we should use the offset
(zio-io_offset-0x40).
2009/6/25 zhihui Chen zhch...@gmail.com
I use following dtrace script to trace the postion of one file on zfs: