/freebsd-current/tests/sys/cddl/zfs/tests/cli_root/zpool_create/ |
H A D | zpool_create_011_neg.ksh | 74 disk=$DISK 76 disk=$DISK0 78 pooldev1=${disk}p1 79 pooldev2=${disk}p2 80 mirror1="${disk}p2 ${disk}p3" 81 mirror2="${disk}p4 ${disk}p5" 84 diff_size_dev="${disk}p6 ${disk}p [all...] |
/freebsd-current/contrib/bmake/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...] |
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/misc/ |
H A D | zpool_replace_001_neg.ksh | 49 RESULT=$(zpool status -v $TESTPOOL.virt | grep disk-additional.dat) 52 log_fail "A disk was replaced in the pool!" 60 log_mustnot zpool replace $TESTPOOL.virt /$TESTDIR/disk-1.dat \ 61 /$TESTDIR/disk-additional.dat 64 log_mustnot zpool replace -f $TESTPOOL.virt /$TESTDIR/disk-1.dat \ 65 /$TESTDIR/disk-additional.dat
|
H A D | cleanup.ksh | 45 $TEST_BASE_DIR/disk3.dat $TEST_BASE_DIR/disk-additional.dat \ 46 $TEST_BASE_DIR/disk-export.dat $TEST_BASE_DIR/disk-offline.dat \ 47 $TEST_BASE_DIR/disk-spare1.dat $TEST_BASE_DIR/disk-spare2.dat
|
H A D | zpool_attach_001_neg.ksh | 41 # 1. Attempt to attach a disk to a pool 48 RESULT=$(zpool status -v $TESTPOOL.virt | grep disk-additional.dat) 51 log_fail "A disk was attached to the pool!" 60 /$TESTDIR/disk-additional.dat 64 /$TESTDIR/disk-additional.dat
|
H A D | zpool_online_001_neg.ksh | 48 RESULT=$(zpool status -v $TESTPOOL.virt | grep disk-offline.dat \ 52 log_fail "A disk was brought online!" 60 log_mustnot zpool online $TESTPOOL.virt /$TESTDIR/disk-offline.dat 63 log_mustnot zpool online -t $TESTPOOL.virt /$TESTDIR/disk-offline.dat
|
H A D | zpool_offline_001_neg.ksh | 48 RESULT=$(zpool status -v $TESTPOOL.virt | grep disk-1.dat \ 52 log_fail "A disk was taken offline!" 60 log_mustnot zpool offline $TESTPOOL.virt /$TESTDIR/disk-1.dat 63 log_mustnot zpool offline -t $TESTPOOL.virt /$TESTDIR/disk-1.dat
|
/freebsd-current/sys/geom/ |
H A D | geom_disk.h | 50 #include <sys/disk.h> 54 struct disk; 56 typedef int disk_open_t(struct disk *); 57 typedef int disk_close_t(struct disk *); 60 typedef void disk_gone_t(struct disk *); 61 typedef int disk_ioctl_t(struct disk *, u_long cmd, void *data, 80 struct disk { struct 140 struct disk *disk_alloc(void); 141 void disk_create(struct disk *disk, in [all...] |
/freebsd-current/tests/sys/cddl/zfs/tests/cli_root/zpool_remove/ |
H A D | zpool_remove_003_pos.ksh | 67 typeset disk=${DISK} 69 typeset spare_devs1="${disk}p1" 70 typeset spare_devs2="${disk}p2" 71 typeset spare_devs3="${disk}p3" 72 typeset spare_devs4="${disk}p4"
|
H A D | zpool_remove_001_neg.ksh | 52 typeset disk=${DISK} 53 typeset vdev_devs="${disk}p1" 54 typeset mirror_devs="${disk}p1 ${disk}p2" 57 typeset raidz2_devs="${mirror_devs} ${disk}p3" 58 typeset spare_devs1="${disk}p1" 59 typeset spare_devs2="${disk}p2"
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_online/ |
H A D | zpool_online_001_pos.ksh | 55 for disk in $DISKLIST; do 56 log_must zpool online $TESTPOOL $disk 57 log_must check_state $TESTPOOL $disk "online" 73 for disk in $DISKLIST; do 78 log_must zpool offline $TESTPOOL $disk 79 log_must check_state $TESTPOOL $disk "offline" 81 log_must zpool online ${args[$i]} $TESTPOOL $disk 82 log_must check_state $TESTPOOL $disk "online" 101 for disk in $DISKLIST; do 105 log_must zpool online ${args[$index]} $TESTPOOL $disk [all...] |
/freebsd-current/libexec/rc/rc.d/ |
H A D | gptboot | 48 if [ -n "${disk}" ]; then 49 part="${disk}p${pos}" 56 gpart unset -a bootfailed -i ${pos} ${disk} >/dev/null 60 gpart unset -a bootonce -i ${pos} ${disk} >/dev/null 66 disk="${pos}" 68 disk=""
|
/freebsd-current/tests/sys/cddl/zfs/tests/cli_root/zpool_add/ |
H A D | zpool_add.kshlib | 74 typeset disk="" 75 for disk in $DISK0 $DISK1; do 76 partition_disk $SIZE $disk 7
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | create-o_ashift.ksh | 48 rm -f $disk 96 disk=$(create_blockfile $SIZE) 105 log_must zpool create -o ashift=$ashift $TESTPOOL $disk 107 verify_ashift $disk $ashift 113 write_device_uberblocks $disk $TESTPOOL 114 log_must verify_device_uberblocks $disk ${ubcount[$i]} 118 log_must zpool labelclear $disk 119 log_must verify_device_uberblocks $disk 0 126 log_mustnot zpool create -o ashift="$badval" $TESTPOOL $disk
|
/freebsd-current/sys/sys/ |
H A D | gpt.h | 35 #include <sys/disk/gpt.h>
|
H A D | diskmbr.h | 35 #include <sys/disk/mbr.h>
|
/freebsd-current/sbin/clri/ |
H A D | clri.c | 61 struct uufsd disk; local 71 if (ufs_disk_fillout(&disk, fsname) == -1) { 72 printf("loading superblock: %s\n", disk.d_error); 87 if (getinode(&disk, &dp, inonum) == -1) { 88 printf("getinode: %s\n", disk.d_error); 93 if (disk.d_fs.fs_magic == FS_UFS1_MAGIC) { 102 putinode(&disk); 103 (void)fsync(disk.d_fd); 105 (void)ufs_disk_close(&disk);
|
/freebsd-current/lib/libufs/ |
H A D | sblock.c | 54 * The following option flags can be or'ed into disk->d_lookupflags: 64 sbread(struct uufsd *disk) argument 69 error = sbget(disk->d_fd, &fs, disk->d_sblockloc, disk->d_lookupflags); 70 return (handle_disk_read(disk, fs, error)); 88 sbfind(struct uufsd *disk, int flags) argument 93 error = sbsearch(disk->d_fd, &fs, flags); 94 return (handle_disk_read(disk, fs, error)); 98 handle_disk_read(struct uufsd *disk, struc argument 144 sbwrite(struct uufsd *disk, int all) argument [all...] |
H A D | cgroup.c | 51 cgballoc(struct uufsd *disk) argument 58 fs = &disk->d_fs; 59 cgp = &disk->d_cg; 76 cgbfree(struct uufsd *disk, ufs2_daddr_t bno, long size) argument 84 fs = &disk->d_fs; 86 if (cgread1(disk, cg) != 1) 88 cgp = &disk->d_cg; 133 return cgwrite(disk); 137 cgialloc(struct uufsd *disk) argument 146 fs = &disk 182 cgread(struct uufsd *disk) argument 194 cgread1(struct uufsd *disk, int c) argument 256 cgwrite(struct uufsd *disk) argument 263 cgwrite1(struct uufsd *disk, int cg) argument [all...] |
/freebsd-current/usr.sbin/bsdinstall/partedit/ |
H A D | scripted.c | 65 part_config(char *disk, const char *scheme, char *config) argument 79 if (provider_for_name(&mesh, disk) == NULL) { 80 fprintf(stderr, "GEOM provider %s not found\n", disk); 91 if (strcmp(gpart->lg_name, disk) == 0) 96 gpart_partition(disk, scheme); 102 gpart_create(provider_for_name(&submesh, disk), 103 "freebsd", NULL, NULL, &disk, 0); local 107 disk = strdup(disk); 113 free(disk); 160 char *disk = NULL, *scheme = NULL, *partconfig = NULL; local [all...] |
/freebsd-current/sys/dev/altera/sdcard/ |
H A D | altera_sdcard_disk.c | 63 altera_sdcard_disk_ioctl(struct disk *disk, u_long cmd, void *data, int fflag, argument 118 struct disk *disk; local 124 * Because the disk insertion routine occupies the driver instance's 125 * task queue thread, and the disk(9) instance isn't hooked up yet by 132 disk = disk_alloc(); 133 disk->d_drv1 = sc; 134 disk->d_name = "altera_sdcard"; 135 disk 157 struct disk *disk; local [all...] |
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_initialize/ |
H A D | zpool_initialize.kshlib | 20 function initialize_prog_line # pool disk 23 typeset disk="$2" 24 zpool status -i "$pool" | grep "$disk" | grep "[[:digit:]]* initialized" 27 function initialize_progress # pool disk
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/online_offline/ |
H A D | online_offline_001_pos.ksh | 37 # Turning a disk offline and back online during I/O completes. 41 # 2. For each disk in the mirror, set it offline and online 55 for disk in $DISKLIST; do 56 log_must zpool online $TESTPOOL $disk 57 log_must check_state $TESTPOOL $disk "online" 65 log_assert "Turning a disk offline and back online during I/O completes." 70 for disk in $DISKLIST; do 72 log_must zpool offline $TESTPOOL $disk 73 log_must check_state $TESTPOOL $disk "offline" 76 log_must zpool online $TESTPOOL $disk [all...] |
/freebsd-current/tests/sys/cddl/zfs/bin/ |
H A D | zpool_smi.ksh | 29 typeset disk=$1 30 if [[ -z $disk ]]; then 31 print "no disk is given." 35 /usr/sbin/format $disk << _EOF >/dev/null 2>&1 40 labeltype=$(/usr/sbin/prtvtoc -fh /dev/${disk}s2 | \ 43 print "${disk} not exist." 59 fdisk -B /dev/${disk}p0 >/dev/null 2>&1 74 format -e -s -d $disk -f $label_file 82 print "unable to label $disk as VTOC."
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_set/ |
H A D | zpool_set_ashift.ksh | 47 rm -f $disk 65 disk=$TEST_BASE_DIR/disk 66 log_must mkfile $SIZE $disk 67 log_must zpool create $TESTPOOL1 $disk
|