private bool FSInfo_Query_FileFsAttributeInformation_IsSupported(Smb2FunctionalClient client, uint treeId, FILEID fileId, FileSystemAttributes_Values attribute) { FileFsAttributeInformation fsAttributeInfo = new FileFsAttributeInformation(); byte[] buffer; client.QueryFSAttributes( treeId, (byte)FileSystemInformationClasses.FileFsAttributeInformation, fileId, out buffer, checker: (Packet_Header header, QUERY_INFO_Response response) => { BaseTestSite.Assert.AreEqual(Smb2Status.STATUS_SUCCESS, header.Status, "Query File system should return STATUS_SUCCESS, the server returns with {0}", Smb2Status.GetStatusCode(header.Status)); } ); fsAttributeInfo = TypeMarshal.ToStruct <FileFsAttributeInformation>(buffer); return(fsAttributeInfo.FileSystemAttributes.HasFlag(attribute)); }