From 5880a7326428b3d17049e92b1ccc590ad3fc7897 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 25 Jan 2013 00:13:03 -0500 Subject: [PATCH] Windows: AFSQueryFsAttributeInfo use service response The File System attributes are set by the service in the volume information request. Use the values the service provides instead of returning an incomplete hard coded list. Change-Id: If620cd520ab29780ef296c6f15dfaee3774c3d41 Reviewed-on: http://gerrit.openafs.org/8974 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsrdr/kernel/lib/AFSVolumeInfo.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/WINNT/afsrdr/kernel/lib/AFSVolumeInfo.cpp b/src/WINNT/afsrdr/kernel/lib/AFSVolumeInfo.cpp index 672e4a68f..2f1ae40f8 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSVolumeInfo.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSVolumeInfo.cpp @@ -425,7 +425,6 @@ AFSQueryFsAttributeInfo( IN AFSVolumeInfoCB *VolumeInfo, IN PFILE_FS_ATTRIBUTE_INFORMATION Buffer, IN OUT PULONG Length) { - UNREFERENCED_PARAMETER(VolumeInfo); NTSTATUS ntStatus = STATUS_SUCCESS; RtlZeroMemory( Buffer, @@ -434,10 +433,7 @@ AFSQueryFsAttributeInfo( IN AFSVolumeInfoCB *VolumeInfo, if( *Length >= (LONG)(sizeof( FILE_FS_ATTRIBUTE_INFORMATION))) { - Buffer->FileSystemAttributes = (FILE_CASE_PRESERVED_NAMES | - FILE_UNICODE_ON_DISK | - FILE_SUPPORTS_HARD_LINKS | - FILE_SUPPORTS_REPARSE_POINTS); + Buffer->FileSystemAttributes = VolumeInfo->FileSystemAttributes; Buffer->MaximumComponentNameLength = 255; -- 2.39.5