Searched refs:disk (Results 1 - 25 of 49) sorted by relevance

12

/haiku-fatelf/src/bin/bfs_tools/
H A Dbfsinfo.cpp21 dump_bplustree(Disk &disk, BPositionIO *file, off_t size, bool hexDump) argument
44 dump_bplustree_node(node, header, &disk);
57 dump_indirect_stream(Disk &disk, bfs_inode *node, bool showOffsets) argument
62 int32 bytes = node->data.indirect.length * disk.BlockSize();
68 ssize_t bytesRead = disk.ReadAt(disk.ToOffset(node->data.indirect),
92 offset += runs[i].length * disk.BlockSize();
98 parseBlockRun(Disk &disk, char *first, char *last) argument
109 return disk.ToBlockRun(atoll(first));
129 "\t-o\tshow disk offset
[all...]
H A Dbfswhich.cpp25 void scanNodes(Disk& disk, Directory* directory, const char* name,
46 checkNode(Disk &disk, Inode *inode, block_run checkForRun) argument
84 int32 bytes = data->indirect.length << disk.BlockShift();
88 if (disk.ReadAt(disk.ToOffset(data->indirect), indirect, bytes) <= 0)
116 scanNode(Disk& disk, Inode* inode, const char* name, argument
119 if (checkNode(disk, inode, checkForRun)) {
126 Inode *attributeDirectory = Inode::Factory(&disk,
129 scanNodes(disk,
140 scanNodes(Disk& disk, Director argument
180 scanNodes(Disk& disk, const block_run& checkForRun, bool scanAll) argument
210 testBitmap(Disk& disk, const block_run& run) argument
225 parseBlockRun(Disk& disk, char* first, char* last) argument
[all...]
H A Drecover.cpp139 InodeGetter(Disk& disk, block_run run) argument
141 fInode = Inode::Factory(&disk, run);
168 // contains all inodes found on disk in the general data area
177 HashtableInodeSource(Disk& disk) argument
179 fDisk(disk)
212 collectInodes(Disk& disk, RunSet* set, InodeHashtable* hashTable, off_t start, argument
216 Inode inode(&disk, (bfs_inode *)buffer, false);
229 if (disk.ReadAt(offset, buffer, sizeof(buffer)) < B_OK) {
234 //if ((offset % (disk.BlockSize() << disk
288 collectLogInodes(Disk &disk) argument
301 collectRealInodes(Disk &disk) argument
315 getNameIndex(Disk &disk) argument
346 checkDirectoryContents(Disk& disk, Directory *dir) argument
418 checkStructure(Disk &disk) argument
673 copyInodes(Disk& disk, const char* copyTo) argument
[all...]
H A Dchkindex.cpp89 collectFiles(Disk &disk,Directory *directory) argument
107 Inode *inode = Inode::Factory(&disk,run);
111 collectFiles(disk,static_cast<Directory *>(inode));
124 collectFiles(Disk &disk) argument
126 Directory *root = (Directory *)Inode::Factory(&disk,disk.Root());
135 collectFiles(disk,root);
144 checkIndexForNonExistingFiles(Disk &disk,BPlusTree &tree) argument
153 block_run run = disk.ToBlockRun(offset);
188 checkFiles(Disk &disk,BPlusTre argument
364 checkIndex(Disk &disk,char *attribute,block_run &run,bool collect) argument
[all...]
/haiku-fatelf/src/apps/drivesetup/
H A DMainWindow.h53 void _UpdateMenus(BDiskDevice* disk,
61 void _Mount(BDiskDevice* disk,
63 void _Unmount(BDiskDevice* disk,
67 void _Initialize(BDiskDevice* disk,
70 void _Create(BDiskDevice* disk,
72 void _Delete(BDiskDevice* disk,
H A DMainWindow.cpp148 ModificationPreparer(BDiskDevice* disk) argument
150 fDisk(disk),
333 if (message->FindString("disk system", &diskSystemName) != B_OK)
368 // selection of partitions via disk view
532 MainWindow::_SetToDiskAndPartition(partition_id disk, partition_id partition, argument
535 //printf("MainWindow::_SetToDiskAndPartition(disk: %ld, partition: %ld, "
536 // "parent: %ld)\n", disk, partition, parent);
539 if (!fCurrentDisk || fCurrentDisk->ID() != disk) {
542 if (disk >= 0) {
544 status_t ret = newDisk->SetTo(disk);
563 _UpdateMenus(BDiskDevice* disk, partition_id selectedPartition, partition_id parentID) argument
714 _Mount(BDiskDevice* disk, partition_id selectedPartition) argument
746 _Unmount(BDiskDevice* disk, partition_id selectedPartition) argument
795 _Initialize(BDiskDevice* disk, partition_id selectedPartition, const BString& diskSystemName) argument
979 _Create(BDiskDevice* disk, partition_id selectedPartition) argument
1095 _Delete(BDiskDevice* disk, partition_id selectedPartition) argument
[all...]
H A DDiskView.h27 void SetDisk(BDiskDevice* disk,
/haiku-fatelf/src/bin/coreutils/lib/
H A Dfsusage.h38 int get_fs_usage (char const *file, char const *disk, struct fs_usage *fsp);
/haiku-fatelf/src/bin/bfs_tools/lib/
H A DBitmap.cpp17 Bitmap::Bitmap(Disk *disk) argument
22 SetTo(disk);
46 Bitmap::SetTo(Disk *disk) argument
50 fDisk = disk;
51 fSize = divide_roundup(disk->NumBlocks(),disk->BlockSize() * 8);
52 fByteSize = disk->BlockSize() * disk->SuperBlock()->num_ags
53 * disk->SuperBlock()->blocks_per_ag;
66 off_t end = disk
[all...]
H A DBitmap.h16 Bitmap(Disk *disk);
20 status_t SetTo(Disk *disk);
H A DInode.h18 Inode(Disk* disk, bfs_inode* inode, bool ownBuffer = true);
71 static Inode* Factory(Disk* disk, bfs_inode* inode,
73 static Inode* Factory(Disk* disk, block_run run);
74 static Inode* Factory(Disk* disk, Inode* inode,
77 static Inode* EmptyInode(Disk* disk,const char* name, int32 mode);
104 DataStream(Disk *disk, bfs_inode *inode, bool ownBuffer = true);
130 File(Disk *disk, bfs_inode *inode, bool ownBuffer = true);
142 Attribute(Disk *disk, bfs_inode *inode, bool ownBuffer = true);
156 Directory(Disk *disk, bfs_inode *inode, bool ownBuffer = true);
185 Symlink(Disk *disk, bfs_inod
[all...]
H A Ddump.h28 const bplustree_header* header, Disk* disk = NULL);
H A DInode.cpp45 Inode::Inode(Disk* disk, bfs_inode* inode, bool ownBuffer) argument
47 fDisk(disk),
125 // parent resides on disk?
542 Inode::Factory(Disk *disk, bfs_inode *inode, bool ownBuffer) argument
546 return new Attribute(disk, inode, ownBuffer);
550 return new Directory(disk, inode, ownBuffer);
554 return new File(disk, inode, ownBuffer);
558 return new Symlink(disk, inode, ownBuffer);
565 Inode::Factory(Disk *disk, block_run run) argument
567 bfs_inode *inode = (bfs_inode *)malloc(disk
583 Factory(Disk *disk, Inode *inode, bool copyBuffer) argument
600 EmptyInode(Disk *disk, const char *name, int32 mode) argument
635 DataStream(Disk *disk, bfs_inode *inode, bool ownBuffer) argument
911 File(Disk *disk, bfs_inode *inode,bool ownBuffer) argument
988 Attribute(Disk *disk, bfs_inode *inode, bool ownBuffer) argument
1032 Directory(Disk *disk, bfs_inode *inode, bool ownBuffer) argument
1304 Symlink(Disk *disk, bfs_inode *inode,bool ownBuffer) argument
[all...]
/haiku-fatelf/src/system/boot/loader/
H A DFileMapDisk.cpp163 FileMapDisk *disk = new(nothrow) FileMapDisk;
164 if (disk) {
165 error = disk->Init(node);
167 delete disk;
168 disk = NULL;
172 return disk;
/haiku-fatelf/src/system/boot/platform/u-boot/
H A Ddevices.cpp34 MemoryDisk* disk = new(nothrow) MemoryDisk( local
37 if (!disk) {
42 devicesList->Add(disk);
/haiku-fatelf/src/system/boot/platform/cfe/
H A Ddevices.cpp127 disk_identifier disk; local
129 disk.bus_type = UNKNOWN_BUS;
130 disk.device_type = UNKNOWN_DEVICE;
131 disk.device.unknown.size = device->Size();
133 gBootVolume.SetData(BOOT_VOLUME_DISK_IDENTIFIER, B_RAW_TYPE, &disk,
/haiku-fatelf/src/system/kernel/cache/
H A Dfile_map.cpp55 file_io_vec disk; member in struct:file_extent
169 } else if (extent->offset + extent->disk.length <= offset) {
247 offset = lastExtent->offset + lastExtent->disk.length;
252 if (lastExtent->disk.offset + lastExtent->disk.length
254 || (lastExtent->disk.offset == -1 && vecs[i].offset == -1)) {
256 lastExtent->disk.length += vecs[i].length;
272 extent->disk = vecs[i];
274 offset += extent->disk.length;
281 TRACE("[%ld] extent offset %Ld, disk offse
[all...]
/haiku-fatelf/src/apps/bootmanager/
H A DBootManagerController.cpp96 if (fSettings.FindString("disk", &path) != B_OK)
191 "boot menu to disk. Are you sure you want to continue?"),
218 BString disk; local
220 fSettings.FindString("disk", &disk);
225 "(MBR) of %disk from %file. Do you wish to continue?",
226 "Don't translate the place holders: %disk and %file");
227 message.ReplaceFirst("%disk", disk);
303 << B_TRANSLATE("The partition table of the first hard disk i
322 BString disk; local
370 BString disk; local
443 BString disk; local
[all...]
/haiku-fatelf/src/system/boot/platform/openfirmware/
H A Ddevices.cpp49 // "remote disk" at this point.
78 // init a remote disk, if possible
197 // the disk-label package is by-passed - unfortunately,
199 // for the Apple OF disk-label usage, of course)
230 disk_identifier disk; local
232 disk.bus_type = UNKNOWN_BUS;
233 disk.device_type = UNKNOWN_DEVICE;
234 disk.device.unknown.size = device->Size();
236 gBootVolume.SetData(BOOT_VOLUME_DISK_IDENTIFIER, B_RAW_TYPE, &disk,
/haiku-fatelf/src/system/boot/platform/bios_ia32/
H A Ddevices.cpp291 fill_disk_identifier_v3(disk_identifier &disk, const drive_parameters &parameters) argument
300 disk.bus_type = PCI_BUS;
302 disk.bus.pci.bus = parameters.interface.pci.bus;
303 disk.bus.pci.slot = parameters.interface.pci.slot;
304 disk.bus.pci.function = parameters.interface.pci.function;
306 disk.bus_type = LEGACY_BUS;
308 disk.bus.legacy.base_address = parameters.interface.legacy.base_address;
309 dprintf("legacy base address %x\n", disk.bus.legacy.base_address);
318 disk.device_type = ATA_DEVICE;
319 disk
349 fill_disk_identifier_v2(disk_identifier &disk, const drive_parameters &parameters) argument
479 disk_identifier& disk = drive->Identifier(); local
[all...]
/haiku-fatelf/src/system/boot/platform/atari_m68k/
H A Ddevices.cpp240 fill_disk_identifier_v3(disk_identifier &disk, const drive_parameters &parameters)
249 disk.bus_type = PCI_BUS;
251 disk.bus.pci.bus = parameters.interface.pci.bus;
252 disk.bus.pci.slot = parameters.interface.pci.slot;
253 disk.bus.pci.function = parameters.interface.pci.function;
255 disk.bus_type = LEGACY_BUS;
257 disk.bus.legacy.base_address = parameters.interface.legacy.base_address;
258 dprintf("legacy base address %x\n", disk.bus.legacy.base_address);
267 disk.device_type = ATA_DEVICE;
268 disk
428 disk_identifier& disk = drive->Identifier(); local
[all...]
/haiku-fatelf/src/system/kernel/fs/
H A Dvfs_boot.cpp189 disk_identifier* disk; local
192 (const void**)&disk, &diskIdentifierSize) != B_OK) {
193 dprintf("DiskBootMethod::IsBootDevice(): no disk identifier!\n");
198 disk->bus_type, disk->device_type));
204 switch (disk->bus_type) {
217 switch (disk->device_type) {
221 if (strict && device->Size() != disk->device.unknown.size)
226 if (disk->device.unknown.check_sums[i].offset == -1)
230 disk
[all...]
/haiku-fatelf/src/system/boot/platform/pxe_ia32/
H A Ddevices.cpp72 MemoryDisk* disk = new(nothrow) MemoryDisk(data, size, name); local
73 if (!disk) {
79 devicesList->Add(disk);
91 // MemoryDisk* disk = new(nothrow) MemoryDisk(gBuiltinBootArchive,
93 // if (!disk)
96 // devicesList->Add(disk);
104 // // init a remote disk, if possible
108 // panic("PXE boot: can't find remote disk on server %u.%u.%u.%u\n",
/haiku-fatelf/src/bin/coreutils/src/
H A Ddf.c1 /* df - summarize free disk space
309 /* Display a space listing for the disk device with absolute file name DISK.
323 show_dev (char const *disk, char const *mount_point, argument
357 stat_file = mount_point ? mount_point : disk;
361 else if (get_fs_usage (stat_file, disk, &fsu))
377 if (! disk)
378 disk = "-"; /* unknown */
386 size_t disk_name_len = strlen (disk);
389 printf ("%s%*s ", disk, 18 - (int) disk_name_len, fstype);
391 printf ("%s\n%18s ", disk, fstyp
616 show_disk(char const *disk) argument
[all...]
/haiku-fatelf/src/tests/system/kernel/cache/
H A Dpages_io_test.cpp37 file_io_vec disk; member in struct:file_extent
127 offset = extent->offset + extent->disk.length;
138 extent->disk = vecs[i];
140 offset += extent->disk.length;
146 dprintf(" [%ld] extend offset %Ld, disk offset %Ld, length %Ld\n",
147 i, extent->offset, extent->disk.offset, extent->disk.length);
333 && extent->offset + extent->disk.length > offset) {
406 vecs[0].offset = fileExtent->disk.offset + offset;
407 vecs[0].length = fileExtent->disk
[all...]

Completed in 149 milliseconds

12