- { "uuid", lprocfs_rd_uuid, 0, 0 },
- { "ping", 0, lprocfs_wr_ping, 0, 0, 0222 },
- { "connect_flags", lprocfs_rd_connect_flags, 0, 0 },
- { "ost_server_uuid", lprocfs_rd_server_uuid, 0, 0 },
- { "ost_conn_uuid", lprocfs_rd_conn_uuid, 0, 0 },
- { "active", osp_rd_active, osp_wr_active, 0 },
- { "max_rpcs_in_flight", osp_rd_max_rpcs_in_flight,
- osp_wr_max_rpcs_in_flight, 0 },
- { "max_rpcs_in_progress", osp_rd_max_rpcs_in_prog,
- osp_wr_max_rpcs_in_prog, 0 },
- { "create_count", osp_rd_create_count,
- osp_wr_create_count, 0 },
- { "max_create_count", osp_rd_max_create_count,
- osp_wr_max_create_count, 0 },
- { "prealloc_next_id", osp_rd_prealloc_next_id, 0, 0 },
- { "prealloc_last_id", osp_rd_prealloc_last_id, 0, 0 },
- { "prealloc_reserved", osp_rd_prealloc_reserved, 0, 0 },
- { "timeouts", lprocfs_rd_timeouts, 0, 0 },
- { "import", lprocfs_rd_import, lprocfs_wr_import, 0 },
- { "state", lprocfs_rd_state, 0, 0 },
- { "maxage", osp_rd_maxage, osp_wr_maxage, 0 },
- { "prealloc_status", osp_rd_pre_status, 0, 0 },
- { "sync_changes", osp_rd_syn_changes, 0, 0 },
- { "sync_in_flight", osp_rd_syn_in_flight, 0, 0 },
- { "sync_in_progress", osp_rd_syn_in_prog, 0, 0 },
- { "old_sync_processed", osp_rd_old_sync_processed, 0, 0 },
+ { .name = "uuid",
+ .fops = &osp_uuid_fops },
+ { .name = "ping",
+ .fops = &osp_ping_fops,
+ .proc_mode = 0222 },
+ { .name = "connect_flags",
+ .fops = &osp_connect_flags_fops },
+ { .name = "ost_server_uuid",
+ .fops = &osp_server_uuid_fops },
+ { .name = "ost_conn_uuid",
+ .fops = &osp_conn_uuid_fops },
+ { .name = "active",
+ .fops = &osp_active_fops },
+ { .name = "max_rpcs_in_flight",
+ .fops = &osp_max_rpcs_in_flight_fops },
+ { .name = "max_rpcs_in_progress",
+ .fops = &osp_max_rpcs_in_prog_fops },
+ { .name = "create_count",
+ .fops = &osp_create_count_fops },
+ { .name = "max_create_count",
+ .fops = &osp_max_create_count_fops },
+ { .name = "prealloc_next_id",
+ .fops = &osp_prealloc_next_id_fops },
+ { .name = "prealloc_next_seq",
+ .fops = &osp_prealloc_next_seq_fops },
+ { .name = "prealloc_last_id",
+ .fops = &osp_prealloc_last_id_fops },
+ { .name = "prealloc_last_seq",
+ .fops = &osp_prealloc_last_seq_fops },
+ { .name = "prealloc_reserved",
+ .fops = &osp_prealloc_reserved_fops },
+ { .name = "timeouts",
+ .fops = &osp_timeouts_fops },
+ { .name = "import",
+ .fops = &osp_import_fops },
+ { .name = "state",
+ .fops = &osp_state_fops },
+ { .name = "maxage",
+ .fops = &osp_maxage_fops },
+ { .name = "prealloc_status",
+ .fops = &osp_pre_status_fops },
+ { .name = "sync_changes",
+ .fops = &osp_syn_changes_fops },
+ { .name = "sync_in_flight",
+ .fops = &osp_syn_in_flight_fops },
+ { .name = "sync_in_progress",
+ .fops = &osp_syn_in_prog_fops },
+ { .name = "old_sync_processed",
+ .fops = &osp_old_sync_processed_fops },
+ { .name = "reserved_mb_high",
+ .fops = &osp_reserved_mb_high_fops },
+ { .name = "reserved_mb_low",
+ .fops = &osp_reserved_mb_low_fops },