Searched +full:partition +full:- +full:block_size (Results 1 - 25 of 47) sorted by relevance

12

/haiku/src/add-ons/kernel/partitioning_systems/intel/
H A Dintel.cpp2 * Copyright 2003-2009, Haiku, Inc. All Rights Reserved.
6 * Ingo Weinhold, bonefish@cs.tu-berlin.de
15 // 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.
81 // #pragma mark - Intel Partition Map Module
100 pm_identify_partition(int fd, partition_data* partition, void** cookie) argument
103 if (fd < 0 || !partition || !cooki
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.cpp2 * Copyright 2003-2011, Haiku, Inc. All Rights Reserved.
38 // for logical partitions in Intel Extended Partition
39 // 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,
65 // #pragma mark - Inte
70 pm_get_supported_operations(partition_data* partition, uint32 mask) argument
93 pm_get_supported_child_operations(partition_data* partition, partition_data* child, uint32 mask) 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
1299 PrimaryPartition* partition = map->PrimaryPartitionAt(i); local
1458 PrimaryPartition* partition = map->PrimaryPartitionAt(i); local
1558 ep_get_supported_operations(partition_data* partition, uint32 mask) argument
1587 ep_get_supported_child_operations(partition_data* partition, partition_data* child, uint32 mask) argument
1599 ep_is_sub_system_for(partition_data* partition) argument
1620 ep_validate_resize(partition_data* partition, off_t* size) argument
1633 ep_validate_resize_child(partition_data* partition, partition_data* child, off_t* _size) argument
1653 ep_validate_move(partition_data* partition, off_t* start) argument
1666 ep_validate_move_child(partition_data* partition, partition_data* child, off_t* _start) argument
1699 ep_validate_set_type(partition_data* partition, const char* type) argument
1713 ep_validate_initialize(partition_data* partition, char* name, const char* parameters) argument
1731 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
1741 ep_get_partitionable_spaces(partition_data* partition, partitionable_space_data* buffer, int32 count, int32* actualCount) argument
1764 ep_get_next_supported_type(partition_data* partition, int32* cookie, char* _type) argument
1805 ep_shadow_changed(partition_data* partition, partition_data* child, uint32 operation) argument
1819 check_partition_location_ep(partition_data* partition, off_t offset, off_t size, off_t ptsOffset) argument
[all...]
/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
43 "size: %" B_PRIdOFF ", block_size: %" B_PRId32 ", flags: 0x%" B_PRIx32,
44 fd, partition->id, partition->offset, partition->size,
45 partition
71 scan_partition(int fd, partition_data *partition, void *cookie) argument
[all...]
/haiku/src/add-ons/kernel/partitioning_systems/gpt/
H A Dgpt.cpp3 * Copyright 2007-2013, Axel D��rfler, axeld@pinc-software.de.
48 block_align(partition_data* partition, off_t offset, bool upwards) argument
52 uint32 blockSize = max_c(partition->block_size, 4096);
54 return ((offset + blockSize - 1) / blockSize) * blockSize;
61 // #pragma mark - public module interface
78 efi_gpt_identify_partition(int fd, partition_data* partition, void** _cookie) argument
81 (partition
103 efi_gpt_scan_partition(int fd, partition_data* partition, void* _cookie) argument
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/
H A Dpartitions.cpp2 * Copyright 2003-2013, Axel D��rfler, axeld@pinc-software.de.
33 /* supported partition modules */
105 // #pragma mark -
108 Partition::Partition(int fd) function in class:boot::Partition
114 TRACE(("%p Partition::Partition\n", this));
125 Partition::~Partition()
451 Partition *partition = new(nothrow) Partition(fd); local
498 Partition *partition = Partition::Lookup(id); local
536 Partition *partition = Partition::Lookup(id); local
[all...]
/haiku/src/system/boot/loader/file_systems/amiga_ffs/
H A DVolume.cpp2 * Copyright 2003-2013, Axel D��rfler, axeld@pinc-software.de.
24 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->siz
104 amiga_ffs_identify_file_system(boot::Partition *partition) argument
113 amiga_ffs_get_file_system(boot::Partition *partition, ::Directory **_root) argument
[all...]
/haiku/headers/private/system/
H A Dddm_userland_interface_defs.h2 * Copyright 2003-2009, Haiku Inc.
17 // userland partition representation
24 uint32 block_size; member in struct:user_partition_data
64 partition_id partition; member in struct:user_disk_device_job_info
/haiku/src/add-ons/kernel/partitioning_systems/apple/
H A Dapple.cpp2 ** Copyright 2003-2004, Axel D��rfler, axeld@pinc-software.de. All rights reserved.
33 "partition_map", // the partition map itself
40 "Free", // unused partition
41 "Scratch", // empty partition
44 "Driver43_CD", // an SCSI CD-ROM driver suitable for booting
46 "Void", // dummy partition map entry (used to align entries for CD-ROM)
58 apple_partition_map &partition)
62 // find 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/src/add-ons/kernel/partitioning_systems/vmdk/
H A Dvmdk.cpp2 * Copyright 2009-2011, Ingo Weinhold, ingo_weinhold@gmx.de.
41 // #pragma mark - VMDK header/descriptor parsing
213 || header.overHead - header.descriptorOffset < header.descriptorSize) {
322 || (uint64_t)fileSize / 512 - extendOffset < extendSize) {
343 // #pragma mark - module hooks
360 vmdk_identify_partition(int fd, partition_data* partition, void** _cookie) argument
363 partition->id, partition->offse
377 vmdk_scan_partition(int fd, partition_data* partition, void* _cookie) argument
427 vmdk_free_partition_cookie(partition_data* partition) argument
434 vmdk_free_partition_content_cookie(partition_data* partition) argument
[all...]
/haiku/src/add-ons/kernel/partitioning_systems/sun/
H A Dsun.cpp77 // #pragma mark -
95 sun_identify_partition(int fd, partition_data *partition, void **_cookie) argument
105 if (vtoc->signature == B_HOST_TO_BENDIAN_INT16(kMainSignature)
106 && vtoc->vtoc.signature == B_HOST_TO_BENDIAN_INT32(kVtocSignature)
107 && vtoc->vtoc.version == B_HOST_TO_BENDIAN_INT32(kVtocVersion)) {
111 = B_BENDIAN_TO_HOST_INT16(vtoc->vtoc.partitionCount);
121 bool hasParent = (get_parent_partition(partition->id) != NULL);
133 sun_scan_partition(int fd, partition_data *partition, void *cookie) argument
137 partition
176 sun_free_identify_partition_cookie(partition_data *partition, void *_cookie) argument
[all...]
/haiku/headers/os/drivers/
H A Ddisk_device_manager.h2 * Copyright 2003-2006, Haiku, Inc. All Rights Reserved.
17 /** \brief C API partition representation
27 uint32 block_size; member in struct:partition_data
47 partition_id id; // equal to that of the root partition
61 B_PARTITION_SHADOW, // indicates creation of a shadow partition
91 // parameter is the ID of any partition on the device
98 // disk device/partition read access
107 // partition write access
111 // childID is an optional input parameter --
[all...]
/haiku/src/add-ons/disk_systems/bfs/
H A DBFSAddOn.cpp3 * Copyright 2008-2012, Axel D��rfler, axeld@pinc-software.de.
70 // #pragma mark - BFSAddOn
85 BFSAddOn::CreatePartitionHandle(BMutablePartition* partition, argument
88 BFSPartitionHandle* handle = new(nothrow) BFSPartitionHandle(partition);
92 status_t error = handle->Init();
104 BFSAddOn::CanInitialize(const BMutablePartition* partition) argument
106 return partition->Size() >= 1L * 1024 * 1024;
111 BFSAddOn::ValidateInitialize(const BMutablePartition* partition, BStrin argument
150 Initialize(BMutablePartition* partition, const char* name, const char* parameterString, BPartitionHandle** _handle) argument
206 BFSPartitionHandle(BMutablePartition* partition) argument
[all...]
H A DInitializeParameterEditor.cpp2 * Copyright 2013, Axel D��rfler, axeld@pinc-software.de.
3 * Copyright 2009-2010, Stephan A��mus <superstippi@gmx.de>
20 #include <Partition.h>
55 InitializeBFSEditor::SetTo(BPartition* partition) argument
57 BString name = partition->Name();
59 name = partition->RawContentName();
61 fNameControl->SetText(name.String());
62 off_t size = partition
[all...]
/haiku/src/add-ons/kernel/partitioning_systems/atari/
H A Datari.cpp2 * Copyright 2003-2004, Axel D��rfler, axeld@pinc-software.de. All rights reserved.
34 #define ATARI_PARTITION_NAME "Atari Partition Map"
41 if (type->SummedLongs() != sizeof(*type) / sizeof(uint32))
47 for (uint32 i = 0; i < type->SummedLongs(); i++)
60 // #pragma mark -
78 atari_identify_partition(int fd, partition_data *partition, void **_cookie) argument
89 if (partition->offset)
92 if (arb->Checksu
154 atari_scan_partition(int fd, partition_data *partition, void *_cookie) argument
209 atari_free_identify_partition_cookie(partition_data *partition, void *_cookie) argument
[all...]
/haiku/headers/private/fs_shell/
H A Dfssh_disk_device_manager.h2 * Copyright 2003-2007, Haiku, Inc. All Rights Reserved.
17 // C API partition representation
25 uint32_t block_size; member in struct:fssh_partition_data
44 fssh_partition_id id; // equal to that of the root partition
90 // parameter is the ID of any partition on the device
97 // disk device/partition read access
106 // partition write access
111 // childID is an optional input parameter -- -
[all...]
/haiku/src/tests/add-ons/kernel/partitioning_systems/
H A DPartitioningSystemsTest.cpp2 * Copyright 2009, Axel D��rfler, axeld@pinc-software.de.
45 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->i
316 partition_entry* partition = found->second; local
[all...]
/haiku/src/system/boot/loader/file_systems/bfs/
H A Dbfs.cpp2 * Copyright 2003-2013, Axel D��rfler, axeld@pinc-software.de.
33 Volume::Volume(boot::Partition *partition) argument
37 fDevice = open_node(partition, O_RDONLY);
63 if (fRootNode->InitCheck() < B_OK) {
94 || (int32)fSuperBlock.block_size != fSuperBlock.inode_size
128 run.start = HOST_ENDIAN_TO_BFS_INT16(block & ~((1LL << fSuperBlock.AllocationGroupShift()) - 1));
134 // #pragma mark -
138 bfs_identify_file_system(boot::Partition *partitio argument
147 bfs_get_file_system(boot::Partition *partition, ::Directory **_root) argument
[all...]
/haiku/src/add-ons/kernel/partitioning_systems/amiga/
H A Damiga_rdb.cpp2 * Copyright 2003-2009, Axel D��rfler, axeld@pinc-software.de.
38 if (type->SummedLongs() != sizeof(*type) / sizeof(uint32))
44 for (uint32 i = 0; i < type->SummedLongs(); i++)
79 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();
118 if (rdb->I
78 get_next_partition(int fd, rigid_disk_block &rdb, uint32 &cookie, partition_block &partition) argument
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
212 amiga_rdb_free_identify_partition_cookie(partition_data *partition, void *_cookie) argument
[all...]
H A Damiga_rdb.h2 ** Copyright 2003, Axel D��rfler, axeld@pinc-software.de. All rights reserved.
18 uint32 block_size; member in struct:rigid_disk_block
67 uint32 BlockSize() const { return B_BENDIAN_TO_HOST_INT32(block_size); }
97 /************* partition block *************/
165 return uint64(LastCylinder() + 1 - FirstCylinder()) * BlocksPerTrack() * Surfaces()
/haiku/src/system/boot/loader/file_systems/tarfs/
H A Dtarfs.cpp2 * Copyright 2005-2007, Ingo Weinhold, bonefish@cs.tu-berlin.de.
3 * Copyright 2005-2013, Axel D��rfler, axeld@pinc-software.de.
159 const char* LinkPath() const { return fHeader->linkname; }
174 status_t Init(boot::Partition* partition);
179 status_t _Inflate(boot::Partition* partition,
191 // #pragma mark -
640 Init(boot::Partition* partition) argument
648 boot::Partition *partition; member in struct:PartitionCloser
651 PartitionCloser(boot::Partition* partition, void* cookie) argument
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/kits/storage/disk_device/
H A DMutablePartition.cpp13 #include <Partition.h>
29 SetVolumeID(-1);
33 SetBlockSize(Parent()->BlockSize());
37 // if (!Device()->IsReadOnlyMedia())
46 return fData->offset;
54 if (fData->offset != offset) {
55 fData->offset = offset;
65 return fData->size;
73 if (fData->size != size) {
74 fData->siz
[all...]
H A DPartition.cpp2 * Copyright 2003-2007, Ingo Weinhold, ingo_weinhold@gmx.de.
21 #include <Partition.h>
50 \brief A BPartition object represent a partition and provides a lot of
53 Not all BPartitions represent actual on-disk partitions. Some exist only
55 \see IsVirtual()), others represents merely partition slots
79 return -1;
84 // #pragma mark -
105 /*! \brief Returns the partition's offset relative to the beginning of the
107 \return The partition's offset in bytes relative to the beginning of the
113 return _PartitionData()->offse
[all...]
/haiku/src/system/kernel/disk_device_manager/
H A DKPartition.cpp3 * Copyright 2004-2009, Axel D��rfler, axeld@pinc-software.de.
4 * Copyright 2003-2009, Ingo Weinhold, ingo_weinhold@gmx.de.
62 fDiskSystemPriority(-1),
75 fPartitionData.block_size = 0;
78 fPartitionData.index = -1;
81 fPartitionData.volume = -1;
118 fReferenceCount--;
121 manager->DeletePartitio
332 VisitPre(KPartition* partition) argument
359 VisitPre(KPartition* partition) argument
377 VisitPre(KPartition* partition) argument
583 VisitPre(KPartition* partition) argument
864 AddChild(KPartition* partition, int32 index) argument
942 KPartition* partition = fChildren.ElementAt(index); local
[all...]
/haiku/src/add-ons/kernel/file_systems/udf/
H A Dkernel_interface.cpp51 // #pragma mark - io callbacks
59 return file_map_translate(icb->FileMap(), offset, size, vecs, count,
60 icb->GetVolume()->BlockSize());
73 // #pragma mark - fs_volume_ops fuctions
77 udf_identify_partition(int fd, partition_data *partition, void **_cookie) argument
80 "content_size = %lld, block_size = %lu\n", fd, partition->id,
81 partition
106 udf_scan_partition(int fd, partition_data *partition, void *_cookie) argument
129 udf_free_identify_partition_cookie(partition_data *partition, void *cookie) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/ufs2/
H A Dkernel_interface.cpp35 // #pragma mark - Scanning
37 ufs2_identify_partition(int fd, partition_data *partition, void **_cookie) argument
42 return -1;
45 memcpy(&cookie->super_block, &superBlock, sizeof(ufs2_super_block));
53 ufs2_scan_partition(int fd, partition_data *partition, void *_cookie) argument
57 partition->status = B_PARTITION_VALID;
58 partition->flags |= B_PARTITION_FILE_SYSTEM | B_PARTITION_READ_ONLY;
59 partition
71 ufs2_free_identify_partition_cookie(partition_data *partition, void *_cookie) argument
[all...]

Completed in 148 milliseconds

12