mirror of
https://github.com/ceph/ceph
synced 2024-12-19 09:57:05 +00:00
fix -Wgnu-designator warnings
Example: warning: use of GNU old-style field designator extension [-Wgnu-designator] Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
parent
382149cc10
commit
6efc2b54d5
@ -595,53 +595,53 @@ static void do_init(void *data, fuse_conn_info *bar)
|
||||
}
|
||||
|
||||
const static struct fuse_lowlevel_ops fuse_ll_oper = {
|
||||
init: do_init,
|
||||
destroy: 0,
|
||||
lookup: fuse_ll_lookup,
|
||||
forget: fuse_ll_forget,
|
||||
getattr: fuse_ll_getattr,
|
||||
setattr: fuse_ll_setattr,
|
||||
readlink: fuse_ll_readlink,
|
||||
mknod: fuse_ll_mknod,
|
||||
mkdir: fuse_ll_mkdir,
|
||||
unlink: fuse_ll_unlink,
|
||||
rmdir: fuse_ll_rmdir,
|
||||
symlink: fuse_ll_symlink,
|
||||
rename: fuse_ll_rename,
|
||||
link: fuse_ll_link,
|
||||
open: fuse_ll_open,
|
||||
read: fuse_ll_read,
|
||||
write: fuse_ll_write,
|
||||
flush: fuse_ll_flush,
|
||||
release: fuse_ll_release,
|
||||
fsync: fuse_ll_fsync,
|
||||
opendir: fuse_ll_opendir,
|
||||
readdir: fuse_ll_readdir,
|
||||
releasedir: fuse_ll_releasedir,
|
||||
fsyncdir: 0,
|
||||
statfs: fuse_ll_statfs,
|
||||
setxattr: fuse_ll_setxattr,
|
||||
getxattr: fuse_ll_getxattr,
|
||||
listxattr: fuse_ll_listxattr,
|
||||
removexattr: fuse_ll_removexattr,
|
||||
access: 0,
|
||||
create: fuse_ll_create,
|
||||
getlk: 0,
|
||||
setlk: 0,
|
||||
bmap: 0,
|
||||
.init = do_init,
|
||||
.destroy = 0,
|
||||
.lookup = fuse_ll_lookup,
|
||||
.forget = fuse_ll_forget,
|
||||
.getattr = fuse_ll_getattr,
|
||||
.setattr = fuse_ll_setattr,
|
||||
.readlink = fuse_ll_readlink,
|
||||
.mknod = fuse_ll_mknod,
|
||||
.mkdir = fuse_ll_mkdir,
|
||||
.unlink = fuse_ll_unlink,
|
||||
.rmdir = fuse_ll_rmdir,
|
||||
.symlink = fuse_ll_symlink,
|
||||
.rename = fuse_ll_rename,
|
||||
.link = fuse_ll_link,
|
||||
.open = fuse_ll_open,
|
||||
.read = fuse_ll_read,
|
||||
.write = fuse_ll_write,
|
||||
.flush = fuse_ll_flush,
|
||||
.release = fuse_ll_release,
|
||||
.fsync = fuse_ll_fsync,
|
||||
.opendir = fuse_ll_opendir,
|
||||
.readdir = fuse_ll_readdir,
|
||||
.releasedir = fuse_ll_releasedir,
|
||||
.fsyncdir = 0,
|
||||
.statfs = fuse_ll_statfs,
|
||||
.setxattr = fuse_ll_setxattr,
|
||||
.getxattr = fuse_ll_getxattr,
|
||||
.listxattr = fuse_ll_listxattr,
|
||||
.removexattr = fuse_ll_removexattr,
|
||||
.access = 0,
|
||||
.create = fuse_ll_create,
|
||||
.getlk = 0,
|
||||
.setlk = 0,
|
||||
.bmap = 0,
|
||||
#if FUSE_VERSION >= FUSE_MAKE_VERSION(2, 8)
|
||||
#ifdef FUSE_IOCTL_COMPAT
|
||||
ioctl: fuse_ll_ioctl,
|
||||
.ioctl = fuse_ll_ioctl,
|
||||
#else
|
||||
ioctl: 0,
|
||||
.ioctl = 0,
|
||||
#endif
|
||||
poll: 0,
|
||||
.poll = 0,
|
||||
#if FUSE_VERSION > FUSE_MAKE_VERSION(2, 9)
|
||||
write_buf: 0,
|
||||
retrieve_reply: 0,
|
||||
forget_multi: 0,
|
||||
flock: 0,
|
||||
fallocate: fuse_ll_fallocate
|
||||
.write_buf = 0,
|
||||
.retrieve_reply = 0,
|
||||
.forget_multi = 0,
|
||||
.flock = 0,
|
||||
.fallocate = fuse_ll_fallocate
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
@ -58,13 +58,13 @@ const char *CEPH_CONF_FILE_DEFAULT = "/etc/ceph/$cluster.conf, ~/.ceph/$cluster.
|
||||
|
||||
// file layouts
|
||||
struct ceph_file_layout g_default_file_layout = {
|
||||
fl_stripe_unit: init_le32(1<<22),
|
||||
fl_stripe_count: init_le32(1),
|
||||
fl_object_size: init_le32(1<<22),
|
||||
fl_cas_hash: init_le32(0),
|
||||
fl_object_stripe_unit: init_le32(0),
|
||||
fl_unused: init_le32(-1),
|
||||
fl_pg_pool : init_le32(-1),
|
||||
.fl_stripe_unit = init_le32(1<<22),
|
||||
.fl_stripe_count = init_le32(1),
|
||||
.fl_object_size = init_le32(1<<22),
|
||||
.fl_cas_hash = init_le32(0),
|
||||
.fl_object_stripe_unit = init_le32(0),
|
||||
.fl_unused = init_le32(-1),
|
||||
.fl_pg_pool = init_le32(-1),
|
||||
};
|
||||
|
||||
#define _STR(x) #x
|
||||
|
Loading…
Reference in New Issue
Block a user