list of all FS indentificators

This forum is for general developer support questions.
kas1e
Beta Tester
Beta Tester
Posts: 542
Joined: Sat Jun 18, 2011 7:56 am
Contact:

list of all FS indentificators

Post by kas1e »

Is there some list with all the identification of all FS which can be mounted currently on os4 ?

Currently what i have is:

#define ID_FFS0_HARD 0x444f5300
#define ID_FFS1_HARD 0x444f5301
#define ID_FFS2_HARD 0x444f5302
#define ID_FFS3_HARD 0x444f5303
#define ID_FFS4_HARD 0x444f5304
#define ID_FFS5_HARD 0x444f5305
#define ID_FFS6_HARD 0x444f5306
#define ID_FFS7_HARD 0x444f5307
#define ID_FFS8_HARD 0x444f5308
#define ID_FFS9_HARD 0x444f5309

#define ID_SFS0_HARD 0x53465300
#define ID_SFS2_HARD 0x53465302

#define ID_JXFS_HARD 0x4a584604

#define ID_SWAP_HARD 0x53574150

so i need also for ntfs, exfat, ex2fs, ram, fat32 , also all their floopies versions, and all the other stuff which can be mounted on os4 as FS but missed.

For example for PFS i see that:

#define ID_PFS_FLOPPY 0x50465300
#define ID_PFS_HARD 0x50465301

So, should't be there different identification then for all other fs which will be used on floppies ?
Last edited by kas1e on Wed Mar 12, 2014 5:43 pm, edited 1 time in total.
User avatar
ZeroG
Posts: 124
Joined: Sat Jun 18, 2011 11:31 am
Location: Germany

Re: list of all FS indentificators

Post by ZeroG »

You could use MediaToolbox to get some missing OFS and FFS types.
kas1e
Beta Tester
Beta Tester
Posts: 542
Joined: Sat Jun 18, 2011 7:56 am
Contact:

Re: list of all FS indentificators

Post by kas1e »

@ZeroG
Yep, that what i use to get those ones i quote. Also all ffs ones (0-9) are found too, just now need to know if let's say SFS on floppy disk have different identificator in compare with SFS on hd (as in case with PFS). I can't for myself check it as i didn't have floopies at all anymore, but want to be sure that code which will use it will handle and hdds and floppies fine.
User avatar
ZeroG
Posts: 124
Joined: Sat Jun 18, 2011 11:31 am
Location: Germany

Re: list of all FS indentificators

Post by ZeroG »

You don't need a floppy drive - you can use RAD: or diskimage.device.
kas1e
Beta Tester
Beta Tester
Posts: 542
Joined: Sat Jun 18, 2011 7:56 am
Contact:

Re: list of all FS indentificators

Post by kas1e »

Indeed, will check.
joerg
Posts: 371
Joined: Sat Mar 01, 2014 5:42 am

Re: list of all FS indentificators

Post by joerg »

kas1e wrote:Is there some list with all the identification of all FS which can be mounted currently on os4 ?
The list of the IDs for the file systems you have installed and can be mounted is in filesystem.resource.

No idea where you got your list from, but for example 0x444f5308 doesn't exist, and using your own define names makes no sense either, the ID_ defines for some AmigaOS file systems, for example the FFS ones ID_DOS_DISK - ID_LONGNAME_FFS_DISK, are in dos/dos.h.
kas1e
Beta Tester
Beta Tester
Posts: 542
Joined: Sat Jun 18, 2011 7:56 am
Contact:

Re: list of all FS indentificators

Post by kas1e »

@Joerg
The list of the IDs for the file systems you have installed and can be mounted is in filesystem.resource.

No idea where you got your list from, but for example 0x444f5308 doesn't exist, and using your own define names makes no sense either, the ID_ defines for some AmigaOS file systems, for example the FFS ones ID_DOS_DISK - ID_LONGNAME_FFS_DISK, are in dos/dos.h.
Just was some copy+paste so anyone who will answer there will not worry about ffs, in real use i have that code (for sfs/jxfs i add _HARD as i do not know if it as in case with PFS different for floppies, or the same):

Code: Select all

#define ID_AFS_PRO		0x41465301
#define ID_AFS_USER		0x41465302
#define ID_AFS_MULTI	0x6D754146

#define ID_PFS_FLOPPY	0x50465300
#define ID_PFS_HARD	0x50465301

