Partition
class Partition : public Node, public partition_data {
Partition(int deviceFD);
virtual ~Partition();
Partition *AddChild();
static Partition *Lookup(partition_id id, NodeList *list = NULL);
void SetParent(Partition *parent);
Partition *Parent() const;
Partition *fParent;
float (*identify_file_system)(boot::Partition *device);
status_t (*get_file_system)(boot::Partition *device, Directory **_root);
class Partition;
BMutablePartition* Partition() const;
BVolume volume(Partition()->VolumeID());
off_t size = Partition()->ContentSize();
size_t headerSize = Partition()->BlockSize() + 16384;
status_t status = info->SetTo(Partition()->BlockSize() + headerSize,
size - Partition()->BlockSize() - 2 * headerSize);
size_t count = Partition()->CountChildren();
BMutablePartition* child = Partition()->ChildAt(index);
BMutablePartition* partition = Partition();
BMutablePartition* partition = Partition();
BMutablePartition* partition = Partition();
child->Size() + PTS_OFFSET + Partition()->BlockSize());
PTS_OFFSET + Partition()->BlockSize());
#define PTS_OFFSET (63 * Partition()->BlockSize())
off_t offset = sector_align(*_offset, Partition()->BlockSize());
off_t size = sector_align(*_size, Partition()->BlockSize());
if (offset != sector_align(offset, Partition()->BlockSize())
|| size != sector_align(size, Partition()->BlockSize()))
error = Partition()->CreateChild(-1, typeString,
child->SetBlockSize(Partition()->BlockSize());
child->SetChildCookie(Partition());
BMutablePartition* partition = Partition();
BMutablePartition* partition = Partition();
off_t size = Partition()->ContentSize();
status_t error = info->SetTo(Partition()->BlockSize(),
size - Partition()->BlockSize());
off_t offset = sector_align(*_offset, Partition()->BlockSize());
off_t size = sector_align(*_size, Partition()->BlockSize());
if (offset != sector_align(offset, Partition()->BlockSize())
|| size != sector_align(size, Partition()->BlockSize()))
BMutablePartition* partition = Partition();
uint16 parentNumber, Partition &parentPartition, uint32 metadataFileLocation,
class MetadataPartition : public Partition {
MetadataPartition(Volume *volume, uint16 partition, Partition &parentPartition,
Partition &fParentPartition;
class Partition {
virtual ~Partition() {}
class PhysicalPartition : public Partition {
class SparablePartition : public Partition {
class VirtualPartition : public Partition {
Partition *parent = _GetPartition(map->partition_number());
Partition *partition = _GetPartition(address.partition());
Volume::_SetPartition(uint number, Partition *partition)
Partition*
status_t _SetPartition(uint number, Partition *partition);
Partition* _GetPartition(uint number);
Partition *fPartitions[UDF_MAX_PARTITION_MAPS];
const Partition* partition1 = *(const Partition**)p1;
const Partition* partition2 = *(const Partition**)p2;
is_inside_partitions(off_t location, const Partition** partitions, int32 count)
const Partition* midPartition = partitions[mid];
const Partition* partition = partitions[lower];
Partition::Partition()
Partition::Partition(const partition_descriptor* descriptor, off_t tableOffset,
Partition::SetTo(const partition_descriptor* descriptor, off_t tableOffset,
Partition::SetTo(off_t offset, off_t size, uint8 type, bool active,
Partition::Unset()
Partition::CheckLocation(off_t sessionSize) const
Partition::FitSizeToSession(off_t sessionSize)
Partition(),
Partition::SetTo(descriptor, tableOffset, 0, blockSize);
Partition::SetTo(offset, size, type, active, 0, blockSize);
Partition::Unset();
Partition(),
Partition(),
Partition::SetTo(descriptor, tableOffset, baseOffset,
Partition::SetTo(offset, size, type, active, tableOffset,
Partition::Unset();
Partition*
Partition* partition = NULL;
const Partition*
Partition** byOffset = new(nothrow) Partition*[partitionCount];
Partition* partition = (Partition*)PartitionAt(i);
qsort(byOffset, byOffsetCount, sizeof(Partition*),
Partition* partition = byOffset[i];
Partition* previousPartition = byOffset[i - 1];
(const Partition**)byOffset, byOffsetCount)) {
class Partition;
class Partition {
Partition();
Partition(const partition_descriptor* descriptor,
class PrimaryPartition : public Partition {
class LogicalPartition : public Partition {
Partition* PartitionAt(int32 index);
const Partition* PartitionAt(int32 index) const;
class Partition;
const Partition* PartitionAt(int32 index) const;
const Partition* partition = map.PartitionAt(i);
Partition *partition = map.PartitionAt(partitionIndex - 1);
child->fDelegate->Partition()->_DeleteDelegates();
return child ? child->Partition() : NULL;
*child = mutableChild->GetDelegate()->Partition();
Partition()->ID(), addOn->Name(), strerror(error));
BPartition* Partition() const { return fPartition; }
Partition *partition = FindPartition(mountPointNode.device);
RootFileSystem::AddVolume(Directory *volume, Partition *partition)
RootFileSystem::GetPartitionFor(Directory *volume, Partition **_partition)
status_t AddVolume(Directory *volume, Partition *partition);
status_t GetPartitionFor(Directory *volume, Partition **_partition);
Partition *partition;
amiga_ffs_identify_file_system(boot::Partition *partition)
amiga_ffs_get_file_system(boot::Partition *partition, ::Directory **_root)
Volume::Volume(boot::Partition *partition)
class Partition;
Volume(boot::Partition *partition);
class Partition;
Volume(boot::Partition *partition);
bfs_identify_file_system(boot::Partition *partition)
bfs_get_file_system(boot::Partition *partition, ::Directory **_root)
Volume::Volume(boot::Partition *partition)
Volume::Volume(boot::Partition *partition)
dosfs_identify_file_system(boot::Partition *partition)
dosfs_get_file_system(boot::Partition *partition, ::Directory **_root)
class Partition;
Volume(boot::Partition *partition);
hfs_plus_get_file_system(boot::Partition *partition, ::Directory **_root)
status_t Init(boot::Partition* partition);
status_t _Inflate(boot::Partition* partition,
TarFS::Volume::Init(boot::Partition* partition)
boot::Partition *partition;
PartitionCloser(boot::Partition* partition, void* cookie)
TarFS::Volume::_Inflate(boot::Partition* partition, void* cookie, off_t offset,
tarfs_get_file_system(boot::Partition* partition, ::Directory** _root)
Partition* partition;
Partition* partition;
Partition::Partition(int fd)
Partition::~Partition()
Partition *child;
while ((child = (Partition *)iterator.Next()) != NULL) {
Partition *
Partition::Lookup(partition_id id, NodeList *list)
Partition *p;
while ((p = (Partition *)iterator.Next()) != NULL) {
Partition *c = Lookup(id, &p->fChildren);
Partition::SetParent(Partition *parent)
Partition *
Partition::Parent() const
Partition::ReadAt(void *cookie, off_t position, void *buffer, size_t bufferSize)
Partition::WriteAt(void *cookie, off_t position, const void *buffer,
Partition::Size() const
Partition::Type() const
Partition *
Partition::AddChild()
Partition *child = new(nothrow) Partition(fFD);
Partition::_Mount(file_system_module_info *module, Directory **_fileSystem)
Partition::Mount(Directory **_fileSystem, bool isBootDevice)
Partition::Scan(bool mountFileSystems, bool isBootDevice)
Partition *child = NULL;
while ((child = (Partition *)iterator.Next()) != NULL) {
while ((child = (Partition *)fChildren.Head()) != NULL) {
Partition *partition = new(nothrow) Partition(fd);
Partition *partition = Partition::Lookup(id);
Partition *child = partition->AddChild();
Partition *partition = Partition::Lookup(id);
Partition *partition;
Partition *partition = (Partition*)partitionIterator.Next();
Partition *partition = NULL;
while ((partition = (Partition *)iterator.Next()) != NULL) {
boot::Partition *partition = NULL;
while ((partition = (boot::Partition *)iterator.Next()) != NULL) {
boot::Partition *partition = NULL;
while ((partition = (boot::Partition *)iterator.Next()) != NULL) {
device_contains_partition(EfiDevice *device, boot::Partition *partition)
boot::Partition *partition = NULL;
while ((partition = (boot::Partition*)iterator.Next()) != NULL) {
boot::Partition *partition = NULL;
while ((partition = (boot::Partition *)iterator.Next()) != NULL) {
boot::Partition *partition = NULL;
while ((partition = (boot::Partition *)iterator.Next()) != NULL) {
boot::Partition *partition = NULL;
while ((partition = (boot::Partition *)iterator.Next()) != NULL) {
boot::Partition *partition = NULL;
while ((partition = (boot::Partition *)iterator.Next()) != NULL) {
boot::Partition *partition = NULL;
while ((partition = (boot::Partition *)iterator.Next()) != NULL) {