aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/smb2pdu.h')
-rw-r--r--fs/cifs/smb2pdu.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h
index c7c3c8294d1a..7e44f18cc169 100644
--- a/fs/cifs/smb2pdu.h
+++ b/fs/cifs/smb2pdu.h
@@ -877,14 +877,16 @@ struct smb2_lease_ack {
877 877
878/* File System Information Classes */ 878/* File System Information Classes */
879#define FS_VOLUME_INFORMATION 1 /* Query */ 879#define FS_VOLUME_INFORMATION 1 /* Query */
880#define FS_LABEL_INFORMATION 2 /* Set */ 880#define FS_LABEL_INFORMATION 2 /* Local only */
881#define FS_SIZE_INFORMATION 3 /* Query */ 881#define FS_SIZE_INFORMATION 3 /* Query */
882#define FS_DEVICE_INFORMATION 4 /* Query */ 882#define FS_DEVICE_INFORMATION 4 /* Query */
883#define FS_ATTRIBUTE_INFORMATION 5 /* Query */ 883#define FS_ATTRIBUTE_INFORMATION 5 /* Query */
884#define FS_CONTROL_INFORMATION 6 /* Query, Set */ 884#define FS_CONTROL_INFORMATION 6 /* Query, Set */
885#define FS_FULL_SIZE_INFORMATION 7 /* Query */ 885#define FS_FULL_SIZE_INFORMATION 7 /* Query */
886#define FS_OBJECT_ID_INFORMATION 8 /* Query, Set */ 886#define FS_OBJECT_ID_INFORMATION 8 /* Query, Set */
887#define FS_DRIVER_PATH_INFORMATION 9 /* Query */ 887#define FS_DRIVER_PATH_INFORMATION 9 /* Local only */
888#define FS_VOLUME_FLAGS_INFORMATION 10 /* Local only */
889#define FS_SECTOR_SIZE_INFORMATION 11 /* SMB3 or later. Query */
888 890
889struct smb2_fs_full_size_info { 891struct smb2_fs_full_size_info {
890 __le64 TotalAllocationUnits; 892 __le64 TotalAllocationUnits;
@@ -894,6 +896,22 @@ struct smb2_fs_full_size_info {
894 __le32 BytesPerSector; 896 __le32 BytesPerSector;
895} __packed; 897} __packed;
896 898
899#define SSINFO_FLAGS_ALIGNED_DEVICE 0x00000001
900#define SSINFO_FLAGS_PARTITION_ALIGNED_ON_DEVICE 0x00000002
901#define SSINFO_FLAGS_NO_SEEK_PENALTY 0x00000004
902#define SSINFO_FLAGS_TRIM_ENABLED 0x00000008
903
904/* sector size info struct */
905struct smb3_fs_ss_info {
906 __le32 LogicalBytesPerSector;
907 __le32 PhysicalBytesPerSectorForAtomicity;
908 __le32 PhysicalBytesPerSectorForPerf;
909 __le32 FileSystemEffectivePhysicalBytesPerSectorForAtomicity;
910 __le32 Flags;
911 __le32 ByteOffsetForSectorAlignment;
912 __le32 ByteOffsetForPartitionAlignment;
913} __packed;
914
897/* partial list of QUERY INFO levels */ 915/* partial list of QUERY INFO levels */
898#define FILE_DIRECTORY_INFORMATION 1 916#define FILE_DIRECTORY_INFORMATION 1
899#define FILE_FULL_DIRECTORY_INFORMATION 2 917#define FILE_FULL_DIRECTORY_INFORMATION 2