libafs: reset all the volumes with fs flushall
authorMichael Meffie <mmeffie@sinenomine.net>
Fri, 12 Jun 2015 00:28:43 +0000 (20:28 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Sat, 13 Jun 2015 16:28:53 +0000 (12:28 -0400)
commit82e02157fec248293e7336f0e0b3d1c9da545228
treeac23916023baa2cb28536d0ba2da9a12dcdeda35
parent0b8e85c1f9c6d741e1b8556cc3be6b62c97e7937
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.

Change-Id: I7be67fdb310b4845d02dc916f4400f83cc649cb8
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>
src/afs/afs_pioctl.c