[openbeosstorage] Re: ddm questions

On 2003-10-23 at 15:13:46 [-0700], you wrote:
> All right, I'm back in action. :-) I got some ddm questions:
> 
> + Do I need to copy out the data in the pointer arguments (all of which are
> names) for the _kern_validate_set_partition_{name,content_name,type}()
> functions? I can't really see any reason to other than truncating long
> names, but I was planning on returning B_NAME_TOO_LONG in those instances
> anyway.

Well, _kern_validate_set_partition_type()'s argument is a const char*, so I 
guess I know the answer for that one already, but the question stands for 
the other two. 

> + Same question, but for the "parameters" parameter of
> _kern_validate_initialize_partition(). I'm guessing no.

Again, parameters is a const char*, so nevermind, but the "name" param is a 
regular char*. Is this for name truncation again (I was intending to return 
an error if the name were too long)?

> + Do we have a limit on the length of those parameter strings? I'm
> currently assuming no.

Still an open question. :-)

-Tyler

Other related posts: