From: wangdi Date: Thu, 28 Sep 2006 10:06:12 +0000 (+0000) Subject: Branch: b_new_cmd X-Git-Tag: v1_8_0_110~486^2~789 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=c9b033109998a196e561420f96136904551039d1;p=fs%2Flustre-release.git Branch: b_new_cmd merge group filter lproc fixes from HEAD --- 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,