/netbsd-current/distrib/utils/embedded/files/ |
H A D | resize_disklabel | 27 local disk 29 disk=$1 30 /sbin/drvctl -p "$disk" disk-info/geometry/sectors-per-unit 35 local disk rawpart 37 disk=$1 39 /sbin/disklabel -t "$disk" \ 45 local disk rawpart ts rs oldsize newsize 47 disk=$1 50 eval $(/sbin/fdisk -S $disk) [all...] |
/netbsd-current/tests/sbin/gpt/ |
H A D | t_gpt.sh | 35 disk=gpt.disk 75 silence dd conv=notrunc msgfmt=quiet if=/dev/zero of="$disk" "$@" 79 rm -f "$disk" 85 silence gpt create "$disk" 86 match "$(partaddmsg 1 34 1024)" gpt add -t efi -s 1024 "$disk" 87 match "$(partaddmsg 2 1058 9150)" gpt add "$disk" 92 file "$src/gpt.2part.show.normal" gpt show "$disk" 93 file "$src/gpt.2part.show.uuid" gpt show -u "$disk" 97 echo "^$disk [all...] |
/netbsd-current/usr.bin/make/unit-tests/ |
H A D | hanoi-include.exp | 1 Move the upper disk from stack A to stack C. 2 Move the upper disk from stack A to stack B. 3 Move the upper disk from stack C to stack B. 4 Move the upper disk from stack A to stack C. 5 Move the upper disk from stack B to stack A. 6 Move the upper disk from stack B to stack C. 7 Move the upper disk from stack A to stack C. 8 Move the upper disk from stack A to stack B. 9 Move the upper disk from stack C to stack B. 10 Move the upper disk fro [all...] |
/netbsd-current/usr.sbin/sysinst/ |
H A D | geom.c | 49 disk_ioctl(const char *disk, unsigned long cmd, void *d) argument 55 /* Open the disk. */ 56 fd = opendisk(disk, O_RDONLY, diskpath, sizeof(diskpath), 0); 71 get_wedge_list(const char *disk, struct dkwedge_list *dkwl) argument 77 if (!disk_ioctl(disk, DIOCLWEDGES, dkwl)) 93 get_wedge_info(const char *disk, struct dkwedge_info *dkw) argument 96 return disk_ioctl(disk, DIOCGWEDGEINFO, dkw); 100 get_disk_geom(const char *disk, struct disk_geom *d) argument 105 if ((fd = opendisk(disk, O_RDONLY, buf, sizeof(buf), 0)) == -1) 108 error = getdiskinfo(disk, f 118 get_label_geom(const char *disk, struct disklabel *l) argument [all...] |
H A D | sizemultname.c | 73 set_default_sizemult(const char *disk, daddr_t unit, uint bps) argument 77 if (strcmp(disk, last_dev) == 0) 80 strlcpy(last_dev, disk, sizeof last_dev);
|
/netbsd-current/external/gpl3/gdb.old/dist/sim/ppc/ |
H A D | hw_disk.c | 43 disk - mass storage device 51 Mass storage devices such as a hard-disk or cdrom-drive are not 57 a <<cdrom>>, <<disk>> or <<floppy>> are created as children of of a 67 interpreted as an offset from the start of the disk. 70 disk that provides access to any of the physical media, a disk 71 partition, or even a file within a partition. The <<disk-label>> 89 The name of the file that contains an image of the disk. For 90 <<disk>> and <<floppy>> devices, the image will be opened for both 116 If this property is present, the disk fil 193 hw_disk_device *disk; member in struct:_hw_disk_instance 198 open_disk_image(device *me, hw_disk_device *disk, const char *name) argument 221 hw_disk_device *disk = device_data(me); local 264 hw_disk_device *disk = device_data(me); local 298 hw_disk_device *disk = device_data(me); local 325 hw_disk_device *disk = device_data(me); local 514 hw_disk_device *disk = device_data(me); local [all...] |
/netbsd-current/external/gpl3/gdb/dist/sim/ppc/ |
H A D | hw_disk.c | 43 disk - mass storage device 51 Mass storage devices such as a hard-disk or cdrom-drive are not 57 a <<cdrom>>, <<disk>> or <<floppy>> are created as children of of a 67 interpreted as an offset from the start of the disk. 70 disk that provides access to any of the physical media, a disk 71 partition, or even a file within a partition. The <<disk-label>> 89 The name of the file that contains an image of the disk. For 90 <<disk>> and <<floppy>> devices, the image will be opened for both 116 If this property is present, the disk fil 193 hw_disk_device *disk; member in struct:_hw_disk_instance 198 open_disk_image(device *me, hw_disk_device *disk, const char *name) argument 221 hw_disk_device *disk = device_data(me); local 264 hw_disk_device *disk = device_data(me); local 298 hw_disk_device *disk = device_data(me); local 325 hw_disk_device *disk = device_data(me); local 514 hw_disk_device *disk = device_data(me); local [all...] |
/netbsd-current/sys/arch/ews4800mips/ews4800mips/ |
H A D | pdinfo.c | 65 pdinfo_valid(const struct pdinfo_sector *disk) argument 68 return disk->magic == PDINFO_MAGIC; 72 pdinfo_sanity(const struct pdinfo_sector *disk) argument 75 if (!pdinfo_valid(disk)) { 76 DPRINTF("no physical disk info.\n"); 81 const struct disk_geometory *geom = &disk->geometory; 82 const struct disk_ux *ux = &disk->ux; 84 DPRINTF("physical disk sector size %dbyte\n", sizeof *disk); 85 DPRINTF("[disk]\ [all...] |
/netbsd-current/sbin/dkscan_bsdlabel/ |
H A D | dkscan_util.h | 37 struct disk; 39 int dkwedge_read(struct disk *pdk, struct vnode *vp, daddr_t blkno, 47 extern int disk_fd; /* file descriptor for disk access */
|
H A D | dkscan_bsdlabel.c | 40 #include <sys/disk.h> 45 struct disk { struct 46 const char *dk_name; /* disk name */ 73 struct disk d;
|
/netbsd-current/sys/arch/mipsco/stand/installboot/ |
H A D | 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) argument 134 read_volheader(disk, 145 do_remove(const char *disk, const char *filename) argument 162 do_install(const char *disk, const char *bootstrap, const char *bootname) argument 235 read_volheader(const char *disk, struct mips_volheader *vhp) argument 262 write_volheader(const char *disk, struct mips_volheader *vhp) argument [all...] |
/netbsd-current/sys/arch/i386/stand/lib/ |
H A D | bootinfo_biosgeom.c | 86 memset(&bibg->disk[nvalid], 0, sizeof(bibg->disk[nvalid])); 88 bibg->disk[nvalid].sec = d.sec; 89 bibg->disk[nvalid].head = d.head; 90 bibg->disk[nvalid].cyl = d.cyl; 91 bibg->disk[nvalid].dev = d.dev; 94 bibg->disk[nvalid].flags |= BI_GEOM_INVALID; 108 bibg->disk[nvalid].totsec = ed.totsec; 109 bibg->disk[nvalid].flags |= BI_GEOM_EXTINT13; 128 bibg->disk[nvali [all...] |
/netbsd-current/sys/sys/ |
H A D | disk.h | 1 /* $NetBSD: disk.h,v 1.78 2023/05/09 12:04:04 riastradh 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 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 */ 230 * NOTE: Not all geometry information is relevant for every kind of disk. 252 * NOTE: Not all geometry information is relevant for every kind of disk. 280 * Bad sector lists per fixed disk 464 struct disk { struct [all...] |
/netbsd-current/external/bsd/iscsi/dist/src/lib/ |
H A D | 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 [all...] |
/netbsd-current/usr.sbin/puffs/ |
H A D | makerumpmanpages.sh | 159 disk="cd9660 efs ext2fs ffs hfs lfs msdos ntfs sysvbfs udf v7fs" 188 if ! member $fs $disk $net $fictional $special ; then 197 if member $fs $disk ; then 198 mytype=disk 227 [ ${mytype} = disk ] && \
|
/netbsd-current/distrib/utils/embedded/ |
H A D | usermode | 63 ./netbsd disk=${image} disk=${pkgs} net=tap0,00:00:de:ad:be:ef
|
/netbsd-current/external/bsd/nsd/lib/libxfrd/ |
H A D | Makefile | 10 xfrd-disk.c \
|
/netbsd-current/sys/rump/dev/lib/libdisk/ |
H A D | disk_component.c | 34 #include <sys/disk.h>
|
/netbsd-current/sys/rump/dev/lib/libcgd/ |
H A D | Makefile | 7 COMMENT=Cryptographic disk driver (block device crypto layer)
|
/netbsd-current/sys/rump/dev/lib/libmd/ |
H A D | Makefile | 7 COMMENT=Memory disk device driver
|
/netbsd-current/sys/dev/ata/ |
H A D | 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[dis [all...] |
/netbsd-current/sys/arch/ews4800mips/stand/common/ |
H A D | devopen.c | 66 int disk, partition; local 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);
|
/netbsd-current/sys/dev/qbus/ |
H A D | rlvar.h | 28 * RL11/RLV11/RLV12 disk controller driver and 29 * RL01/RL02 disk device driver. 46 int sc_diskblk; /* Current block on disk */ 53 struct disk rc_disk;
|
/netbsd-current/sys/fs/v7fs/ |
H A D | 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 addres 161 v7fs_inode_setup_memory_image(const struct v7fs_self *fs __unused, struct v7fs_inode *mem, struct v7fs_inode_diskimage *disk) argument 195 v7fs_inode_setup_disk_image(const struct v7fs_self *fs __unused, struct v7fs_inode *mem, struct v7fs_inode_diskimage *disk) argument 251 struct v7fs_inode_diskimage disk; local [all...] |
/netbsd-current/usr.sbin/mscdlabel/ |
H A D | 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);
|