Searched refs:partition (Results 26 - 50 of 202) sorted by relevance

123456789

/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);
/haiku/src/add-ons/disk_systems/ntfs/
H A DNTFSAddOn.h24 BMutablePartition* partition,
31 const BMutablePartition* partition);
33 const BMutablePartition* partition,
35 virtual status_t Initialize(BMutablePartition* partition,
44 BMutablePartition* partition);
/haiku/src/kits/storage/disk_device/
H A DDiskDevicePrivate.cpp42 PartitionFilterVisitor::Visit(BPartition *partition, int32 level) argument
44 if (fFilter->Filter(partition, level))
45 return fVisitor->Visit(partition, level);
70 IDFinderVisitor::Visit(BPartition *partition, int32 level) argument
72 return (partition->ID() == fID);
H A DDiskDeviceVisitor.cpp64 \param partition The visited partition.
65 \param level The level of the partition in the partition tree.
70 BDiskDeviceVisitor::Visit(BPartition *partition, int32 level) argument
/haiku/src/add-ons/disk_systems/fat/
H A DFATAddOn.h25 BMutablePartition* partition,
32 const BMutablePartition* partition);
34 const BMutablePartition* partition,
36 virtual status_t Initialize(BMutablePartition* partition,
45 BMutablePartition* partition);
/haiku/src/add-ons/disk_systems/btrfs/
H A DBTRFSAddOn.h19 BMutablePartition* partition,
26 const BMutablePartition* partition);
28 const BMutablePartition* partition,
30 virtual status_t Initialize(BMutablePartition* partition,
39 BMutablePartition* partition);
H A DBTRFSAddOn.cpp72 BTRFSAddOn::CreatePartitionHandle(BMutablePartition* partition, argument
75 BTRFSPartitionHandle* handle = new(nothrow) BTRFSPartitionHandle(partition);
92 BTRFSAddOn::CanInitialize(const BMutablePartition* partition) argument
94 // We can initialize if the partition is large enough.
102 BTRFSAddOn::ValidateInitialize(const BMutablePartition* partition, argument
105 if (!CanInitialize(partition) || !name)
127 BTRFSAddOn::Initialize(BMutablePartition* partition, const char* name, argument
130 if (!CanInitialize(partition) || check_volume_name(name) != B_OK)
138 BTRFSPartitionHandle* handle = new(nothrow) BTRFSPartitionHandle(partition);
143 error = partition
177 BTRFSPartitionHandle(BMutablePartition* partition) argument
[all...]
/haiku/src/apps/drivesetup/
H A DSupport.cpp33 dump_partition_info(const BPartition* partition) argument
36 printf("\tOffset(): %" B_PRIdOFF "\n", partition->Offset());
37 printf("\tSize(): %s\n", string_for_size(partition->Size(), size,
39 printf("\tContentSize(): %s\n", string_for_size(partition->ContentSize(),
41 printf("\tBlockSize(): %" B_PRId32 "\n", partition->BlockSize());
42 printf("\tPhysicalBlockSize(): %" B_PRId32 "\n", partition->PhysicalBlockSize());
43 printf("\tIndex(): %" B_PRId32 "\n", partition->Index());
44 printf("\tStatus(): %" B_PRId32 "\n\n", partition->Status());
46 partition->ContainsFileSystem() ? "true" : "false");
48 partition
[all...]
/haiku/src/system/kernel/disk_device_manager/
H A DKPartitioningSystem.cpp63 //! Try to identify a given partition
65 KPartitioningSystem::Identify(KPartition *partition, void **cookie) argument
67 if (!partition || !cookie || !fModule || !fModule->identify_partition)
70 if (partition->Open(O_RDONLY, &fd) != B_OK)
72 if (partition->BlockSize() == 0) {
77 float result = fModule->identify_partition(fd, partition->PartitionData(),
85 //! Scan the partition
87 KPartitioningSystem::Scan(KPartition *partition, void *cookie) argument
89 if (!partition || !fModule || !fModule->scan_partition)
92 status_t result = partition
103 FreeIdentifyCookie(KPartition *partition, void *cookie) argument
114 FreeCookie(KPartition *partition) argument
127 FreeContentCookie(KPartition *partition) argument
141 Repair(KPartition* partition, bool checkOnly, disk_job_id job) argument
152 Resize(KPartition* partition, off_t size, disk_job_id job) argument
204 Move(KPartition* partition, off_t offset, disk_job_id job) argument
285 SetContentName(KPartition* partition, const char* name, disk_job_id job) argument
368 SetContentParameters(KPartition* partition, const char* parameters, disk_job_id job) argument
396 Initialize(KPartition* partition, const char* name, const char* parameters, disk_job_id job) argument
422 Uninitialize(KPartition* partition, disk_job_id job) argument
449 CreateChild(KPartition* partition, off_t offset, off_t size, const char* type, const char* name, const char* parameters, disk_job_id job, KPartition** child, partition_id childID) argument
[all...]
H A Ddisk_device_manager.cpp100 if (KPartition* partition = manager->RegisterPartition(path)) {
101 id = partition->ID();
102 partition->Unregister();
121 KPartition* partition = manager->FindPartition(partitionID); local
122 return (partition ? partition->PartitionData() : NULL);
130 KPartition* partition = manager->FindPartition(partitionID); local
131 if (partition && partition->Parent())
132 return partition
153 KPartition* partition = manager->FindPartition(partitionID); local
211 KPartition* partition = manager->RegisterPartition(partitionID); local
226 KPartition* partition = manager->RegisterPartition(partitionID); local
[all...]
H A DKDiskDeviceManager.cpp71 inline partition_id operator()(const KPartition* partition) const
73 return partition->ID();
298 TRACE(" partition: %" B_PRId32 "\n", it->Value()->ID());
306 TRACE(" partition: %" B_PRId32 "\n", (*it)->ID());
417 if (KPartition* partition = FindPartition(id)) {
418 KDiskDevice* device = partition->Device();
436 KPartition* partition = iterator->Value(); local
437 if (partition->GetPath(&partitionPath) == B_OK
439 return partition;
527 if (KPartition* partition
603 KPartition* partition = RegisterPartition(id); local
632 KPartition* partition = RegisterPartition(id); local
658 ScanPartition(KPartition* partition) argument
863 PartitionAdded(KPartition* partition) argument
870 PartitionRemoved(KPartition* partition) argument
885 DeletePartition(KPartition* partition) argument
1319 _ScanPartition(KPartition* partition, bool async, DiskSystemMap* restrictScan) argument
1364 _ScanPartition(KPartition* partition, DiskSystemMap* restrictScan) argument
[all...]
/haiku/src/add-ons/kernel/partitioning_systems/gpt/
H A Dgpt.cpp48 block_align(partition_data* partition, off_t offset, bool upwards) argument
52 uint32 blockSize = max_c(partition->block_size, 4096);
78 efi_gpt_identify_partition(int fd, partition_data* partition, void** _cookie) argument
81 (partition->size - 1) / partition->block_size, partition->block_size);
103 efi_gpt_scan_partition(int fd, partition_data* partition, void* _cookie) argument
108 partition->status = B_PARTITION_VALID;
109 partition->flags |= B_PARTITION_PARTITIONING_SYSTEM;
110 partition
158 efi_gpt_free_identify_partition_cookie(partition_data* partition, void* _cookie) argument
165 efi_gpt_free_partition_content_cookie(partition_data* partition) argument
173 efi_gpt_get_supported_operations(partition_data* partition, uint32 mask) argument
188 efi_gpt_get_supported_child_operations(partition_data* partition, partition_data* child, uint32 mask) argument
199 efi_gpt_is_sub_system_for(partition_data* partition) argument
207 efi_gpt_validate_resize(partition_data* partition, off_t* size) argument
242 efi_gpt_validate_resize_child(partition_data* partition, partition_data* child, off_t* size) argument
281 efi_gpt_validate_move(partition_data* partition, off_t* start) argument
289 efi_gpt_validate_move_child(partition_data* partition, partition_data* child, off_t* start) argument
332 efi_gpt_validate_set_name(partition_data* partition, char* name) argument
343 efi_gpt_validate_set_type(partition_data* partition, const char* type) argument
351 efi_gpt_validate_initialize(partition_data* partition, char* name, const char* parameters) argument
367 efi_gpt_validate_create_child(partition_data* partition, off_t* start, off_t* size, const char* type, const char* name, const char* parameters, int32* index) argument
428 efi_gpt_get_partitionable_spaces(partition_data* partition, partitionable_space_data* buffer, int32 count, int32* actualCount) argument
437 efi_gpt_get_next_supported_type(partition_data* partition, int32* cookie, char* type) argument
446 efi_gpt_shadow_changed(partition_data* partition, partition_data* child, uint32 operation) argument
455 efi_gpt_repair(int fd, partition_id partition, bool checkOnly, disk_job_id job) argument
545 efi_gpt_move(int fd, partition_id partition, off_t offset, disk_job_id job) argument
[all...]
/haiku/src/system/boot/loader/file_systems/amiga_ffs/
H A DVolume.cpp24 Volume::Volume(boot::Partition *partition) argument
28 if ((fDevice = open_node(partition, O_RDONLY)) < B_OK)
55 int32 blockSize = partition->block_size;
56 if (get_root_block(fDevice, buffer, blockSize, partition->size) != B_OK) {
61 if (get_root_block(fDevice, buffer, size, partition->size) == B_OK) {
104 amiga_ffs_identify_file_system(boot::Partition *partition) argument
106 Volume volume(partition);
113 amiga_ffs_get_file_system(boot::Partition *partition, ::Directory **_root) argument
115 Volume *volume = new(nothrow) Volume(partition);
/haiku/src/add-ons/kernel/partitioning_systems/intel/
H A Dwrite_support.h12 uint32 pm_get_supported_operations(partition_data* partition,
14 uint32 pm_get_supported_child_operations(partition_data* partition,
16 bool pm_is_sub_system_for(partition_data* partition);
18 bool pm_validate_resize(partition_data* partition, off_t* size);
19 bool pm_validate_resize_child(partition_data* partition,
21 bool pm_validate_move(partition_data* partition, off_t* start);
22 bool pm_validate_move_child(partition_data* partition,
24 bool pm_validate_set_type(partition_data* partition, const char* type);
25 bool pm_validate_initialize(partition_data* partition, char* name,
27 bool pm_validate_create_child(partition_data* partition, off_
[all...]
/haiku/src/kits/storage/disk_device/jobs/
H A DDefragmentJob.h17 DefragmentJob(PartitionReference* partition);
H A DDeleteChildJob.cpp15 DeleteChildJob::DeleteChildJob(PartitionReference* partition, argument
17 : DiskDeviceJob(partition, child)
H A DRepairJob.cpp14 RepairJob::RepairJob(PartitionReference* partition, bool checkOnly) argument
16 DiskDeviceJob(partition),
/haiku/src/add-ons/kernel/partitioning_systems/apple/
H A Dapple.cpp33 "partition_map", // the partition map itself
40 "Free", // unused partition
41 "Scratch", // empty partition
46 "Void", // dummy partition map entry (used to align entries for CD-ROM)
58 apple_partition_map &partition)
62 // find first partition map if this is the first call,
66 (void *)&partition, sizeof(apple_partition_map));
71 } while (cookie == 0 && block < 64 && !partition.HasValidSignature());
73 if (!partition.HasValidSignature()) {
77 // we searched for the first partition ma
57 get_next_partition(int fd, apple_driver_descriptor &descriptor, uint32 &cookie, apple_partition_map &partition) argument
111 apple_identify_partition(int fd, partition_data *partition, void **_cookie) argument
144 apple_scan_partition(int fd, partition_data *partition, void *_cookie) argument
190 apple_free_identify_partition_cookie(partition_data *partition, void *_cookie) argument
[all...]
/haiku/headers/private/storage/
H A DDiskDeviceList.h47 virtual void MountPointMoved(BPartition *partition);
48 virtual void PartitionMounted(BPartition *partition);
49 virtual void PartitionUnmounted(BPartition *partition);
50 virtual void PartitionInitialized(BPartition *partition);
51 virtual void PartitionResized(BPartition *partition);
52 virtual void PartitionMoved(BPartition *partition);
53 virtual void PartitionCreated(BPartition *partition);
54 virtual void PartitionDeleted(BPartition *partition,
56 virtual void PartitionDefragmented(BPartition *partition);
57 virtual void PartitionRepaired(BPartition *partition);
[all...]
/haiku/src/bin/
H A Dcheckfs.cpp78 BPartition* partition; local
82 &partition);
86 status = roster.FindPartitionByMountPoint(path, &device, &partition)
108 // Check if the partition supports repairing
111 bool canRepair = partition->CanRepair(checkOnly, &canRepairWhileMounted);
118 if (partition->IsMounted() && !canRepairWhileMounted) {
123 if (!partition->IsMounted() && !canRepair) {
130 status = partition->GetDiskSystem(&diskSystem);
132 fprintf(stderr, "%s: Failed to get disk system for partition: %s\n",
139 status = partition
[all...]
H A Dresizefs.cpp39 BPartition* partition; local
43 &partition);
48 &partition) ? B_OK : B_BAD_VALUE;
69 // Check if the partition supports resizing
72 bool canResize = partition->CanResize(NULL, &canResizeWhileMounted);
80 if (partition->IsMounted() && !canResizeWhileMounted) {
85 if (!partition->IsMounted() && !canResize) {
94 status = partition->ValidateResize(&validatedSize);
113 status = partition->Resize(validatedSize);
H A Ddriveinfo.c74 partition_info partition; local
76 if (ioctl(dev, B_GET_PARTITION_INFO, &partition, sizeof(partition)) < 0) {
80 printf("partition:\n");
81 printf("offset:\t%" B_PRIdOFF "\n", partition.offset);
82 printf("size:\t%" B_PRIdOFF "\n", partition.size);
83 printf("logical_block_size:\t%" B_PRId32 "\n", partition.logical_block_size);
84 printf("session:\t%" B_PRId32 "\n", partition.session);
85 printf("partition:\t%" B_PRId32 "\n", partition
[all...]
/haiku/src/add-ons/kernel/partitioning_systems/amiga/
H A Damiga_rdb.cpp79 partition_block &partition)
90 (void *)&partition, sizeof(partition_block));
97 if (partition.ID() != RDB_PARTITION_ID
98 || !validate_check_sum<partition_block>(&partition))
101 cookie = partition.Next();
150 amiga_rdb_identify_partition(int fd, partition_data *partition, void **_cookie) argument
162 amiga_rdb_scan_partition(int fd, partition_data *partition, void *_cookie) argument
168 partition->status = B_PARTITION_VALID;
169 partition->flags |= B_PARTITION_PARTITIONING_SYSTEM
171 partition
78 get_next_partition(int fd, rigid_disk_block &rdb, uint32 &cookie, partition_block &partition) argument
212 amiga_rdb_free_identify_partition_cookie(partition_data *partition, void *_cookie) argument
[all...]
/haiku/src/tests/kits/storage/disk_device/
H A DDiskDeviceTest.cpp48 virtual bool Visit(BPartition *partition, int32 level) argument
54 status_t error = partition->GetPath(&path);
60 printf("%spartition %ld: `%s'\n", prefix, partition->ID(),
63 printf("%s offset: %lld\n", prefix, partition->Offset());
64 printf("%s size: %lld\n", prefix, partition->Size());
65 printf("%s block size: %lu\n", prefix, partition->BlockSize());
66 printf("%s index: %ld\n", prefix, partition->Index());
67 printf("%s status: %lu\n", prefix, partition->Status());
69 partition->ContainsFileSystem());
71 partition
[all...]
/haiku/src/tests/system/kernel/vm/
H A DVMGetMountPointTest.cpp101 get_mount_point(KPartition* partition, KPath* mountPoint);
145 KPartition partition("", "", false);
148 status_t status = get_mount_point(&partition, &path);
157 KPartition partition("test1", "test2", true);
160 status_t status = get_mount_point(&partition, &path);
170 KPartition partition("test1", "", true);
173 status_t status = get_mount_point(&partition, &path);
183 KPartition partition("", "", true);
186 status_t status = get_mount_point(&partition, &path);
196 KPartition partition("", "testin
[all...]

Completed in 421 milliseconds

123456789