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@xxxxxxx> 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@xxxxxxxxxxxxxx > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com