system/drivers/fatfs/format.c
/* AWOOGA AWOOGA FIXME:  root_node->first_cluster needs to be set to CLUSTER_EOC
	to enable it to expand with CreateDirEntry() */
AWOOGA AWOOGA FIXME:  root_node->first_cluster needs to be set to CLUSTER_EOC
to enable it to expand with CreateDirEntry()
AWOOGA AWOOGA FIXME : root_node - > first_cluster needs to be set to CLUSTER_EOC to enable it to expand with CreateDirEntry ()
int FatInitRootDirectory (struct FatDirEntry *label_dirent)
{
	struct FatDirEntry label;
	int t;
	for (t=0; t<8; t++)
		label.name[t] = label_dirent->name[t];
	for (t=0; t<3; t++)
		label.extension[t] = label_dirent->extension[t];
	label.attributes = ATTR_VOLUME_ID;
	label.reserved = 0;
	label.creation_time_sec_tenths = 0;
	label.creation_time_2secs = 0;
	label.creation_date = 0;
	label.last_access_date = 0;
	label.first_cluster_hi = 0;
	label.last_write_time = 0;
	label.last_write_date = 0;
	label.first_cluster_lo = 0;
	label.size = 0;
	FatCreateDirEntry (&fsb.root_node, &label, NULL, NULL);
	return 0;
}
int FatInitRootDirectory ( struct FatDirEntry * label_dirent ) { struct FatDirEntry label ; int t ; for ( t = 0 ; t < 8 ; t ++ ) label . name [ t ] = label_dirent -> name [ t ] ; for ( t = 0 ; t < 3 ; t ++ ) label . extension [ t ] = label_dirent -> extension [ t ] ; label . attributes = ATTR_VOLUME_ID ; label . reserved = 0 ; label . creation_time_sec_tenths = 0 ; label . creation_time_2secs = 0 ; label . creation_date = 0 ; label . last_access_date = 0 ; label . first_cluster_hi = 0 ; label . last_write_time = 0 ; label . last_write_date = 0 ; label . first_cluster_lo = 0 ; label . size = 0 ; FatCreateDirEntry ( & fsb . root_node , & label , NULL , NULL ) ; return 0 ; }
AWOOGA AWOOGA FIXME:  root_node->first_cluster needs to be set to CLUSTER_EOC
to enable it to expand with CreateDirEntry()
AWOOGA AWOOGA FIXME : root_node - > first_cluster needs to be set to CLUSTER_EOC to enable it to expand with CreateDirEntry ()
//	FatSetTime (fsb, &label, FAT_TIME_CREATE);