3
#include <netinet/in.h>
4
#include <linux/types.h>
5
#include "include/ceph_fs.h"
10
#include "kernel/ioctl.h"
14
struct ceph_file_layout l;
15
int fd = open("foo.txt", O_RDONLY);
16
int r = ioctl(fd, CEPH_IOC_GET_LAYOUT, &l, sizeof(l));
17
printf("get = %d\n", r);
19
l.fl_stripe_unit = 65536;
20
l.fl_object_size = 65536;
22
r = ioctl(fd, CEPH_IOC_SET_LAYOUT, &l, sizeof(l));
23
printf("set = %d\n", r);