<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Thank you John and Aram for your help.<br><br>In the application that I am working on, I wish to capture all the read and write calls to the pool, analyze the data, and generate some reports. I need to just observe but not modify the data. The capturing of calls need to be done in real time (without effecting zfs performance).<br><br>Regards,<br>Peter<br><br><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Aram Hăvărneanu <aram.h@mgk.ro><br><b><span style="font-weight: bold;">To:</span></b> Peter Tap <ptrtap@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b>
Developer Lists Illumos <developer@lists.illumos.org><br><b><span style="font-weight: bold;">Sent:</span></b> Mon, November 15, 2010 10:02:13 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [illumos-Developer] Intercepting zfs calls<br></font><br>
> Is there a way to intercept calls to zfs?<br><br>What does `intercepting' in this context mean? Do you want to observe<br>it or modify it's behavior? You can put a breakpoint in the mdb(1)<br>kernel debugger, and you can trace it with dtrace(1M) if you want to<br>observe or single-step through it.<br><br>> If not, is there a formal proposal<br>> process to extend zfs?<br><br>What are you trying to accomplish? Enhance ZFS? In what way? Just do<br>it and post a webrev of the changes :-). Modify ZFS behavior in a way<br>that's incompatible with illumos (maybe for inclusion in a 3rd party<br>product)? You can write a layered file system that sits on top of ZFS.<br>However, the file system interfaces are volatile and undocumented and<br>3rd party file systems will never be officially supported.<br><br>It is very unlikely that you need a file system or need to modify an<br>existing one for your project. Please tell us your higher level goals<br>so
we will be able to help you with finding the right approach.<br><br>> Also, where is the ultimate repository for open-source zfs? There was some<br>> talk about <a target="_blank" href="http://zfs.org">zfs.org</a> being such a resource. However, this site doesn't seem to<br>> be open for public yet.<br><br>Apart from the public source code in illumos I am not aware of any<br>other respurces.<br><br>-- <br>Aram Hăvărneanu<br></div></div>
</div><br>
</body></html>