[sheepdog] [PATCH v2 1/3] sheep/http: add APPEND operation for PUT request

Liu Yuan namei.unix at gmail.com
Wed Mar 19 11:07:08 CET 2014


On Wed, Mar 19, 2014 at 12:44:23PM +0800, Robin Dong wrote:
> From: Robin Dong <sanbai at taobao.com>
> 
> We allow append write for PUT operation. When 'FLAG: append' is specified in the
> http PUT request header, we append the new data at the tail of the existing object
> instead of a 'delete-then-create' semantic. When we append objects, we mark them
> as ONODE_INIT. When all the append operations are done, we specify 'FLAG: eof'
> in the PUT request hearder to finalize the whole transaction, which mark the
> objects as ONODE_COMPLETE.
> 
> Signed-off-by: Robin Dong <sanbai at taobao.com>
> ---
> v1-->v2:
>   1. change comment for code
>   2. add functions instead of add 'if condition'
>   3. use extra-space in previous o_extent when appending
>   4. add "aligned block" data for test-case

Applied this series thanks

Yuan



More information about the sheepdog mailing list