throws IOException, UnsupportedFormatException {
ByteBuffer bb = IOUtils.getByteBuffer(raf, 1024);
SparseExtentHeaderRW reader = new SparseExtentHeaderRW();
SparseExtentHeader header = reader.read(bb);
Descriptor embeddedDescriptor;
if (header.getDescriptorOffset() != 0) {
embeddedDescriptor =
getDescriptorRW().read(file, (int) header.getDescriptorOffset(),
(int) header.getDescriptorSize());
DiskDatabase ddb = embeddedDescriptor.getDiskDatabase();
long nbSectors = ddb.getCylinders() * ddb.getHeads() * ddb.getSectors();
LOG.debug("createFileDescriptor: capacity=" + header.getCapacity() + " nbSectors=" +
nbSectors);
} else {
LOG.debug("embeddedDescriptor = null");