mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
namei: tweak getlinkbyte error handling
in the event of a pread error, add the same error exit path trigger that we have elsewhere Change-Id: Id7a371f3fd710f3c6dad21bccb0662cf8562d99f Reviewed-on: http://gerrit.openafs.org/5843 Reviewed-by: Andrew Deason <adeason@sinenomine.net> Reviewed-by: Derrick Brashear <shadow@dementix.org> Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com> Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
This commit is contained in:
parent
0e3bfa033e
commit
51f71e533b
@ -1371,6 +1371,9 @@ namei_GetLinkCount(FdHandle_t * h, Inode ino, int lockit, int fixup, int nowrite
|
||||
}
|
||||
|
||||
rc = FDH_PREAD(h, (char*)&row, sizeof(row), offset);
|
||||
if (rc == -1)
|
||||
goto bad_getLinkByte;
|
||||
|
||||
if ((rc == 0 || !((row >> index) & NAMEI_TAGMASK)) && fixup && nowrite)
|
||||
return 1;
|
||||
if (rc == 0 && fixup) {
|
||||
|
Loading…
Reference in New Issue
Block a user