/haiku/src/system/kernel/disk_device_manager/ |
H A D | KPartitionListener.cpp | 19 KPartitionListener::OffsetChanged(KPartition *partition, off_t offset) in OffsetChanged() 25 KPartitionListener::SizeChanged(KPartition *partition, off_t size) in SizeChanged() 31 KPartitionListener::ContentSizeChanged(KPartition *partition, off_t size) in ContentSizeChanged() 37 KPartitionListener::BlockSizeChanged(KPartition *partition, uint32 blockSize) in BlockSizeChanged() 43 KPartitionListener::IndexChanged(KPartition *partition, int32 index) in IndexChanged() 49 KPartitionListener::StatusChanged(KPartition *partition, uint32 status) in StatusChanged() 55 KPartitionListener::FlagsChanged(KPartition *partition, uint32 flags) in FlagsChanged() 61 KPartitionListener::NameChanged(KPartition *partition, const char *name) in NameChanged() 67 KPartitionListener::ContentNameChanged(KPartition *partition, const char *name) in ContentNameChanged() 73 KPartitionListener::TypeChanged(KPartition *partition, const char *type) in TypeChanged() [all …]
|
H A D | KPartition.cpp | 50 struct KPartition::ListenerSet : VectorSet<KPartitionListener*> {}; 53 int32 KPartition::sNextID = 0; 56 KPartition::KPartition(partition_id id) in KPartition() function in KPartition 95 KPartition::~KPartition() in ~KPartition() 108 KPartition::Register() in Register() 115 KPartition::Unregister() in Unregister() 128 KPartition::CountReferences() const in CountReferences() 135 KPartition::MarkObsolete() in MarkObsolete() 142 KPartition::IsObsolete() const in IsObsolete() 149 KPartition::PrepareForRemoval() in PrepareForRemoval() [all …]
|
H A D | KDiskSystem.cpp | 173 KDiskSystem::Identify(KPartition *partition, void **cookie) in Identify() 182 KDiskSystem::Scan(KPartition *partition, void *cookie) in Scan() 191 KDiskSystem::FreeIdentifyCookie(KPartition *partition, void *cookie) in FreeIdentifyCookie() 199 KDiskSystem::FreeCookie(KPartition *partition) in FreeCookie() 207 KDiskSystem::FreeContentCookie(KPartition *partition) in FreeContentCookie() 215 KDiskSystem::Defragment(KPartition* partition, disk_job_id job) in Defragment() 224 KDiskSystem::Repair(KPartition* partition, bool checkOnly, disk_job_id job) in Repair() 233 KDiskSystem::Resize(KPartition* partition, off_t size, disk_job_id job) in Resize() 242 KDiskSystem::ResizeChild(KPartition* child, off_t size, disk_job_id job) in ResizeChild() 251 KDiskSystem::Move(KPartition* partition, off_t offset, disk_job_id job) in Move() [all …]
|
H A D | KPartitioningSystem.cpp | 65 KPartitioningSystem::Identify(KPartition *partition, void **cookie) in Identify() 87 KPartitioningSystem::Scan(KPartition *partition, void *cookie) in Scan() 103 KPartitioningSystem::FreeIdentifyCookie(KPartition *partition, void *cookie) in FreeIdentifyCookie() 114 KPartitioningSystem::FreeCookie(KPartition *partition) in FreeCookie() 127 KPartitioningSystem::FreeContentCookie(KPartition *partition) in FreeContentCookie() 141 KPartitioningSystem::Repair(KPartition* partition, bool checkOnly, in Repair() 152 KPartitioningSystem::Resize(KPartition* partition, off_t size, disk_job_id job) in Resize() 178 KPartitioningSystem::ResizeChild(KPartition* child, off_t size, disk_job_id job) in ResizeChild() 204 KPartitioningSystem::Move(KPartition* partition, off_t offset, disk_job_id job) in Move() 230 KPartitioningSystem::MoveChild(KPartition* child, off_t offset, disk_job_id job) in MoveChild() [all …]
|
H A D | KFileSystem.cpp | 58 KFileSystem::Identify(KPartition *partition, void **cookie) in Identify() 74 KFileSystem::Scan(KPartition *partition, void *cookie) in Scan() 90 KFileSystem::FreeIdentifyCookie(KPartition *partition, void *cookie) in FreeIdentifyCookie() 100 KFileSystem::FreeContentCookie(KPartition *partition) in FreeContentCookie() 110 KFileSystem::Defragment(KPartition* partition, disk_job_id job) in Defragment() 119 KFileSystem::Repair(KPartition* partition, bool checkOnly, disk_job_id job) in Repair() 128 KFileSystem::Resize(KPartition* partition, off_t size, disk_job_id job) in Resize() 149 KFileSystem::Move(KPartition* partition, off_t offset, disk_job_id job) in Move() 158 KFileSystem::SetContentName(KPartition* partition, const char* name, in SetContentName() 184 KFileSystem::SetContentParameters(KPartition* partition, in SetContentParameters() [all …]
|
H A D | disk_device_manager.cpp | 100 if (KPartition* partition = manager->RegisterPartition(path)) { in find_partition() 121 KPartition* partition = manager->FindPartition(partitionID); in get_partition() 130 KPartition* partition = manager->FindPartition(partitionID); in get_parent_partition() 141 if (KPartition* partition = manager->FindPartition(partitionID)) { in get_child_partition() 142 if (KPartition* child = partition->ChildAt(index)) in get_child_partition() 153 KPartition* partition = manager->FindPartition(partitionID); in open_partition() 171 if (KPartition* partition = manager->FindPartition(partitionID)) { in create_child_partition() 172 KPartition* child = NULL; in create_child_partition() 191 if (KPartition* partition = manager->FindPartition(partitionID)) { in delete_partition() 192 if (KPartition* parent = partition->Parent()) in delete_partition() [all …]
|
H A D | KPartitionVisitor.cpp | 18 KPartitionVisitor::VisitPre(KPartition *partition) in VisitPre() 25 KPartitionVisitor::VisitPost(KPartition *partition) in VisitPost()
|
H A D | KDiskDeviceManager.cpp | 71 inline partition_id operator()(const KPartition* partition) const in operator ()() 86 struct KDiskDeviceManager::PartitionMap : VectorMap<partition_id, KPartition*, 87 VectorMapEntryStrategy::ImplicitKey<partition_id, KPartition*, 105 struct KDiskDeviceManager::PartitionSet : VectorSet<KPartition*> { 417 if (KPartition* partition = FindPartition(id)) { in FindDevice() 426 KPartition* 436 KPartition* partition = iterator->Value(); in FindPartition() 447 KPartition* 522 KPartition* 527 if (KPartition* partition = FindPartition(path)) { in RegisterPartition() [all …]
|
H A D | ddm_userland_interface.cpp | 143 move_descendants(KPartition *partition, off_t moveBy) 149 for (int32 i = 0; KPartition *child = partition->ChildAt(i); i++) 155 move_descendants_contents(KPartition *partition) 168 for (int32 i = 0; KPartition *child = partition->ChildAt(i); i++) { 253 KPartition *partition = manager->RegisterPartition(filename); in _user_find_partition() 555 KPartition* partition = manager->WriteLockPartition(partitionID); in _user_defragment_partition() 605 KPartition* partition = manager->WriteLockPartition(partitionID); in _user_repair_partition() 659 KPartition* partition = manager->WriteLockPartition(partitionID); in _user_resize_partition() 668 KPartition* child = manager->RegisterPartition(childID); in _user_resize_partition() 741 KPartition *partition = manager->WriteLockPartition(partitionID); in _user_move_partition() [all …]
|
H A D | KDiskDevice.cpp | 32 KPartition(id), in KDiskDevice() 149 KPartition::SetID(id); in SetID() 325 KPartition::WriteUserData(writer, data); in WriteUserData() 332 KPartition* partition = this; in WriteUserData() 353 KPartition::Dump(deep, 0); in Dump()
|
H A D | Jamfile | 22 KPartition.cpp
|
/haiku/headers/private/kernel/disk_device_manager/ |
H A D | KPartitionListener.h | 12 class KPartition; variable 19 virtual void OffsetChanged(KPartition *partition, off_t offset); 20 virtual void SizeChanged(KPartition *partition, off_t size); 21 virtual void ContentSizeChanged(KPartition *partition, off_t size); 22 virtual void BlockSizeChanged(KPartition *partition, uint32 blockSize); 23 virtual void IndexChanged(KPartition *partition, int32 index); 24 virtual void StatusChanged(KPartition *partition, uint32 status); 25 virtual void FlagsChanged(KPartition *partition, uint32 flags); 26 virtual void NameChanged(KPartition *partition, const char *name); 27 virtual void ContentNameChanged(KPartition *partition, const char *name); [all …]
|
H A D | KPartitioningSystem.h | 35 virtual float Identify(KPartition* partition, void** cookie); 36 virtual status_t Scan(KPartition* partition, void* cookie); 37 virtual void FreeIdentifyCookie(KPartition* partition, 39 virtual void FreeCookie(KPartition* partition); 40 virtual void FreeContentCookie(KPartition* partition); 44 virtual status_t Repair(KPartition* partition, bool checkOnly, 46 virtual status_t Resize(KPartition* partition, off_t size, 48 virtual status_t ResizeChild(KPartition* child, off_t size, 50 virtual status_t Move(KPartition* partition, off_t offset, 52 virtual status_t MoveChild(KPartition* child, off_t offset, [all …]
|
H A D | KDiskSystem.h | 22 class KPartition; variable 54 virtual float Identify(KPartition* partition, void** cookie); 55 virtual status_t Scan(KPartition* partition, void* cookie); 56 virtual void FreeIdentifyCookie(KPartition* partition, 58 virtual void FreeCookie(KPartition* partition); 59 virtual void FreeContentCookie(KPartition* partition); 66 virtual status_t Defragment(KPartition* partition, 68 virtual status_t Repair(KPartition* partition, bool checkOnly, 70 virtual status_t Resize(KPartition* partition, off_t size, 72 virtual status_t ResizeChild(KPartition* child, off_t size, [all …]
|
H A D | KFileSystem.h | 33 virtual float Identify(KPartition* partition, void** cookie); 34 virtual status_t Scan(KPartition* partition, void* cookie); 35 virtual void FreeIdentifyCookie(KPartition* partition, 37 virtual void FreeContentCookie(KPartition* partition); 41 virtual status_t Defragment(KPartition* partition, 43 virtual status_t Repair(KPartition* partition, bool checkOnly, 45 virtual status_t Resize(KPartition* partition, off_t size, 47 virtual status_t Move(KPartition* partition, off_t offset, 49 virtual status_t SetContentName(KPartition* partition, 51 virtual status_t SetContentParameters(KPartition* partition, [all …]
|
H A D | KDiskDeviceManager.h | 22 class KPartition; variable 50 KPartition *FindPartition(const char *path); 51 KPartition *FindPartition(partition_id id); 57 KPartition *RegisterPartition(const char *path); 58 KPartition *RegisterPartition(partition_id id); 65 KPartition *ReadLockPartition(partition_id id); 66 KPartition *WriteLockPartition(partition_id id); 70 status_t ScanPartition(KPartition* partition); 84 bool PartitionAdded(KPartition *partition); // implementation internal 85 bool PartitionRemoved(KPartition *partition); // [all …]
|
H A D | KPartition.h | 29 class KPartition { 31 KPartition(partition_id id = -1); 32 virtual ~KPartition(); 139 void SetParent(KPartition *parent); 140 KPartition *Parent() const; 142 status_t AddChild(KPartition *partition, int32 index = -1); 144 KPartition **child = NULL); 146 bool RemoveChild(KPartition *child); 148 KPartition *ChildAt(int32 index) const; 152 KPartition *VisitEachDescendant(KPartitionVisitor *visitor); [all …]
|
H A D | KPartitionVisitor.h | 11 class KPartition; variable 18 virtual bool VisitPre(KPartition *partition); 19 virtual bool VisitPost(KPartition *partition);
|
H A D | KDiskDeviceUtils.h | 97 class KPartition; variable 110 inline bool Lock(KPartition *partition) in Lock() 118 inline void Unlock(KPartition *partition) in Unlock() 125 typedef AutoLocker<KPartition, AutoLockerPartitionRegistration<> >
|
H A D | KDiskDevice.h | 23 class KDiskDevice : public KPartition {
|
/haiku/src/tests/system/kernel/disk_device_manager/ |
H A D | KPartitionTest.cpp | 30 using BPrivate::DiskDevice::KPartition; 64 KPartition partition; in TestPartitionWithoutFilesystemReturnsBadValue() 79 KPartition partition; in TestPartitionContentNameUsedFirst() 95 KPartition partition; in TestPartitionNameUsedSecond() 111 KPartition partition; in TestPartitionWithoutAnyNameIsNotRoot() 127 KPartition partition; in TestPartitionNameWithSlashesRemoved() 143 KPartition partition; in TestPartitionMountPointExists()
|
/haiku/src/system/kernel/fs/ |
H A D | vfs_boot.cpp | 44 typedef Stack<KPartition *> PartitionStack; 69 KPartition* a = *(KPartition**)_a; in compare_image_boot() 70 KPartition* b = *(KPartition**)_b; in compare_image_boot() 104 KPartition* a = *(KPartition**)_a; in compare_cd_boot() 105 KPartition* b = *(KPartition**)_b; in compare_cd_boot() 183 virtual bool IsBootPartition(KPartition* partition, bool& foundForSure); 184 virtual void SortPartitions(KPartition** partitions, int32 count); 259 DiskBootMethod::IsBootPartition(KPartition* partition, bool& foundForSure) in IsBootPartition() 313 DiskBootMethod::SortPartitions(KPartition** partitions, int32 count) in SortPartitions() 315 qsort(partitions, count, sizeof(KPartition*), in SortPartitions() [all …]
|
H A D | vfs_net_boot.h | 23 virtual bool IsBootPartition(KPartition* partition, bool& foundForSure); 24 virtual void SortPartitions(KPartition** partitions, int32 count);
|
H A D | vfs_boot.h | 21 virtual bool IsBootPartition(KPartition* partition, bool& foundForSure) = 0; 22 virtual void SortPartitions(KPartition** partitions, int32 count) = 0;
|
H A D | vfs_net_boot.cpp | 46 KPartition* a = *(KPartition**)_a; in compare_partitions_net_devices() 47 KPartition* b = *(KPartition**)_b; in compare_partitions_net_devices() 371 NetBootMethod::IsBootPartition(KPartition* partition, bool& foundForSure) in IsBootPartition() 380 NetBootMethod::SortPartitions(KPartition** partitions, int32 count) in SortPartitions() 382 qsort(partitions, count, sizeof(KPartition*), in SortPartitions()
|