WikiPendium

(beta)

BPB

WikiPendium :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ec2-3-15-233-150.us-east-2.compute.amazonaws.com

BPB structure

(BIOS Parameter Block)

typedef struct {
	WORD recsiz;	/* Bytes per sector */
	WORD clsiz;	/* Sectors per cluster */
	WORD clsizb;	/* Bytes per cluster */
	WORD rdlen;	/* Root directory length, in sectors */
	WORD fsiz;	/* FAT (File allocation table) length, in sectors */
	WORD fatrec;	/* Position of second FAT, in sectors */
	WORD datrec;	/* Position of data, in sectors */
	WORD numcl;	/* Total number of clusters */
	WORD bflags;	/* bit 0 = 1: FAT is 16 bits (mostly hard disks), else FAT is 12 bits (mostly floppies) */
} BPB;




Comments

The BPB is valid only for FAT filesystems (12 and 16 bits). As you can't know the type of filesystem under MiNT, you should avoid using it in this case. Using MetaDOS under TOS, you may also have non-valid informations if you try this function on a ISO9660 (CD-ROM) filesystem, or even a FAT32 filesystem.

See Also

Getbpb()

Il n'y a pas de commentaire sur cette page. [Afficher commentaires/formulaire]