/titanic_51/usr/src/uts/common/io/ |
H A D | srn.c | 58 * Minor number is instance<<8 + clone minor from range 1-255; 259 int clone; in srn_chpoll() local 261 clone = SRN_MINOR_TO_CLONE(getminor(dev)); in srn_chpoll() 262 if ((events & (POLLIN | POLLRDNORM)) && srn_poll_cnt[clone]) { in srn_chpoll() 267 *phpp = &srn_pollhead[clone]; in srn_chpoll() 303 int clone; in srn_open() local 309 for (clone = 1; clone < SRN_MAX_CLONE - 1; clone++) in srn_open() 310 if (!srn.srn_clones[clone]) in srn_open() 337 int clone; srn_close() local 377 int clone = SRN_MINOR_TO_CLONE(getminor(dev)); srn_ioctl() local 519 int clone, count; srn_notify() local [all...] |
/titanic_51/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_promote/ |
H A D | zfs_promote_003_pos.ksh | 40 # 1. Create multiple snapshots and a clone to a middle point snapshot 41 # 2. Promote the clone filesystem 43 # correct datasets seperated by the clone point. 70 clone=$TESTPOOL/$TESTCLONE 76 # Array which stores the snapshots existing in the clone after promote operation 77 set -A csnap "${clone}@$TESTSNAP" "${clone}@$TESTSNAP1" "${clone}@$TESTSNAP2" \ 78 "${clone}@$TESTSNAP3" 86 csnapdir=/$clone/ [all...] |
H A D | zfs_promote_005_pos.ksh | 36 # 2. Create clone of fs. 37 # 3. Unmount fs, then verify 'zfs promote' clone still succeed. 45 datasetexists $clone && log_must $ZFS destroy $clone 48 if datasetexists $clone ; then 50 log_must $ZFS destroy $clone 59 clone=$TESTPOOL/$TESTCLONE 63 log_must $ZFS clone $fssnap $clone 65 log_must $ZFS promote $clone [all...] |
H A D | zfs_promote_006_neg.ksh | 33 # (2) non-existent clone 34 # (3) non-clone datasets: 52 "$clone $TESTPOOL/$TESTFS" "- $clone" "-? $clone" 56 if datasetexists $clone; then 57 log_must $ZFS destroy $clone 69 clone=$TESTPOOL/$TESTCLONE 71 log_must $ZFS clone $snap $clone [all...] |
H A D | zfs_promote_002_pos.ksh | 40 # 1. Create multiple snapshots and a clone of the last snapshot 41 # 2. Promote the clone filesystem 69 clone=$TESTPOOL/$TESTCLONE 70 csnap=$clone@$TESTSNAP 71 csnap1=$clone@$TESTSNAP1 79 log_must $ZFS clone $snap1 $clone 80 log_must $MKFILE $FILESIZE /$clone/$CLONEFILE 82 log_must $ZFS promote $clone 97 origin_prop=$(get_prop origin $clone) [all...] |
H A D | zfs_promote_004_pos.ksh | 41 # 2. Promote a clone filesystem 50 log_must $ZFS promote $clone 64 log_assert "'zfs promote' can deal with multi-level clone." 68 clone=$TESTPOOL/$TESTCLONE 75 # Array which stores the snapshots existing in the first clone 76 set -A csnap "${clone}@$TESTSNAP3" "${clone}@$TESTSNAP4" "${clone}@$TESTSNAP5" 77 # Array which stores the snapshots existing in the second clone after promote operation 83 # The data will inject into the first clone [all...] |
H A D | zfs_promote_008_pos.ksh | 31 # 'zfs promote' can successfully promote a volume clone. 34 # 1. Create a volume clone 35 # 2. Promote the volume clone 50 log_assert "'zfs promote' can promote a volume clone." 55 clone=$TESTPOOL/volclone 56 csnap=$clone@$TESTSNAP 60 log_must $ZFS clone $snap $clone 63 log_must $ZFS promote $clone 74 origin_prop=$(get_prop origin $clone) [all...] |
H A D | zfs_promote_001_pos.ksh | 37 # 'zfs promote' can promote a clone filesystem to no longer be dependent 41 # 1. Create a snapshot and a clone of the snapshot 42 # 2. Promote the clone filesystem 95 log_assert "'zfs promote' can promote a clone filesystem." 103 clone=$TESTPOOL/$TESTCLONE 104 cfile=/$clone/$CLONEFILE 105 csnap=$clone@$TESTSNAP 106 csnapfile=/$clone/.zfs/snapshot/$TESTSNAP/$TESTFILE0 113 log_must $ZFS clone $snap $clone [all...] |
H A D | zfs_promote_007_neg.ksh | 40 # 1. Create a snapshot and a clone of the snapshot 41 # 2. Create the same name snapshot for the clone 42 # 3. Promote the clone filesystem 63 clone=$TESTPOOL/$TESTCLONE 71 log_must $ZFS clone $snap $clone 72 log_must $MKFILE $FILESIZE /$clone/$CLONEFILE 75 log_mustnot $ZFS promote $clone
|
/titanic_51/usr/src/test/zfs-tests/tests/functional/nopwrite/ |
H A D | nopwrite_negative.ksh | 23 # Verify that duplicate writes to a clone are accounted as new data if the 29 # 3. The clone does not have compression. 30 # 4. The clone does not have the appropriate checksum. 49 log_must $ZFS clone -o compress=on $origin@a $origin/clone 50 log_must $ZFS set checksum=sha256 $origin/clone 51 $DD if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \ 53 log_mustnot verify_nopwrite $origin $origin@a $origin/clone 63 log_must $ZFS clone $origin@a $origin/clone [all...] |
H A D | nopwrite_promoted_clone.ksh | 23 # Verify that nopwrite still works for a dataset that becomes a clone via 27 # 1. Create a clone suitable for nopwrite. 28 # 2. Disable compression and checksum on the clone, and promote it. 29 # 3. Overwrite the file in the clone (former origin fs) and verify it 39 datasetexists $origin && log_must $ZFS destroy -R $TESTPOOL/clone 43 log_assert "nopwrite works on a dataset that becomes a clone via promotion." 50 log_must $ZFS clone $origin@a $TESTPOOL/clone 51 log_must $ZFS set compress=off $TESTPOOL/clone 52 log_must $ZFS set checksum=off $TESTPOOL/clone [all...] |
H A D | nopwrite_mtime.ksh | 26 # 1. Create a clone with nopwrite enabled. 27 # 2. Write to the file in that clone and verify the mtime and ctime change, 48 log_must $ZFS clone $origin@a $origin/clone 50 o_atime=$($LS -E% all $TESTDIR/clone/file | $AWK '/atime/ {print $4}') 51 o_ctime=$($LS -E% all $TESTDIR/clone/file | $AWK '/ctime/ {print $4}') 52 o_mtime=$($LS -E% all $TESTDIR/clone/file | $AWK '/mtime/ {print $4}') 53 $DD if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \ 55 atime=$($LS -E% all $TESTDIR/clone/file | $AWK '/atime/ {print $4}') 56 ctime=$($LS -E% all $TESTDIR/clone/fil [all...] |
H A D | nopwrite_volume.ksh | 26 # 1. Create a clone of a volume that fits the criteria for nopwrite. 33 clone="$TESTPOOL/clone" 35 volclone="/dev/zvol/rdsk/$clone" 51 log_must $ZFS clone $origin@a $clone 52 log_must $ZFS set compress=on $clone 53 log_must $ZFS set checksum=sha256 $clone 55 log_fail "dd into $clone failed." 56 log_must verify_nopwrite $origin $origin@a $clone [all...] |
H A D | nopwrite_copies.ksh | 26 # 1. Create a clone with copies set higher than the origin fs 49 log_must $ZFS clone $origin@a $origin/clone 50 $ZFS set copies=3 $origin/clone 51 $DD if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \ 53 log_mustnot verify_nopwrite $origin $origin@a $origin/clone 65 log_must $ZFS clone $origin@a $origin/clone 66 $ZFS set copies=1 $origin/clone 67 $DD if=/$TESTDIR/file of=/$TESTDIR/clone/fil [all...] |
/titanic_51/usr/src/test/zfs-tests/tests/functional/xattr/ |
H A D | xattr_005_pos.ksh | 35 # read/write/create/delete xattr on a clone filesystem 40 # 2. Snapshot the filesystem and clone it 42 # 4. Verify we can create new xattrs on new files created on the clone 47 log_must $ZFS destroy $TESTPOOL/$TESTFS/clone 52 log_assert "read/write/create/delete xattr on a clone filesystem" 59 # snapshot & clone the filesystem 61 log_must $ZFS clone $TESTPOOL/$TESTFS@snapshot1 $TESTPOOL/$TESTFS/clone 62 log_must $ZFS set mountpoint=$TESTDIR/clone $TESTPOOL/$TESTFS/clone [all...] |
/titanic_51/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_destroy/ |
H A D | zfs_destroy_007_neg.ksh | 42 # 2. Create a namespace-parent of origin clone. 43 # 3. Promote this clone 54 datasetexists $clone && log_must $ZFS destroy $clone 61 # Define variable $fssnap & and namespace-parent of origin clone. 64 clone=$fs/clone 65 clonesnap=$fs/clone@snap 71 log_must $ZFS clone $fssnap $clone [all...] |
H A D | zfs_destroy_004_pos.ksh | 52 datasetexists $clone && \ 53 log_must $ZFS destroy -f $clone 87 clone=$TESTPOOL/$TESTCLONE 91 # Create filesystem and clone in the storage pool, mount them and 99 log_must $ZFS clone $snap $clone 102 log_must $ZFS set mountpoint=$mntp2 $clone 104 for arg in "$fs1 $mntp1" "$clone $mntp2"; do
|
/titanic_51/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_history/ |
H A D | zpool_history_001_neg.ksh | 43 clone=$TESTPOOL/clone 46 "-v $TESTPOOL" "$snap" "$clone" "nonexist" "TESTPOOL" 50 datasetexists $clone && log_must $ZFS destroy $clone 59 log_must $ZFS clone $snap $clone
|
/titanic_51/usr/src/test/zfs-tests/tests/functional/snapshot/ |
H A D | snapshot_012_pos.ksh | 37 # Verify 'snapshot -r' can create snapshot for promoted clone, and vice 38 # versa, a clone filesystem from the snapshot created by 'snapshot -r' 43 # 2. snapshot a filesystem and clone the snapshot 44 # 3. promote the clone 47 # 6. clone a snapshot from the snapshot tree 48 # 7. promote the clone 49 # 8. verify that the clone is promoted correctly. 64 if snapexists $clone@$TESTSNAP1; then 75 clone=$ctr/$TESTCLONE 80 snapctrclone=$clone [all...] |
/titanic_51/usr/src/test/zfs-tests/tests/functional/delegate/ |
H A D | delegate_common.kshlib | 223 clone) 316 clone) 757 typeset clone=$basefs/cfs.$stamp 760 user_run $user $ZFS clone $snap $clone 761 if datasetexists $clone ; then 766 user_run $user $ZFS clone $snap $clone 768 if datasetexists $clone ; then 773 user_run $user $ZFS clone [all...] |
/titanic_51/usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/ |
H A D | tpgs_tape.c | 168 struct scsi_failover_ops *sfo, *ssfo, clone; in tpgs_tape_init() local 170 /* clone SFO_NAME_SYM implementation for most things */ in tpgs_tape_init() 178 clone = *ssfo; in tpgs_tape_init() 179 clone.sfo_rev = sfo->sfo_rev; in tpgs_tape_init() 180 clone.sfo_name = sfo->sfo_name; in tpgs_tape_init() 181 clone.sfo_devices = sfo->sfo_devices; in tpgs_tape_init() 182 clone.sfo_init = sfo->sfo_init; in tpgs_tape_init() 183 clone.sfo_device_probe = sfo->sfo_device_probe; in tpgs_tape_init() 184 *sfo = clone; in tpgs_tape_init()
|
H A D | sym_hds.c | 120 struct scsi_failover_ops *sfo, *ssfo, clone; in hds_sym_init() local 122 /* clone SFO_NAME_SYM implementation for most things */ in hds_sym_init() 130 clone = *ssfo; in hds_sym_init() 131 clone.sfo_rev = sfo->sfo_rev; in hds_sym_init() 132 clone.sfo_name = sfo->sfo_name; in hds_sym_init() 133 clone.sfo_devices = sfo->sfo_devices; in hds_sym_init() 134 clone.sfo_init = sfo->sfo_init; in hds_sym_init() 135 clone.sfo_device_probe = sfo->sfo_device_probe; in hds_sym_init() 136 clone.sfo_device_unprobe = sfo->sfo_device_unprobe; in hds_sym_init() 137 clone in hds_sym_init() [all...] |
/titanic_51/usr/src/test/zfs-tests/tests/functional/userquota/ |
H A D | userquota_011_pos.ksh | 38 # snapshot,clone,rename,upgrade,send,receive. 43 # 2. Check set user|group quota via zfs snapshot|clone|list -o 45 # 4. Check the user|group quota can not change during zfs clone 51 for ds in $TESTPOOL/fs $TESTPOOL/fs-rename $TESTPOOL/fs-clone; do 76 log_note "clone fs gets its parent's userquota/groupquota initially" 77 log_must $ZFS clone -o userquota@$QUSER1=$UQUOTA_SIZE \ 79 $TESTPOOL/fs@snap $TESTPOOL/fs-clone 84 log_must check_quota "userquota@$QUSER1" $TESTPOOL/fs-clone "$UQUOTA_SIZE" 85 log_must check_quota "groupquota@$QGROUP" $TESTPOOL/fs-clone "$GQUOTA_SIZE" 88 $TESTPOOL/fs-clone >/de [all...] |
/titanic_51/usr/src/lib/libnisdb/ |
H A D | db_dictionary.cc | 626 * This routine clones an entire hash bucket chain. If you clone a 628 * clone of that entry, as well as the entire linked list. This can cause 632 * entires or lose entries. If you wish to clone the entire bucket chain 637 db_dictionary::db_clone_bucket(db_table_desc *bucket, db_table_desc **clone) in db_clone_bucket() argument 663 *clone = (db_table_desc *) calloc(1, (size_t) size * sizeof (char)); in db_clone_bucket() 664 if (!*clone) { in db_clone_bucket() 674 if (!xdr_db_table_desc(&xdrs, *clone)) { in db_clone_bucket() 676 free(*clone); in db_clone_bucket() 692 db_dictionary::change_table_name(db_table_desc *clone, char *tok, char *repl) in change_table_name() argument 698 while (clone) { in change_table_name() 845 db_table_desc *bucket, *np, *clone, *next_np; massage_dict() local 951 db_table_desc *tbl = NULL, *clone = NULL, *next_td = NULL; merge_dict() local 1055 db_table_desc *tbl, *clone; extract_entries() local 2243 db_table_desc *clone, *savenext = tbl->next; defer() local [all...] |
/titanic_51/usr/src/test/zfs-tests/tests/functional/bootfs/ |
H A D | bootfs_001_pos.ksh | 70 log_must $ZFS clone $TESTPOOL/$TESTFS@snap $TESTPOOL/clone 74 log_must $ZPOOL set bootfs=$TESTPOOL/clone $TESTPOOL 76 log_must $ZFS promote $TESTPOOL/clone 77 log_must $ZPOOL set bootfs=$TESTPOOL/clone $TESTPOOL
|