From: Jeffrey Altman Date: Fri, 11 Apr 2014 14:22:45 +0000 (-0400) Subject: Windows: No RO volume test SetFilePosInfo X-Git-Tag: openafs-stable-1_8_0pre1~729 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=fe706913190acf176292e8c68d0a0adfc015f487 Windows: No RO volume test SetFilePosInfo Setting the file position information on a file is not a data changing operation. Do not perform a readonly volume check. Change-Id: I5dccff569b39187c2891d4339f18db8c54c029a7 Reviewed-on: http://gerrit.openafs.org/11066 Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp index 71b7d00..fd7508a 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp @@ -592,7 +592,8 @@ AFSSetFileInfo( IN PDEVICE_OBJECT LibDeviceObject, try_return( ntStatus); } - if( BooleanFlagOn( pFcb->ObjectInformation->VolumeCB->VolumeInformation.FileSystemAttributes, FILE_READ_ONLY_VOLUME)) + if( FileInformationClass != FilePositionInformation && + BooleanFlagOn( pFcb->ObjectInformation->VolumeCB->VolumeInformation.FileSystemAttributes, FILE_READ_ONLY_VOLUME)) { AFSDbgTrace(( AFS_SUBSYSTEM_FILE_PROCESSING,