Jim Mauro wrote:
> Hi Neel - Thanks for pushing this out. I've been tripping over this for 
> a while.
> 
> You can instrument zfs_read() and zfs_write() to reliably track filenames:
> 
> #!/usr/sbin/dtrace -s
> 
> #pragma D option quiet
> 
> zfs_read:entry,
> zfs_write:entry
> {
>         printf("%s of %s\n",probefunc, stringof(args[0]->v_path));
> }

FYI, this tracks the system calls made (which may hit in the cache), whereas 
io:::start tracks i/o sent down to the disk driver.

> What sayeth the ZFS team regarding the use of a stable DTrace provider 
> with their file system?

Sounds like a good idea.  However, as others discussed, the data needed to do 
that is not immediately available.

--matt
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to