viced: set volume sync data in bulk status rpcs

The bulkstatus and inlinebulkstatus rpcs have a bug
that prevents the volume sync data from being set.
Currently the data is being set within the for loop
only when i == nfiles.  The conditional of the loop
is i < nfiles so the SetVolumeSync call is never
performed.  This patch changes the test for performing
SetVolumeSync to i == 0.

LICENSE MIT

Change-Id: I17e3980184ec68e38c5186e1c9637ac6e38451fe
Reviewed-on: http://gerrit.openafs.org/856
Reviewed-by: Dan Hyde <drh@umich.edu>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Jeffrey Altman 2009-11-19 18:11:06 -05:00 committed by Derrick Brashear
parent 7b272177de
commit 13843d8527

View File

@ -2641,7 +2641,7 @@ SRXAFS_BulkStatus(struct rx_call * acall, struct AFSCBFids * Fids,
&rights, &anyrights))) &rights, &anyrights)))
goto Bad_BulkStatus; goto Bad_BulkStatus;
/* set volume synchronization information, but only once per call */ /* set volume synchronization information, but only once per call */
if (i == nfiles) if (i == 0)
SetVolumeSync(Sync, volptr); SetVolumeSync(Sync, volptr);
/* Are we allowed to fetch Fid's status? */ /* Are we allowed to fetch Fid's status? */
@ -2802,7 +2802,7 @@ SRXAFS_InlineBulkStatus(struct rx_call * acall, struct AFSCBFids * Fids,
} }
/* set volume synchronization information, but only once per call */ /* set volume synchronization information, but only once per call */
if (i == nfiles) if (i == 0)
SetVolumeSync(Sync, volptr); SetVolumeSync(Sync, volptr);
/* Are we allowed to fetch Fid's status? */ /* Are we allowed to fetch Fid's status? */