summaryrefslogtreecommitdiffstats
path: root/src/rbd_fuse
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2014-05-08 16:59:45 +0200
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2014-05-08 16:59:45 +0200
commit8101f980dabbba0846a641446244a4fc9aa1aaf1 (patch)
tree24ddbf217cf5ae503f63d503e5edc9e7c1d76901 /src/rbd_fuse
parentrbd.cc: init 'snap_protected' to fix -Wconditional-uninitialized (diff)
downloadceph-8101f980dabbba0846a641446244a4fc9aa1aaf1.tar.xz
ceph-8101f980dabbba0846a641446244a4fc9aa1aaf1.zip
rbd-fuse.c: fix -Wmissing-field-initializers
Init image_name with NULL to fix: rbd_fuse/rbd-fuse.c:57:63: warning: missing field 'image_name' initializer [-Wmissing-field-initializers] struct rbd_options rbd_options = {"/etc/ceph/ceph.conf", "rbd"}; Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Diffstat (limited to 'src/rbd_fuse')
-rw-r--r--src/rbd_fuse/rbd-fuse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rbd_fuse/rbd-fuse.c b/src/rbd_fuse/rbd-fuse.c
index f11808e65b4..cec4495e1cf 100644
--- a/src/rbd_fuse/rbd-fuse.c
+++ b/src/rbd_fuse/rbd-fuse.c
@@ -54,7 +54,7 @@ struct rbd_openimage {
#define MAX_RBD_IMAGES 128
struct rbd_openimage opentbl[MAX_RBD_IMAGES];
-struct rbd_options rbd_options = {"/etc/ceph/ceph.conf", "rbd"};
+struct rbd_options rbd_options = {"/etc/ceph/ceph.conf", "rbd", NULL};
#define rbdsize(fd) opentbl[fd].rbd_stat.rbd_info.size
#define rbdblksize(fd) opentbl[fd].rbd_stat.rbd_info.obj_size