Hi avati thanks for your help - notify works, future plannings on doing "du -chs" like ops on init for accounting previous run files. - statfs return correct values forcing scheduler's to choose other nodes on quota hit - I can account for data blocks write ops on write_cbk ops. On unlink my plan is: place a call to stat for calculating file size, place pre_unlink_stat_cbk for return on pre_unlink_stat_cbk copy buf->st_size on a calloc'ed *int32_t and place it on frame ->local and then put a call to unlink downwards for delete file, place unlink_cbk for return on successfull unlink_cbk will account for freed bytes (frame->local) and return (unwind) for parent. This is correct for you? im not sure things going like this.. This mostly will allow accounting for regular file data blocks... dirs and inodes still ahead on the road Thanks, Angel El Viernes, 18 de Enero de 2008 Anand Avati escribió: > 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 <clist@xxxxxx>: > > > > 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 > > Gluster-devel@xxxxxxxxxx > > http://lists.nongnu.org/mailman/listinfo/gluster-devel > > > > > -- ------------------------------------------------ Clist UAH ------------------------------------------------