diff options
| author | Jeremy Allison <jra@samba.org> | 2010-05-19 21:28:08 -0700 | 
|---|---|---|
| committer | Jeremy Allison <jra@samba.org> | 2010-05-19 21:28:08 -0700 | 
| commit | 2c61c93a51a8e8c41da8a54945dc67d6dc416141 (patch) | |
| tree | d346e8681ddf46d41d2aa84adcfe23bd6a5f908d /source3/include | |
| parent | fad5d33bf880bcc137f7cb47e72cd0e07d92eec3 (diff) | |
| download | samba-2c61c93a51a8e8c41da8a54945dc67d6dc416141.tar.gz samba-2c61c93a51a8e8c41da8a54945dc67d6dc416141.tar.bz2 samba-2c61c93a51a8e8c41da8a54945dc67d6dc416141.zip | |
Fix bug 7442 - Samba returns incorrect SMB2 QFS device info.
Add the correct devicetype and characteristics for this info level.
Jeremy.
Diffstat (limited to 'source3/include')
| -rw-r--r-- | source3/include/trans2.h | 14 | 
1 files changed, 14 insertions, 0 deletions
| diff --git a/source3/include/trans2.h b/source3/include/trans2.h index d42554551a..8152a7be94 100644 --- a/source3/include/trans2.h +++ b/source3/include/trans2.h @@ -334,6 +334,20 @@ Byte offset   Type     name                description  #define SMB_FS_FULL_SIZE_INFORMATION			1007  #define SMB_FS_OBJECTID_INFORMATION			1008 +/* SMB_FS_DEVICE_INFORMATION device types. */ +#define FILE_DEVICE_CD_ROM		0x2 +#define FILE_DEVICE_DISK		0x7 + +/* SMB_FS_DEVICE_INFORMATION characteristics. */ +#define FILE_REMOVABLE_MEDIA		0x001 +#define FILE_READ_ONLY_DEVICE		0x002 +#define FILE_FLOPPY_DISKETTE		0x004 +#define FILE_WRITE_ONCE_MEDIA		0x008 +#define FILE_REMOTE_DEVICE		0x010 +#define FILE_DEVICE_IS_MOUNTED		0x020 +#define FILE_VIRTUAL_VOLUME		0x040 +#define FILE_DEVICE_SECURE_OPEN		0x100 +  /* flags on trans2 findfirst/findnext that control search */  #define FLAG_TRANS2_FIND_CLOSE          0x1  #define FLAG_TRANS2_FIND_CLOSE_IF_END   0x2 | 
