First, you really shouldn't be adding a method to dbpf - you never call dbpf 
directly, only through Trove, so you need a corresponding Trove call, and then 
add methods to the other Trove methods.  You almost never call Trove directly 
either, mostly through the Job interface.  So there is a lot of work to extend 
that interface, and then you need to be sure we want that extension.

If you are writing a keyval entry there are existing methods - what you might 
need is a new metadata key.  This is a two character key appended to the handle 
to identify what the keyval is.  In your case maybe SD for "stuffed data".  
There is a .h where those are #defined - you can look at other examples where 
other metadata attribs are written.

Walt

> On Nov 30, 2013, at 12:59 AM, Jay Bhukhanwala <[email protected]> wrote:
> 
> We are trying to generate a new key-value store in dbpf.
> We have written our own functions needed for the db access. Below are their 
> signatures :
>  
> 1. static int dbpf_keyval_add_data(TROVE_coll_id coll_id,
>                                 TROVE_handle handle,
>                                 TROVE_keyval_s *key_p,
>                                 TROVE_keyval_s *val_p,
>                                 TROVE_ds_flags flags,
>                                 TROVE_vtag_s *vtag,
>                                 void *user_ptr,
>                                 TROVE_context_id context_id,
>                                 TROVE_op_id *out_op_id_p,
>                                 PVFS_hint  hints)
> 2.  static int dbpf_keyval_add_data_op_svc(struct dbpf_op *op_p)
> 
> 
> Also, we have registered the functions in data structures wherever the other 
> functions of the same file  are registered, say as values to function 
> pointers.
> 
> But Unfortunately, we still aren't able to to write to the BDB. 
> 
> We are also unsure what to make of the the event handling functions in BDB 
> such as below : 
> 
> PINT_event_define_event(&
> trove_dbpf_event_group,
>                                 "dbpf_keyval_add_data",
>                                 "%d%d%d%llu%llu%d%d",
>                                 "%llu",
>                                 &trove_dbpf_write_event_id);
> 
> Please help us, we have been stuck on this a while now.
> 
> Thanks in advance,
> Jay.
> _______________________________________________
> Pvfs2-developers mailing list
> [email protected]
> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers
_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

Reply via email to