[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] Linux blktap: Modify sysfs name for blktap stats to match blkback.
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1181211012 -3600 # Node ID 0301c1fd8c0d7cf581a8a155745731c19b6fe0b1 # Parent a395e58bd23404cdcf470b029daf2b3a271d7da2 Linux blktap: Modify sysfs name for blktap stats to match blkback. Signed-off-by: Satochi UCHIDA <s-uchida@xxxxxxxxxxxxx> --- drivers/xen/blktap/xenbus.c | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff -r a395e58bd234 -r 0301c1fd8c0d drivers/xen/blktap/xenbus.c --- a/drivers/xen/blktap/xenbus.c Thu Jun 07 11:04:08 2007 +0100 +++ b/drivers/xen/blktap/xenbus.c Thu Jun 07 11:10:12 2007 +0100 @@ -114,7 +114,7 @@ static int blktap_name(blkif_t *blkif, c } /**************************************************************** - * sysfs interface for VBD I/O requests + * sysfs interface for I/O requests of blktap device */ #define VBD_SHOW(name, format, args...) \ @@ -127,20 +127,20 @@ static int blktap_name(blkif_t *blkif, c \ return sprintf(buf, format, ##args); \ } \ - DEVICE_ATTR(name, S_IRUGO, show_##name, NULL) - -VBD_SHOW(tap_oo_req, "%d\n", be->blkif->st_oo_req); -VBD_SHOW(tap_rd_req, "%d\n", be->blkif->st_rd_req); -VBD_SHOW(tap_wr_req, "%d\n", be->blkif->st_wr_req); -VBD_SHOW(tap_rd_sect, "%d\n", be->blkif->st_rd_sect); -VBD_SHOW(tap_wr_sect, "%d\n", be->blkif->st_wr_sect); + static DEVICE_ATTR(name, S_IRUGO, show_##name, NULL) + +VBD_SHOW(oo_req, "%d\n", be->blkif->st_oo_req); +VBD_SHOW(rd_req, "%d\n", be->blkif->st_rd_req); +VBD_SHOW(wr_req, "%d\n", be->blkif->st_wr_req); +VBD_SHOW(rd_sect, "%d\n", be->blkif->st_rd_sect); +VBD_SHOW(wr_sect, "%d\n", be->blkif->st_wr_sect); static struct attribute *tapstat_attrs[] = { - &dev_attr_tap_oo_req.attr, - &dev_attr_tap_rd_req.attr, - &dev_attr_tap_wr_req.attr, - &dev_attr_tap_rd_sect.attr, - &dev_attr_tap_wr_sect.attr, + &dev_attr_oo_req.attr, + &dev_attr_rd_req.attr, + &dev_attr_wr_req.attr, + &dev_attr_rd_sect.attr, + &dev_attr_wr_sect.attr, NULL }; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |