mirror of
https://github.com/obarthel/amiga-smbfs.git
synced 2025-12-08 14:58:35 +00:00
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:
+7
-1
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user