Expand description
§File System Control Codes (MS-FSCC) For SMB
The FSCC types are widely used in SMB messages. This module contains implementation of many structs supported in SMB from the FSCC specification, to allow a wide variety of SMB operations, with a well defined, convenient typing system, and with an extensive set of structures.
This crate also contains common utility structures to wrap around common FSCC structures.
The crate contains the following implementations:
- File information
QueryFileInfo,SetFileInfo - File system information
QueryFileSystemInfo,SetFileSystemInfo - Directory query types
QueryDirectoryInfo - Change notifications
FileNotifyInformation - Access masks
FileAccessMask,DirAccessMask
Structs§
- Chained
Item List - Implements a chained item list.
- DirAccess
Mask - Directory Access Mask
- EaFlags
- Extended Attribute (EA) Flags
- File
Access Information - Query the access rights of a file that were granted when the file was opened.
- File
Access Mask - File Access Mask
- File
AllInformation - Query a collection of file information structures.
- File
Allocation Information - Set the allocation size for a file.
- File
Alternate Name Information - Query the alternate name (8.3 short name) of a file.
- File
Attribute TagInformation - Query file attribute and reparse tag information for a file.
- File
Attributes - Attributes of a file or directory.
- File
Basic Information - Query or Set file information.
- File
Both Directory Information - Query detailed information for the files in a directory.
- File
Compression Information - Query compression information for a file.
- File
Directory Information - Query detailed information for the files in a directory.
- File
Disposition Information - Mark a file for deletion.
- File
EaInformation - Query the size of the extended attributes (EA) for a file.
- File
EndOf File Information - Set end-of-file information for a file.
- File
FsAttribute Information - Query attribute information for a file system.
- File
FsControl Information - Query or Set quota and content indexing control information for a file system volume.
- File
FsDevice Information - File
FsFull Size Information - Query sector size information for a file system volume.
- File
FsObject IdInformation - Query or Set the object ID for a file system data element. The operation MUST fail if the file system does not support object IDs.
- File
FsSector Size Information - Query for the extended sector size and alignment information for a volume.
- File
FsSize Information - Query sector size information for a file system volume.
- File
FsVolume Information - Query information on a volume on which a file system is mounted.
- File
Full Directory Information - Query detailed information for the files in a directory.
- File
Full EaInformation Inner - Query or Set extended attribute (EA) information for a file.
- File
GetEa Information - Query extended attributes for a file.
- File
GetQuota Information - This structure is used to provide the list of SIDs for which quota query information is requested.
- File
Id64 Extd Both Directory Information - Query detailed information for the files in a directory.
- File
Id64 Extd Directory Information - Query detailed information for the files in a directory.
- File
IdAll Extd Both Directory Information - Query detailed information for the files in a directory.
- File
IdAll Extd Directory Information - Query detailed information for the files in a directory.
- File
IdBoth Directory Information - Query detailed information for the files in a directory.
- File
IdExtd Directory Information - Query detailed information for the files in a directory.
- File
IdFull Directory Information - Query detailed information for the files in a directory.
- File
IdInformation - Query the file system’s 8-byte file reference number for a file.
- File
Internal Information - Query the file system’s 8-byte file reference number for a file.
- File
Link Information - Create a hard link to an existing file via the SMB Version 2 Protocol, as specified in [MS-SMB2].
- File
Mode Information - Query or Set file mode information.
- File
Name Information - Query the name of a file.
- File
Names Information - Query the names of the files in a directory.
- File
Network Open Information - Query network file open information for a file.
- File
Normalized Name Information - Query the normalized name of a file.
- File
Notify Information - FILE_NOTIFY_INFORMATION - MS-FSCC 2.7.1
- File
Pipe Information - Query or Set named pipe information.
- File
Pipe Local Information - Query information associated with a named pipe that is not specific to one end of the pipe or another.
- File
Pipe Remote Information - Query information that is associated with the remote end of a named pipe.
- File
Position Information - Query or Set the current byte offset of the file pointer.
- File
Quota Information - Query or to set file quota information for a volume.
- File
Rename Information - Rename a file within the SMB2 protocol.
- File
Short Name Information - change a file’s short name.
- File
Standard Information - Query standard information for a file.
- File
Stream Information Inner - Enumerate the data streams for a file.
- File
System Attributes - File system attributes.
- File
System Control Flags - File system control flags.
- File
Valid Data Length Information - set the valid data length information for a file.
- FsDevice
Characteristics - Characteristics of a file system volume.
- Sector
Size Info Flags - File system sector flags.
Enums§
- File
Alignment Information - Query the buffer alignment required by the underlying device.
- File
Compression Format - Compression format values for file compression.
- FsDevice
Type - Named
Pipe Configuration - Named pipe configuration values.
- Named
Pipe End - Named pipe end values.
- Named
Pipe State - Named pipe state values.
- Named
Pipe Type - Named pipe type values.
- Notify
Action - See
FileNotifyInformation - Pipe
Completion Mode - Named pipe completion mode values.
- Pipe
Read Mode - Named pipe read mode values.
- Query
Directory Info - Query (list) directory information classes.
- Query
Directory Info Class - Information class IDs for
QueryDirectoryInfo - Query
File Info - Query file information classes.
- Query
File Info Class - Information class IDs for
QueryFileInfo - Query
File System Info - Query file system information classes.
- Query
File System Info Class - Information class IDs for
QueryFileSystemInfo - Reparse
Tag - Reparse Tag Values
- SetFile
Info - Set file information classes.
- SetFile
Info Class - Information class IDs for
SetFileInfo - SetFile
System Info - Set file system information classes.
- SetFile
System Info Class - Information class IDs for
SetFileSystemInfo - SmbFscc
Error - Errors specific to the smb-fscc crate.
Constants§
- CHAINED_
ITEM_ PREFIX_ SIZE - The size of added fields to the size of each entry in
ChainedItemList<T>, when bin-writing the data, before the actual T data.
Traits§
- File
Info Type - Trait for file information types. This trait contains all types of all file info types and classes, specified in MS-FSCC.
- Query
Directory Info Value - Trait for inner values in
QueryDirectoryInfo. - Query
File Info Value - Trait for inner values in
QueryFileInfo. - Query
File System Info Value - Trait for inner values in
QueryFileSystemInfo. - SetFile
Info Value - Trait for inner values in
SetFileInfo. - SetFile
System Info Value - Trait for inner values in
SetFileSystemInfo.