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

12

/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/add-ons/kernel/file_systems/layers/log_overlay/
H A Dlog_overlay.cpp34 ((fs_vnode *)vnode->private_node)->private_node, args); \
36 _printBuffer[sizeof(_printBuffer) - 1] = '\n'; \
39 write((int)(addr_t)volume->private_volume, _printBuffer, _printSize); \
44 fs_vnode *superVnode = (fs_vnode *)vnode->private_node; \
45 if (superVnode->ops->op != NULL) \
46 result = superVnode->ops->op(volume->super_volum
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Ddevice.c2 * device.c - Low level device io functions. Originated from the Linux-NTFS project.
4 * Copyright (c) 2004-2013 Anton Altaparmakov
5 * Copyright (c) 2004-2006 Szabolcs Szakacsits
6 * Copyright (c) 2010 Jean-Pierre Andre
7 * Copyright (c) 2008-2013 Tuxera Inc.
20 * along with this program (in the main directory of the NTFS-3G
22 * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
86 #define BLKGETSIZE _IO(0x12,96) /* Get device size in 512-byte blocks. */
102 * ntfs_device_alloc - allocat
532 ntfs_device_size_get(struct ntfs_device *dev, int block_size) argument
[all...]
/haiku/src/add-ons/kernel/partitioning_systems/amiga/
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/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/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/bin/bfs_tools/lib/
H A DDisk.cpp2 * Copyright (c) 2001-2008 pinc Software. All Rights Reserved.
78 ssize_t length = (int32)run.length << fDisk->BlockShift();
84 ssize_t read = fDisk->ReadAt(fDisk->ToOffset(run),buffer,length);
94 // #pragma mark -
124 && !strcmp(deviceName + strlen(deviceName) - 3, "raw"))
151 fprintf(stderr,"Disk: Could not get partition info.\n Use file size as partition size\n");
166 if (fBufferedFile->ReadAt(512 + fRawDiskOffset, &fSuperBlock,
194 run.start = start & ((1UL << fSuperBlock.ag_shift) -
[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/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/system/boot/loader/file_systems/fat/
H A DVolume.cpp2 * Copyright 2003-2013, Axel D��rfler, axeld@pinc-software.de.
30 Volume::Volume(boot::Partition *partition) argument
36 if ((fDevice = open_node(partition, O_RDONLY)) < B_OK)
48 fBlockSize = partition->block_size;
64 buf = fCachedBlock->SetTo(0);
127 fTotalClusters = (fTotalSectors - fDataStar
406 dosfs_identify_file_system(boot::Partition *partition) argument
416 dosfs_get_file_system(boot::Partition *partition, ::Directory **_root) 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/platform/bios_ia32/
H A Dstage1.nasm1 ; Copyright 2005-2013, Ingo Weinhold, ingo_weinhold@gmx.de.
5 ; partitions. The offset of the partition in 512 byte blocks must be written at
7 ; that) or otherwise the code can't find the partition.
8 ; The partition must be BFS formatted. The haiku_loader hpkg file must be located
14 ; eax - partition offset in 512 byte blocks and dl - BIOS ID of the boot drive.
17 ; nasm -f bin -O5 -
[all...]
/haiku/docs/user/drivers/
H A Dfs_interface.dox2 * Copyright 2007-2008 Haiku Inc. All rights reserved.
8 * Axel D��rfler <axeld@pinc-software.de>
119 \brief A NULL-terminated string with a 'pretty' name for you file system.
135 partition_data *partition, void **cookie)
141 partition_data *partition, void *cookie)
147 partition_data *partition, void *cookie)
153 partition_data *partition)
173 supposed to perform whatever one-time initialization is necessary for the
175 back in \a volume->private_volume and set \a volume->op
[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/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/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/file_systems/bfs/
H A DVolume.cpp2 * Copyright 2001-2019, Axel D��rfler, axeld@pinc-software.de.
32 // #pragma mark -
41 || (int32)block_size != inode_size
75 block_size = inode_size = HOST_ENDIAN_TO_BFS_INT32(blockSize);
84 off_t bitmapBlocks = (numBlocks + bitsPerBlock - 1) / bitsPerBlock;
100 numGroups = (bitmapBlocks + blocksPerGroup - 1) / blocksPerGroup;
117 // #pragma mark -
128 fCheckingThread(-1),
162 FATAL(("Disk corrupted... switch to read-onl
[all...]
H A Dkernel_interface.cpp2 * Copyright 2001-2020, Axel D��rfler, axeld@pinc-software.de.
59 // For BeOS compatibility, if on-disk ctime is invalid, fall back to mtime:
73 const bfs_inode& node = inode->Node();
75 stat.st_dev = inode->GetVolume()->ID();
76 stat.st_ino = inode->ID();
87 if (inode->IsSymLink() && (inode->Flags() & INODE_LONG_SYMLINK) == 0) {
91 stat.st_size = inode->Siz
124 bfs_identify_partition(int fd, partition_data* partition, void** _cookie) argument
143 bfs_scan_partition(int fd, partition_data* partition, void* _cookie) argument
161 bfs_free_identify_partition_cookie(partition_data* partition, void* _cookie) argument
2352 bfs_get_supported_operations(partition_data* partition, uint32 mask) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/btrfs/
H A Dkernel_interface.cpp6 * Copyright 2008, Axel D��rfler, axeld@pinc-software.de.
60 return file_map_translate(inode->Map(), offset, size, vecs, _count,
61 inode->GetVolume()->BlockSize());
71 rw_lock_read_unlock(inode->Lock());
76 // #pragma mark - Scanning
80 btrfs_identify_partition(int fd, partition_data* partition, void** _cookie) argument
85 return -1;
88 memcpy(&cookie->super_block, &superBlock, sizeof(btrfs_super_block));
96 btrfs_scan_partition(int fd, partition_data* partition, voi argument
113 btrfs_free_identify_partition_cookie(partition_data* partition, void* _cookie) argument
1057 btrfs_get_supported_operations(partition_data* partition, uint32 mask) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/cdda/
H A Dkernel_interface.cpp2 * Copyright 2007-2016, Axel D��rfler, axeld@pinc-software.de.
88 dev_t ID() const { return fFSVolume->id; }
136 // root directory contents - we don't support other directories
341 AttributeList::ConstIterator iterator = inode->Attributes();
346 || is_special_attribute(attribute->Name(), attrMode))
347 && !attribute->IsProtectedNamespace())
365 && !is_special_attribute(attribute->Name(), attrMode))
366 || attribute->IsProtectedNamespace())
369 uint32 type = B_HOST_TO_BENDIAN_INT32(attribute->Typ
1391 cdda_identify_partition(int fd, partition_data* partition, void** _cookie) argument
1444 cdda_scan_partition(int fd, partition_data* partition, void* _cookie) argument
1474 cdda_free_identify_partition_cookie(partition_data* partition, void* _cookie) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/exfat/
H A Dkernel_interface.cpp2 * Copyright 2008-2010, Axel D��rfler, axeld@pinc-software.de.
9 * Axel D��rfler, axeld@pinc-software.de
62 return file_map_translate(inode->Map(), offset, size, vecs, _count,
63 inode->GetVolume()->BlockSize());
73 rw_lock_read_unlock(inode->Lock());
78 // #pragma mark - Scanning
82 exfat_identify_partition(int fd, partition_data* partition, void** _cookie) argument
87 return -
131 exfat_scan_partition(int fd, partition_data* partition, void* _cookie) argument
147 exfat_free_identify_partition_cookie(partition_data* partition, void* _cookie) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/ext2/
H A Dkernel_interface.cpp3 * Copyright 2008, Axel D��rfler, axeld@pinc-software.de.
48 // #pragma mark - Scanning
52 ext2_identify_partition(int fd, partition_data *partition, void **_cookie) argument
60 return -1;
63 memcpy(&cookie->super_block, &superBlock, sizeof(ext2_super_block));
71 ext2_scan_partition(int fd, partition_data *partition, void *_cookie) argument
75 partition->status = B_PARTITION_VALID;
76 partition->flag
91 ext2_free_identify_partition_cookie(partition_data* partition, void* _cookie) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/fat/
H A Ddosfs.cpp2 Copyright 1999-2001, Be Incorporated. All Rights Reserved.
49 vol->id, vol->fd, vol->device, vol->flags);
51 ", reserved sectors = %" B_PRIu32 "\n", vol->bytes_per_sector,
52 vol->sectors_per_cluster, vol->reserved_sectors);
54 " total sectors, %" B_PRIu32 " sectors/fat\n", vol->fat_count,
55 vol->root_entries_coun
670 dosfs_identify_partition(int fd, partition_data *partition, void **_cookie) argument
753 dosfs_scan_partition(int fd, partition_data *partition, void *_cookie) argument
769 dosfs_free_identify_partition_cookie(partition_data *partition, void *_cookie) argument
1220 dosfs_get_supported_operations(partition_data* partition, uint32 mask) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/iso9660/
H A Dkernel_interface.cpp7 * iso9960/multi-session, 1.0.0
69 vecs->offset = offset + ((off_t)node->startLBN[FS_DATA_FORMAT]
70 * (off_t)node->volume->logicalBlkSize[FS_DATA_FORMAT]);
71 vecs->length = size;
89 // #pragma mark - Scanning
93 fs_identify_partition(int fd, partition_data* partition, void** _cookie) argument
100 return -1;
109 fs_scan_partition(int fd, partition_data* partition, voi argument
127 fs_free_identify_partition_cookie(partition_data* partition, void* _cookie) argument
[all...]

Completed in 254 milliseconds

12