-
-static struct lprocfs_vars lprocfs_ofd_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 },
- { "seqs_allocated", lprocfs_ofd_rd_seqs, 0, 0 },
- { "fstype", lprocfs_ofd_rd_fstype, 0, 0 },
- { "last_id", lprocfs_ofd_rd_last_id, 0, 0 },
- { "tot_dirty", lprocfs_ofd_rd_tot_dirty, 0, 0 },
- { "tot_pending", lprocfs_ofd_rd_tot_pending, 0, 0 },
- { "tot_granted", lprocfs_ofd_rd_tot_granted, 0, 0 },
- { "grant_precreate", lprocfs_ofd_rd_grant_precreate, 0, 0 },
- { "grant_ratio", lprocfs_ofd_rd_grant_ratio,
- lprocfs_ofd_wr_grant_ratio, 0, 0 },
- { "precreate_batch", lprocfs_ofd_rd_precreate_batch,
- lprocfs_ofd_wr_precreate_batch, 0 },
- { "recovery_status", lprocfs_obd_rd_recovery_status, 0, 0 },
- { "recovery_time_soft", lprocfs_obd_rd_recovery_time_soft,
- lprocfs_obd_wr_recovery_time_soft, 0},
- { "recovery_time_hard", lprocfs_obd_rd_recovery_time_hard,
- lprocfs_obd_wr_recovery_time_hard, 0},
- { "evict_client", 0, lprocfs_wr_evict_client, 0,
- &lprocfs_evict_client_fops},
- { "num_exports", lprocfs_rd_num_exports, 0, 0 },
- { "degraded", lprocfs_ofd_rd_degraded,
- lprocfs_ofd_wr_degraded, 0},
- { "sync_journal", lprocfs_ofd_rd_syncjournal,
- lprocfs_ofd_wr_syncjournal, 0 },
- { "sync_on_lock_cancel", lprocfs_ofd_rd_sync_lock_cancel,
- lprocfs_ofd_wr_sync_lock_cancel, 0 },
- { "instance", lprocfs_target_rd_instance, 0 },
- { "ir_factor", lprocfs_obd_rd_ir_factor,
- lprocfs_obd_wr_ir_factor, 0},
- { "grant_compat_disable", lprocfs_ofd_rd_grant_compat_disable,
- lprocfs_ofd_wr_grant_compat_disable, 0 },
- { "client_cache_count", lprocfs_ofd_rd_fmd_max_num,
- lprocfs_ofd_wr_fmd_max_num, 0 },
- { "client_cache_seconds", lprocfs_ofd_rd_fmd_max_age,
- lprocfs_ofd_wr_fmd_max_age, 0 },
- { "capa", lprocfs_ofd_rd_capa,
- lprocfs_ofd_wr_capa, 0 },
- { "capa_count", lprocfs_ofd_rd_capa_count, 0, 0 },
- { "job_cleanup_interval", lprocfs_rd_job_interval,
- lprocfs_wr_job_interval, 0},
- { "soft_sync_limit", lprocfs_ofd_rd_soft_sync_limit,
- lprocfs_ofd_wr_soft_sync_limit, 0},
- { "lfsck_speed_limit", lprocfs_rd_lfsck_speed_limit,
- lprocfs_wr_lfsck_speed_limit, 0 },
- { "lfsck_layout", lprocfs_rd_lfsck_layout, 0, 0 },
- { "lfsck_verify_pfid", lprocfs_rd_lfsck_verify_pfid,
- lprocfs_wr_lfsck_verify_pfid, 0 },
+LPROC_SEQ_FOPS(ofd_lfsck_verify_pfid);
+
+LPROC_SEQ_FOPS_RO_TYPE(ofd, uuid);
+LPROC_SEQ_FOPS_RO_TYPE(ofd, blksize);
+LPROC_SEQ_FOPS_RO_TYPE(ofd, kbytestotal);
+LPROC_SEQ_FOPS_RO_TYPE(ofd, kbytesfree);
+LPROC_SEQ_FOPS_RO_TYPE(ofd, kbytesavail);
+LPROC_SEQ_FOPS_RO_TYPE(ofd, filestotal);
+LPROC_SEQ_FOPS_RO_TYPE(ofd, filesfree);
+
+LPROC_SEQ_FOPS_RO_TYPE(ofd, recovery_status);
+LPROC_SEQ_FOPS_RW_TYPE(ofd, recovery_time_soft);
+LPROC_SEQ_FOPS_RW_TYPE(ofd, recovery_time_hard);
+LPROC_SEQ_FOPS_WO_TYPE(ofd, evict_client);
+LPROC_SEQ_FOPS_RO_TYPE(ofd, num_exports);
+LPROC_SEQ_FOPS_RO_TYPE(ofd, target_instance);
+LPROC_SEQ_FOPS_RW_TYPE(ofd, ir_factor);
+LPROC_SEQ_FOPS_RW_TYPE(ofd, job_interval);
+
+struct lprocfs_vars lprocfs_ofd_obd_vars[] = {
+ { .name = "uuid",
+ .fops = &ofd_uuid_fops },
+ { .name = "blocksize",
+ .fops = &ofd_blksize_fops },
+ { .name = "kbytestotal",
+ .fops = &ofd_kbytestotal_fops },
+ { .name = "kbytesfree",
+ .fops = &ofd_kbytesfree_fops },
+ { .name = "kbytesavail",
+ .fops = &ofd_kbytesavail_fops },
+ { .name = "filestotal",
+ .fops = &ofd_filestotal_fops },
+ { .name = "filesfree",
+ .fops = &ofd_filesfree_fops },
+ { .name = "seqs_allocated",
+ .fops = &ofd_seqs_fops },
+ { .name = "fstype",
+ .fops = &ofd_fstype_fops },
+ { .name = "last_id",
+ .fops = &ofd_last_id_fops },
+ { .name = "tot_dirty",
+ .fops = &ofd_tot_dirty_fops },
+ { .name = "tot_pending",
+ .fops = &ofd_tot_pending_fops },
+ { .name = "tot_granted",
+ .fops = &ofd_tot_granted_fops },
+ { .name = "grant_precreate",
+ .fops = &ofd_grant_precreate_fops },
+ { .name = "grant_ratio",
+ .fops = &ofd_grant_ratio_fops },
+ { .name = "precreate_batch",
+ .fops = &ofd_precreate_batch_fops },
+ { .name = "recovery_status",
+ .fops = &ofd_recovery_status_fops },
+ { .name = "recovery_time_soft",
+ .fops = &ofd_recovery_time_soft_fops },
+ { .name = "recovery_time_hard",
+ .fops = &ofd_recovery_time_hard_fops },
+ { .name = "evict_client",
+ .fops = &ofd_evict_client_fops },
+ { .name = "num_exports",
+ .fops = &ofd_num_exports_fops },
+ { .name = "degraded",
+ .fops = &ofd_degraded_fops },
+ { .name = "sync_journal",
+ .fops = &ofd_syncjournal_fops },
+ { .name = "sync_on_lock_cancel",
+ .fops = &ofd_sync_lock_cancel_fops },
+ { .name = "instance",
+ .fops = &ofd_target_instance_fops },
+ { .name = "ir_factor",
+ .fops = &ofd_ir_factor_fops },
+ { .name = "grant_compat_disable",
+ .fops = &ofd_grant_compat_disable_fops },
+ { .name = "client_cache_count",
+ .fops = &ofd_fmd_max_num_fops },
+ { .name = "client_cache_seconds",
+ .fops = &ofd_fmd_max_age_fops },
+ { .name = "capa",
+ .fops = &ofd_capa_fops },
+ { .name = "capa_count",
+ .fops = &ofd_capa_count_fops },
+ { .name = "job_cleanup_interval",
+ .fops = &ofd_job_interval_fops },
+ { .name = "soft_sync_limit",
+ .fops = &ofd_soft_sync_limit_fops },
+ { .name = "lfsck_speed_limit",
+ .fops = &ofd_lfsck_speed_limit_fops },
+ { .name = "lfsck_layout",
+ .fops = &ofd_lfsck_layout_fops },
+ { .name = "lfsck_verify_pfid",
+ .fops = &ofd_lfsck_verify_pfid_fops },