glusterfs  8.2
About: GlusterFS is a network/cluster filesystem. The storage server (or each in a cluster) runs glusterfsd and the clients use mount command or glusterfs client to mount the exported filesystem. Release series 8.x (latest version).
  Fossies Dox: glusterfs-8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

logging-dir.c File Reference
#include <glusterfs/xlator.h>
#include <glusterfs/defaults.h>
#include "meta-mem-types.h"
#include "meta.h"
#include "meta-hooks.h"
Include dependency graph for logging-dir.c:

Go to the source code of this file.

Functions

int meta_logging_dir_hook (call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *xdata)
 

Variables

static struct meta_dirent logging_dir_dirents []
 
struct meta_ops logging_dir_ops
 

Function Documentation

◆ meta_logging_dir_hook()

int meta_logging_dir_hook ( call_frame_t frame,
xlator_t this,
loc_t loc,
dict_t xdata 
)

Definition at line 38 of file logging-dir.c.

References _loc::inode, logging_dir_ops, and meta_ops_set().

Variable Documentation

◆ logging_dir_dirents

struct meta_dirent logging_dir_dirents[]
static
Initial value:
= {
{.name = ".", .type = IA_IFDIR}, { .name = "..", .type = IA_IFDIR } ,
{
.name = "logfile",
.type = IA_IFLNK,
},
{
.name = "loglevel",
.type = IA_IFREG,
},
{.name = NULL}}

Definition at line 1 of file logging-dir.c.

◆ logging_dir_ops

struct meta_ops logging_dir_ops
Initial value:
= {
.fixed_dirents = logging_dir_dirents,
}

Definition at line 1 of file logging-dir.c.

Referenced by meta_logging_dir_hook().

logging_dir_dirents
static struct meta_dirent logging_dir_dirents[]
Definition: logging-dir.c:18
IA_IFDIR
@ IA_IFDIR
Definition: iatt.h:27
IA_IFLNK
@ IA_IFLNK
Definition: iatt.h:28
meta_loglevel_file_hook
int meta_loglevel_file_hook(call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *xdata)
Definition: loglevel-file.c:44
IA_IFREG
@ IA_IFREG
Definition: iatt.h:26