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

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.