Windows: notify file size change if flushed

When processing AFS_INVALIDATE_FLUSHED, notify any listeners
that the file size has changed to force a complete refresh.

Change-Id: Ie5f0076ea786357ae77ef6a76f162c776d555953
Reviewed-on: http://gerrit.openafs.org/6364
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
Jeffrey Altman 2011-12-17 12:13:17 -05:00 committed by Jeffrey Altman
parent 20d986fddf
commit c29dc39976

View File

@ -1741,7 +1741,8 @@ AFSInvalidateCache( IN AFSInvalidateCacheCB *InvalidateCB)
ulFilter |= FILE_NOTIFY_CHANGE_SECURITY;
}
if( InvalidateCB->Reason == AFS_INVALIDATE_DATA_VERSION)
if( InvalidateCB->Reason == AFS_INVALIDATE_DATA_VERSION ||
InvalidateCB->Reason == AFS_INVALIDATE_FLUSHED)
{
ulFilter |= FILE_NOTIFY_CHANGE_SIZE | FILE_NOTIFY_CHANGE_LAST_WRITE;
}
@ -2476,7 +2477,8 @@ AFSInvalidateVolume( IN AFSVolumeCB *VolumeCB,
ulFilter |= FILE_NOTIFY_CHANGE_SECURITY;
}
if( Reason == AFS_INVALIDATE_DATA_VERSION)
if( Reason == AFS_INVALIDATE_DATA_VERSION ||
Reason == AFS_INVALIDATE_FLUSHED)
{
ulFilter |= FILE_NOTIFY_CHANGE_SIZE | FILE_NOTIFY_CHANGE_LAST_WRITE;
}
@ -2553,7 +2555,8 @@ AFSInvalidateVolume( IN AFSVolumeCB *VolumeCB,
ulFilter |= FILE_NOTIFY_CHANGE_SECURITY;
}
if( Reason == AFS_INVALIDATE_DATA_VERSION)
if( Reason == AFS_INVALIDATE_DATA_VERSION ||
Reason == AFS_INVALIDATE_FLUSHED)
{
ulFilter |= FILE_NOTIFY_CHANGE_SIZE | FILE_NOTIFY_CHANGE_LAST_WRITE;
}