-static int lprocfs_wr_allow_setgroups(struct file *file, const char *buffer,
- unsigned long count, void *data)
-{
- struct mds_grp_hash *hash = __mds_get_global_group_hash();
- char buf[8];
- int val;
-
- if (copy_from_user(buf, buffer, min(count, 8UL)))
- return count;
- buf[7] = 0;
- sscanf(buf, "%d", &val);
- hash->gh_allow_setgroups = (val != 0);
- return count;
-}
+struct lprocfs_vars lprocfs_mds_obd_vars[] = {
+ { "uuid", lprocfs_rd_uuid, 0, 0 },
+ { "blocksize", lprocfs_rd_blksize, 0, 0 },
+ { "kbytestotal", lprocfs_rd_kbytestotal, 0, 0 },
+ { "kbytesfree", lprocfs_rd_kbytesfree, 0, 0 },
+ { "kbytesavail", lprocfs_rd_kbytesavail, 0, 0 },
+ { "filestotal", lprocfs_rd_filestotal, 0, 0 },
+ { "filesfree", lprocfs_rd_filesfree, 0, 0 },
+ { "fstype", lprocfs_rd_fstype, 0, 0 },
+ { "mntdev", lprocfs_obd_rd_mntdev, 0, 0 },
+ { "recovery_status", lprocfs_obd_rd_recovery_status, 0, 0 },
+ { "hash_stats", lprocfs_obd_rd_hash, 0, 0 },
+ { "evict_client", 0, lprocfs_mds_wr_evict_client, 0 },
+ { "evict_ost_nids", lprocfs_mds_rd_evictostnids,
+ lprocfs_mds_wr_evictostnids, 0 },
+ { "num_exports", lprocfs_rd_num_exports, 0, 0 },
+ { "atime_diff", lprocfs_rd_atime_diff, lprocfs_wr_atime_diff, 0 },
+ { 0 }
+};