#include "VirtualPartition.h"
#define B_NOT_IMPLEMENTED B_ERROR
VirtualPartition objects require a valid VAT to be found on disc. This involves
looking up the last recorded sector on the disc (via the "READ CD RECORDED
CAPACITY" SCSI-MMC call (code 0x25)), which should contain the file entry for
the VAT. Once found, the VAT can be loaded and accessed like a normal file.
*/
VirtualPartition::VirtualPartition(PhysicalPartition &physicalPartition)
: fPhysicalPartition(physicalPartition)
{
TRACE_ERROR(("VirtualPartition::VirtualPartition: not implemented!\n"));
}
VirtualPartition::~VirtualPartition()
{
}
The given logical block is indexed into the VAT. If a corresponding
mapped block exists, that block is mapped to a physical block via the
VirtualPartition object's physical partition.
*/
status_t
VirtualPartition::MapBlock(uint32 logicalBlock, off_t &physicalBlock)
{
return B_NOT_IMPLEMENTED;
}
status_t
VirtualPartition::InitCheck()
{
return B_NO_INIT;
}