smbfs can be identified by checking the volume node disk type field

The signature "SMB\0" is now stored in DosList->dol_misc.dol_volume.dol_DiskType, which can be obtained through Info() or by walking through the data structures associated with a FileLock. This was suggested by Chris Handley and Chris Young. Thank you very much!
This commit is contained in:
Olaf Barthel
2016-05-11 14:54:50 +02:00
parent 3faeffd42b
commit 54ccf7266a
2 changed files with 14 additions and 1 deletions
+7 -1
View File
@@ -2774,7 +2774,13 @@ Setup(
VolumeNode->dol_Task = FileSystemPort;
DateStamp(&VolumeNode->dol_misc.dol_volume.dol_VolumeDate);
VolumeNode->dol_misc.dol_volume.dol_DiskType = ID_DOS_DISK;
/* Allow the file system to be identified by looking at the
* contents of the volume node. We put "SMB\0" into the
* dol_DiskType field. This was suggested by Chris Handley
* and Chris Young. Thank you very much!
*/
VolumeNode->dol_misc.dol_volume.dol_DiskType = ID_SMB_DISK;
if(DeviceNode != NULL)
{
+7
View File
@@ -79,6 +79,13 @@
/*****************************************************************************/
/* smbfs file system signature (SMB\0), as suggested by Chris Handley
* and Chris Young.
*/
#define ID_SMB_DISK 0x534D4200
/*****************************************************************************/
#ifndef min
#define min(a,b) ((a) < (b) ? (a) : (b))
#endif /* min */