Searched refs:partition (Results 176 - 200 of 202) sorted by path

123456789

/haiku/src/kits/tracker/
H A DMountMenu.cpp72 virtual bool Visit(BPartition* partition, int32 level);
102 AddMenuItemVisitor::Visit(BPartition* partition, int32 level) argument
104 if (!partition->ContainsFileSystem())
108 BString name = partition->ContentName();
110 name = partition->Name();
112 const char* type = partition->ContentType();
118 if (partition->Size() < divisor) {
124 1.0 * partition->Size() / divisor, unit, type);
131 if (partition->GetIcon(icon, B_MINI_ICON) != B_OK) {
136 BMessage* message = new BMessage(partition
[all...]
/haiku/src/servers/mount/
H A DAutoMounter.cpp66 virtual bool Visit(BPartition* partition, int32 level);
70 const BPartition* partition);
89 virtual bool Visit(BPartition* partition, int32 level);
92 int _Score(BPartition* partition);
116 virtual bool Visit(BPartition* partition, int32 level);
146 MountVisitor::Visit(BPartition* partition, int32 level) argument
150 // or if the partition ID is already matched
151 BPartition* device = partition;
163 mount_mode mode = !fInitialRescan && partition->Device()->IsRemovableMedia()
165 if (mode == kNoVolumes || partition
207 _WasPreviouslyMounted(const BPath& path, const BPartition* partition) argument
240 BPartition* partition = fDevices.PartitionWithID(fBestID); local
255 Visit(BPartition* partition, int32 level) argument
271 _Score(BPartition* partition) argument
326 Visit(BPartition* partition, int32 level) argument
598 BPartition *partition; local
662 _UnmountAndEjectVolume(BPartition* partition, BPath& mountPoint, const char* name) argument
712 Visit(BPartition* partition, int32 level) argument
749 BPartition *partition; local
967 _SuggestMountFlags(const BPartition* partition, uint32* _flags) argument
[all...]
/haiku/src/system/boot/loader/file_systems/tarfs/
H A Dtarfs.cpp174 status_t Init(boot::Partition* partition);
179 status_t _Inflate(boot::Partition* partition,
640 TarFS::Volume::Init(boot::Partition* partition) argument
643 status_t error = partition->Open(&cookie, O_RDONLY);
648 boot::Partition *partition; member in struct:PartitionCloser
651 PartitionCloser(boot::Partition* partition, void* cookie) argument
652 : partition(partition),
659 partition->Close(cookie);
661 } _(partition, cooki
741 _Inflate(boot::Partition* partition, void* cookie, off_t offset, RegionDeleter& regionDeleter, size_t* inflatedBytes) argument
830 tarfs_get_file_system(boot::Partition* partition, ::Directory** _root) argument
[all...]
/haiku/src/system/boot/loader/
H A Dmenu.cpp1372 Partition* partition; local
1373 if (gRoot->GetPartitionFor(volume, &partition) != B_OK)
1377 if (partition->content_type == NULL
1378 || strcmp(partition->content_type, kPartitionTypeFAT32) != 0) {
1391 " (%s, offset %s, size %s)", partition->content_type,
1392 size_to_string(partition->offset, offsetBuffer,
1394 size_to_string(partition->size, sizeBuffer,
H A Dvfs.cpp623 Partition *partition; local
624 status_t status = gRoot->GetPartitionFor(rootDirectory, &partition);
632 partition->offset);
641 Node *device = get_node_from(partition->FD());
652 boot partition, and mounts its file system.
680 Partition *partition = (Partition*)partitionIterator.Next(); local
683 error = partition->Mount(&fileSystem, true);
685 // this partition doesn't contain any known file system; we
687 gPartitions.Remove(partition);
688 delete partition;
716 Partition *partition = NULL; local
[all...]
/haiku/src/system/boot/platform/atari_m68k/
H A Ddevices.cpp1198 dprintf("boot partition offset: %lld\n", offset);
1201 boot::Partition *partition = NULL; local
1202 while ((partition = (boot::Partition *)iterator.Next()) != NULL) {
1203 TRACE(("partition offset = %lld, size = %lld\n", partition->offset, partition->size));
1204 // search for the partition that contains the partition
1206 if (offset >= partition->offset
1207 && offset < partition
[all...]
/haiku/src/system/boot/platform/bios_ia32/
H A Ddevices.cpp886 dprintf("boot partition offset: %lld\n", offset);
889 boot::Partition *partition = NULL; local
890 while ((partition = (boot::Partition *)iterator.Next()) != NULL) {
891 TRACE(("partition offset = %lld, size = %lld\n", partition->offset, partition->size));
892 // search for the partition that contains the partition
894 if (offset >= partition->offset
895 && offset < partition
[all...]
/haiku/src/system/boot/platform/efi/
H A Ddevices.cpp130 device_contains_partition(EfiDevice *device, boot::Partition *partition) argument
132 EFI::Header *header = (EFI::Header*)partition->content_cookie;
134 // check if device is GPT, and contains partition entry
147 // partition->cookie == int partition entry index
148 uint32 index = (uint32)(addr_t)partition->cookie;
165 // Our partition has an EFI header, but we couldn't find one, so bail
169 if ((partition->offset + partition->size) <= device->Size())
196 // All block devices has one for the disk and one per partition
247 boot::Partition *partition = NULL; local
[all...]
/haiku/src/system/boot/platform/openfirmware/
H A Ddevices.cpp124 boot::Partition *partition = NULL; local
125 while ((partition = (boot::Partition *)iterator.Next()) != NULL) {
126 // ToDo: just take the first partition for now
127 partitionList->Insert(partition);
/haiku/src/system/boot/platform/pxe_ia32/
H A Ddevices.cpp126 boot::Partition *partition = NULL; local
127 while ((partition = (boot::Partition *)iterator.Next()) != NULL) {
128 // ToDo: just take the first partition for now
129 partitionList->Insert(partition);
/haiku/src/system/boot/platform/riscv/
H A Ddevices.cpp189 boot::Partition *partition = NULL; local
190 while ((partition = (boot::Partition *)iterator.Next()) != NULL) {
191 // ToDo: just take the first partition for now
192 partitionList->Insert(partition);
/haiku/src/system/boot/platform/u-boot/
H A Ddevices.cpp57 boot::Partition *partition = NULL; local
58 while ((partition = (boot::Partition *)iterator.Next()) != NULL) {
59 // ToDo: just take the first partition for now
60 partitionList->Insert(partition);
/haiku/src/system/kernel/device_manager/
H A Ddevfs.cpp81 struct devfs_partition* partition; member in struct:__anon34::devfs_stream::__anon36::stream_dev
298 if (vnode->stream.u.dev.partition == NULL) {
305 put_vnode(fs->volume, vnode->stream.u.dev.partition->raw_device->id);
437 if (device->stream.u.dev.partition != NULL)
444 // create partition
445 struct devfs_partition* partition = (struct devfs_partition*)malloc( local
447 if (partition == NULL)
450 memcpy(&partition->info, &info, sizeof(partition_info));
454 // you cannot change a partition once set
461 // the partition devic
494 translate_partition_access(devfs_partition* partition, off_t& offset, size_t& size) argument
506 translate_partition_access(devfs_partition* partition, uint64& offset, uint64& size) argument
537 translate_partition_access(devfs_partition* partition, io_request* request) argument
1458 struct devfs_partition* partition local
1482 struct devfs_partition* partition local
1539 struct devfs_partition* partition local
[all...]
/haiku/src/system/kernel/disk_device_manager/
H A DKDiskDevice.cpp87 // update partition data
332 KPartition* partition = this; local
334 = writer.AllocateDeviceData(partition->CountChildren());
340 partition->WriteUserData(writer, &data->device_partition_data);
342 partition->WriteUserData(writer, NULL);
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...]
H A DKPartition.cpp208 info.partition = ID();
220 dprintf("KPartition::PublishDevice(): Failed to publish partition "
242 "partition %" B_PRId32 ": %s\n", ID(), strerror(error));
248 dprintf("KPartition::UnpublishDevice(): Failed to unpublish partition "
289 dprintf("KPartition::RepublishDevice(): Failed to republish partition "
332 virtual bool VisitPre(KPartition* partition) argument
334 return partition->IsBusy();
359 virtual bool VisitPre(KPartition* partition) argument
361 partition->AddFlags(B_PARTITION_BUSY);
377 virtual bool VisitPre(KPartition* partition) argument
583 VisitPre(KPartition* partition) argument
864 AddChild(KPartition* partition, int32 index) argument
942 KPartition* partition = fChildren.ElementAt(index); local
[all...]
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...]
/haiku/src/system/kernel/fs/
H A Dvfs.cpp168 KPartition* partition; member in struct:fs_mount
3011 kprintf(" partition: %p\n", mount->partition);
3030 set_debug_variable("_partition", (addr_t)mount->partition);
7364 // get the partition
7366 KPartition* partition = NULL; local
7376 // get a corresponding partition from the DDM
7377 partition = ddm->RegisterPartition(normalizedDevice.Path());
7378 if (partition == NULL) {
7385 partition
7695 KPartition* partition = mount->partition; local
[all...]
H A Dvfs_boot.cpp183 virtual bool IsBootPartition(KPartition* partition, bool& foundForSure);
259 DiskBootMethod::IsBootPartition(KPartition* partition, bool& foundForSure) argument
267 if (partition->Offset() == bootPartitionOffset) {
268 dprintf("Identified boot partition by partition offset.\n");
277 // Check for the boot partition of an anyboot CD. We identify it as
278 // such if it is a partition on the CD, has type BFS, and the boot
279 // partition offset is 0
280 KDiskDevice* device = partition->Device();
282 && bootPartitionOffset == 0 && partition
386 VisitPre(KPartition *partition) argument
[all...]
/haiku/src/system/kernel/vm/
H A DVMAnonymousCache.cpp1386 virtual bool VisitPre(KPartition* partition) argument
1388 if (!partition->ContainsFileSystem())
1392 partition->GetPath(&path);
1395 if (strcmp(fVolumeInfo.name, partition->ContentName()) == 0)
1399 if (fVolumeInfo.capacity == partition->Size())
1402 partition->DiskSystem()->ShortName()) == 0) {
1406 fBestPartition = partition;
1683 dprintf("%s: Can't find configured swap partition '%s'\n",
1697 dprintf("%s: Can't mount configured swap partition '%s'\n",
/haiku/src/tests/add-ons/kernel/partitioning_systems/
H A DPartitioningSystemsTest.cpp45 partition_entry* partition = new partition_entry; local
46 memset(partition, 0, sizeof(partition_entry));
47 partition->id = sNextID++;
48 strlcpy(partition->path, path, sizeof(partition->path));
51 device->id = partition->id;
52 device->path = partition->path;
59 delete partition;
79 partition->offset = 0;
80 partition
316 partition_entry* partition = found->second; local
[all...]
/haiku/src/tests/apps/partitioner/
H A DPartitioner.cpp94 virtual bool Visit(BPartition *partition, int32 level) argument
100 status_t error = partition->GetPath(&path);
106 printf("%spartition %" B_PRId32 ": \"%s\"\n", prefix, partition->ID(),
109 printf("%s offset: %" B_PRId64 "\n", prefix, partition->Offset());
110 printf("%s size: %" B_PRId64 "\n", prefix, partition->Size());
111 printf("%s block size: %" B_PRIu32 "\n", prefix, partition->BlockSize());
112 printf("%s index: %" B_PRId32 "\n", prefix, partition->Index());
113 printf("%s status: %" B_PRIu32 "\n", prefix, partition->Status());
115 partition->ContainsFileSystem());
117 partition
148 print_partition(BPartition* partition, int level, int index) argument
209 Visit(BPartition* partition, int32 level) argument
233 Visit(BPartition *partition, int32 level) argument
333 BPartition* partition = NULL; local
445 BPartition* partition = NULL; local
659 _SelectPartition(const char* prompt, BPartition*& partition, int32& _partitionIndex) 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/boot/loader/
H A Dplatform_devices.cpp161 boot::Partition *partition = NULL; local
162 while ((partition = (boot::Partition *)iterator.Next()) != NULL) {
163 // ToDo: just take the first partition for now
164 partitionList->Insert(partition);
/haiku/src/tests/system/kernel/file_corruption/fs/
H A Dchecksumfs.cpp793 checksumfs_identify_partition(int fd, partition_data* partition, argument
796 if ((uint64)partition->size < kCheckSumFSMinSize)
809 if (!superBlock->Check((uint64)partition->size / B_PAGE_SIZE))
818 checksumfs_scan_partition(int fd, partition_data* partition, void* cookie) argument
822 partition->status = B_PARTITION_VALID;
823 partition->flags |= B_PARTITION_FILE_SYSTEM;
824 partition->content_size = superBlock->TotalBlocks() * B_PAGE_SIZE;
825 partition->block_size = B_PAGE_SIZE;
826 partition->content_name = strdup(superBlock->Name());
827 if (partition
835 checksumfs_free_identify_partition_cookie(partition_data* partition, void* cookie) argument
869 checksumfs_set_content_name(int fd, partition_id partition, const char* name, disk_job_id job) argument
878 checksumfs_initialize(int fd, partition_id partition, const char* name, const char* parameters, off_t partitionSize, disk_job_id job) argument
[all...]

Completed in 192 milliseconds

123456789