| /src/sbin/dkscan_bsdlabel/ |
| dkscan_bsdlabel.c | 40 #include <sys/disk.h> 45 struct disk { struct 46 const char *dk_name; /* disk name */ 73 struct disk d;
|
| /src/sys/arch/ews4800mips/stand/common/ |
| devopen.c | 66 int disk, partition; local 134 /* Disk boot */ 138 printf("Disk disabled.\n"); 142 disk = fname[2] - '0'; 144 if (disk < 0 || disk > 9 || partition < 0 || partition > 15) { 146 printf("disk(boot):%s ", filename); 150 printf("disk(%d,%d):/%s ", 151 disk, partition, filename); 152 device_attach(NVSRAM_BOOTDEV_HARDDISK, disk, partition) [all...] |
| disk.c | 1 /* $NetBSD: disk.c,v 1.9 2019/01/09 03:28:31 christos Exp $ */ 54 struct disk { struct 110 printf("unknown floppy disk format %d.\n", 115 printf("unknown disk type %d.\n", __disk.type);
|
| /src/sys/dev/ata/ |
| ata_raid_promise.c | 45 #include <sys/disk.h> 73 u_int disk; local 83 /* Get a vnode for the raw partition of this disk. */ 185 for (disk = 0; disk < aai->aai_ndisks; disk++) { 186 adi = &aai->aai_disks[disk]; 188 if (info->raid.disk[disk].flags & PR_F_ONLINE) 190 if (info->raid.disk[disk].flags & PR_F_ASSIGNED [all...] |
| ata_raid_jmicron.c | 45 #include <sys/disk.h> 129 int bmajor, error, count, disk, total_disks; local 136 /* Get a vnode for the raw partition of this disk. */ 185 for (total_disks = 0, disk = 0; disk < JM_MAX_DISKS; disk++) 186 if (info->disks[disk] == info->disk_id) 250 "%d-disk array\n", dksc->sc_xname,
|
| ata_raid_via.c | 45 #include <sys/disk.h> 103 printf("DISK# disk_id\n"); 123 int count, disk; local 131 /* Get a vnode for the raw partition of this disk. */ 229 for (count = 0, disk = 0; disk < 4; disk++) 230 if (info->disks[disk]) 246 * VIA V-RAID configuration blocks store the disk index as a value 248 * the value left by 2 to obtain the disk number [all...] |
| /src/usr.sbin/mscdlabel/ |
| main.c | 33 * - support simulation of multisession CDs in a vnd(4) disk 57 const char *disk = "cd0"; variable 135 disk = argv[1]; 137 fd = opendisk(disk, O_RDWR, fullname, MAXPATHLEN, 0); 139 warn("opendisk (read-write) %s", disk); 140 fd = opendisk(disk, O_RDONLY, fullname, MAXPATHLEN, 0); 142 err(1, "opendisk %s", disk);
|
| /src/lib/libc/gen/ |
| disklabel.c | 94 static struct disklabel disk; local 95 struct disklabel *dp = &disk; 109 memset(&disk, 0, sizeof(disk));
|
| /src/sys/fs/v7fs/ |
| v7fs_inode.c | 162 struct v7fs_inode *mem, struct v7fs_inode_diskimage *disk) 164 #define conv16(m) (mem->m = V7FS_VAL16(fs, (disk->m))) 165 #define conv32(m) (mem->m = V7FS_VAL32(fs, (disk->m))) 182 addr = V7FS_VAL24_READ(fs, &disk->addr[j]); 196 struct v7fs_inode *mem, struct v7fs_inode_diskimage *disk) 198 #define conv16(m) (disk->m = V7FS_VAL16(fs, (mem->m))) 199 #define conv32(m) (disk->m = V7FS_VAL32(fs, (mem->m))) 213 V7FS_VAL24_WRITE(fs, mem->addr[i], disk->addr + j); 219 /* Load inode from disk. */ 238 /* Decode disk address, convert endian. * 251 struct v7fs_inode_diskimage disk; local [all...] |
| /src/sys/arch/mipsco/stand/installboot/ |
| installboot.c | 71 fprintf(stderr, "\t%s [-nv] disk bootstrap [name]\n", getprogname()); 72 fprintf(stderr, "\t%s -r [-nv] disk [name]\n", getprogname()); 73 fprintf(stderr, "\t%s -l [-nv] disk\n", getprogname()); 80 const char *disk; local 115 disk = argv[0]; 118 do_list(disk); 120 do_remove(disk, argc==2?argv[1]:DEFAULT_BOOTFILE); 122 do_install(disk, argv[1], argc==3?argv[2]:DEFAULT_BOOTFILE); 128 do_list(const char *disk) 134 read_volheader(disk, &vh) [all...] |
| /src/usr.sbin/sysinst/arch/luna68k/ |
| md.c | 98 * Compute whole disk size. Take max of (pm->dlcyl*pm->dlhead*pm->dlsec) 99 * and secperunit, just in case the disk is already labelled. 168 * hook called after writing disklabel to new target disk. 197 * hook called after install() has finished setting up the target disk 204 char rdisk[STRSIZE], disk[STRSIZE]; local 218 disk, sizeof disk, NULL, plain_name, true, true)) 225 return copy_bootloader(disk); 260 char disk[STRSIZE]; local 269 disk, sizeof disk, NULL, plain_name, true, true) [all...] |
| /src/sys/dev/raidframe/ |
| rf_disks.c | 100 * easily substitue a spare for a failed disk. But, the driver code assumes 153 DPRINTF6("Disk at col %d: dev %s numBlocks %" PRIu64 " blockSize %d (%ld MB)\n", 206 RF_ERRORMSG1("Error: block size of disk at c %d different from disk at c 0\n", c); 211 RF_ERRORMSG2("WARNING: truncating disk at c %d to %d blocks\n", 234 * recall from the above comment that the spare disk descriptors are stored 258 RF_ERRORMSG1("Warning: spare disk %s failed TUR\n", 263 DPRINTF6("Spare Disk %d: dev %s numBlocks %" PRIu64 " blockSize %d (%ld MB)\n", i, 276 RF_ERRORMSG3("Block size of %d on spare disk %s is not the same as on other disks (%d)\n", disks[i].blockSize, disks[i].devname, bs); 281 RF_ERRORMSG3("Spare disk %s (%d blocks) is too small to serve as a spare (need %" PRIu64 " blocks)\n" 1113 RF_RaidDisk_t *disk; local 1183 RF_RaidDisk_t *disk; local [all...] |
| /src/usr.sbin/diskpart/ |
| diskpart.c | 45 * Program to calculate standard disk partition sizes. 75 * Each array defines a layout for a disk; 77 * covers the physical space on a disk. 87 * Default disk block and disk block fragment 104 * Each disk has some space reserved for a bad sector 166 fprintf(stderr, "%s: unknown disk type\n", *argv); 182 * If disk size was specified explicitly, use specified size. 194 * If disk size was specified, recompute number of cylinders 204 * Figure out if disk is large enough fo 363 static struct disklabel disk; variable in typeref:struct:disklabel [all...] |
| /src/external/bsd/iscsi/dist/src/lib/ |
| storage.c | 195 disc_device_t *disk; local 199 if ((disk = find_device(devvp, device)) != NULL) { 209 disk = &devvp->v[devvp->c]; 210 disk->dev = strdup(device); 211 disk->raid = 214 disk->size = ep->sv.c - 2; 215 disk->len = getsize(cf, devvp, extents, ep->sv.v[DEVICE_LENGTH_COL]); 216 NEWARRAY(disc_de_t, disk->xv, ep->sv.c - 2, "do_device", 218 for (disk->c = 0 ; disk->c < disk->size ; disk->c++) [all...] |
| /src/usr.sbin/sysinst/ |
| target.c | 126 char disk[DISKNAMESIZE], wedge[DISKNAMESIZE]; member in struct:umount_delwedge 268 * from in-ramdisk miniroots or on-disk diskimages. 269 * If our root is on the target disk, the install target is mounted 279 * to the devicename of the install target disk. 558 delete_wedge(const char *disk, const char *wedge) 564 fd = opendisk(disk, O_RDWR, diskpath, sizeof(diskpath), 0); 575 register_post_umount_delwedge(const char *disk, const char *wedge) 581 delete_wedge(disk, wedge); 587 strlcpy(dw->disk, disk, sizeof(dw->disk)) [all...] |
| disklabel.c | 111 set_default_sizemult(arg->disk, 114 set_default_sizemult(arg->disk, MEG, 131 disklabel_non_bootable(const char *disk) 167 parts->dp.disk = strdup(dev); 195 disklabel_parts_read(const char *disk, daddr_t start, daddr_t len, size_t bps, 210 fd = opendisk(disk, O_RDONLY, diskpath, sizeof(diskpath), 0); 236 * (probably not yet written back to disk) 249 parts->dp.disk = strdup(disk); 299 * Verify we really have a disklabel on the target disk 385 const char *disk = parts->dp.disk, *s; local [all...] |
| partitions.h | 30 * Abstract interface to access arbitrary disk partitioning schemes and 31 * keep Sysinst proper independent of the implementation / on-disk 40 * no value is passed, the backend can query the disk data 43 * byte sectors (as it is not associated with a concrete disk) 124 #define PTI_WHOLE_DISK 2 /* all of the NetBSD disk */ 128 #define PTI_RAW_PART 16 /* total disk */ 141 daddr_t start, size; /* start and size on disk */ 205 * A scheme how to store partitions on-disk, and methods to read/write 209 /* name of the on-disk scheme, retrieved via msg_string */ 449 * If force_empty = true, ignore all on-disk contents and jus 581 const char *disk; member in struct:disk_partitions [all...] |
| /src/sbin/swapctl/ |
| swapctl.c | 76 #include <sys/disk.h> 572 char *disknames, *disk; local 581 for (disk = strtok(disknames, " "); disk; 582 disk = strtok(NULL, " ")) 583 do_localdisk(disk, add); 589 do_localdisk(const char *disk, int add) 594 if ((fd = opendisk(disk, O_RDONLY, dvname, sizeof(dvname), 0)) == -1) 598 do_partitionsofdisk(disk, fd, add);
|
| /src/external/bsd/libarchive/dist/tar/ |
| write.c | 263 * uncompressed files on disk. 537 struct archive *disk = bsdtar->diskreader; local 541 * of the entry because the disk reader bsdtar->diskreader 544 * with the disk reader consequently must fail. And we 548 r = archive_read_disk_open(disk, 551 lafe_warnc(archive_errno(disk), 552 "%s", archive_error_string(disk)); 563 r = archive_read_next_header2(disk, entry2); 566 lafe_warnc(archive_errno(disk), 567 "%s", archive_error_string(disk)); 881 struct archive *disk = bsdtar->diskreader; local [all...] |
| /src/sbin/dump/ |
| main.c | 78 char *disk; variable 314 "Must specify disk or image, or file list\n"); 320 * determine if disk is a subdirectory, and setup appropriately 323 disk = NULL; 335 disk = argv[i]; 338 quit("can't dump a disk or image at the same" 343 disk = argv[i]; 349 disk = fsbuf.f_mntfromname; 445 * disk can be either the full special file name, or 449 mntinfo = mntinfosearch(disk); [all...] |
| /src/external/bsd/nsd/dist/ |
| udb.h | 32 * Structures that are 'on-disk', are denoted with _d. Except rel_ptr which 33 * is also on-disk. 298 * UDB alloc info on disk. 309 * this to be written to memory (and thus disk) immediately. */ 323 /** real pointer to space allocation info on disk; fixedsize struct */ 324 udb_alloc_d* disk; member in struct:udb_alloc 375 * most important bits (write to disk, sockets) can be done first. 476 * Create empty UDB allocate structure to write to disk to initialize file. 482 * Create new udb allocator, with specific data on disk 484 * @param disk: disk data [all...] |
| /src/sys/arch/sandpoint/stand/altboot/ |
| globals.h | 172 struct disk { struct 183 int (*lba_read)(struct disk *, int64_t, int, void *);
|
| /src/sys/arch/x86/include/ |
| bootinfo.h | 144 * Structure describing disk info as seen by the BIOS. 180 struct bi_biosgeom_entry disk[1]; /* var len */ member in struct:btinfo_biosgeom
|
| /src/sys/sys/ |
| disk.h | 1 /* $NetBSD: disk.h,v 1.79 2025/04/13 14:01:00 jakllsch Exp $ */ 70 * from: Header: disk.h,v 1.5 92/11/19 04:33:03 torek Exp (LBL) 72 * @(#)disk.h 8.2 (Berkeley) 1/9/95 79 * Disk device structures. 88 * Disk information dictionary. 90 * This contains general information for disk devices. 97 * <!-- See below for disk geometry dictionary 155 * disk wedge. 160 char dkw_parent[16]; /* parent disk device name */ 228 * Disk geometry dictionary 471 struct disk { struct [all...] |
| /src/sbin/fdisk/ |
| fdisk.c | 104 /* We same the dflt 'boot partition' as a disk block, with some magic values. */ 132 static const char *disk = _PATH_DEFDISK; variable 134 static struct disklabel disklabel; /* disk parameters */ 150 * Disk geometry and partition alignment. 159 * the geometry reported by the disk, or do LBA reads (possibly LBA48). 164 * disk partitions to cylinder boundaries (certainly traditional!). 169 * starts at the beginning of the disk you lose 2 tracks. 492 case 'r': /* read data from disk_file (not raw disk) */ 533 disk = argv[0]; 536 initvar_disk(&disk); [all...] |