1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
/*
Copyright (c) 2008-2012 Red Hat, Inc. <http://www.redhat.com>
This file is part of GlusterFS.
This file is licensed to you under your choice of the GNU Lesser
General Public License, version 3 or any later version (LGPLv3 or
later), or the GNU General Public License, version 2 (GPLv2), in all
cases as published by the Free Software Foundation.
*/
#include "statedump.h"
#include "dht-common.h"
dht_methods_t dht_methods = {
.migration_get_dst_subvol = dht_migration_get_dst_subvol,
.migration_needed = dht_migration_needed,
.layout_search = dht_layout_search,
};
class_methods_t class_methods = {
.init = dht_init,
.fini = dht_fini,
.reconfigure = dht_reconfigure,
.notify = dht_notify
};
struct xlator_fops fops = {
.lookup = dht_lookup,
.mknod = dht_mknod,
.create = dht_create,
.open = dht_open,
.statfs = dht_statfs,
.opendir = dht_opendir,
.readdir = dht_readdir,
.readdirp = dht_readdirp,
.fsyncdir = dht_fsyncdir,
.symlink = dht_symlink,
.unlink = dht_unlink,
.link = dht_link,
.mkdir = dht_mkdir,
.rmdir = dht_rmdir,
.rename = dht_rename,
.entrylk = dht_entrylk,
.fentrylk = dht_fentrylk,
/* Inode read operations */
.stat = dht_stat,
.fstat = dht_fstat,
.access = dht_access,
.readlink = dht_readlink,
.getxattr = dht_getxattr,
.fgetxattr = dht_fgetxattr,
.readv = dht_readv,
.flush = dht_flush,
.fsync = dht_fsync,
.inodelk = dht_inodelk,
.finodelk = dht_finodelk,
.lk = dht_lk,
/* Inode write operations */
.fremovexattr = dht_fremovexattr,
.removexattr = dht_removexattr,
.setxattr = dht_setxattr,
.fsetxattr = dht_fsetxattr,
.truncate = dht_truncate,
.ftruncate = dht_ftruncate,
.writev = dht_writev,
.xattrop = dht_xattrop,
.fxattrop = dht_fxattrop,
.setattr = dht_setattr,
.fsetattr = dht_fsetattr,
.fallocate = dht_fallocate,
.discard = dht_discard,
.zerofill = dht_zerofill,
};
struct xlator_dumpops dumpops = {
.priv = dht_priv_dump,
.inodectx = dht_inodectx_dump,
};
struct xlator_cbks cbks = {
// .release = dht_release,
// .releasedir = dht_releasedir,
.forget = dht_forget
};
|