summaryrefslogtreecommitdiffstats
path: root/xlators/features/namespace/src/namespace.h
blob: affaba046811cba99bf80ac9c208374671bafb9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __NAMESPACE_H__
#define __NAMESPACE_H__

#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif

#include "xlator.h"
#include "call-stub.h"

#define GF_NAMESPACE "namespace"

typedef struct {
	gf_boolean_t tag_namespaces;
	gf_boolean_t wind_lookups;
} ns_private_t;

typedef struct {
	loc_t loc;	   /* We store a "fake" loc_t for the getxattr wind. */
	call_stub_t *stub; /* A stub back to the function we're resuming. */
} ns_local_t;

#endif /* __NAMESPACE_H__ */