-int rd_fstype(char* page, char **start, off_t off,
- int count, int *eof, void *data)
-{
-
- struct obd_device* temp=(struct obd_device*)data;
- int len=0;
-
- len+=snprintf(page, count, "%s\n", temp->u.filter.fo_fstype);
- return len;
-
-}
-int rd_files(char* page, char **start, off_t off,
- int count, int *eof, void *data)
-{
-
- struct obd_device* temp=(struct obd_device*)data;
- struct statfs mystats;
-
- int len=0;
-
- vfs_statfs(temp->u.filter.fo_sb, &mystats);
-
- len+=snprintf(page, count, "%ld\n", mystats.f_files);
- return len;
-}
-
-int rd_filesfree(char* page, char **start, off_t off,
- int count, int *eof, void *data)
-{
- struct obd_device* temp=(struct obd_device*)data;
- struct statfs mystats;
-
- int len=0;
-
- vfs_statfs(temp->u.filter.fo_sb, &mystats);
-
- len+=snprintf(page, count, "%ld\n", mystats.f_ffree);
- return len;
-
-
-}
-
-struct lprocfs_vars status_var_nm_1[]={
- {"status/uuid", rd_uuid, 0},
- {"status/blocksize",rd_blksize, 0},
- {"status/kbytestotal",rd_kbtotal, 0},
- {"status/kbytesfree", rd_kbfree, 0},
- {"status/files", rd_files, 0},
- {"status/filesfree", rd_filesfree, 0},
- {"status/fstype", rd_fstype, 0},
- {0}
+static struct lprocfs_vars lprocfs_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 },
+ { "filestotal", lprocfs_rd_filestotal, 0, 0 },
+ { "filesfree", lprocfs_rd_filesfree, 0, 0 },
+ //{ "filegroups", lprocfs_rd_filegroups, 0, 0 },
+ { "fstype", lprocfs_rd_fstype, 0, 0 },
+ { "mntdev", lprocfs_filter_rd_mntdev, 0, 0 },
+ { "last_id", lprocfs_filter_rd_last_id, 0, 0 },
+ { 0 }