Home
last modified time | relevance | path

Searched refs:disk (Results 1 – 25 of 1267) sorted by relevance

12345678910>>...51

/netbsd-src/tests/sbin/gpt/
H A Dt_gpt.sh35 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: Partition $1 added: $uuid $2 $3\$"
101 echo "^$disk: Partition $1 resized: $2 $3\$"
[all …]
/netbsd-src/usr.bin/make/unit-tests/
H A Dhanoi-include.exp1 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 from stack C to stack A.
[all …]
/netbsd-src/external/bsd/iscsi/dist/src/lib/
H A Dstorage.c195 disc_device_t *disk; in do_device() local
199 if ((disk = find_device(devvp, device)) != NULL) { in do_device()
209 disk = &devvp->v[devvp->c]; in do_device()
210 disk->dev = strdup(device); in do_device()
211 disk->raid = in do_device()
214 disk->size = ep->sv.c - 2; in do_device()
215 disk->len = getsize(cf, devvp, extents, ep->sv.v[DEVICE_LENGTH_COL]); in do_device()
216 NEWARRAY(disc_de_t, disk->xv, ep->sv.c - 2, "do_device", in do_device()
218 for (disk->c = 0 ; disk->c < disk->size ; disk->c++) { in do_device()
219 disk->xv[disk->c].u.xp = in do_device()
[all …]
/netbsd-src/sys/arch/mipsco/stand/installboot/
H A Dinstallboot.c80 const char *disk; in main() local
115 disk = argv[0]; in main()
118 do_list(disk); in main()
120 do_remove(disk, argc==2?argv[1]:DEFAULT_BOOTFILE); in main()
122 do_install(disk, argv[1], argc==3?argv[2]:DEFAULT_BOOTFILE); in main()
128 do_list(const char *disk) in do_list() argument
134 read_volheader(disk, &vh); in do_list()
145 do_remove(const char *disk, const char *filename) in do_remove() argument
150 read_volheader(disk, &vh); in do_remove()
153 FATAL("%s: file not found", disk); in do_remove()
[all …]
/netbsd-src/distrib/utils/embedded/files/
H A Dresize_disklabel27 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)
65 echo "Growing $disk MBR partition #1 (${oldsize}MB -> ${newsize}MB)"
[all …]
/netbsd-src/sys/sys/
H A Ddisk.h317 struct disk;
334 int (*ddm_discover)(struct disk *, struct vnode *);
464 struct disk { struct
465 TAILQ_ENTRY(disk) dk_link; /* link in global disklist */
537 void disk_rename(struct disk *, const char *);
538 void disk_attach(struct disk *);
539 int disk_begindetach(struct disk *, int (*)(device_t), device_t, int);
540 void disk_detach(struct disk *);
541 void disk_init(struct disk *, const char *, const struct dkdriver *);
542 void disk_destroy(struct disk *);
[all …]
/netbsd-src/sys/arch/ews4800mips/ews4800mips/
H A Dpdinfo.c65 pdinfo_valid(const struct pdinfo_sector *disk) in pdinfo_valid() argument
68 return disk->magic == PDINFO_MAGIC; in pdinfo_valid()
72 pdinfo_sanity(const struct pdinfo_sector *disk) in pdinfo_sanity() argument
75 if (!pdinfo_valid(disk)) { in pdinfo_sanity()
81 const struct disk_geometory *geom = &disk->geometory; in pdinfo_sanity()
82 const struct disk_ux *ux = &disk->ux; in pdinfo_sanity()
84 DPRINTF("physical disk sector size %dbyte\n", sizeof *disk); in pdinfo_sanity()
86 DPRINTF("drive_id = %#x\n", disk->drive_id); in pdinfo_sanity()
87 DPRINTF("magic = %#x\n", disk->magic); in pdinfo_sanity()
88 DPRINTF("version = %d\n", disk->version); in pdinfo_sanity()
[all …]
/netbsd-src/sys/arch/i386/stand/lib/
H A Dbootinfo_biosgeom.c86 memset(&bibg->disk[nvalid], 0, sizeof(bibg->disk[nvalid])); in bi_getbiosgeom()
88 bibg->disk[nvalid].sec = d.sec; in bi_getbiosgeom()
89 bibg->disk[nvalid].head = d.head; in bi_getbiosgeom()
90 bibg->disk[nvalid].cyl = d.cyl; in bi_getbiosgeom()
91 bibg->disk[nvalid].dev = d.dev; in bi_getbiosgeom()
94 bibg->disk[nvalid].flags |= BI_GEOM_INVALID; in bi_getbiosgeom()
108 bibg->disk[nvalid].totsec = ed.totsec; in bi_getbiosgeom()
109 bibg->disk[nvalid].flags |= BI_GEOM_EXTINT13; in bi_getbiosgeom()
128 bibg->disk[nvalid].flags |= BI_GEOM_BADCKSUM; in bi_getbiosgeom()
144 bibg->disk[nvalid].flags |= bus_names[j].flag; in bi_getbiosgeom()
[all …]
/netbsd-src/usr.sbin/sysinst/
H A Dgeom.c49 disk_ioctl(const char *disk, unsigned long cmd, void *d) in disk_ioctl() argument
56 fd = opendisk(disk, O_RDONLY, diskpath, sizeof(diskpath), 0); in disk_ioctl()
71 get_wedge_list(const char *disk, struct dkwedge_list *dkwl) in get_wedge_list() argument
77 if (!disk_ioctl(disk, DIOCLWEDGES, dkwl)) in get_wedge_list()
93 get_wedge_info(const char *disk, struct dkwedge_info *dkw) in get_wedge_info() argument
96 return disk_ioctl(disk, DIOCGWEDGEINFO, dkw); in get_wedge_info()
100 get_disk_geom(const char *disk, struct disk_geom *d) in get_disk_geom() argument
105 if ((fd = opendisk(disk, O_RDONLY, buf, sizeof(buf), 0)) == -1) in get_disk_geom()
108 error = getdiskinfo(disk, fd, NULL, d, NULL); in get_disk_geom()
118 get_label_geom(const char *disk, struct disklabel *l) in get_label_geom() argument
[all …]
/netbsd-src/usr.sbin/sysinst/arch/mac68k/
H A Dmsg.md.en46 {We are now going to install NetBSD on the disk %s. You may
47 choose to install NetBSD on the entire disk or part of the disk.
52 {It appears that your disk, %s, has not been formatted and initialized
53 for use on MacOS. This program gets the disk layout of your disk by
54 reading the Disk Partition Map which is written by the disk formatter
55 when it prepared the disk for use with the Macintosh system. Your
59 partition structure with any disk formatter. Partitions do not
64 disk will not be MacOS bootable and may not be usable by MacOS unless
65 MacOS drivers are installed with a MacOS compatible disk formatter.
70 {Sysinst will attempt to initialize your disk with a new Disk Partition
[all …]
/netbsd-src/external/cddl/dtracetoolkit/dist/Notes/
H A Diosnoop_notes.txt12 The output is disk events - I/O operations that cause the disk to physically
15 physical disk events.
18 driver before disk events happen. disk events. The stack goes like this,
38 disk
40 Due to caching (after vfs) few events will make it to the disk for iosnoop
53 elapsed time from the disk request (strategy) to the disk completion
54 iodone); -o prints the time for the disk to complete that event
61 disk to complete the request, after it has travelled through any bus or
68 on your application's PID. You notice large times for the disk events
72 the disks at the same time, and is causing the disk heads to seek to
[all …]
/netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Notes/
H A Diosnoop_notes.txt12 The output is disk events - I/O operations that cause the disk to physically
15 physical disk events.
18 driver before disk events happen. disk events. The stack goes like this,
38 disk
40 Due to caching (after vfs) few events will make it to the disk for iosnoop
53 elapsed time from the disk request (strategy) to the disk completion
54 iodone); -o prints the time for the disk to complete that event
61 disk to complete the request, after it has travelled through any bus or
68 on your application's PID. You notice large times for the disk events
72 the disks at the same time, and is causing the disk heads to seek to
[all …]
/netbsd-src/sys/dev/ata/
H A Data_raid_promise.c73 u_int disk; in ata_raid_read_config_promise() local
185 for (disk = 0; disk < aai->aai_ndisks; disk++) { in ata_raid_read_config_promise()
186 adi = &aai->aai_disks[disk]; in ata_raid_read_config_promise()
188 if (info->raid.disk[disk].flags & PR_F_ONLINE) in ata_raid_read_config_promise()
190 if (info->raid.disk[disk].flags & PR_F_ASSIGNED) in ata_raid_read_config_promise()
192 if (info->raid.disk[disk].flags & PR_F_SPARE) { in ata_raid_read_config_promise()
196 if (info->raid.disk[disk].flags & in ata_raid_read_config_promise()
/netbsd-src/sys/arch/hpcsh/conf/
H A DRAMDISK2 # kernel config file for memory(RAM) disk
9 # disk/mass storage pseudo-devices
10 pseudo-device md # memory disk device (ramdisk)
12 # Enable the hooks used for initializing the root memory-disk.
14 options MEMORY_DISK_IS_ROOT # force root on memory disk
15 options MEMORY_DISK_SERVER=0 # no userspace memory disk support
17 options MEMORY_DISK_ROOT_SIZE=8192 # size of memory disk, in blocks
/netbsd-src/sys/arch/playstation2/conf/
H A DRAMDISK2 # kernel config file for memory(RAM) disk
17 # disk/mass storage pseudo-devices
18 pseudo-device md 1 # memory disk device (ramdisk)
20 # Enable the hooks used for initializing the root memory-disk.
22 options MEMORY_DISK_IS_ROOT # force root on memory disk
23 options MEMORY_DISK_SERVER=0 # no userspace memory disk support
24 options MEMORY_DISK_ROOT_SIZE=10240 # size of memory disk, in blocks
/netbsd-src/sys/arch/amiga/conf/
H A DRAMDISK3 # Amiga install kernel with built-in memory disk image.
7 # Enable the hooks used for initializing the root memory-disk.
9 options MEMORY_DISK_IS_ROOT # force root on memory disk
10 options MEMORY_DISK_SERVER=0 # no userspace memory disk support
11 options MEMORY_DISK_ROOT_SIZE=8192 # size of memory disk, in blocks
14 pseudo-device md # memory disk [ramdisk]
/netbsd-src/sys/arch/hpcmips/conf/
H A DRAMDISK2 # kernel config file for memory(RAM) disk
11 pseudo-device md # memory disk
14 # Enable the hooks used for initializing the root memory-disk.
16 options MEMORY_DISK_IS_ROOT # force root on memory disk
17 options MEMORY_DISK_SERVER=0 # no userspace memory disk support
18 options MEMORY_DISK_ROOT_SIZE=8704 # size of memory disk, in blocks
/netbsd-src/sys/fs/v7fs/
H A Dv7fs_inode.c162 struct v7fs_inode *mem, struct v7fs_inode_diskimage *disk) in v7fs_inode_setup_memory_image() argument
164 #define conv16(m) (mem->m = V7FS_VAL16(fs, (disk->m))) in v7fs_inode_setup_memory_image()
165 #define conv32(m) (mem->m = V7FS_VAL32(fs, (disk->m))) in v7fs_inode_setup_memory_image()
182 addr = V7FS_VAL24_READ(fs, &disk->addr[j]); in v7fs_inode_setup_memory_image()
196 struct v7fs_inode *mem, struct v7fs_inode_diskimage *disk) in v7fs_inode_setup_disk_image() argument
198 #define conv16(m) (disk->m = V7FS_VAL16(fs, (mem->m))) in v7fs_inode_setup_disk_image()
199 #define conv32(m) (disk->m = V7FS_VAL32(fs, (mem->m))) in v7fs_inode_setup_disk_image()
213 V7FS_VAL24_WRITE(fs, mem->addr[i], disk->addr + j); in v7fs_inode_setup_disk_image()
219 /* Load inode from disk. */
238 /* Decode disk addres in v7fs_inode_load()
251 struct v7fs_inode_diskimage disk; v7fs_inode_writeback() local
[all...]
/netbsd-src/usr.sbin/sysinst/arch/luna68k/
H A Dmd.c204 char rdisk[STRSIZE], disk[STRSIZE]; in md_post_newfs() local
218 disk, sizeof disk, NULL, plain_name, true, true)) in md_post_newfs()
225 return copy_bootloader(disk); in md_post_newfs()
260 char disk[STRSIZE]; in md_update() local
269 disk, sizeof disk, NULL, plain_name, true, true)) in md_update()
277 "mount -r %s %s", disk, mntdir)) { in md_update()
285 (void)copy_bootloader(disk); in md_update()
/netbsd-src/sys/arch/mipsco/conf/
H A DRAMDISK9 # Enable the hooks used for initializing the root memory-disk.
11 options MEMORY_DISK_IS_ROOT # force root on memory disk
12 options MEMORY_DISK_SERVER=0 # no userspace memory disk support
13 options MEMORY_DISK_ROOT_SIZE=6144 # size of memory disk, in blocks (3MB)
22 # disk/mass storage pseudo-devices
23 pseudo-device md # memory disk device (ramdisk)
/netbsd-src/external/bsd/nsd/dist/
H A Dudb.c321 uint64_t nsize = udb->alloc->disk->nextgrow; in udb_base_close()
561 alloc->disk = (udb_alloc_d*)((char*)udb->glob_data in udb_base_remap()
777 while(at < alloc->disk->nextgrow) {
792 while(at < alloc->disk->nextgrow) {
900 if(rb_old+rb_size <= alloc->disk->nextgrow
901 && rb_new+rb_size <= alloc->disk->nextgrow) {
921 regen.nextgrow = alloc->disk->nextgrow;
945 *alloc->disk = regen;
961 udb_alloc* udb_alloc_create(udb_base* udb, udb_alloc_d* disk) argument
967 alloc->disk = disk;
[all …]
/netbsd-src/sys/arch/pmax/conf/
H A DRAMDISK6412 # Enable the hooks used for initializing the root memory-disk.
14 options MEMORY_DISK_IS_ROOT # force root on memory disk
15 options MEMORY_DISK_SERVER=0 # no userspace memory disk support
16 options MEMORY_DISK_ROOT_SIZE=9000 # size of memory disk, in blocks (4500kB)
23 # disk/mass storage pseudo-devices
24 pseudo-device md # memory disk device (ramdisk)
H A DRAMDISK12 # Enable the hooks used for initializing the root memory-disk.
14 options MEMORY_DISK_IS_ROOT # force root on memory disk
15 options MEMORY_DISK_SERVER=0 # no userspace memory disk support
16 options MEMORY_DISK_ROOT_SIZE=9400 # size of memory disk, in blocks (4700kB)
25 # disk/mass storage pseudo-devices
26 pseudo-device md # memory disk device (ramdisk)
/netbsd-src/distrib/hp300/miniroot/
H A Dinstall.md138 You will need to provide some information about your disk's geometry.
144 number of cylinders on the disk will be increased by 1 so that the initial
145 label can be placed on disk for editing. When the disklabel editor appears,
257 Now that you have corrected the geometry of your disk, you may edit the
396 FATAL ERROR: There is no disklabel present on the root disk! You must
397 label the disk with SYS_INST before continuing.
406 FATAL ERROR: The disklabel on the root disk is corrupted! You must
407 re-label the disk with SYS_INST before continuing.
420 You have already placed a disklabel onto the target root disk.
460 The INSTALL kernel from the miniroot has been copied to your root disk.
[all …]
/netbsd-src/external/gpl2/lvm2/dist/lib/format1/
H A Ddisk-rep.c26 #define xx16(v) disk->v = xlate16(disk->v)
27 #define xx32(v) disk->v = xlate32(disk->v)
28 #define xx64(v) disk->v = xlate64(disk->v)
35 static void _xlate_pvd(struct pv_disk *disk) in _xlate_pvd() argument
62 static void _xlate_lvd(struct lv_disk *disk) in _xlate_lvd() argument
85 static void _xlate_vgd(struct vg_disk *disk) in _xlate_vgd() argument
219 static int _read_lvd(struct device *dev, uint64_t pos, struct lv_disk *disk) in _read_lvd() argument
221 if (!dev_read(dev, pos, sizeof(*disk), disk)) in _read_lvd()
224 _xlate_lvd(disk); in _read_lvd()
554 static int _write_lvd(struct device *dev, uint64_t pos, struct lv_disk *disk) in _write_lvd() argument
[all …]

12345678910>>...51