[cifs-protocol] RE: CAR - missing SMB2 SetFileInfo levels
Hongwei Sun
hongweis at microsoft.com
Thu Jul 17 22:13:45 GMT 2008
Hi, Tridge,
We have completed the investigation regarding levels in SetFileInfo and SetFsInfo.
1. For setting file information ( InfoType = SMB2_0_INFO_FILE)
The responses for all possible levels are listed as below.
Level Name IF Supported Error Codes
1 FileDirectoryInformation STATUS_INVALID_INFO_CLASS
2 FileFullDirectoryInformation STATUS_INVALID_INFO_CLASS
3 FileBothDirectoryInformation STATUS_INVALID_INFO_CLASS
4 FileBasicInformation SUPPORTED
5 FileStandardInformation STATUS_INVALID_INFO_CLASS
6 FileInternalInformation STATUS_INVALID_INFO_CLASS
7 FileEaInformation STATUS_INVALID_INFO_CLASS
8 FileAccessInformation STATUS_INVALID_INFO_CLASS
9 FileNameInformation STATUS_INVALID_INFO_CLASS
10 FileRenameInformation SUPPORTED
11 FileLinkInformation SUPPORTED
12 FileNamesInformation STATUS_INVALID_INFO_CLASS
13 FileDispositionInformation SUPPORTED
14 FilePositionInformation SUPPORTED
15 FileFullEaInformation STATUS_INVALID_INFO_CLASS
16 FileModeInformation SUPPORTED
17 FileAlignmentInformation STATUS_INVALID_INFO_CLASS
18 FileAllInformation STATUS_INVALID_INFO_CLASS
19 FileAllocationInformation SUPPORTED
20 FileEndOfFileInformation SUPPORTED
21 FileAlternateNameInformation STATUS_INVALID_INFO_CLASS
22 FileStreamInformation STATUS_INVALID_INFO_CLASS
23 FilePipeInformation SUPPORTED
24 FilePipeLocalInformation STATUS_INVALID_INFO_CLASS
25 FilePipeRemoteInformation STATUS_NOT_SUPPORTED
26 FileMailslotQueryInformation STATUS_INVALID_INFO_CLASS
27 FileMailslotSetInformation STATUS_NOT_SUPPORTED
28 FileCompressionInformation STATUS_INVALID_INFO_CLASS
29 FileObjectIdInformation STATUS_NOT_SUPPORTED
30 FileCompletionInformation STATUS_NOT_SUPPORTED
31 FileMoveClusterInformation STATUS_NOT_SUPPORTED
32 FileQuotaInformation STATUS_NOT_SUPPORTED
33 FileReparsePointInformation STATUS_INVALID_INFO_CLASS
34 FileNetworkOpenInformation STATUS_INVALID_INFO_CLASS
35 FileAttributeTagInformation STATUS_INVALID_INFO_CLASS
36 FileTrackingInformation STATUS_NOT_SUPPORTED
37 FileIdBothDiretoryInformation STATUS_INVALID_INFO_CLASS
38 FileIdFullDiretoryInformation STATUS_INVALID_INFO_CLASS
39 FileValidDataLengthInformation SUPPORTED
40 FileShortNameInformation SUPPORTED
41-44 STATUS_NOT_SUPPORTED
45+ STATUS_INVALID_INFO_CLASS
2. For setting file system information ( InfoType = SMB2_0_INFO_FILESYSTEM)
The responses for all possible levels are listed as below.
Level Name IF Supported Error Codes
1 FileFsVolumeInformation STATUS_INVALID_INFO_CLASS
2 FileFsLabelInformation STATUS_NOT_SUPPORTED
3 FileFsSizeInformation STATUS_INVALID_INFO_CLASS
4 FileFsDeviceInformation STATUS_INVALID_INFO_CLASS
5 FileFsAttributeInformation STATUS_INVALID_INFO_CLASS
6 FileFsControlInformation SUPPORTED
7 FileFsFullSizeInformation STATUS_INVALID_INFO_CLASS
8 FileFsObjectIdInformation SUPPORTED
9 FileFsDriverPathInformation STATUS_INVALID_INFO_CLASS
10 FileFsVolumeFlagsInformation SUPPORTED
The information above will be added into the future release of [MS-SMB2] and [MS-FSCC]. The update of the documents are still in progress. Please let us know if this provides all the information you need or you need further clarification in the documents.
Thanks
----------------------------------------------------------
Hongwei Sun - Support Escalation Engineer
DSC Protocol Team, Microsoft
hongweis at microsoft.com<mailto:hongweis at microsoft.com>
Tel: 469-7757027 x 57027
-----------------------------------------------------------
-----Original Message-----
From: tridge at samba.org [mailto:tridge at samba.org]
Sent: Friday, May 30, 2008 8:52 PM
To: Interoperability Documentation Help
Cc: cifs-protocol at samba.org
Subject: CAR - missing SMB2 SetFileInfo levels
Hi,
MS-SMB2 section 2.2.39 says that these are the only 12 levels for
setfileinfo:
FileBasicInformation 4
FileRenameInformation 10
FileLinkInformation 11
FileDispositionInformation 13
FilePositionInformation 14
FileFullEaInformation 15
FileModeInformation 16
FileAllocationInformation 19
FileEndOfFileInformation 20
FilePipeInformation 23
FileValidDataLengthInformatio 39
FileShortNameInformation 40
Section 3.3.5.20.1 says that any unsupported level must respond with
STATUS_INVALID_INFO_CLASS
A scanner in our testsuite (the SMB2-SCANSETINFO test) shows that
Vista responds to an additional 11 levels with some other error code,
indicating that the level is available.
The additional levels are
25, 27, 29, 30, 31, 32, 36, 41, 42, 43, 44
Can you please document these additional levels?
The scan also shows that Vista responds to 4 setfsinfo levels:
2, 6, 8, 10
but the doc only lists 6 and 8. Can you please document the extra 2
levels?
Cheers, Tridge
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the cifs-protocol
mailing list