-static int lprocfs_wr_lacl_upcall(struct file *file, const char *buffer,
- unsigned long count, void *data)
-{
- struct upcall_cache *cache = __mds_get_global_rmtacl_upcall_cache();
-
- if (count < UC_CACHE_UPCALL_MAXPATH) {
- sscanf(buffer, "%1024s", cache->uc_upcall);
- cache->uc_upcall[UC_CACHE_UPCALL_MAXPATH - 1] = 0;
- }
- return count;
-}
-
-static int lprocfs_wr_lacl_downcall(struct file *file, const char *buffer,
- unsigned long count, void *data)
-{
- struct upcall_cache *cache = __mds_get_global_rmtacl_upcall_cache();
- struct rmtacl_downcall_args param;
-
- if (count != sizeof(param)) {
- CERROR("invalid data size %lu\n", count);
- goto do_err_downcall;
- }
- if (copy_from_user(¶m, buffer, count)) {
- CERROR("broken downcall\n");
- goto do_err_downcall;
- }
-
-do_downcall:
- upcall_cache_downcall(cache, param.key, ¶m);
- return count;
-
-do_err_downcall:
- memset(¶m, 0, sizeof(param));
- param.status = -EINVAL;
- goto do_downcall;
-}
+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_mds_rd_mntdev, 0, 0 },
+ { "recovery_status", lprocfs_obd_rd_recovery_status, 0, 0 },
+ { "evict_client", 0, lprocfs_mds_wr_evict_client, 0 },
+ { "num_exports", lprocfs_rd_num_exports, 0, 0 },
+#ifdef HAVE_QUOTA_SUPPORT
+ { "quota_bunit_sz", lprocfs_rd_bunit, lprocfs_wr_bunit, 0 },
+ { "quota_btune_sz", lprocfs_rd_btune, lprocfs_wr_btune, 0 },
+ { "quota_iunit_sz", lprocfs_rd_iunit, lprocfs_wr_iunit, 0 },
+ { "quota_itune_sz", lprocfs_rd_itune, lprocfs_wr_itune, 0 },
+ { "quota_type", lprocfs_rd_type, lprocfs_wr_type, 0 },
+#endif
+#if 0
+ { "group_expire_interval", lprocfs_rd_group_expire,
+ lprocfs_wr_group_expire, 0},
+ { "group_acquire_expire", lprocfs_rd_group_acquire_expire,
+ lprocfs_wr_group_acquire_expire, 0},
+ { "group_upcall", lprocfs_rd_group_upcall,
+ lprocfs_wr_group_upcall, 0},
+ { "group_flush", 0, lprocfs_wr_group_flush, 0},
+ { "group_info", 0, lprocfs_wr_group_info, 0 },
+#endif
+ { "atime_diff", lprocfs_rd_atime_diff, lprocfs_wr_atime_diff, 0 },
+ { 0 }
+};