Skip to content

Instantly share code, notes, and snippets.

@stevenwilliamson
Created August 10, 2016 09:06
Show Gist options
  • Save stevenwilliamson/efd3846b616cd18a69c267f9fa157001 to your computer and use it in GitHub Desktop.
Save stevenwilliamson/efd3846b616cd18a69c267f9fa157001 to your computer and use it in GitHub Desktop.
#!/usr/sbin/dtrace -s
syscall::write:entry /fds[arg0].fi_fs == "zfs" && fds[arg0].fi_mount == "/dataset/mounted/here"/
{
printf("%s touched %s", pid, fds[arg0].fi_pathname;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment