gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] QUOTA Xlator question


From: Anand Avati
Subject: Re: [Gluster-devel] QUOTA Xlator question
Date: Sat, 19 Jan 2008 00:00:23 +0530

You can call the stat mop in notify() of event GF_EVENT_CHILD_UP.
GF_EVENT_CHILD_UP ensures that the child volumes have been called init().
you can refer the case of schedulers sending the stat call in notify()
(unify+rr)

if you need a variable across the call and its callback, you should put them
in frame->local.

thanks,
avati

2008/1/18, Angel <address@hidden>:
>
> Hi,
>
> I have to record underlaying storage parameters total_disk_size,
> disk_usage and free_disk.
>
> Can I call child-> stat mops in init or i must declare notify and record
> params on CHILD_UP??
>
> Last question calling chid-> stats mops...
> I need to call and place my record_stats_cbk on the stack to read values
> on return? is this the way?
>
> Regards, Angel
>
>
> --
> ----------------------------
> Clister UAH
> ----------------------------
>
>
> _______________________________________________
> Gluster-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/gluster-devel
>



-- 
If I traveled to the end of the rainbow
As Dame Fortune did intend,
Murphy would be there to tell me
The pot's at the other end.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]