/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 in function:devopen 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 in function:ata_raid_read_config_promise 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 in function:ata_raid_read_config_jmicron 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 in function:ata_raid_read_config_via 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 in typeref:typename:const char * 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 in function:getdiskbyname 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 in function:v7fs_inode_writeback [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 in function:main 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 in function:md_post_newfs 218 disk, sizeof disk, NULL, plain_name, true, true)) 225 return copy_bootloader(disk); 260 char disk[STRSIZE]; local in function:md_update 269 disk, sizeof disk, NULL, plain_name, true, true) [all...] |
/src/distrib/utils/embedded/conf/ |
x86.conf | 31 disk: STORAGE DEVICE key
|
evbppc.conf | 43 disk: STORAGE DEVICE key
|
riscv.conf | 41 disk: STORAGE DEVICE key
|
evbarm.conf | 43 disk: STORAGE DEVICE key
|
evbmips.conf | 43 disk: STORAGE DEVICE key
|
/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/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 in function:rf_remove_hot_spare 1183 RF_RaidDisk_t *disk; local in function:rf_delete_component [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 in function:disklabel_write_to_disk [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 in function:do_localdevs 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/sbin/dump/ |
main.c | 78 char *disk; variable in typeref:typename:char * 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/sys/arch/sandpoint/stand/altboot/ |
globals.h | 172 struct disk { struct 183 int (*lba_read)(struct disk *, int64_t, int, void *);
|
/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...] |