From 7c8bd23f40a18027b9229376bf9dacdbc9a2879b Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 13 Feb 2003 16:20:54 +0000 Subject: [PATCH] volser-dump-vnode-include-volid-in-error-20030213 include a volume number in the error message --- src/volser/dumpstuff.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/volser/dumpstuff.c b/src/volser/dumpstuff.c index 19aa8e3dd..cbbb98c36 100644 --- a/src/volser/dumpstuff.c +++ b/src/volser/dumpstuff.c @@ -687,7 +687,7 @@ static int DumpVnodeIndex(register struct iod *iodp, Volume *vp, /* Note: the >= test is very important since some old volumes may not have a serverModifyTime. For an epoch dump, this results in 0>=0 test, which does dump the file! */ - if (!code) code = DumpVnode(iodp, vnode, bitNumberToVnodeNumber(vnodeIndex, class), flag); + if (!code) code = DumpVnode(iodp, vnode, V_id(vp), bitNumberToVnodeNumber(vnodeIndex, class), flag); if (!flag) IOMGR_Poll(); /* if we dont' xfr data, but scan instead, could lose conn */ } STREAM_CLOSE(file); @@ -714,7 +714,7 @@ static int DumpDumpHeader(register struct iod *iodp, register Volume *vp, } static int DumpVnode(register struct iod *iodp, struct VnodeDiskObject *v, - int vnodeNumber, int dumpEverything) + int volid, int vnodeNumber, int dumpEverything) { int code = 0; IHandle_t *ihP; @@ -743,8 +743,8 @@ static int DumpVnode(register struct iod *iodp, struct VnodeDiskObject *v, IH_INIT(ihP, iodp->device, iodp->parentId, VNDISK_GET_INO(v)); fdP = IH_OPEN(ihP); if (fdP == NULL) { - Log("1 Volser: DumpVnode: dump: Unable to open inode %d for vnode %d; not dumped, error %d\n", - VNDISK_GET_INO(v), vnodeNumber, errno); + Log("1 Volser: DumpVnode: dump: Unable to open inode %d for vnode %d (volume %d); not dumped, error %d\n", + VNDISK_GET_INO(v), vnodeNumber, volid, errno); IH_RELEASE(ihP); return VOLSERREAD_DUMPERROR; } -- 2.39.5