[illumos-Developer] Intercepting zfs calls

Sriram Narayanan sriram at belenix.org
Mon Nov 15 10:52:45 PST 2010


Please investigate DTrace.

-- Sriram

On 11/16/10, Peter Tap <ptrtap at yahoo.com> wrote:
> Thank you John and Aram for your help.
>
> 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).
>
> Regards,
> Peter
>
>
>
>
>
>
> ________________________________
> From: Aram Hăvărneanu <aram.h at mgk.ro>
> To: Peter Tap <ptrtap at yahoo.com>
> Cc: Developer Lists Illumos <developer at lists.illumos.org>
> Sent: Mon, November 15, 2010 10:02:13 AM
> Subject: Re: [illumos-Developer] Intercepting zfs calls
>
>> Is there a way to intercept calls to zfs?
>
> What does `intercepting' in this context mean? Do you want to observe
> it or modify it's behavior? You can put a breakpoint in the mdb(1)
> kernel debugger, and you can trace it with dtrace(1M) if you want to
> observe or single-step through it.
>
>> If not, is there a formal proposal
>> process to extend zfs?
>
> What are you trying to accomplish? Enhance ZFS? In what way? Just do
> it and post a webrev of the changes :-). Modify ZFS behavior in a way
> that's incompatible with illumos (maybe for inclusion in a 3rd party
> product)? You can write a layered file system that sits on top of ZFS.
> However, the file system interfaces are volatile and undocumented and
> 3rd party file systems will never be officially supported.
>
> It is very unlikely that you need a file system or need to modify an
> existing one for your project. Please tell us your higher level goals
> so we will be able to help you with finding the right approach.
>
>> Also, where is the ultimate repository for open-source zfs? There was some
>> talk about zfs.org being such a resource. However, this site doesn't seem
>> to
>> be open for public yet.
>
> Apart from the public source code in illumos I am not aware of any
> other respurces.
>
> --
> Aram Hăvărneanu
>
>
>
>

-- 
Sent from my mobile device

==================
Belenix: www.belenix.org



More information about the Developer mailing list