mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
fileserver: add volume number to error-messages
in physio. If things go wrong in ReallyRead() or ReallyWrite(), the admin would like to know which volume to salvage. Change-Id: Ic822412fec56ac5bb68f04d80713d94cbf977e71 Reviewed-on: http://gerrit.openafs.org/8010 Reviewed-by: Andrew Deason <adeason@sinenomine.net> Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
8b6926e43f
commit
185699e631
@ -51,10 +51,10 @@ ReallyRead(DirHandle * file, int block, char *data)
|
||||
if (fdP == NULL) {
|
||||
code = errno;
|
||||
ViceLog(0,
|
||||
("ReallyRead(): open failed device %X inode %s errno %d\n",
|
||||
("ReallyRead(): open failed device %X inode %s (volume=%u) errno %d\n",
|
||||
file->dirh_handle->ih_dev, PrintInode(stmp,
|
||||
file->dirh_handle->
|
||||
ih_ino), code));
|
||||
ih_ino), file->dirh_handle->ih_vid,code));
|
||||
return code;
|
||||
}
|
||||
rdlen = FDH_PREAD(fdP, data, PAGESIZE, ((afs_foff_t)block) * PAGESIZE);
|
||||
@ -64,10 +64,10 @@ ReallyRead(DirHandle * file, int block, char *data)
|
||||
else
|
||||
code = EIO;
|
||||
ViceLog(0,
|
||||
("ReallyRead(): read failed device %X inode %s errno %d\n",
|
||||
("ReallyRead(): read failed device %X inode %s (volume=%u) errno %d\n",
|
||||
file->dirh_handle->ih_dev, PrintInode(stmp,
|
||||
file->dirh_handle->
|
||||
ih_ino), code));
|
||||
ih_ino), file->dirh_handle->ih_vid,code));
|
||||
FDH_REALLYCLOSE(fdP);
|
||||
return code;
|
||||
}
|
||||
@ -87,19 +87,19 @@ ReallyWrite(DirHandle * file, int block, char *data)
|
||||
fdP = IH_OPEN(file->dirh_handle);
|
||||
if (fdP == NULL) {
|
||||
ViceLog(0,
|
||||
("ReallyWrite(): open failed device %X inode %s errno %d\n",
|
||||
("ReallyWrite(): open failed device %X inode %s (volume=%u) errno %d\n",
|
||||
file->dirh_handle->ih_dev, PrintInode(stmp,
|
||||
file->dirh_handle->
|
||||
ih_ino), errno));
|
||||
ih_ino), file->dirh_handle->ih_vid,errno));
|
||||
lpErrno = errno;
|
||||
return 0;
|
||||
}
|
||||
if ((count = FDH_PWRITE(fdP, data, PAGESIZE, ((afs_foff_t)block) * PAGESIZE)) != PAGESIZE) {
|
||||
ViceLog(0,
|
||||
("ReallyWrite(): write failed device %X inode %s errno %d\n",
|
||||
("ReallyWrite(): write failed device %X inode %s (volume=%u) errno %d\n",
|
||||
file->dirh_handle->ih_dev, PrintInode(stmp,
|
||||
file->dirh_handle->
|
||||
ih_ino), errno));
|
||||
ih_ino), file->dirh_handle->ih_vid,errno));
|
||||
lpCount = count;
|
||||
lpErrno = errno;
|
||||
FDH_REALLYCLOSE(fdP);
|
||||
|
Loading…
x
Reference in New Issue
Block a user