Display blktap statistics.
PATCH 2/4 Display blktap statistics.
This patch resolves collision of device_attribute structures between blktap and blkback, which created macro DEVICE_ATTR. by adding static, device_attribute structure is located local name space.
# HG changeset patch
# User [email protected]
# Date 1180665490 -32400
# Node ID d06f4b7fec7f132030fa7bd2dbb358c8bd761a6a # Parent 32d03e18fda8aad13b1674104eb2d32854be1403 BLKBK:Resolved collision with blktap.
Sigened-off-by Satoshi UCHIDA <[email protected]>
linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c +1 -1
@@ -111,7 +111,7 @@ static void update_blkif_status(blkif_t \ return sprintf(buf, format, ##args); \ } \ - DEVICE_ATTR(name, S_IRUGO, show_##name, NULL) + 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);