Searched refs:partition (Results 1 - 25 of 201) sorted by relevance

123456789

/haiku/src/system/kernel/disk_device_manager/
H A DKPartitionListener.cpp19 KPartitionListener::OffsetChanged(KPartition *partition, off_t offset) argument
25 KPartitionListener::SizeChanged(KPartition *partition, off_t size) argument
31 KPartitionListener::ContentSizeChanged(KPartition *partition, off_t size) argument
37 KPartitionListener::BlockSizeChanged(KPartition *partition, uint32 blockSize) argument
43 KPartitionListener::IndexChanged(KPartition *partition, int32 index) argument
49 KPartitionListener::StatusChanged(KPartition *partition, uint32 status) argument
55 KPartitionListener::FlagsChanged(KPartition *partition, uint32 flags) argument
61 KPartitionListener::NameChanged(KPartition *partition, const char *name) argument
67 KPartitionListener::ContentNameChanged(KPartition *partition, const char *name) argument
73 KPartitionListener::TypeChanged(KPartition *partition, cons argument
79 IDChanged(KPartition *partition, partition_id id) argument
85 VolumeIDChanged(KPartition *partition, dev_t volumeID) argument
91 MountCookieChanged(KPartition *partition, void *cookie) argument
97 ParametersChanged(KPartition *partition, const char *parameters) argument
104 ContentParametersChanged(KPartition *partition, const char *parameters) argument
111 ChildAdded(KPartition *partition, KPartition *child, int32 index) argument
118 ChildRemoved(KPartition *partition, KPartition *child, int32 index) argument
125 DiskSystemChanged(KPartition *partition, KDiskSystem *diskSystem) argument
132 CookieChanged(KPartition *partition, void *cookie) argument
138 ContentCookieChanged(KPartition *partition, void *cookie) argument
[all...]
H A DKPartitionVisitor.cpp18 KPartitionVisitor::VisitPre(KPartition *partition) argument
25 KPartitionVisitor::VisitPost(KPartition *partition) argument
H A DKFileSystem.cpp58 KFileSystem::Identify(KPartition *partition, void **cookie) argument
60 if (!partition || !cookie || !fModule || !fModule->identify_partition)
63 if (partition->Open(O_RDONLY, &fd) != B_OK)
65 float result = fModule->identify_partition(fd, partition->PartitionData(),
74 KFileSystem::Scan(KPartition *partition, void *cookie) argument
76 if (!partition || !fModule || !fModule->scan_partition)
79 status_t result = partition->Open(O_RDONLY, &fd);
82 result = fModule->scan_partition(fd, partition->PartitionData(), cookie);
90 KFileSystem::FreeIdentifyCookie(KPartition *partition, void *cookie) argument
92 if (!partition || !fModul
100 FreeContentCookie(KPartition *partition) argument
110 Defragment(KPartition* partition, disk_job_id job) argument
119 Repair(KPartition* partition, bool checkOnly, disk_job_id job) argument
128 Resize(KPartition* partition, off_t size, disk_job_id job) argument
149 Move(KPartition* partition, off_t offset, disk_job_id job) argument
158 SetContentName(KPartition* partition, const char* name, disk_job_id job) argument
184 SetContentParameters(KPartition* partition, const char* parameters, disk_job_id job) argument
211 Initialize(KPartition* partition, const char* name, const char* parameters, disk_job_id job) argument
237 Uninitialize(KPartition* partition, disk_job_id job) argument
[all...]
H A Dddm_userland_interface.cpp143 move_descendants(KPartition *partition, off_t moveBy)
145 if (!partition)
147 partition->SetOffset(partition->Offset() + moveBy);
149 for (int32 i = 0; KPartition *child = partition->ChildAt(i); i++)
155 move_descendants_contents(KPartition *partition)
157 if (!partition)
160 KDiskSystem *diskSystem = partition->DiskSystem();
161 if (diskSystem || partition->AlgorithmData()) {
162 status_t error = diskSystem->ShadowPartitionChanged(partition,
253 KPartition *partition = manager->RegisterPartition(filename); local
555 KPartition* partition = manager->WriteLockPartition(partitionID); local
605 KPartition* partition = manager->WriteLockPartition(partitionID); local
659 KPartition* partition = manager->WriteLockPartition(partitionID); local
792 KPartition* partition = manager->WriteLockPartition(partitionID); local
864 KPartition* partition = manager->WriteLockPartition(partitionID); local
921 KPartition* partition = manager->WriteLockPartition(partitionID); local
997 KPartition* partition = manager->WriteLockPartition(partitionID); local
1070 KPartition* partition = manager->WriteLockPartition(partitionID); local
1131 KPartition* partition = manager->WriteLockPartition(partitionID); local
1203 KPartition* partition = manager->WriteLockPartition(partitionID); local
1285 KPartition* partition = manager->WriteLockPartition(partitionID); local
1345 KPartition* partition = manager->WriteLockPartition(partitionID); local
[all...]
/haiku/src/kits/storage/disk_device/
H A DDiskDeviceJobGenerator.h35 status_t _GenerateCleanupJobs(BPartition* partition);
36 status_t _GeneratePlacementJobs(BPartition* partition);
38 BPartition* partition);
40 BPartition* partition);
42 BMutablePartition* _GetMutablePartition(BPartition* partition);
44 status_t _GenerateInitializeJob(BPartition* partition);
45 status_t _GenerateUninitializeJob(BPartition* partition);
47 BPartition* partition);
49 BPartition* partition);
50 status_t _GenerateDefragmentJob(BPartition* partition);
[all...]
H A DDiskDeviceJobGenerator.cpp69 BPartition* partition; member in struct:DiskDeviceJobGenerator::MoveInfo
79 : partition(NULL),
90 BPartition* partition; member in struct:DiskDeviceJobGenerator::PartitionRefInfo
137 // associated shadow partition, i.e. those that shall be deleted.
138 // 2) Generate uninitialize jobs for all partition whose initialization
190 DiskDeviceJobGenerator::_GenerateCleanupJobs(BPartition* partition) argument
193 // all descendants of a partition to be uninitialized or removed.
194 if (BMutablePartition* shadow = _GetMutablePartition(partition)) {
196 && partition->fPartitionData->content_type) {
197 // partition change
221 _GeneratePlacementJobs(BPartition* partition) argument
258 _GenerateChildPlacementJobs(BPartition* partition) argument
371 _GenerateRemainingJobs(BPartition* parent, BPartition* partition) argument
483 _GetMutablePartition(BPartition* partition) argument
495 _GenerateInitializeJob(BPartition* partition) argument
519 _GenerateUninitializeJob(BPartition* partition) argument
540 _GenerateSetContentNameJob(BPartition* partition) argument
564 _GenerateSetContentParametersJob(BPartition* partition) argument
588 _GenerateDefragmentJob(BPartition* partition) argument
601 _GenerateRepairJob(BPartition* partition, bool repair) argument
614 _GenerateCreateChildJob(BPartition* parent, BPartition* partition) argument
645 _GenerateDeleteChildJob(BPartition* parent, BPartition* partition) argument
664 _GenerateResizeJob(BPartition* partition) argument
687 _GenerateMoveJob(BPartition* partition) argument
727 _GenerateSetNameJob(BPartition* parent, BPartition* partition) argument
756 _GenerateSetTypeJob(BPartition* parent, BPartition* partition) argument
785 _GenerateSetParametersJob(BPartition* parent, BPartition* partition) argument
815 _CollectContentsToMove(BPartition* partition) argument
841 _PushContentsToMove(BPartition* partition) argument
859 _GetPartitionReference(BPartition* partition, PartitionReference*& reference) argument
[all...]
H A DDiskDeviceList.cpp268 The supplied visitor's Visit(BPartition*) is invoked for each partition.
270 returns the respective partition.
275 \return The respective partition, if the iteration was terminated early,
283 if (BPartition *partition = device->VisitEachDescendant(visitor))
284 return partition;
294 partition.
296 returns the respective partition.
301 \return The respective partition, if the iteration was terminated early,
307 BPartition *partition = NULL; local
311 virtual bool Filter(BPartition *partition, int3 argument
337 BPartition *partition = NULL; local
341 Filter(BPartition *partition, int32 level) argument
390 MountPointMoved(BPartition *partition) argument
403 PartitionMounted(BPartition *partition) argument
416 PartitionUnmounted(BPartition *partition) argument
429 PartitionInitialized(BPartition *partition) argument
442 PartitionResized(BPartition *partition) argument
455 PartitionMoved(BPartition *partition) argument
468 PartitionCreated(BPartition *partition) argument
489 PartitionDeleted(BPartition *partition, partition_id partitionID) argument
502 PartitionDefragmented(BPartition *partition) argument
515 PartitionRepaired(BPartition *partition) argument
532 PartitionChanged(BPartition *partition, uint32 event) argument
809 BPartition *partition = NULL; local
[all...]
H A DDiskDeviceJob.cpp12 DiskDeviceJob::DiskDeviceJob(PartitionReference* partition, argument
15 fPartition(partition),
/haiku/headers/private/kernel/disk_device_manager/
H A DKPartitionListener.h19 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);
28 virtual void TypeChanged(KPartition *partition, cons
[all...]
H A Dddm_modules.h23 float (*identify_partition)(int fd, partition_data* partition,
25 status_t (*scan_partition)(int fd, partition_data* partition,
27 void (*free_identify_partition_cookie)(partition_data* partition,
29 void (*free_partition_cookie)(partition_data* partition);
30 void (*free_partition_content_cookie)(partition_data* partition);
35 uint32 (*get_supported_operations)(partition_data* partition, uint32 mask);
36 uint32 (*get_supported_child_operations)(partition_data* partition,
39 bool (*supports_initializing_child)(partition_data* partition,
41 bool (*is_sub_system_for)(partition_data* partition);
43 bool (*validate_resize)(partition_data* partition, off_
[all...]
H A DKFileSystem.h33 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 DKDiskSystem.h54 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,
74 virtual status_t Move(KPartition* partition, off_t offset,
78 virtual status_t SetName(KPartition* partition, cons
[all...]
H A DKPartitioningSystem.h35 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,
50 virtual status_t Move(KPartition* partition, off_t offset,
54 virtual status_t SetName(KPartition* partition, const char* name,
56 virtual status_t SetContentName(KPartition* partition,
[all...]
H A DKPartitionVisitor.h18 virtual bool VisitPre(KPartition *partition);
19 virtual bool VisitPost(KPartition *partition);
/haiku/src/add-ons/kernel/partitioning_systems/intel/
H A Dintel.cpp15 // TODO: The implementation is very strict right now. It rejects a partition
16 // completely, if it finds an error in its partition tables. We should see,
17 // what error can be handled gracefully, e.g. by ignoring the partition
18 // descriptor or the whole partition table sector.
100 pm_identify_partition(int fd, partition_data* partition, void** cookie) argument
103 if (fd < 0 || !partition || !cookie)
107 "%" B_PRId64 ", %" B_PRId32 ")\n", fd, partition->id, partition->offset,
108 partition->size, partition
165 pm_scan_partition(int fd, partition_data* partition, void* cookie) argument
249 pm_free_partition_cookie(partition_data* partition) argument
260 pm_free_partition_content_cookie(partition_data* partition) argument
288 ep_identify_partition(int fd, partition_data* partition, void** cookie) argument
317 ep_scan_partition(int fd, partition_data* partition, void* cookie) argument
392 ep_free_identify_partition_cookie(partition_data* partition, void* cookie) argument
400 ep_free_partition_cookie(partition_data* partition) argument
410 ep_free_partition_content_cookie(partition_data* partition) argument
[all...]
H A Dwrite_support.cpp39 // Count of free sectors after Partition Table Sector (at logical partition).
43 // size of logical partition header in blocks
50 typedef void (*fc_get_sibling_partitions)(partition_data* partition,
55 typedef int32 (*fc_fill_partitionable_spaces_buffer)(partition_data* partition,
59 status_t pm_get_partitionable_spaces(partition_data* partition,
61 status_t ep_get_partitionable_spaces(partition_data* partition,
70 pm_get_supported_operations(partition_data* partition, uint32 mask) argument
79 if (partition->child_count < 4
81 && pm_get_partitionable_spaces(partition, NULL, 0, &countSpaces)
93 pm_get_supported_child_operations(partition_data* partition, argument
105 pm_is_sub_system_for(partition_data* partition) argument
112 get_partition_from_offset_ep(partition_data* partition, off_t offset, partition_data** nextPartition) argument
148 validate_resize(partition_data* partition, off_t* size) argument
186 pm_validate_resize(partition_data* partition, off_t* size) argument
204 get_sibling_partitions_pm(partition_data* partition, partition_data* child, off_t childOffset, partition_data** previous, partition_data** next, off_t* previousOffset, off_t* previousSize, off_t* nextOffset, off_t* nextSize) argument
245 get_sibling_partitions_ep(partition_data* partition, partition_data* child, off_t childOffset, partition_data** previous, partition_data** next, off_t* previousOffset, off_t* previousSize, off_t* nextOffset, off_t* nextSize) argument
281 validate_resize_child(partition_data* partition, partition_data* child, off_t childOffset, off_t childSize, off_t* size, fc_get_sibling_partitions getSiblingPartitions) argument
319 pm_validate_resize_child(partition_data* partition, partition_data* child, off_t* size) argument
334 pm_validate_move(partition_data* partition, off_t* start) argument
347 validate_move_child(partition_data* partition, partition_data* child, off_t childOffset, off_t childSize, off_t* _start, fc_get_sibling_partitions getSiblingPartitions) argument
389 pm_validate_move_child(partition_data* partition, partition_data* child, off_t* start) argument
410 is_type_valid_pm(const char* type, partition_data* partition, PrimaryPartition* child = NULL) argument
436 pm_validate_set_type(partition_data* partition, const char* type) argument
456 pm_validate_initialize(partition_data* partition, char* name, const char* parameters) argument
478 validate_create_child_partition(partition_data* partition, off_t* start, off_t* size, fc_get_sibling_partitions getSiblingPartitions) argument
524 pm_validate_create_child(partition_data* partition, off_t* start, off_t* size, const char* type, const char* name, const char* parameters, int32* index) argument
591 fill_partitionable_spaces_buffer_pm(partition_data* partition, PartitionPosition* positions) argument
613 fill_partitionable_spaces_buffer_ep(partition_data* partition, PartitionPosition* positions) argument
631 get_partitionable_spaces(partition_data* partition, partitionable_space_data* buffer, int32 count, int32* _actualCount, fc_fill_partitionable_spaces_buffer fillBuffer, off_t startOffset, off_t limitSize = 0, off_t headerSize = 0) argument
695 pm_get_partitionable_spaces(partition_data* partition, partitionable_space_data* buffer, int32 count, int32* actualCount) argument
716 pm_get_next_supported_type(partition_data* partition, int32* cookie, char* _type) argument
753 pm_shadow_changed(partition_data* partition, partition_data* child, uint32 operation) argument
1384 PrimaryPartition* partition = map->PrimaryPartitionAt(i); local
1484 ep_get_supported_operations(partition_data* partition, uint32 mask) argument
1513 ep_get_supported_child_operations(partition_data* partition, partition_data* child, uint32 mask) argument
1525 ep_is_sub_system_for(partition_data* partition) argument
1546 ep_validate_resize(partition_data* partition, off_t* size) argument
1559 ep_validate_resize_child(partition_data* partition, partition_data* child, off_t* _size) argument
1579 ep_validate_move(partition_data* partition, off_t* start) argument
1592 ep_validate_move_child(partition_data* partition, partition_data* child, off_t* _start) argument
1625 ep_validate_set_type(partition_data* partition, const char* type) argument
1639 ep_validate_initialize(partition_data* partition, char* name, const char* parameters) argument
1657 ep_validate_create_child(partition_data* partition, off_t* offset, off_t* size, const char* type, const char* name, const char* parameters, int32* index) argument
1667 ep_get_partitionable_spaces(partition_data* partition, partitionable_space_data* buffer, int32 count, int32* actualCount) argument
1690 ep_get_next_supported_type(partition_data* partition, int32* cookie, char* _type) argument
1731 ep_shadow_changed(partition_data* partition, partition_data* child, uint32 operation) argument
1745 check_partition_location_ep(partition_data* partition, off_t offset, off_t size, off_t ptsOffset) argument
[all...]
/haiku/src/add-ons/disk_systems/gpt/
H A DGPTDiskAddOn.cpp73 GPTDiskAddOn::CreatePartitionHandle(BMutablePartition* partition, argument
77 = new(std::nothrow) GPTPartitionHandle(partition);
93 GPTDiskAddOn::CanInitialize(const BMutablePartition* partition) argument
96 return partition->Size() >= round_up(partition->BlockSize()
98 partition->BlockSize());
103 GPTDiskAddOn::ValidateInitialize(const BMutablePartition* partition, argument
106 if (!CanInitialize(partition)
119 GPTDiskAddOn::Initialize(BMutablePartition* partition, const char* name, argument
122 if (!CanInitialize(partition)
[all...]
H A DGPTDiskAddOn.h18 BMutablePartition* partition,
22 const BMutablePartition* partition);
24 const BMutablePartition* partition,
26 virtual status_t Initialize(BMutablePartition* partition,
/haiku/src/add-ons/kernel/partitioning_systems/session/
H A Dsession.cpp8 \brief Disk device manager partition module for CD/DVD sessions.
40 identify_partition(int fd, partition_data *partition, void **cookie) argument
44 fd, partition->id, partition->offset, partition->size,
45 partition->block_size, partition->flags));
49 if ((partition->flags & B_PARTITION_IS_DEVICE) != 0
50 && partition->block_size == 2048
71 scan_partition(int fd, partition_data *partition, voi argument
[all...]
/haiku/src/tests/system/kernel/file_corruption/disk_system/
H A Dchecksumfs.cpp34 BMutablePartition* partition,
38 const BMutablePartition* partition);
40 const BMutablePartition* partition,
43 const BMutablePartition* partition,
45 virtual status_t Initialize(BMutablePartition* partition,
54 BMutablePartition* partition);
74 CheckSumFSAddOn::CreatePartitionHandle(BMutablePartition* partition, argument
79 = new(std::nothrow) CheckSumFSPartitionHandle(partition);
95 CheckSumFSAddOn::CanInitialize(const BMutablePartition* partition) argument
98 return (uint64)partition
103 GetInitializationParameterEditor( const BMutablePartition* partition, BPartitionParameterEditor** _editor) argument
113 ValidateInitialize(const BMutablePartition* partition, BString* name, const char* parameters) argument
132 Initialize(BMutablePartition* partition, const char* name, const char* parameters, BPartitionHandle** _handle) argument
166 CheckSumFSPartitionHandle( BMutablePartition* partition) argument
[all...]
/haiku/src/add-ons/disk_systems/ntfs/
H A DNTFSAddOn.cpp58 NTFSAddOn::CreatePartitionHandle(BMutablePartition* partition, argument
61 NTFSPartitionHandle* handle = new(nothrow) NTFSPartitionHandle(partition);
78 NTFSAddOn::CanInitialize(const BMutablePartition* partition) argument
85 NTFSAddOn::ValidateInitialize(const BMutablePartition* partition, BString* name, argument
88 if (!CanInitialize(partition) || !name)
101 NTFSAddOn::Initialize(BMutablePartition* partition, const char* name, argument
104 if (!CanInitialize(partition) || name == NULL)
107 NTFSPartitionHandle* handle = new(nothrow) NTFSPartitionHandle(partition);
112 status_t error = partition->SetContentType(Name());
116 partition
145 NTFSPartitionHandle(BMutablePartition* partition) argument
[all...]
/haiku/src/add-ons/disk_systems/fat/
H A DFATAddOn.cpp57 FATAddOn::CreatePartitionHandle(BMutablePartition* partition, argument
60 FATPartitionHandle* handle = new(nothrow) FATPartitionHandle(partition);
77 FATAddOn::CanInitialize(const BMutablePartition* partition) argument
84 FATAddOn::ValidateInitialize(const BMutablePartition* partition, BString* name, argument
87 if (!CanInitialize(partition) || !name)
100 FATAddOn::Initialize(BMutablePartition* partition, const char* name, argument
103 if (!CanInitialize(partition) || name == NULL)
106 FATPartitionHandle* handle = new(nothrow) FATPartitionHandle(partition);
111 status_t error = partition->SetContentType(Name());
115 partition
144 FATPartitionHandle(BMutablePartition* partition) argument
[all...]
/haiku/src/system/kernel/vm/
H A DVMUtils.h14 get_mount_point(KPartition* partition, KPath* mountPoint);
/haiku/src/kits/storage/disk_device/jobs/
H A DDefragmentJob.cpp14 DefragmentJob::DefragmentJob(PartitionReference* partition) argument
15 : DiskDeviceJob(partition)
/haiku/src/add-ons/disk_systems/bfs/
H A DBFSAddOn.h17 BMutablePartition* partition,
24 const BMutablePartition* partition);
26 const BMutablePartition* partition,
28 virtual status_t Initialize(BMutablePartition* partition,
37 BMutablePartition* partition);

Completed in 236 milliseconds

123456789