#define ID_ENVOY_DISK	0x444F5380

#define ID_SFS0_HARD	0x53465300
#define ID_SFS2_HARD	0x53465302
#define ID_JXFS_HARD	0x4a584604
#define ID_SWAP_HARD	0x53574150

unsigned long
	filesystem_table[]={
		ID_UNREADABLE_DISK,MSG_UNREADABLE,		
		ID_NOT_REALLY_DOS,MSG_NDOS,
		ID_MSDOS_DISK,MSG_MSDOS,

		ID_DOS_DISK,MSG_0FS,
		ID_FFS_DISK,MSG_FFS1,		
		ID_INTER_DOS_DISK,MSG_IOFS,
		ID_INTER_FFS_DISK,MSG_FFS3,
		ID_FASTDIR_DOS_DISK,MSG_COFS,
		ID_FASTDIR_FFS_DISK,MSG_FFS5,		
		ID_LONGNAME_DOS_DISK, MSG_LOFS,
		ID_LONGNAME_FFS_DISK, MSG_FFS7,
		ID_VP255_DOS_DISK, MSG_FFS9,


		ID_AFS_PRO,MSG_AFS,
		ID_AFS_USER,MSG_AFS,
		ID_AFS_MULTI,MSG_AFS,

		ID_PFS_FLOPPY,MSG_PFS,
		ID_PFS_HARD,MSG_PFS,

		ID_SFS0_HARD,MSG_SFS0,
		ID_SFS2_HARD,MSG_SFS2,
	
		ID_JXFS_HARD,MSG_JXFS,

		ID_SWAP_HARD,MSG_SWAP,

		0,MSG_UNKNOWN}; 
So i just need to fill that array by as much as possible information and i need also add fat32, ntfs, ex2fs, exfat and co, as well as all kind of identificators which possible (if they different for floppies, etc).
joerg
Posts: 371
Joined: Sat Mar 01, 2014 5:42 am

Re: list of all FS indentificators

Post by joerg »

kas1e wrote:Just was some copy+paste so anyone who will answer there will not worry about ffs, in real use i have that code (for sfs/jxfs i add _HARD as i do not know if it as in case with PFS different for floppies, or the same):
AFAIK there is no "floppy" DOSType for PFS, just different versions of Professional File System using different DOSTypes: PFS\0, PFS\1, PFS\2 and PFS\3. The current, open source version 3.x uses PFS\3.
Additionally PDS\2 in PFS 2.x and PDS\3 in PFS 3.x for using it on HDs > 4 GB with ancient SCSI device drivers without support for the 64 bit commands, but even for such drivers it should only be required if you don't use AmigaOS 3.5+ or NSDPatch on AmigaOS 2.0-3.1.
i need also add fat32,
The CrossDOSFileSystem DOSType for FAT32 is #define ID_FAT32_DISK (F'<<24) | ('A'<<16) | ('T'<<8) | 0x32) // 'FAT\x32' = 'FAT2'
ntfs, ex2fs, exfat and co
If it's not in the documentation simply install them and check which DOSTypes they add to filesystem.resource.
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 530
Joined: Sat Jun 18, 2011 3:12 pm
Location: Finland
Contact:

Re: list of all FS indentificators

Post by salass00 »

DOSTypes for some of the filesysbox filesystems:

Code: Select all

#define ID_BOX0_DISK  0x424F5800 // BOX\0 - BoxFileSystem
#define ID_EXFAT_DISK 0x46415458 // FATX  - exFATFileSystem
#define ID_EXT2_DISK  0x45585402 // EXT\2 - FuseExt2FileSystem
#define ID_HFS_DISK   0x48465300 // HFS\0 - FuseHFS
#define ID_NTFS_DISK  0x4e544653 // NTFS  - NTFileSystem3G
kas1e
Beta Tester
Beta Tester
Posts: 542
Joined: Sat Jun 18, 2011 7:56 am
Contact:

Re: list of all FS indentificators

Post by kas1e »

@salas00
Thanks!

@joerg
If it's not in the documentation simply install them and check which DOSTypes they add to filesystem.resource.
Btw, if i insert usb-stick which formatted let's say as fat32 , then i didn't see in the filesystem.resource anything about, but at least i see in scout/mounted devics that dostype are 0x46415432. Massstorage hold his own stuff and not rely on filesystem.resource ?
Post Reply