All of lore.kernel.org
 help / color / mirror / Atom feed
* how to use the function ceph_open_layout
@ 2014-01-03  5:48 鹏
       [not found] ` <28fa4e4e.af9f.14356a4e251.Coremail.wkp4666-KN7UnAbNpbg@public.gmane.org>
  2014-01-03 16:41 ` [ceph-users] " Sage Weil
  0 siblings, 2 replies; 3+ messages in thread
From: 鹏 @ 2014-01-03  5:48 UTC (permalink / raw)
  To: ceph-users-Qp0mS5GaXlQ@public.gmane.org,
	ceph-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org


[-- Attachment #1.1: Type: text/plain, Size: 567 bytes --]

|
 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
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 !






|
|
|   |   |
|

[-- Attachment #1.2: Type: text/html, Size: 1530 bytes --]

[-- Attachment #2: Type: text/plain, Size: 178 bytes --]

_______________________________________________
ceph-users mailing list
ceph-users-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to use the function ceph_open_layout
       [not found] ` <28fa4e4e.af9f.14356a4e251.Coremail.wkp4666-KN7UnAbNpbg@public.gmane.org>
@ 2014-01-03 16:07   ` Noah Watkins
  0 siblings, 0 replies; 3+ messages in thread
From: Noah Watkins @ 2014-01-03 16:07 UTC (permalink / raw)
  To: 鹏
  Cc: ceph-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	ceph-users-Qp0mS5GaXlQ@public.gmane.org

You'll need to register the new pool with the MDS:

    ceph mds add_data_pool <pool id>

On Thu, Jan 2, 2014 at 9:48 PM, 鹏 <wkp4666@126.com> 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
> 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@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ceph-users] how to use the function ceph_open_layout
  2014-01-03  5:48 how to use the function ceph_open_layout 鹏
       [not found] ` <28fa4e4e.af9f.14356a4e251.Coremail.wkp4666-KN7UnAbNpbg@public.gmane.org>
@ 2014-01-03 16:41 ` Sage Weil
  1 sibling, 0 replies; 3+ messages in thread
From: Sage Weil @ 2014-01-03 16:41 UTC (permalink / raw)
  To: 鹏; +Cc: ceph-users@ceph.com, ceph-devel@vger.kernel.org

[-- Attachment #1: Type: TEXT/PLAIN, Size: 743 bytes --]

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 !
> 
> 
> 
> 
> 
>  
>  
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-03 16:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-03  5:48 how to use the function ceph_open_layout 鹏
     [not found] ` <28fa4e4e.af9f.14356a4e251.Coremail.wkp4666-KN7UnAbNpbg@public.gmane.org>
2014-01-03 16:07   ` Noah Watkins
2014-01-03 16:41 ` [ceph-users] " Sage Weil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.