Windows: No RO volume test SetFilePosInfo
authorJeffrey Altman <jaltman@your-file-system.com>
Fri, 11 Apr 2014 14:22:45 +0000 (10:22 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Thu, 17 Apr 2014 12:48:16 +0000 (05:48 -0700)
Setting the file position information on a file is not a data
changing operation.  Do not perform a readonly volume check.

Reviewed-on: http://gerrit.openafs.org/11066
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit fe706913190acf176292e8c68d0a0adfc015f487)

Change-Id: Ifd615239ad5650c3ae72b20b5fae1fbc0564e069
Reviewed-on: http://gerrit.openafs.org/11077
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>

src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp

index 71b7d00..fd7508a 100644 (file)
@@ -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,