]> git.michaelhowe.org Git - packages/o/openafs.git/commit
afs: Add afs_WriteDCache sanity checks
authorAndrew Deason <adeason@sinenomine.net>
Wed, 21 Dec 2011 22:01:16 +0000 (17:01 -0500)
committerDerrick Brashear <shadow@dementix.org>
Tue, 14 Aug 2012 20:26:33 +0000 (13:26 -0700)
commit4b68723f2efd2bb3f9f52ddb2fd455c1e977cd60
treee51f1952df41f30d79f01bfdeac3c41fa1e9433e
parent9a55866037f3742b0d418fc699424301cf7a27eb
afs: Add afs_WriteDCache sanity checks

Writing a non-free non-discarded dcache entry with a zero volume id
can easily cause hash table corruption later on, so make sure we don't
do that. Also log something if the write itself fails, as this usually
indicates an unusual situation involving I/O errors or something.

Reviewed-on: http://gerrit.openafs.org/6419
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit 79f69f2eb130c1c5cb6cdfa4e7a129f450a58339)

Change-Id: I482ad6a1fef3896144855b58c70e73bdf896027f
Reviewed-on: http://gerrit.openafs.org/7942
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/afs_dcache.c