This content has been marked as final. Show 2 replies
I think you want the fsinfo provider.
#pragma D option quiet
printf("%s (%s) %s: %d [%s]\n", probename, execname, args->fi_pathname, args, args->fi_fs);
Thank you very much!!
The fsinfo provider is not documented on the the DTrace documentation wiki. Or, if it is, it's not on the front page with all the other providers. (http://wikis.sun.com/display/DTrace/Documentation) Not sure I would ever have stumbled across that on my own.
Playing around a bit I also found that:
args->fi_dirname gives you the directory the write took place in
args->fi_mount gives you the filesystem mountpoint the write took place in