]> git.michaelhowe.org Git - packages/o/openafs.git/commit
viced: Check vnode length on read and write
authorAndrew Deason <adeason@sinenomine.net>
Thu, 3 Mar 2011 22:02:47 +0000 (16:02 -0600)
committerDerrick Brashear <shadow@dementix.org>
Wed, 2 Nov 2011 02:44:28 +0000 (19:44 -0700)
commitf01f6a9caeaf014262bb00bbe9bb51bad7179b6e
tree912959d1c89b862aeba0e2416edf660da29eb1cd
parent650223868cae563749fc7bfe4edb8746790fc435
viced: Check vnode length on read and write

When reading or writing a file vnode, check that the length of the
vnode in the vnode index matches the size of the on-disk file
containing the data for the file. If it does not match, take the
volume offline (and for DAFS, demand-salvage it).

Reviewed-on: http://gerrit.openafs.org/4121
Tested-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit aadf69eabb1962496fa93745ab560a5b48cacd61)

Change-Id: I324dc79a24fc8c199825ffefcc1dd2b0097942a1
Reviewed-on: http://gerrit.openafs.org/5768
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
src/viced/afsfileprocs.c