Beispiel #1
0
/**
 * Parse mbr for filesystem
 */
void mount_all_devices() {
	FindPartitions(DEVICE_USB);
	if (xenon_ata_ops.isInserted()) {
		XTAFMount();
		FindPartitions(DEVICE_ATA);
	}
	if (xenon_atapi_ops.isInserted()) {
		FindPartitions(DEVICE_ATAPI);
	}
}
void PartitionHandle::SetDevice(const DISC_INTERFACE *discio)
{
	Cleanup();
	interface = discio;

	// Sanity check
	if(!interface)
		return;

	// Start the device and check that it is inserted
	if(!interface->startup())
		return;

	if(!interface->isInserted())
		return;

	FindPartitions();
}
PartitionHandle::PartitionHandle(const DISC_INTERFACE *discio)
{
	interface = discio;

	// Sanity check
	if (!interface)
		return;

	// Start the device and check that it is inserted
	if (!interface->startup())
		return;

	if (!interface->isInserted())
		return;

	sectorSize = CheckSectorSize(interface);

	FindPartitions();
}