[sheepdog] [PATCH v1 0/3] add http interface for sheepfs
Liu Yuan
namei.unix at gmail.com
Thu Jan 23 10:54:41 CET 2014
On Thu, Jan 23, 2014 at 01:57:50PM +0800, Robin Dong wrote:
> From: Robin Dong <sanbai at taobao.com>
>
> Some old softwares can only use files on filesystem as input, so we should add
> a new type of interface for sheepfs to access object-storage as a
> posix-filesystem.
> It is called "http interface", since it use libcurl to access object-storage
> service (such as s3 or swift) and show accounts, containers as directories and
> objects as files.
> This http interface only shows containers and objects that are written into
> file "object" by name.
>
> Usage:
>
> sheepfs /sheepfs
> # give ip and port
> echo "192.168.1.1:83" > /sheepfs/http/address
> # give object
> echo "/john/fruit/apple" > /sheepfs/http/object
> echo "/lily/pet/cat" > /sheepfs/http/address
> # now we have new directories "jonh", "fruit", "lily", "pet" and
> # new files "apple" and "cat" as show below:
> /sheepfs/http/john/
> /sheepfs/http/jonh/fruit/
> /sheepfs/http/jonh/fruit/apple
> /sheepfs/http/lily/
> /sheepfs/http/lily/pet/
> /sheepfs/http/lily/pet/cat
>
Probably later we can 'delete' operation to core framework, than we can delete
http objects by 'rm'.
Applied after replacing sd_err by sheepfs_pr.
Thanks
Yuan
More information about the sheepdog
mailing list