From: 鹏 <wkp4666-KN7UnAbNpbg@public.gmane.org>
To: "ceph-users-Qp0mS5GaXlQ@public.gmane.org"
<ceph-users-Qp0mS5GaXlQ@public.gmane.org>,
"ceph-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<ceph-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: how to use the function ceph_open_layout
Date: Fri, 3 Jan 2014 13:48:03 +0800 (CST) [thread overview]
Message-ID: <28fa4e4e.af9f.14356a4e251.Coremail.wkp4666@126.com> (raw)
[-- 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
next reply other threads:[~2014-01-03 5:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-03 5:48 鹏 [this message]
[not found] ` <28fa4e4e.af9f.14356a4e251.Coremail.wkp4666-KN7UnAbNpbg@public.gmane.org>
2014-01-03 16:07 ` how to use the function ceph_open_layout Noah Watkins
2014-01-03 16:41 ` [ceph-users] " Sage Weil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=28fa4e4e.af9f.14356a4e251.Coremail.wkp4666@126.com \
--to=wkp4666-kn7unabnpbg@public.gmane.org \
--cc=ceph-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=ceph-users-Qp0mS5GaXlQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.