Searched refs:disk (Results 1 - 25 of 381) sorted by relevance

1234567891011>>

/freebsd-current/tests/sys/cddl/zfs/tests/cli_root/zpool_create/
H A Dzpool_create_007_neg.ksh55 disk=$DISK
57 disk=$DISK0
62 "-R $TESTDIR $TESTPOOL" "-m nodir $TESTPOOL $disk" \
63 "-R nodir $TESTPOOL $disk" "-m nodir -R nodir $TESTPOOL $disk" \
64 "-R nodir -m nodir $TESTPOOL $disk" "-R $TESTDIR -m nodir $TESTPOOL $disk" \
65 "-R nodir -m $TESTDIR $TESTPOOL $disk" \
70 "$TESTPOOL mirror c?t?d?" "$TESTPOOL mirror $disk c0t1d?" \
71 "$TESTPOOL RAIDZ ${disk}p
[all...]
H A Dzpool_create_008_pos.ksh58 disk=$DISK
60 disk=$DISK0
63 # Make the disk is EFI labeled first via pool creation
64 create_pool $TESTPOOL $disk
68 log_must partition_disk $SIZE $disk 6
69 create_pool $TESTPOOL ${disk}p1 ${disk}p2
71 log_mustnot $ZPOOL create $TESTPOOL1 ${disk}p3 spare ${disk}p2
72 create_pool $TESTPOOL1 ${disk}p
[all...]
H A Dsetup.ksh35 # in the given disk to avoid slice overlapping.
41 for disk in `$ECHO $DISKSARRAY`; do
42 cleanup_devices $disk
44 partition_disk $SIZE $disk 7
H A Dzpool_create_009_neg.ksh62 typeset disk
75 typeset disk="$DISKS"
76 (( ${#opt} == 0 )) && disk=${DISKS%% *}
78 typeset -i count=$(get_word_count "$disk")
84 create_pool $TESTPOOL $opt $disk
85 log_mustnot $ZPOOL create -f $TESTPOOL1 $opt $disk
89 create_pool $TESTPOOL $opt $disk
94 log_mustnot $ZPOOL create -f $TESTPOOL $opt $disk $disk
/freebsd-current/sys/sys/
H A Dapm.h4 #include <sys/disk/apm.h>
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/truncate/
H A Dsetup.ksh30 disk=${DISKS%% *}
32 default_setup $disk
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/sparse/
H A Dsetup.ksh34 disk=${DISKS%% *}
36 default_setup $disk
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/large_files/
H A Dsetup.ksh34 disk=${DISKS%% *}
36 default_setup $disk
/freebsd-current/tests/sys/cddl/zfs/tests/large_files/
H A Dsetup.ksh29 disk=${DISKS%% *}
31 default_setup $disk
/freebsd-current/tests/sys/cddl/zfs/tests/sparse/
H A Dsetup.ksh30 disk=${DISKS%% *}
32 default_setup $disk
/freebsd-current/tests/sys/cddl/zfs/tests/truncate/
H A Dsetup.ksh29 disk=${DISKS%% *}
31 default_setup $disk
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_offline/
H A Dzpool_offline_003_pos.ksh55 for disk in $DISKLIST; do
56 log_must zpool online $TESTPOOL $disk
57 log_must check_state $TESTPOOL $disk "online"
72 # Get name of the first disk in the pool
73 disk=${DISKLIST%% *}
77 # Force fault disk, and clear the fault
78 log_must zpool offline -$arg $TESTPOOL $disk
79 check_state $TESTPOOL $disk "faulted"
80 log_must zpool clear $TESTPOOL $disk
81 check_state $TESTPOOL $disk "onlin
[all...]
H A Dzpool_offline_001_pos.ksh56 for disk in $DISKLIST; do
57 log_must zpool online $TESTPOOL $disk
58 log_must check_state $TESTPOOL $disk "online"
74 for disk in $DISKLIST; do
78 log_must zpool offline ${args[$i]} $TESTPOOL $disk
79 log_must check_state $TESTPOOL $disk "offline"
81 log_mustnot zpool offline ${args[$i]} $TESTPOOL $disk
82 log_must check_state $TESTPOOL $disk "online"
95 for disk in $DISKLIST; do
99 log_must zpool offline ${args[$index]} $TESTPOOL $disk
[all...]
/freebsd-current/tests/sys/cddl/zfs/include/
H A Dlibgnop.kshlib42 # Name of disk to use, with or without /dev/
43 typeset disk=$1
46 # size of disk in bytes
48 # disk size, rounded down to multiple of 16384
56 disk_size=`diskinfo $disk | cut -f 3`
66 gnop create ${args} ${disk}
72 typeset disk
73 for disk in $@; do
74 create_gnop "$disk" || return 1
83 typeset disk
[all...]
/freebsd-current/lib/libufs/
H A Dtype.c58 ufs_disk_close(struct uufsd *disk) argument
60 ERROR(disk, NULL);
61 close(disk->d_fd);
62 disk->d_fd = -1;
63 if (disk->d_mine & MINE_NAME) {
64 free((char *)(uintptr_t)disk->d_name);
65 disk->d_name = NULL;
67 if (disk->d_si != NULL) {
68 free(disk->d_si->si_csp);
69 free(disk
76 ufs_disk_fillout(struct uufsd *disk, const char *name) argument
90 ufs_disk_fillout_blank(struct uufsd *disk, const char *name) argument
187 ufs_disk_write(struct uufsd *disk) argument
[all...]
H A Dinode.c51 getinode(struct uufsd *disk, union dinodep *dp, ino_t inum) argument
57 ERROR(disk, NULL);
59 fs = &disk->d_fs;
61 ERROR(disk, "inode number out of range");
64 inoblock = (caddr_t)&disk->d_inos[0];
65 min = disk->d_inomin;
66 max = disk->d_inomax;
70 bread(disk, fsbtodb(fs, ino_to_fsba(fs, inum)), inoblock,
72 disk->d_inomin = min = inum - (inum % INOPB(fs));
73 disk
96 putinode(struct uufsd *disk) argument
[all...]
H A Dblock.c32 #include <sys/disk.h>
52 bread(struct uufsd *disk, ufs2_daddr_t blockno, void *data, size_t size) argument
57 ERROR(disk, NULL);
61 ERROR(disk, "allocate bounce buffer");
64 cnt = pread(disk->d_fd, p2, size, (off_t)(blockno * disk->d_bsize));
66 ERROR(disk, "read error from block device");
70 ERROR(disk, "end of file from block device");
74 ERROR(disk, "short read or read error from block device");
90 bwrite(struct uufsd *disk, ufs2_daddr_ argument
127 berase_helper(struct uufsd *disk, ufs2_daddr_t blockno, ufs2_daddr_t size) argument
139 berase_helper(struct uufsd *disk, ufs2_daddr_t blockno, ufs2_daddr_t size) argument
172 berase(struct uufsd *disk, ufs2_daddr_t blockno, ufs2_daddr_t size) argument
[all...]
/freebsd-current/tests/sys/cddl/zfs/tests/cli_root/zpool_offline/
H A Dzpool_offline_001_pos.ksh65 for disk in $DISKLIST; do
66 log_must $ZPOOL online $TESTPOOL $disk
67 check_state $TESTPOOL $disk "online"
69 log_fail "Unable to online $disk"
86 for disk in $DISKLIST; do
90 log_must $ZPOOL offline ${args[$i]} $TESTPOOL $disk
91 check_state $TESTPOOL $disk "offline"
93 log_fail "$disk of $TESTPOOL did not match offline state"
96 log_mustnot $ZPOOL offline ${args[$i]} $TESTPOOL $disk
97 check_state $TESTPOOL $disk "onlin
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/nopwrite/
H A Dsetup.ksh21 disk=${DISKS%% *}
23 default_volume_setup $disk
/freebsd-current/tests/sys/cddl/zfs/tests/online_offline/
H A Donline_offline_001_pos.ksh36 for disk in $DISKS; do
37 log_must $ZPOOL offline $TESTPOOL $disk
38 check_state $TESTPOOL $disk "offline"
40 log_fail "$disk of $TESTPOOL is not offline."
43 log_must $ZPOOL online $TESTPOOL $disk
44 check_state $TESTPOOL $disk "online"
46 log_fail "$disk of $TESTPOOL did not match online state"
55 log_assert "Turning a disk offline and back online during I/O completes."
/freebsd-current/tools/tools/bootparttest/
H A Dbootparttest.c33 #include <disk.h>
55 .dv_name = "disk",
59 struct disk { struct
65 } disk; variable in typeref:struct:disk
80 ret = pread(disk.fd, buf, size,
81 (blk + dev->d_offset) * disk.sectorsize);
96 "<disk image file name>", argv[0]);
97 memset(&disk, 0, sizeof(disk));
103 disk
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/
H A Dremoval_all_vdev.ksh27 for disk in $DISKS; do
28 if [[ "$disk" != "$REMOVEDISK" ]]; then
29 log_must zpool remove $TESTPOOL $disk
31 log_mustnot vdevs_in_pool $TESTPOOL $disk
37 log_mustnot zpool remove $TESTPOOL $disk
/freebsd-current/tests/sys/cddl/zfs/tests/cli_root/zpool_online/
H A Dzpool_online_001_pos.ksh63 for disk in $DISKLIST; do
64 log_must $ZPOOL online $TESTPOOL $disk
65 check_state $TESTPOOL $disk "online"
67 log_fail "Unable to online $disk"
83 for disk in $DISKLIST; do
86 log_must $ZPOOL offline $TESTPOOL $disk
87 check_state $TESTPOOL $disk "offline"
89 log_fail "$disk of $TESTPOOL did not match offline state"
92 log_must $ZPOOL online ${args[$i]} $TESTPOOL $disk
93 check_state $TESTPOOL $disk "onlin
[all...]
/freebsd-current/tests/sys/cddl/zfs/tests/zinject/
H A Dsetup.ksh34 # in the given disk to avoid slice overlapping.
40 for disk in `$ECHO $DISKSARRAY`; do
41 cleanup_devices $disk
43 partition_disk $SIZE $disk 7
/freebsd-current/contrib/netbsd-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
[all...]

Completed in 181 milliseconds

1234567891011>>