]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Windows: Do not reset cm_buf.offset on error
authorJeffrey Altman <jaltman@your-file-system.com>
Tue, 13 Nov 2012 22:59:06 +0000 (17:59 -0500)
committerJeffrey Altman <jaltman@your-file-system.com>
Sat, 8 Dec 2012 16:19:05 +0000 (08:19 -0800)
commitd23b655e7857a008b36147260972d76f4c5b1795
tree6d69c532cc0a172e3f95d1a62f40d6bc4031fe66
parent907e2f148f2dbb972675d9f39a752931fd798ec7
Windows: Do not reset cm_buf.offset on error

When an error occurs the cm_buf_t is not removed from the
hash tables.  Since the scacheHashTable hash is built from
the fid and the offset it is not safe to reset the offset field.
Resetting the offset field results in an assertion failure
during buffer recycling.

Reviewed-on: http://gerrit.openafs.org/8452
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit f56c01d313140b625b4342feddfe464342d1ced4)

Change-Id: I888e56c8c34bcae58c51ba965fd59e5539e1bab5
Reviewed-on: http://gerrit.openafs.org/8647
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsd/cm_buf.c
src/WINNT/afsd/cm_dcache.c