-static struct lprocfs_vars lprocfs_lod_osd_vars[] = {
- { "blocksize", lprocfs_dt_rd_blksize, 0, 0 },
- { "kbytestotal", lprocfs_dt_rd_kbytestotal, 0, 0 },
- { "kbytesfree", lprocfs_dt_rd_kbytesfree, 0, 0 },
- { "kbytesavail", lprocfs_dt_rd_kbytesavail, 0, 0 },
- { "filestotal", lprocfs_dt_rd_filestotal, 0, 0 },
- { "filesfree", lprocfs_dt_rd_filesfree, 0, 0 },
+ LASSERT(dev != NULL);
+ lod = lu2lod_dev(dev->obd_lu_dev);
+
+ rc = lprocfs_write_helper(buffer, count, &val);
+ if (rc != 0)
+ return rc;
+
+ if (val != 0)
+ lod->lod_lmv_failout = 1;
+ else
+ lod->lod_lmv_failout = 0;
+
+ return count;
+}
+LPROC_SEQ_FOPS(lod_lmv_failout);
+
+static struct lprocfs_seq_vars lprocfs_lod_obd_vars[] = {
+ { .name = "uuid",
+ .fops = &lod_uuid_fops },
+ { .name = "stripesize",
+ .fops = &lod_stripesize_fops },
+ { .name = "stripeoffset",
+ .fops = &lod_stripeoffset_fops },
+ { .name = "stripecount",
+ .fops = &lod_stripecount_fops },
+ { .name = "stripetype",
+ .fops = &lod_stripetype_fops },
+ { .name = "numobd",
+ .fops = &lod_numobd_fops },
+ { .name = "activeobd",
+ .fops = &lod_activeobd_fops },
+ { .name = "desc_uuid",
+ .fops = &lod_desc_uuid_fops },
+ { .name = "qos_prio_free",
+ .fops = &lod_qos_priofree_fops },
+ { .name = "qos_threshold_rr",
+ .fops = &lod_qos_thresholdrr_fops },
+ { .name = "qos_maxage",
+ .fops = &lod_qos_maxage_fops },
+ { .name = "lmv_failout",
+ .fops = &lod_lmv_failout_fops },