WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] Linux blktap: Modify sysfs name for b

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] Linux blktap: Modify sysfs name for blktap stats to match blkback.
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Jun 2007 02:23:25 -0700
Delivery-date: Mon, 11 Jun 2007 02:27:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] Linux blktap: Modify sysfs name for blktap stats to match blkback., Xen patchbot-linux-2.6.18-xen <=