From c9b033109998a196e561420f96136904551039d1 Mon Sep 17 00:00:00 2001 From: wangdi Date: Thu, 28 Sep 2006 10:06:12 +0000 Subject: [PATCH] Branch: b_new_cmd merge group filter lproc fixes from HEAD --- lustre/obdfilter/lproc_obdfilter.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/lustre/obdfilter/lproc_obdfilter.c b/lustre/obdfilter/lproc_obdfilter.c index 37ae2e9..d2e5391 100644 --- a/lustre/obdfilter/lproc_obdfilter.c +++ b/lustre/obdfilter/lproc_obdfilter.c @@ -87,12 +87,23 @@ static int lprocfs_filter_rd_last_id(char *page, char **start, off_t off, int count, int *eof, void *data) { struct obd_device *obd = data; + struct filter_obd *filter = &obd->u.filter; + int retval = 0, rc, i; if (obd == NULL) return 0; - return snprintf(page, count, LPU64"\n", - filter_last_id(&obd->u.filter, 0)); + for (i = FILTER_GROUP_MDS0; i < filter->fo_group_count; i++) { + rc = snprintf(page, count, LPU64"\n",filter_last_id(filter, i)); + if (rc < 0) { + retval = rc; + break; + } + page += rc; + count -= rc; + retval += rc; + } + return retval; } int lprocfs_filter_rd_readcache(char *page, char **start, off_t off, int count, -- 1.8.3.1