DTRACE: Argument to nfsv4:::op-remove-start ?
I want to track "rmdir" executed over NFS by a client, to determine which client is doing a particular rmdir.
I believe this will show on the server with the dtrace probe
nfsv4:::op-remove-start
args[0]->ci_remote will give me the client
args[1]->noi_curpath will give me the parent directory
and I believe args[2]->target should be the actual name of the file (a directory in this case) that is being removed.
More precisely args[2] is of type
struct REMOVE4args
{
component4 target;
};
typedef utf8str_cs component4
However, I don't know how to deal with a utf8str_cs in a dtrace script. I know the directory name is of course ascii.