/openbsd-current/regress/usr.sbin/vmd/config/ |
H A D | vmd-fail-too-many-disks.conf | 4 disk "disk0.img" 5 disk "disk1.img" 6 disk "disk2.img" 7 disk "disk3.img" 8 disk "disk4.img"
|
H A D | vmd-fail-bad-format.conf | 6 disk "foo.img" format "rotten"
|
H A D | vmd-fail-missing-format.conf | 6 disk "foo.img" format
|
H A D | vmd-pass-format-keyword.conf | 6 disk "foo.img" format "raw"
|
/openbsd-current/etc/examples/ |
H A D | vm.conf | 27 # First disk from 'vmctl create -s 4G "/home/vm/OpenBSD.img"' 28 disk "/home/vm/OpenBSD.img" 30 # Second disk from OpenBSD contains the install sets 31 disk $sets "install60.img" 42 disk "/home/vm/vm1-disk.img"
|
/openbsd-current/sbin/fdisk/ |
H A D | disk.c | 1 /* $OpenBSD: disk.c,v 1.75 2022/04/25 17:10:09 krw Exp $ */ 35 #include "disk.h" 38 struct disk disk; variable in typeref:struct:disk 50 disk.dk_name = strdup(name); 51 if (disk.dk_name == NULL) 53 disk.dk_fd = opendev(disk.dk_name, oflags, OPENDEV_PART, NULL); 54 if (disk.dk_fd == -1) 55 err(1, "opendev('%s', 0x%x)", disk [all...] |
H A D | disk.h | 1 /* $OpenBSD: disk.h,v 1.33 2022/04/25 17:10:09 krw Exp $ */ 19 struct disk { struct 37 extern struct disk disk;
|
H A D | fdisk.c | 33 #include "disk.h" 60 "disk\n", __progname); 82 if (disk.dk_bootprt.prt_id != DOSPTYP_EFISYS) 83 disk.dk_bootprt.prt_flag = DOSACTIVE; 86 disk.dk_cylinders = strtonum(optarg, 1, 262144, &errstr); 90 disk.dk_size = 0; 102 disk.dk_heads = strtonum(optarg, 1, 256, &errstr); 105 disk.dk_size = 0; 111 disk.dk_size = strtonum(optarg, BLOCKALIGNMENT, 116 disk [all...] |
H A D | mbr.c | 30 #include "disk.h" 63 if (disk.dk_bootprt.prt_ns > 0) { 64 bootprt = disk.dk_bootprt; 73 } else if (disk.dk_heads > 1 || disk.dk_cylinders > 1) { 79 while (daddr < DL_SECTOBLK(&dl, disk.dk_sectors)) 87 if (obsdprt.prt_bs >= disk.dk_size) { 90 obsdprt.prt_ns = disk.dk_size - obsdprt.prt_bs; 189 /* Refresh in-kernel disklabel from the updated disk information. */ 190 if (ioctl(disk [all...] |
/openbsd-current/sys/sys/ |
H A D | disk.h | 1 /* $OpenBSD: disk.h,v 1.38 2023/11/15 20:23:19 kn Exp $ */ 2 /* $NetBSD: disk.h,v 1.11 1996/04/28 20:22:50 thorpej Exp $ */ 42 * from: Header: disk.h,v 1.5 92/11/19 04:33:03 torek Exp (LBL) 44 * @(#)disk.h 8.1 (Berkeley) 6/2/93 70 struct timeval ds_attachtime; /* time disk was attached */ 75 struct disk { struct 76 TAILQ_ENTRY(disk) dk_link; /* link in global disklist */ 77 struct rwlock dk_lock; /* disk lock */ 79 char *dk_name; /* disk name */ 80 struct device *dk_device; /* disk devic [all...] |
/openbsd-current/usr.sbin/vmd/ |
H A D | vioqcow2.c | 114 * Initializes a raw disk image backing file from an fd. Stores the 128 log_warnx("could not open qcow2 disk"); 142 * Return the path to the base image given a disk image. 179 * Relative paths should be interpreted relative to the disk image, 212 qc2_open(struct qcdisk *disk, int *fds, size_t nfd) argument 222 pthread_rwlock_init(&disk->lock, NULL); 224 disk->fd = fd; 225 disk->base = NULL; 226 disk->l1 = NULL; 233 disk 332 struct qcdisk *disk, *d; local 405 struct qcdisk *disk, *d; local 455 struct qcdisk *disk; local 474 xlate(struct qcdisk *disk, off_t off, int *inplace) argument 534 mkcluster(struct qcdisk *disk, struct qcdisk *base, off_t off, off_t src_phys) argument 598 copy_cluster(struct qcdisk *disk, struct qcdisk *base, off_t dst, off_t src) argument 615 inc_refs(struct qcdisk *disk, off_t off, int newcluster) argument [all...] |
/openbsd-current/usr.sbin/installboot/ |
H A D | efi_softraid.c | 27 sr_install_bootblk(int devfd, int vol, int disk) argument 34 diskfd = sr_open_chunk(devfd, vol, disk, &bd, &realdev, &part);
|
H A D | softraid.c | 37 sr_prepare_chunk(int devfd, int vol, int disk) argument 44 diskfd = sr_open_chunk(devfd, vol, disk, &bd, &realdev, &part); 57 int vol = -1, ndisks = 0, disk; local 65 /* Prepare file system on each disk that is part of this volume. */ 66 for (disk = 0; disk < ndisks; disk++) 67 sr_prepare_chunk(devfd, vol, disk); 73 int vol = -1, ndisks = 0, disk; local 84 /* Install boot block on each disk tha 152 sr_open_chunk(int devfd, int vol, int disk, struct bioc_disk *bd, char **realdev, char *part) argument [all...] |
H A D | sparc64_softraid.c | 32 sr_install_bootblk(int devfd, int vol, int disk) argument 39 diskfd = sr_open_chunk(devfd, vol, disk, &bd, &realdev, &part);
|
/openbsd-current/gnu/usr.sbin/mkhybrid/src/ |
H A D | hdisk.pl | 26 ($disk) = @ARGV; 38 open(DISK, $disk) || die "$disk: $!\n"; 49 die "$disk: unsupported partition map\n" if ($pmSig == 0x5453); 50 die "$disk: no partition map\n" unless ($pmSig == 0x504d);
|
/openbsd-current/sys/arch/octeon/stand/rdboot/ |
H A D | Makefile | 7 SRCS= cmd.c disk.c rdboot.c vars.c
|
/openbsd-current/sys/arch/powerpc64/stand/rdboot/ |
H A D | Makefile | 7 SRCS= cmd.c disk.c rdboot.c vars.c
|
/openbsd-current/sys/scsi/ |
H A D | sdvar.h | 56 struct disk sc_dk; 60 #define SDF_DIRTY 0x20 /* disk is dirty; needs cache flush */ 62 #define SDF_THIN 0x01 /* disk is thin provisioned */
|
/openbsd-current/regress/sys/ffs/ffs/ |
H A D | Makefile | 7 .PHONY: disk mount umount unconfig clean 9 disk: unconfig 15 mount: disk
|
/openbsd-current/regress/sys/fileops/ |
H A D | Makefile.inc | 16 .PHONY: disk mount unconfig clean 18 disk: unconfig 24 mount: disk
|
/openbsd-current/sbin/ncheck_ffs/ |
H A D | ncheck_ffs.c | 84 char *disk; /* name of the disk file */ variable 85 char rdisk[PATH_MAX];/* resolved name of the disk file */ 86 int diskfd; /* disk file descriptor */ 230 * Get a specified inode from disk. Attempt to minimize reads to once 261 * Read a chunk of data from the disk. 298 disk, strerror(errno), (long long)blkno, size); 301 "got=%d", disk, (long long)blkno, size, cnt); 304 disk); 315 "count=%u", disk, strerro [all...] |
/openbsd-current/sbin/dump/ |
H A D | main.c | 67 char *disk; /* name of the disk file */ variable 71 int diskfd; /* disk file descriptor */ 91 char *duid; /* duid of the disk being dumped */ 227 (void)fprintf(stderr, "Must specify disk or filesystem\n"); 232 * determine if disk is a subdirectory, and setup appropriately 266 if (!disk) { 271 disk = toplevel; 280 msg("Dumping sub files/directories from %s\n", disk); 282 if (strcmp(disk, fsbu [all...] |
/openbsd-current/regress/sys/dev/vnd/ |
H A D | Makefile | 22 dd if=/dev/zero of=/mnt/regress-vnd/disk.img count=1024 23 vnconfig /mnt/regress-vnd/disk.img >vnd
|
/openbsd-current/regress/sys/ffs/nfs/ |
H A D | Makefile | 7 .PHONY: disk nfs mount umount unconfig clean 9 disk: unconfig 22 mount: disk nfs
|
/openbsd-current/usr.sbin/nsd/ |
H A D | udb.c | 246 log_msg(LOG_ERR, "%s: short write (disk full?)", fname); 321 uint64_t nsize = udb->alloc->disk->nextgrow; 561 alloc->disk = (udb_alloc_d*)((char*)udb->glob_data 603 log_msg(LOG_ERR, "grow(%s, size %u) failed (disk full?)", 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 961 udb_alloc_create(udb_base* udb, udb_alloc_d* disk) argument [all...] |