open-power / capiflash

Flash Acceleration with CAPI - The IBM Data Engine for NoSQL
22 stars 12 forks source link

spec: Comments about API doc #3

Closed fhaverkamp closed 7 years ago

fhaverkamp commented 8 years ago

https://github.com/open-power/capiflash/blob/master/src/block/README.md

Behind the flag constants there seem some spaces to me missing.

fhaverkamp commented 8 years ago

int rc = cblk_get_lun_size(chunk_id_t chunk_id, size_t *size, int flags))

I think there the )) are one too many. Watch out, this is duplicated multiple times.

fhaverkamp commented 8 years ago

offset_t lba; /* Starting Logical block address for */

I think this is not a standard data type. Is that off_t or off64_t? Maybe describe this.

fhaverkamp commented 8 years ago

The 4KiB is a given or? I mean over time maybe alternate block sizes might make some sense? So size is not actually the size but something like no_of_4kib_blocks, isn't it?

fhaverkamp commented 8 years ago

Return values and errno. Mostly you just say not 0 is error, but no distinguishing how to interpret the non zero values. Same with errno. Any effort to make this more precise?

williamspatrick commented 8 years ago

@fhaverkamp - Some of your suggestions are pretty minor changes to the 'docs'. The team might appreciate if you give them a pull request with your proposal.

fhaverkamp commented 8 years ago

https://github.com/open-power/capiflash/pulls

@williamspatrick Here it is. Now it is up to you to review and integrate quickly to get your new contributor happy ;-).

williamspatrick commented 8 years ago

@fhaverkamp - Thank you. I'm actually not the maintainer of this code. I'll assign the pull request to them though.

vageline commented 7 years ago

the pull request was merged