Re: how to use the function ceph_open_layout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 3 Jan 2014, ? wrote:
>  Hi all;
> today,  I want to use the fuction of ceph_open_layout() in libcephFs.h
> 
> I creat a new pool  success,
> # rados mkpool data1

You also need to do

ceph mds add_data_pool data1

sage

> and then I  edit the code like this:
> 
> int fd = ceph_open_layout( cmount, c_path, O_RDONLY|O_CREAT, 0666. (1<<22),
> 1, (1<<22) , "data1")
> 
> and then the fd is -22!!!!!!!!!
> 
> when I use the data pool , it can success
> int fd = ceph_open_layout( cmount, c_path, O_RDONLY|O_CREAT, 0666. (1<<22),
> 1, (1<<22) , "data")
> 
> the ceph_open_layout support read/write to a new pool???
> 
>              thinks you for the help!
> yous !
> 
> 
> 
> 
> 
>  
>  
> 
> 
> 
> 
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux