diff options
Diffstat (limited to 'xlators/meta/src/cmdline-file.c')
| -rw-r--r-- | xlators/meta/src/cmdline-file.c | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/xlators/meta/src/cmdline-file.c b/xlators/meta/src/cmdline-file.c index 88411f2629b..eb24e985af9 100644 --- a/xlators/meta/src/cmdline-file.c +++ b/xlators/meta/src/cmdline-file.c @@ -8,41 +8,32 @@ cases as published by the Free Software Foundation. */ -#ifndef _CONFIG_H -#define _CONFIG_H -#include "config.h" -#endif - -#include "xlator.h" -#include "defaults.h" +#include <glusterfs/xlator.h> +#include <glusterfs/defaults.h> #include "meta-mem-types.h" #include "meta.h" -#include "strfd.h" -#include "globals.h" -#include "lkowner.h" - +#include <glusterfs/strfd.h> +#include <glusterfs/lkowner.h> static int -cmdline_file_fill (xlator_t *this, inode_t *file, strfd_t *strfd) +cmdline_file_fill(xlator_t *this, inode_t *file, strfd_t *strfd) { - if (this->ctx->cmdlinestr) - strprintf (strfd, "{ \n \"Cmdlinestr\": \"%s\"\n}", - this->ctx->cmdlinestr); - return strfd->size; + if (this->ctx->cmdlinestr) + strprintf(strfd, "{ \n \"Cmdlinestr\": \"%s\"\n}", + this->ctx->cmdlinestr); + return strfd->size; } - static struct meta_ops cmdline_file_ops = { - .file_fill = cmdline_file_fill, + .file_fill = cmdline_file_fill, }; - int -meta_cmdline_file_hook (call_frame_t *frame, xlator_t *this, loc_t *loc, - dict_t *xdata) +meta_cmdline_file_hook(call_frame_t *frame, xlator_t *this, loc_t *loc, + dict_t *xdata) { - meta_ops_set (loc->inode, this, &cmdline_file_ops); + meta_ops_set(loc->inode, this, &cmdline_file_ops); - return 0; + return 0; } |
