summaryrefslogtreecommitdiffstats
path: root/src/rbd_fuse
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2014-05-08 17:05:48 +0200
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2014-05-08 17:05:48 +0200
commit7a3724b0372e382c32919c3c3bad606a9039b4a7 (patch)
treee57f496576b3c09a52d07c168df45934bcb18251 /src/rbd_fuse
parentrbd-fuse.c: fix -Wmissing-field-initializers (diff)
downloadceph-7a3724b0372e382c32919c3c3bad606a9039b4a7.tar.xz
ceph-7a3724b0372e382c32919c3c3bad606a9039b4a7.zip
rbd-fuse.c: fix indentation
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.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/rbd_fuse/rbd-fuse.c b/src/rbd_fuse/rbd-fuse.c
index cec4495e1cf..8c0d362cc93 100644
--- a/src/rbd_fuse/rbd-fuse.c
+++ b/src/rbd_fuse/rbd-fuse.c
@@ -655,8 +655,8 @@ enum {
KEY_CEPH_CONFIG_LONG,
KEY_RADOS_POOLNAME,
KEY_RADOS_POOLNAME_LONG,
- KEY_RBD_IMAGENAME,
- KEY_RBD_IMAGENAME_LONG
+ KEY_RBD_IMAGENAME,
+ KEY_RBD_IMAGENAME_LONG
};
static struct fuse_opt rbdfs_opts[] = {
@@ -670,9 +670,9 @@ static struct fuse_opt rbdfs_opts[] = {
{"-p %s", offsetof(struct rbd_options, pool_name), KEY_RADOS_POOLNAME},
{"--poolname=%s", offsetof(struct rbd_options, pool_name),
KEY_RADOS_POOLNAME_LONG},
- {"-r %s", offsetof(struct rbd_options, image_name), KEY_RBD_IMAGENAME},
- {"--image=%s", offsetof(struct rbd_options, image_name),
- KEY_RBD_IMAGENAME_LONG},
+ {"-r %s", offsetof(struct rbd_options, image_name), KEY_RBD_IMAGENAME},
+ {"--image=%s", offsetof(struct rbd_options, image_name),
+ KEY_RBD_IMAGENAME_LONG},
};
static void usage(const char *progname)
@@ -723,14 +723,14 @@ static int rbdfs_opt_proc(void *data, const char *arg, int key,
return 0;
}
- if (key == KEY_RBD_IMAGENAME) {
- if (rbd_options.image_name!= NULL) {
- free(rbd_options.image_name);
- rbd_options.image_name = NULL;
- }
- rbd_options.image_name = strdup(arg+2);
- return 0;
- }
+ if (key == KEY_RBD_IMAGENAME) {
+ if (rbd_options.image_name!= NULL) {
+ free(rbd_options.image_name);
+ rbd_options.image_name = NULL;
+ }
+ rbd_options.image_name = strdup(arg+2);
+ return 0;
+ }
return 1;
}
@@ -738,8 +738,8 @@ static int rbdfs_opt_proc(void *data, const char *arg, int key,
void
simple_err(const char *msg, int err)
{
- fprintf(stderr, "%s: %s\n", msg, strerror(-err));
- return;
+ fprintf(stderr, "%s: %s\n", msg, strerror(-err));
+ return;
}
int