Anton Youdkevitch
2007-Jun-26 17:39 UTC
[dtrace-discuss] how to detect directory removal on nfs server side
Folks! I''d like to be notified whenever a directory gets remotely removed. The "syscall::rmdir:" stuff doesn''t work here as all the things go through NFS module. The trouble is, however, that there are too many of ''fbt:nfssrv'' functions get called each time a directory gets removed. Could some NFS guru tell me which function responsible for directory removal (I mean, the function which is called each time the directory gets removed). -- Thanks, Anton
Casper.Dik at Sun.COM
2007-Jun-26 17:54 UTC
[dtrace-discuss] how to detect directory removal on nfs server side
>Folks! > >I''d like to be notified whenever a directory gets remotely removed. The >"syscall::rmdir:" stuff doesn''t work here as all the things go through >NFS module. >The trouble is, however, that there are too many of ''fbt:nfssrv'' >functions get called each time a directory gets removed. Could some NFS >guru tell me which function responsible for directory removal (I mean, >the function which is called each time the directory gets removed).In the end, all rmdir() calls should be funneled through fop_rmdir(). Casper
Anton Youdkevitch
2007-Jun-27 11:09 UTC
[dtrace-discuss] how to detect directory removal on nfs server side
Casper.Dik at Sun.COM wrote:>> Folks! >> >> I''d like to be notified whenever a directory gets remotely removed. The >> "syscall::rmdir:" stuff doesn''t work here as all the things go through >> NFS module. >> The trouble is, however, that there are too many of ''fbt:nfssrv'' >> functions get called each time a directory gets removed. Could some NFS >> guru tell me which function responsible for directory removal (I mean, >> the function which is called each time the directory gets removed). > > > > In the end, all rmdir() calls should be funneled through fop_rmdir().Oh, didn''t realize that! Thanks a lot! Now it works. -- Anton