]> git.michaelhowe.org Git - packages/o/openafs.git/commit
libafs: reset all the volumes with fs flushall
authorMichael Meffie <mmeffie@sinenomine.net>
Fri, 12 Jun 2015 00:28:43 +0000 (20:28 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 7 Oct 2015 10:08:28 +0000 (06:08 -0400)
commite1655c9027ac60a5df8f9fdddf4add17b845c1e0
tree2b0ca79610dacb72bd49baeece0d580cb0913aa6
parentf3131a3535d1871909aac0ea47fe8212f14fc31d
libafs: reset all the volumes with fs flushall

Fix a logic bug in fs flushall in which only the first volume in each
hash chain is reset (invalidated).  Instead, reset all the volumes in
the volume hash.

This bug was introduced in commit 4197bbecd9d0b2ff0b8eaec75a0df9a64f713cf0
(libafs: fs flushall for unix cm)

Also, when flushing a single volume with fs flushvolume, don't bother
searching all the hash chains, instead start on the hash chain
containing the volume being flushed.

Reviewed-on: http://gerrit.openafs.org/11892
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Chas Williams <3chas3@gmail.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit 82e02157fec248293e7336f0e0b3d1c9da545228)

Change-Id: I5dddbaed265ee1ce5dc14e88e22abcb29d96db58
Reviewed-on: http://gerrit.openafs.org/11894
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Tested-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/afs_pioctl.c