[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] blktap: Add one more error reason statement to blktapctrl
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1180000207 -3600 # Node ID 12a12637af464e031c2f08cbf5825e387e899f78 # Parent 03c213fd2360e2b5e825108140dd4bc8b0b6936f blktap: Add one more error reason statement to blktapctrl blktapctrl already prints out exits reasons for all goto's to open_failed except of not finding a device number for blktap0 This patch adds just that message so the user will get more info than just "Unable to start blktapctrl" Common source of this issue is that blktap is missing/failed to load/... Signed-off-by: Christian Ehrhardt <ehrhardt@xxxxxxxxxxxxxxxxxx> --- tools/blktap/drivers/blktapctrl.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) diff -r 03c213fd2360 -r 12a12637af46 tools/blktap/drivers/blktapctrl.c --- a/tools/blktap/drivers/blktapctrl.c Thu May 24 10:48:58 2007 +0100 +++ b/tools/blktap/drivers/blktapctrl.c Thu May 24 10:50:07 2007 +0100 @@ -690,8 +690,10 @@ int main(int argc, char *argv[]) /* Attach to blktap0 */ asprintf(&devname,"%s/%s0", BLKTAP_DEV_DIR, BLKTAP_DEV_NAME); - if ((ret = xc_find_device_number("blktap0")) < 0) + if ((ret = xc_find_device_number("blktap0")) < 0) { + DPRINTF("couldn't find device number for 'blktap0'\n"); goto open_failed; + } blktap_major = major(ret); make_blktap_dev(devname,blktap_major,0); ctlfd = open(devname, O_RDWR); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |