Skip to content
Snippets Groups Projects
cephfs_example1.cpp 354 B
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#define _FILE_OFFSET_BITS 64

#include <cephfs/libcephfs.h>
#include <stdlib.h>
#include <stdio.h>

int main (int argc, const char* argv[]){

    struct ceph_mount_info *cmount;

    const char id[] = "client.admin";

    int err = ceph_create(&cmount, id);

    printf("%d", err);

    return 0;
}