| /openbsd-src/sys/isofs/udf/ |
| H A D | udf_subr.c | 99 uint32_t sector = 256, mvds_start, mvds_end; in udf_disklabelspoof() local 113 bp->b_blkno = sector * btodb(bsize); in udf_disklabelspoof() 133 for (sector = mvds_start; sector < mvds_end; sector++) { in udf_disklabelspoof() 134 bp->b_blkno = sector * btodb(bsize); in udf_disklabelspoof() 152 if (sector == mvds_end) in udf_disklabelspoof() 216 udf_vat_map(struct umount *ump, uint32_t *sector) in udf_vat_map() argument 220 *sector += ump->um_start; in udf_vat_map() 225 if (*sector >= ump->um_vat->u_vatlen) in udf_vat_map() 228 return (udf_vat_read(ump, sector)); in udf_vat_map() 233 udf_vat_read(struct umount *ump, uint32_t *sector) in udf_vat_read() argument [all …]
|
| H A D | udf_vfsops.c | 223 uint32_t sector, size, mvds_start, mvds_end; in udf_mountfs() local 268 sector = 256; in udf_mountfs() 269 if ((error = bread(devvp, sector * btodb(bsize), bsize, &bp)) != 0) in udf_mountfs() 286 for (sector = mvds_start; sector < mvds_end; sector++) { in udf_mountfs() 287 if ((error = bread(devvp, sector * btodb(bsize), bsize, in udf_mountfs() 289 printf("Can't read sector %d of VDS\n", sector); in udf_mountfs() 325 sector = ump->um_start + ump->um_meta_start; /* Set in udf_get_mpartmap() */ in udf_mountfs() 326 if ((error = RDSECTOR(devvp, sector, ump->um_bsize, &bp)) != 0) { in udf_mountfs() 327 printf("Cannot read sector %d for Metadata File Entry\n", sector); in udf_mountfs() 339 sector, fentry->tag.id); in udf_mountfs() [all …]
|
| H A D | udf.h | 112 #define RDSECTOR(devvp, sector, size, bp) \ argument 114 ((daddr_t)(sector) << ump->um_bshift) / DEV_BSIZE, size, bp) 117 udf_readlblks(struct umount *ump, int sector, int size, struct buf **bp) in udf_readlblks() argument 119 return (RDSECTOR(ump->um_devvp, sector, in udf_readlblks()
|
| /openbsd-src/games/trek/ |
| H A D | initquad.c | 93 sector(&rx, &ry); in initquad() 105 sector(&rx, &ry); in initquad() 114 sector(&rx, &ry); in initquad() 122 sector(&rx, &ry); in initquad() 129 sector(&rx, &ry); in initquad() 136 sector(int *x, int *y) in sector() function
|
| /openbsd-src/sbin/fdisk/ |
| H A D | disk.c | 120 readsectors(const uint64_t sector, const uint32_t count) in readsectors() argument 127 where = sector * dl.d_secsize; in readsectors() 162 writesectors(const void *buf, const uint64_t sector, const uint32_t count) in writesectors() argument 168 where = sector * dl.d_secsize; in writesectors() 197 DISK_readbytes(void *buf, const uint64_t sector, const size_t sz) in DISK_readbytes() argument 204 secbuf = readsectors(sector, count); in DISK_readbytes() 215 DISK_writebytes(const void *buf, const uint64_t sector, const size_t sz) in DISK_writebytes() argument 223 secbuf = readsectors(sector, count); in DISK_writebytes() 228 rslt = writesectors(secbuf, sector, count); in DISK_writebytes()
|
| /openbsd-src/usr.sbin/makefs/cd9660/ |
| H A D | cd9660_debug.c | 148 tmp->sector, tmp->volumeDescriptorData[0], temp); in debug_print_volume_descriptor_information() 186 debug_dump_to_xml_path_table(FILE *fd, off_t sector, int size, int mode) in debug_dump_to_xml_path_table() argument 192 if (fseeko(fd, CD9660_SECTOR_SIZE * sector, SEEK_SET) == -1) in debug_dump_to_xml_path_table() 218 off_t sector; in debug_dump_to_xml() local 227 sector = 16; in debug_dump_to_xml() 229 if (fseeko(fd, CD9660_SECTOR_SIZE * sector, SEEK_SET) == -1) in debug_dump_to_xml() 241 debug_dump_to_xml_volume_descriptor(buf, sector); in debug_dump_to_xml() 242 sector++; in debug_dump_to_xml() 366 debug_dump_to_xml_volume_descriptor(unsigned char* buf, int sector) in debug_dump_to_xml_volume_descriptor() argument 368 printf("<volumedescriptor sector=\"%i\">\n", sector); in debug_dump_to_xml_volume_descriptor()
|
| H A D | cd9660_write.c | 124 cd9660_write_filedata(diskStructure, fd, vd_temp->sector, in cd9660_write_volume_descriptors() 140 cd9660_write_path_table(iso9660_disk *diskStructure, FILE *fd, off_t sector, in cd9660_write_path_table() argument 189 return cd9660_write_filedata(diskStructure, fd, sector, buffer_head, in cd9660_write_path_table() 353 cd9660_write_filedata(iso9660_disk *diskStructure, FILE *fd, off_t sector, in cd9660_write_filedata() argument 361 if (fseeko(fd, sector * diskStructure->sectorSize, SEEK_SET) == -1) in cd9660_write_filedata() 392 off_t sector = start_sector; in cd9660_copy_file() local 422 sector++; in cd9660_copy_file() 432 off_t offset, off_t sector) in cd9660_write_rr() argument 438 if (fseeko(fd, sector * diskStructure->sectorSize + offset, SEEK_SET) == in cd9660_write_rr() 468 if (fseeko(fd, sector * diskStructure->sectorSize + offset, in cd9660_write_rr()
|
| H A D | cd9660_eltorito.c | 151 new_image->sector = -1; in cd9660_add_boot_disk() 272 cd9660_731(disk->sector, ie->load_rba); in cd9660_boot_setup_default_entry() 278 disk->num_sectors, disk->sector)); in cd9660_boot_setup_default_entry() 316 cd9660_731(disk->sector, se->load_rba); in cd9660_boot_setup_section_entry() 338 int sector; in cd9660_setup_boot() local 382 sector = first_sector + catalog_sectors; in cd9660_setup_boot() 384 tmp_disk->sector = sector; in cd9660_setup_boot() 385 sector += tmp_disk->num_sectors; in cd9660_setup_boot() 586 cd9660_copy_file(diskStructure, fd, t->sector, t->filename); in cd9660_write_boot() 609 t->sector * (diskStructure->sectorSize / 512), in cd9660_write_boot() [all …]
|
| /openbsd-src/gnu/usr.sbin/mkhybrid/src/diag/ |
| H A D | README | 12 starts by displaying the files in the first sector of the root 16 a - move back one sector. 17 b - move forward one sector. 18 g - go to new logical sector. 22 beginning or end of a sector, and the g command does not have any way 23 of knowing whether the sector you request is actually a directory or 40 If you move to a sector that does not contain directory 51 a - move back one sector. 52 b - move forward one sector. 55 g - go to new logical sector.
|
| H A D | isodump.c | 306 unsigned char sector[2048]; in parse_rr() local 308 read(fileno(infile), sector, sizeof(sector)); in parse_rr() 309 flag2 |= parse_rr(§or[cont_offset], cont_size, 1); in parse_rr()
|
| H A D | isoinfo.c | 260 unsigned char sector[2048]; in parse_rr() local 262 read(fileno(infile), sector, sizeof(sector)); in parse_rr() 263 flag2 |= parse_rr(§or[cont_offset], cont_size, 1); in parse_rr()
|
| H A D | isovfy.c | 282 unsigned char sector[2048]; in parse_rr() local 284 read(fileno(infile), sector, sizeof(sector)); in parse_rr() 285 flag2 |= parse_rr(§or[cont_offset], cont_size, 1); in parse_rr()
|
| /openbsd-src/sys/arch/landisk/stand/boot/ |
| H A D | devs.c | 24 int sector; variable 48 sector = bootdev; /* passed from pbr */ in devboot() 85 if (size != 0 && readsects(0x40, sector + dblk, buf, in blkdevstrategy()
|
| /openbsd-src/sys/arch/loongson/stand/boot/ |
| H A D | dev.c | 189 int sector; in pmon_getdisklabel() local 199 sector = 0; in pmon_getdisklabel() 214 sector = letoh32(dp[i].dp_start); in pmon_getdisklabel() 220 if (pmon_iostrategy(pi, F_READ, sector + DOS_LABELSECTOR, DEV_BSIZE, in pmon_getdisklabel()
|
| /openbsd-src/sys/arch/landisk/stand/xxboot/ |
| H A D | boot1.c | 65 boot1(uint32_t *sector) in boot1() argument 70 bios_sector = *sector; in boot1() 87 *sector = bios_sector; in boot1()
|
| /openbsd-src/sbin/pdisk/ |
| H A D | file_media.c | 86 read_block(int fd, uint64_t sector, void *address) in read_block() argument 90 off = pread(fd, address, DEV_BSIZE, sector * DEV_BSIZE); in read_block() 105 write_block(int fd, uint64_t sector, void *address) in write_block() argument 109 off = pwrite(fd, address, DEV_BSIZE, sector * DEV_BSIZE); in write_block() 228 read_dpme(int fd, uint64_t sector, struct entry *entry) in read_dpme() argument 236 if (read_block(fd, sector, dpme_ondisk) == 0) in read_dpme() 298 write_dpme(int fd, uint64_t sector, struct entry *entry) in write_dpme() argument 362 rslt = write_block(fd, sector, dpme_ondisk); in write_dpme()
|
| /openbsd-src/sys/dev/ic/ |
| H A D | wdcevent.h | 87 u_int8_t sector, u_int8_t count, u_int8_t command) { in WDC_LOG_ATA_CMDLONG() argument 89 sector, count, command }; in WDC_LOG_ATA_CMDLONG() 127 sector, count, command) argument
|
| /openbsd-src/usr.bin/file/magdir/ |
| H A D | filesystems | 28 # Is there a boot block written 1 sector in? 57 # only for sector sizes with 512 or more Bytes 58 0x1FE leshort 0xAA55 x86 boot sector 60 #30 search/481 \x55\xAA x86 boot sector 62 #(11.s-2) uleshort 0xAA55 x86 boot sector 121 >>339 string I/O\ Error\ reading\ boot\ sector\r \b, Visopsys MBR 123 >>379 string I/O\ Error\ reading\ boot\ sector\r \b, simple Visopsys MBR 151 #>>>>0x44 ulelong =1 \b, 1st sector stage2 0x%x (default) 152 >>>>0x44 ulelong >1 \b, 1st sector stage2 0x%x 666 #If the boot sector fails to read any other sector, [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/bfd/ |
| H A D | ppcboot.c | 44 bfd_byte sector; member 437 && !tdata->header.partition[i].partition_begin.sector 441 && !tdata->header.partition[i].partition_end.sector 449 tdata->header.partition[i].partition_begin.sector, 455 tdata->header.partition[i].partition_end.sector,
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/bfd/ |
| H A D | ppcboot.c | 44 bfd_byte sector; member 440 && !tdata->header.partition[i].partition_begin.sector 444 && !tdata->header.partition[i].partition_end.sector 452 tdata->header.partition[i].partition_begin.sector, 458 tdata->header.partition[i].partition_end.sector,
|
| /openbsd-src/sys/kern/ |
| H A D | subr_disk.c | 309 * Read a disk sector. 313 struct disklabel *lp, u_int64_t sector) in readdisksector() argument 315 bp->b_blkno = DL_SECTOBLK(lp, sector); in readdisksector() 383 * EIO. If 0 is returned the label sector is read from disk and in readdoslabel() 462 uint64_t sector, struct gpt_header *gh) in gpt_get_hdr() argument 471 error = readdisksector(bp, strat, lp, sector); in gpt_get_hdr() 741 uint64_t sector = DOSBBSECTOR; in spoofmbr() local 763 if (sector < extoff) in spoofmbr() 764 sector = extoff; in spoofmbr() 767 if (sector ! in spoofmbr() [all...] |
| /openbsd-src/gnu/usr.sbin/mkhybrid/src/ |
| H A D | multi.c | 200 unsigned char sector[SECTOR_SIZE]; in FDECL3() local 201 readsecs(cont_extent, sector, 1); in FDECL3() 202 parse_rr(§or[cont_offset], cont_size, dpnt); in FDECL3() 296 unsigned char sector[SECTOR_SIZE]; in FDECL4() local 298 readsecs(cont_extent, sector, 1); in FDECL4() 299 parse_rr(§or[cont_offset], cont_size, dpnt); in FDECL4()
|
| H A D | README.session | 14 systems that don't allow to read from CD drives with a sector size 15 of 2048 bytes per sector. To use mkisofs on such an operating system, you
|
| /openbsd-src/sys/dev/pv/ |
| H A D | vioblkreg.h | 80 uint64_t sector; 82 /* 512*virtio_blk_req_hdr.sector byte payload and 1 byte status follows */ 77 uint64_t sector; global() member
|
| /openbsd-src/usr.sbin/makefs/ |
| H A D | cd9660.c | 193 /*Fix the sector size for now, though the spec allows for other sizes*/ in cd9660_set_defaults() 632 int sector = 16; in cd9660_setup_volume_descriptors() local 642 temp->sector = sector; in cd9660_setup_volume_descriptors() 647 sector++; in cd9660_setup_volume_descriptors() 648 /* Set up boot support if enabled. BVD must reside in sector 17 */ in cd9660_setup_volume_descriptors() 654 t->sector = 17; in cd9660_setup_volume_descriptors() 656 sector++; in cd9660_setup_volume_descriptors() 666 t->sector = sector; in cd9660_setup_volume_descriptors() [all...] |