1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (C) 2004-2006 Cluster File Systems, Inc.
5 * Author: Lai Siyao <lsy@clusterfs.com>
6 * Author: Fan Yong <fanyong@clusterfs.com>
8 * This file is part of the Lustre file system, http://www.lustre.org
9 * Lustre is a trademark of Cluster File Systems, Inc.
11 * You may have signed or agreed to another license before downloading
12 * this software. If so, you are bound by the terms and conditions
13 * of that agreement, and the following does not apply to you. See the
14 * LICENSE file included with this distribution for more information.
16 * If you did not agree to a different license, then this copy of Lustre
17 * is open source software; you can redistribute it and/or modify it
18 * under the terms of version 2 of the GNU General Public License as
19 * published by the Free Software Foundation.
21 * In either case, Lustre is distributed in the hope that it will be
22 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty
23 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * license text for more details.
29 # define EXPORT_SYMTAB
31 #define DEBUG_SUBSYSTEM S_MDS
33 #include <linux/version.h>
34 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
35 #include <asm/statfs.h>
38 #include <linux/module.h>
40 /* LUSTRE_VERSION_CODE */
41 #include <lustre_ver.h>
43 * struct OBD_{ALLOC,FREE}*()
46 #include <obd_support.h>
47 /* struct obd_export */
48 #include <lustre_export.h>
49 /* struct obd_device */
51 #include <obd_class.h>
52 #include <lustre_mds.h>
53 #include <lustre_mdt.h>
54 #include <lprocfs_status.h>
56 #include "mdt_internal.h"
58 static const char *mdt_proc_names[LPROC_MDT_NR] = {
61 int mdt_procfs_init(struct mdt_device *mdt, const char *name)
63 struct lu_device *ld = &mdt->mdt_md_dev.md_lu_dev;
67 LASSERT(name != NULL);
68 mdt->mdt_proc_entry = ld->ld_obd->obd_proc_entry;
69 LASSERT(mdt->mdt_proc_entry != NULL);
71 result = lu_time_init(&mdt->mdt_stats, mdt->mdt_proc_entry,
72 mdt_proc_names, ARRAY_SIZE(mdt_proc_names));
74 result = lu_time_named_init(&ld->ld_site->ls_time_stats,
75 "site_time", mdt->mdt_proc_entry,
77 ARRAY_SIZE(lu_time_names));
81 int mdt_procfs_fini(struct mdt_device *mdt)
83 struct lu_device *ld = &mdt->mdt_md_dev.md_lu_dev;
84 lu_time_fini(&ld->ld_site->ls_time_stats);
85 lu_time_fini(&mdt->mdt_stats);
86 mdt->mdt_proc_entry = NULL;
90 void mdt_time_start(const struct mdt_thread_info *info)
92 lu_lprocfs_time_start(info->mti_env);
95 void mdt_time_end(const struct mdt_thread_info *info, int idx)
97 lu_lprocfs_time_end(info->mti_env, info->mti_mdt->mdt_stats, idx);
100 static int lprocfs_rd_identity_expire(char *page, char **start, off_t off,
101 int count, int *eof, void *data)
103 struct obd_device *obd = data;
104 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
107 return snprintf(page, count, "%lu\n",
108 mdt->mdt_identity_cache->uc_entry_expire / HZ);
111 static int lprocfs_wr_identity_expire(struct file *file, const char *buffer,
112 unsigned long count, void *data)
114 struct obd_device *obd = data;
115 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
118 rc = lprocfs_write_helper(buffer, count, &val);
122 mdt->mdt_identity_cache->uc_entry_expire = val * HZ;
126 static int lprocfs_rd_identity_acquire_expire(char *page, char **start,
127 off_t off, int count, int *eof,
130 struct obd_device *obd = data;
131 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
134 return snprintf(page, count, "%lu\n",
135 mdt->mdt_identity_cache->uc_acquire_expire / HZ);
138 static int lprocfs_wr_identity_acquire_expire(struct file *file,
143 struct obd_device *obd = data;
144 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
147 rc = lprocfs_write_helper(buffer, count, &val);
151 mdt->mdt_identity_cache->uc_acquire_expire = val * HZ;
155 static int lprocfs_rd_identity_upcall(char *page, char **start, off_t off,
156 int count, int *eof, void *data)
158 struct obd_device *obd = data;
159 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
162 return snprintf(page, count, "%s\n",
163 mdt->mdt_identity_cache->uc_upcall);
166 static int lprocfs_wr_identity_upcall(struct file *file, const char *buffer,
167 unsigned long count, void *data)
169 struct obd_device *obd = data;
170 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
171 struct upcall_cache *hash = mdt->mdt_identity_cache;
172 char kernbuf[UC_CACHE_UPCALL_MAXPATH] = { '\0' };
174 if (count >= UC_CACHE_UPCALL_MAXPATH) {
175 CERROR("%s: identity upcall too long\n", obd->obd_name);
179 if (copy_from_user(kernbuf, buffer,
180 min(count, UC_CACHE_UPCALL_MAXPATH - 1)))
183 /* Remove any extraneous bits from the upcall (e.g. linefeeds) */
184 sscanf(kernbuf, "%s", hash->uc_upcall);
186 if (strcmp(hash->uc_name, obd->obd_name) != 0)
187 CWARN("%s: write to upcall name %s\n",
188 obd->obd_name, hash->uc_upcall);
189 CWARN("%s: identity upcall set to %s\n", obd->obd_name, hash->uc_upcall);
194 static int lprocfs_wr_identity_flush(struct file *file, const char *buffer,
195 unsigned long count, void *data)
197 struct obd_device *obd = data;
198 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
201 rc = lprocfs_write_helper(buffer, count, &uid);
205 mdt_flush_identity(mdt->mdt_identity_cache, uid);
209 static int lprocfs_wr_identity_info(struct file *file, const char *buffer,
210 unsigned long count, void *data)
212 struct obd_device *obd = data;
213 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
214 struct identity_downcall_data sparam, *param = &sparam;
215 int size = 0, rc = 0;
217 if (count < sizeof(*param)) {
218 CERROR("%s: invalid data size %lu\n", obd->obd_name, count);
222 if (copy_from_user(&sparam, buffer, sizeof(sparam))) {
223 CERROR("%s: bad identity data\n", obd->obd_name);
224 GOTO(out, rc = -EFAULT);
227 if (sparam.idd_magic != IDENTITY_DOWNCALL_MAGIC) {
228 CERROR("%s: MDS identity downcall bad params\n", obd->obd_name);
229 GOTO(out, rc = -EINVAL);
232 if (sparam.idd_nperms > N_SETXID_PERMS_MAX) {
233 CERROR("%s: perm count %d more than maximum %d\n",
234 obd->obd_name, sparam.idd_nperms, N_SETXID_PERMS_MAX);
235 GOTO(out, rc = -EINVAL);
238 if (sparam.idd_ngroups > NGROUPS_MAX) {
239 CERROR("%s: group count %d more than maximum %d\n",
240 obd->obd_name, sparam.idd_ngroups, NGROUPS_MAX);
241 GOTO(out, rc = -EINVAL);
244 if (sparam.idd_ngroups) {
245 size = offsetof(struct identity_downcall_data,
246 idd_groups[sparam.idd_ngroups]);
247 OBD_ALLOC(param, size);
249 CERROR("%s: fail to alloc %d bytes for uid %u"
250 " with %d groups\n", obd->obd_name, size,
251 sparam.idd_uid, sparam.idd_ngroups);
253 param->idd_ngroups = 0;
254 } else if (copy_from_user(param, buffer, size)) {
255 CERROR("%s: uid %u bad supplementary group data\n",
256 obd->obd_name, sparam.idd_uid);
257 OBD_FREE(param, size);
259 param->idd_ngroups = 0;
263 rc = upcall_cache_downcall(mdt->mdt_identity_cache, param->idd_err,
264 param->idd_uid, param);
267 if (param && (param != &sparam))
268 OBD_FREE(param, size);
273 static int lprocfs_rd_rmtacl_expire(char *page, char **start, off_t off,
274 int count, int *eof, void *data)
276 struct obd_device *obd = data;
277 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
280 return snprintf(page, count, "%lu\n",
281 mdt->mdt_rmtacl_cache->uc_entry_expire / HZ);
284 static int lprocfs_wr_rmtacl_expire(struct file *file, const char *buffer,
285 unsigned long count, void *data)
287 struct obd_device *obd = data;
288 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
291 rc = lprocfs_write_helper(buffer, count, &val);
295 mdt->mdt_rmtacl_cache->uc_entry_expire = val * HZ;
299 static int lprocfs_rd_rmtacl_acquire_expire(char *page, char **start,
300 off_t off, int count, int *eof,
303 struct obd_device *obd = data;
304 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
307 return snprintf(page, count, "%lu\n",
308 mdt->mdt_rmtacl_cache->uc_acquire_expire / HZ);
311 static int lprocfs_wr_rmtacl_acquire_expire(struct file *file,
316 struct obd_device *obd = data;
317 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
320 rc = lprocfs_write_helper(buffer, count, &val);
324 mdt->mdt_rmtacl_cache->uc_acquire_expire = val * HZ;
328 static int lprocfs_rd_rmtacl_upcall(char *page, char **start, off_t off,
329 int count, int *eof, void *data)
331 struct obd_device *obd = data;
332 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
335 return snprintf(page, count, "%s\n",
336 mdt->mdt_rmtacl_cache->uc_upcall);
339 static int lprocfs_wr_rmtacl_upcall(struct file *file, const char *buffer,
340 unsigned long count, void *data)
342 struct obd_device *obd = data;
343 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
344 struct upcall_cache *hash = mdt->mdt_rmtacl_cache;
345 char kernbuf[UC_CACHE_UPCALL_MAXPATH] = { '\0' };
347 if (count >= UC_CACHE_UPCALL_MAXPATH) {
348 CERROR("%s: remote ACL upcall too long\n", obd->obd_name);
352 if (copy_from_user(kernbuf, buffer,
353 min(count, UC_CACHE_UPCALL_MAXPATH - 1)))
356 /* Remove any extraneous bits from the upcall (e.g. linefeeds) */
357 sscanf(kernbuf, "%s", hash->uc_upcall);
359 if (strcmp(hash->uc_name, obd->obd_name) != 0)
360 CWARN("%s: write to upcall name %s\n",
361 obd->obd_name, hash->uc_upcall);
362 CWARN("%s: remote ACL upcall set to %s\n", obd->obd_name, hash->uc_upcall);
367 static int lprocfs_wr_rmtacl_info(struct file *file, const char *buffer,
368 unsigned long count, void *data)
370 struct obd_device *obd = data;
371 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
372 struct rmtacl_downcall_data sparam, *param = &sparam;
373 int size = 0, rc = 0;
375 if (count < sizeof(*param)) {
376 CERROR("%s: invalid data size %lu\n", obd->obd_name, count);
380 if (copy_from_user(&sparam, buffer, sizeof(sparam))) {
381 CERROR("%s: bad remote acl data\n", obd->obd_name);
382 GOTO(out, rc = -EFAULT);
385 if (sparam.add_magic != RMTACL_DOWNCALL_MAGIC) {
386 CERROR("%s: MDT remote acl downcall bad params\n", obd->obd_name);
387 GOTO(out, rc = -EINVAL);
390 if (sparam.add_buflen) {
391 size = offsetof(struct rmtacl_downcall_data,
392 add_buf[sparam.add_buflen]);
393 OBD_ALLOC(param, size);
395 CERROR("%s: fail to alloc %d bytes for ino "LPU64"\n",
396 obd->obd_name, size, sparam.add_key);
398 param->add_buflen = 0;
399 } else if (copy_from_user(param, buffer, size)) {
400 CERROR("%s: ino "LPU64" bad remote acl data\n",
401 obd->obd_name, sparam.add_key);
402 OBD_FREE(param, size);
404 param->add_buflen = 0;
408 rc = upcall_cache_downcall(mdt->mdt_rmtacl_cache, 0, param->add_key,
412 if (param && (param != &sparam))
413 OBD_FREE(param, size);
418 static int lprocfs_rd_rootsquash_uid(char *page, char **start, off_t off,
419 int count, int *eof, void *data)
421 struct obd_device *obd = data;
422 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
423 struct rootsquash_info *rsi = mdt->mdt_rootsquash_info;
426 return snprintf(page, count, "%u\n",
427 rsi ? rsi->rsi_uid : 0);
430 static int lprocfs_wr_rootsquash_uid(struct file *file, const char *buffer,
431 unsigned long count, void *data)
433 struct obd_device *obd = data;
434 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
437 rc = lprocfs_write_helper(buffer, count, &val);
441 if (!mdt->mdt_rootsquash_info)
442 OBD_ALLOC_PTR(mdt->mdt_rootsquash_info);
443 if (!mdt->mdt_rootsquash_info)
446 mdt->mdt_rootsquash_info->rsi_uid = val;
450 static int lprocfs_rd_rootsquash_gid(char *page, char **start, off_t off,
451 int count, int *eof, void *data)
453 struct obd_device *obd = data;
454 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
455 struct rootsquash_info *rsi = mdt->mdt_rootsquash_info;
458 return snprintf(page, count, "%u\n",
459 rsi ? rsi->rsi_gid : 0);
462 static int lprocfs_wr_rootsquash_gid(struct file *file, const char *buffer,
463 unsigned long count, void *data)
465 struct obd_device *obd = data;
466 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
469 rc = lprocfs_write_helper(buffer, count, &val);
473 if (!mdt->mdt_rootsquash_info)
474 OBD_ALLOC_PTR(mdt->mdt_rootsquash_info);
475 if (!mdt->mdt_rootsquash_info)
478 mdt->mdt_rootsquash_info->rsi_gid = val;
482 static int lprocfs_rd_nosquash_nids(char *page, char **start, off_t off,
483 int count, int *eof, void *data)
485 struct obd_device *obd = data;
486 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
487 struct rootsquash_info *rsi = mdt->mdt_rootsquash_info;
490 ret = snprintf(page, count, "rootsquash skip list:\n");
491 for (i = 0; rsi && (i < rsi->rsi_n_nosquash_nids); i++) {
492 ret += snprintf(page + ret, count - ret, "%s\n",
493 libcfs_nid2str(rsi->rsi_nosquash_nids[i]));
500 static inline void remove_newline(char *str)
502 int len = strlen(str);
504 if (str[len - 1] == '\n')
508 /* XXX: This macro is copied from lnet/libcfs/nidstring.c */
509 #define LNET_NIDSTR_SIZE 32 /* size of each one (see below for usage) */
511 static void do_process_nosquash_nids(struct mdt_device *m, char *buf)
513 struct rootsquash_info *rsi = m->mdt_rootsquash_info;
514 char str[LNET_NIDSTR_SIZE], *end;
518 rsi->rsi_n_nosquash_nids = 0;
519 while (rsi->rsi_n_nosquash_nids < N_NOSQUASH_NIDS) {
520 end = strchr(buf, ',');
521 memset(str, 0, sizeof(str));
523 strncpy(str, buf, min_t(int, sizeof(str), end - buf));
525 strncpy(str, buf, min_t(int, sizeof(str), strlen(buf)));
527 if (!strcmp(str, "*")) {
530 nid = libcfs_str2nid(str);
531 if (nid == LNET_NID_ANY)
534 rsi->rsi_nosquash_nids[rsi->rsi_n_nosquash_nids++] = nid;
536 if (!end || (*(end + 1) == 0))
542 static int lprocfs_wr_nosquash_nids(struct file *file, const char *buffer,
543 unsigned long count, void *data)
545 struct obd_device *obd = data;
546 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
547 char skips[LNET_NIDSTR_SIZE * N_NOSQUASH_NIDS] = "";
548 unsigned long size = sizeof(skips);
551 CERROR("parameter exceeds max limit %lu\n", size);
555 if (copy_from_user(skips, buffer, min(size, count)))
558 if (!mdt->mdt_rootsquash_info)
559 OBD_ALLOC_PTR(mdt->mdt_rootsquash_info);
560 if (!mdt->mdt_rootsquash_info)
563 remove_newline(skips);
564 do_process_nosquash_nids(mdt, skips);
569 static int lprocfs_rd_capa(char *page, char **start, off_t off,
570 int count, int *eof, void *data)
572 struct obd_device *obd = data;
573 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
575 return snprintf(page, count, "capability on: %s %s\n",
576 mdt->mdt_opts.mo_oss_capa ? "oss" : "",
577 mdt->mdt_opts.mo_mds_capa ? "mds" : "");
580 static int lprocfs_wr_capa(struct file *file, const char *buffer,
581 unsigned long count, void *data)
583 struct obd_device *obd = data;
584 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
587 rc = lprocfs_write_helper(buffer, count, &val);
591 if (val < 0 || val > 3) {
592 CERROR("invalid capability mode, only 0/2/3 is accepted.\n"
593 " 0: disable fid capability\n"
594 " 2: enable MDS fid capability\n"
595 " 3: enable both MDS and OSS fid capability\n");
599 /* OSS fid capability needs enable both MDS and OSS fid capability on
602 CERROR("can't enable OSS fid capability only, you should use "
603 "'3' to enable both MDS and OSS fid capability.\n");
607 mdt->mdt_opts.mo_oss_capa = (val & 0x1);
608 mdt->mdt_opts.mo_mds_capa = !!(val & 0x2);
609 mdt->mdt_capa_conf = 1;
610 LCONSOLE_INFO("MDS %s %s MDS fid capability.\n",
612 mdt->mdt_opts.mo_mds_capa ? "enabled" : "disabled");
613 LCONSOLE_INFO("MDS %s %s OSS fid capability.\n",
615 mdt->mdt_opts.mo_oss_capa ? "enabled" : "disabled");
619 static int lprocfs_rd_capa_count(char *page, char **start, off_t off,
620 int count, int *eof, void *data)
622 return snprintf(page, count, "%d %d\n",
623 capa_count[CAPA_SITE_CLIENT],
624 capa_count[CAPA_SITE_SERVER]);
627 static int lprocfs_rd_site_stats(char *page, char **start, off_t off,
628 int count, int *eof, void *data)
630 struct obd_device *obd = data;
631 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
632 struct lu_site *s = mdt->mdt_md_dev.md_lu_dev.ld_site;
637 * How many hash buckets are not-empty? Don't bother with locks: it's
638 * an estimation anyway.
640 for (i = 0, populated = 0; i < s->ls_hash_size; i++)
641 populated += !hlist_empty(&s->ls_hash[i]);
643 return snprintf(page, count, "%d %d %d/%d %d %d %d %d %d %d\n",
648 s->ls_stats.s_created,
649 s->ls_stats.s_cache_hit,
650 s->ls_stats.s_cache_miss,
651 s->ls_stats.s_cache_check,
652 s->ls_stats.s_cache_race,
653 s->ls_stats.s_lru_purged);
656 static int lprocfs_rd_capa_timeout(char *page, char **start, off_t off,
657 int count, int *eof, void *data)
659 struct obd_device *obd = data;
660 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
662 return snprintf(page, count, "%lu\n", mdt->mdt_capa_timeout);
665 static int lprocfs_wr_capa_timeout(struct file *file, const char *buffer,
666 unsigned long count, void *data)
668 struct obd_device *obd = data;
669 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
672 rc = lprocfs_write_helper(buffer, count, &val);
676 mdt->mdt_capa_timeout = (unsigned long)val;
677 mdt->mdt_capa_conf = 1;
681 static int lprocfs_rd_ck_timeout(char *page, char **start, off_t off, int count,
682 int *eof, void *data)
684 struct obd_device *obd = data;
685 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
687 return snprintf(page, count, "%lu\n", mdt->mdt_ck_timeout);
690 static int lprocfs_wr_ck_timeout(struct file *file, const char *buffer,
691 unsigned long count, void *data)
693 struct obd_device *obd = data;
694 struct mdt_device *mdt = mdt_dev(obd->obd_lu_dev);
697 rc = lprocfs_write_helper(buffer, count, &val);
701 mdt->mdt_ck_timeout = (unsigned long)val;
702 mdt->mdt_capa_conf = 1;
706 static int lprocfs_mdt_wr_evict_client(struct file *file, const char *buffer,
707 unsigned long count, void *data)
709 char tmpbuf[sizeof(struct obd_uuid)];
711 sscanf(buffer, "%40s", tmpbuf);
713 if (strncmp(tmpbuf, "nid:", 4) != 0)
714 return lprocfs_wr_evict_client(file, buffer, count, data);
716 CERROR("NOT implement evict client by nid %s\n", tmpbuf);
721 static struct lprocfs_vars lprocfs_mdt_obd_vars[] = {
722 { "uuid", lprocfs_rd_uuid, 0, 0 },
723 { "recovery_status", lprocfs_obd_rd_recovery_status, 0, 0 },
724 { "num_exports", lprocfs_rd_num_exports, 0, 0 },
725 { "identity_expire", lprocfs_rd_identity_expire,
726 lprocfs_wr_identity_expire, 0 },
727 { "identity_acquire_expire", lprocfs_rd_identity_acquire_expire,
728 lprocfs_wr_identity_acquire_expire, 0 },
729 { "identity_upcall", lprocfs_rd_identity_upcall,
730 lprocfs_wr_identity_upcall, 0 },
731 { "identity_flush", 0, lprocfs_wr_identity_flush, 0 },
732 { "identity_info", 0, lprocfs_wr_identity_info, 0 },
733 { "rmtacl_expire", lprocfs_rd_rmtacl_expire,
734 lprocfs_wr_rmtacl_expire, 0 },
735 { "rmtacl_acquire_expire", lprocfs_rd_rmtacl_acquire_expire,
736 lprocfs_wr_rmtacl_acquire_expire, 0 },
737 { "rmtacl_upcall", lprocfs_rd_rmtacl_upcall,
738 lprocfs_wr_rmtacl_upcall, 0 },
739 { "rmtacl_info", 0, lprocfs_wr_rmtacl_info, 0 },
740 { "rootsquash_uid", lprocfs_rd_rootsquash_uid,
741 lprocfs_wr_rootsquash_uid, 0 },
742 { "rootsquash_gid", lprocfs_rd_rootsquash_gid,
743 lprocfs_wr_rootsquash_gid, 0 },
744 { "nosquash_nids", lprocfs_rd_nosquash_nids,
745 lprocfs_wr_nosquash_nids, 0 },
746 { "capa", lprocfs_rd_capa,
747 lprocfs_wr_capa, 0 },
748 { "capa_timeout", lprocfs_rd_capa_timeout,
749 lprocfs_wr_capa_timeout, 0 },
750 { "capa_key_timeout", lprocfs_rd_ck_timeout,
751 lprocfs_wr_ck_timeout, 0 },
752 { "capa_count", lprocfs_rd_capa_count, 0, 0 },
753 { "site_stats", lprocfs_rd_site_stats, 0, 0 },
754 { "evict_client", 0, lprocfs_mdt_wr_evict_client, 0 },
758 static struct lprocfs_vars lprocfs_mdt_module_vars[] = {
759 { "num_refs", lprocfs_rd_numrefs, 0, 0 },
763 LPROCFS_INIT_VARS(mdt, lprocfs_mdt_module_vars, lprocfs_mdt_obd_vars);