]> git.michaelhowe.org Git - packages/o/openafs.git/commit
viced: Sanity check file link count during CoW
authorAndrew Deason <adeason@sinenomine.net>
Wed, 19 Dec 2012 00:49:49 +0000 (18:49 -0600)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 4 Apr 2013 14:43:06 +0000 (07:43 -0700)
commit0508bdf0be69e93895df2f2d4bd26a06faf21c7b
tree3687c92c9580ce82581c04b820ce1bd76e1f8464
parent5e05f22798cce04ab1c76f979eeeb578f1e72f97
viced: Sanity check file link count during CoW

A few ihandle bugs in the past have caused the CopyOnWrite code to
open cached file handles for files which have been deleted. When we
CoW, both of the files we're dealing with had better actually be on
disk, so bail out and flag an error if either of them appear unlinked.

FIXES 131530

Reviewed-on: http://gerrit.openafs.org/8839
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit 752514bd1c8eaae487d25116dc59853552f77d12)

Change-Id: I2aa70145b12e9babd1a1eb881bf7f48151c20f6c
Reviewed-on: http://gerrit.openafs.org/9508
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/viced/afsfileprocs.c