/titanic_52/usr/src/test/zfs-tests/tests/functional/nopwrite/ |
H A D | nopwrite_copies.ksh | 26 # 1. Create a clone with copies set higher than the origin fs 32 origin="$TESTPOOL/$TESTFS" 37 datasetexists $origin && log_must $ZFS destroy -R $origin 38 log_must $ZFS create -o mountpoint=$TESTDIR $origin 44 log_must $ZFS set compress=on $origin 45 log_must $ZFS set checksum=sha256 $origin 48 $ZFS snapshot $origin@a || log_fail "zfs snap failed" 49 log_must $ZFS clone $origin@a $origin/clon [all...] |
H A D | nopwrite_negative.ksh | 27 # 1. The file in the origin ds is written without compression or sha256. 28 # 2. The file in the origin ds is written before sha256 checksum is turned on. 34 origin="$TESTPOOL/$TESTFS" 39 datasetexists $origin && log_must $ZFS destroy -R $origin 40 log_must $ZFS create -o mountpoint=$TESTDIR $origin 45 # Data written into origin fs without compression or sha256 48 $ZFS snapshot $origin@a || log_fail "zfs snap failed" 49 log_must $ZFS clone -o compress=on $origin@a $origin/clon [all...] |
H A D | nopwrite_recsize.ksh | 26 # 1. Create an origin fs that's suitable to make nopwrite clones. 28 # checksum, and verify overwriting the origin file consumes no new space. 32 origin="$TESTPOOL/$TESTFS" 37 datasetexists $origin && log_must $ZFS destroy -R $origin 38 log_must $ZFS create -o mountpoint=$TESTDIR $origin 43 log_must $ZFS set compress=on $origin 44 log_must $ZFS set checksum=sha256 $origin 47 $ZFS snapshot $origin@a || log_fail "zfs snap failed" 48 log_must $ZFS clone $origin [all...] |
H A D | nopwrite_varying_compression.ksh | 24 # Verify that if the checksum on the origin and clone is sha256, any compression 28 # 1. Create an origin dataset with compression and sha256 checksum. 29 # 2. Write a 64M file into the origin dataset. 31 # 3a. Create a snap and clone (inheriting the checksum property) of the origin. 38 origin="$TESTPOOL/$TESTFS" 43 datasetexists $origin && log_must $ZFS destroy -R $origin 44 log_must $ZFS create -o mountpoint=$TESTDIR $origin 49 log_must $ZFS set compress=on $origin 50 log_must $ZFS set checksum=sha256 $origin [all...] |
H A D | nopwrite_sync.ksh | 26 # 1. Create an origin fs with compression and sha256. 27 # 2. Clone origin such that it inherits the properies. 32 origin="$TESTPOOL/$TESTFS" 37 datasetexists $origin && log_must $ZFS destroy -R $origin 38 log_must $ZFS create -o mountpoint=$TESTDIR $origin 43 log_must $ZFS set compress=on $origin 44 log_must $ZFS set checksum=sha256 $origin 47 $ZFS snapshot $origin@a || log_fail "zfs snap failed" 48 log_must $ZFS clone $origin [all...] |
H A D | nopwrite_mtime.ksh | 32 origin="$TESTPOOL/$TESTFS" 37 datasetexists $origin && log_must $ZFS destroy -R $origin 38 log_must $ZFS create -o mountpoint=$TESTDIR $origin 43 log_must $ZFS set compress=on $origin 44 log_must $ZFS set checksum=sha256 $origin 47 $ZFS snapshot $origin@a || log_fail "zfs snap failed" 48 log_must $ZFS clone $origin@a $origin/clone 63 log_must verify_nopwrite $origin [all...] |
H A D | nopwrite_volume.ksh | 27 # 2. Overwrite the same blocks from the origin vol and verify that 32 origin="$TESTPOOL/$TESTVOL" 34 vol="/dev/zvol/rdsk/$origin" 40 datasetexists $origin && log_must $ZFS destroy -R $origin 46 log_must $ZFS set compress=on $origin 47 log_must $ZFS set checksum=sha256 $origin 50 $ZFS snapshot $origin@a || log_fail "zfs snap failed" 51 log_must $ZFS clone $origin@a $clone 56 log_must verify_nopwrite $origin [all...] |
H A D | nopwrite_promoted_clone.ksh | 29 # 3. Overwrite the file in the clone (former origin fs) and verify it 34 origin="$TESTPOOL/$TESTFS" 39 datasetexists $origin && log_must $ZFS destroy -R $TESTPOOL/clone 40 log_must $ZFS create -o mountpoint=$TESTDIR $origin 45 log_must $ZFS set compress=on $origin 46 log_must $ZFS set checksum=sha256 $origin 49 $ZFS snapshot $origin@a || log_fail "zfs snap failed" 50 log_must $ZFS clone $origin@a $TESTPOOL/clone 56 log_must verify_nopwrite $TESTPOOL/clone $TESTPOOL/clone@a $origin
|
H A D | nopwrite.shlib | 24 typeset origin=$1 31 for i in origin snap clone; do 43 if [[ "$(get_prop type $origin)" = "volume" ]]; then 44 typeset rr=$(get_prop refreserv $origin)
|
/titanic_52/usr/src/test/zfs-tests/tests/functional/rsend/ |
H A D | rsend_008_pos.ksh | 57 typeset origin 60 origin=$(get_prop origin ${dtst[$i]}) 62 if [[ $origin != "-" ]]; then 69 origin=$(get_prop origin $POOL2) 70 if [[ $origin != "-" ]]; then
|
/titanic_52/usr/src/lib/libcommputil/common/ |
H A D | sdp_parse_helper.c | 46 sdp_free_origin(sdp_origin_t *origin) in sdp_free_origin() argument 48 if (origin != NULL) { in sdp_free_origin() 49 if (origin->o_username != NULL) in sdp_free_origin() 50 free(origin->o_username); in sdp_free_origin() 51 if (origin->o_nettype != NULL) in sdp_free_origin() 52 free(origin->o_nettype); in sdp_free_origin() 53 if (origin->o_addrtype != NULL) in sdp_free_origin() 54 free(origin->o_addrtype); in sdp_free_origin() 55 if (origin->o_address != NULL) in sdp_free_origin() 56 free(origin in sdp_free_origin() [all...] |
H A D | sdp.c | 294 * Adds origin field to the session. 302 sdp_origin_t *origin; in sdp_add_origin() local 311 origin = calloc(1, sizeof (sdp_origin_t)); in sdp_add_origin() 312 if (origin == NULL) in sdp_add_origin() 314 origin->o_id = id; in sdp_add_origin() 315 origin->o_version = ver; in sdp_add_origin() 316 if ((ret = commp_add_str(&origin->o_username, name, strlen(name))) != 0) in sdp_add_origin() 318 if ((ret = commp_add_str(&origin->o_nettype, nettype, in sdp_add_origin() 322 if ((ret = commp_add_str(&origin->o_addrtype, addrtype, in sdp_add_origin() 326 if ((ret = commp_add_str(&origin in sdp_add_origin() 830 sdp_origin_t *origin; sdp_clone_session() local 965 sdp_origin_t *origin; sdp_session_to_str() local [all...] |
/titanic_52/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_print.c | 50 static size_t prune_origin(const char *name, const char *origin); 54 const u_char **p, const char *origin, 83 const char *name_ctx, const char *origin, in ns_sprintrr() argument 91 name_ctx, origin, buf, buflen); in ns_sprintrr() 105 const char *name_ctx, const char *origin, in ns_sprintrrf() argument 122 len = prune_origin(name, origin); in ns_sprintrrf() 130 if (((origin == NULL || origin[0] == '\0') || in ns_sprintrrf() 131 (origin[0] != '.' && origin[ in ns_sprintrrf() 1091 prune_origin(const char * name,const char * origin) prune_origin() argument 1160 addname(const u_char * msg,size_t msglen,const u_char ** pp,const char * origin,char ** buf,size_t * buflen) addname() argument [all...] |
/titanic_52/usr/src/cmd/acct/lib/ |
H A D | substr.c | 28 Place the `len' length substring of `as' starting at `as[origin]' 38 char *substr(as, aresult, origin, len) in substr() argument 40 int origin; 45 s = as + origin;
|
/titanic_52/usr/src/lib/libzfs_core/common/ |
H A D | libzfs_core.c | 187 lzc_clone(const char *fsname, const char *origin, in lzc_clone() argument 192 fnvlist_add_string(args, "origin", origin); in lzc_clone() 454 * or it can be the origin of "snapname"'s filesystem, or an earlier 455 * snapshot in the origin, etc. 552 recv_impl(const char *snapname, nvlist_t *props, const char *origin, in recv_impl() argument 594 /* zc_string is name of clone origin (if DRR_FLAG_CLONE) */ in recv_impl() 595 if (origin != NULL) in recv_impl() 596 (void) strlcpy(zc.zc_string, origin, sizeof (zc.zc_string)); in recv_impl() 634 * clone, its origin snapsho 644 lzc_receive(const char * snapname,nvlist_t * props,const char * origin,boolean_t force,int fd) lzc_receive() argument 657 lzc_receive_resumable(const char * snapname,nvlist_t * props,const char * origin,boolean_t force,int fd) lzc_receive_resumable() argument 676 lzc_receive_with_header(const char * snapname,nvlist_t * props,const char * origin,boolean_t force,boolean_t resumable,int fd,const dmu_replay_record_t * begin_record) lzc_receive_with_header() argument [all...] |
/titanic_52/usr/src/test/zfs-tests/tests/functional/delegate/ |
H A D | delegate_common.kshlib | 998 typeset fs_orig=$(get_prop origin $fs) 999 typeset clone_orig=$(get_prop origin $clone) 1004 if [[ $fs_orig != $(get_prop origin $fs) || \ 1005 $clone_orig != $(get_prop origin $clone) ]]; then 1012 if [[ $fs_orig != $(get_prop origin $fs) || \ 1013 $clone_orig != $(get_prop origin $clone) ]]; then 1020 if [[ $fs_orig != $(get_prop origin $fs) || \ 1021 $clone_orig != $(get_prop origin $clone) ]]; then 1030 if [[ $snap != $(get_prop origin $clone) || \ 1031 $clone_orig != $(get_prop origin [all...] |
/titanic_52/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_promote/ |
H A D | zfs_promote_004_pos.ksh | 73 # Array which stores the origin snapshots created in the origin filesystem 79 # The data will inject into the origin filesystem 129 origin_prop=$(get_prop origin $fs) 132 origin_prop=$(get_prop origin $clone) 135 origin_prop=$(get_prop origin $clone1)
|
H A D | zfs_promote_008_pos.ksh | 71 origin_prop=$(get_prop origin $vol) 74 origin_prop=$(get_prop origin $clone)
|
H A D | zfs_promote_002_pos.ksh | 37 # 'zfs promote' can deal with multiple snapshots in the origin filesystem. 94 origin_prop=$(get_prop origin $fs) 97 origin_prop=$(get_prop origin $clone)
|
H A D | zfs_promote_001_pos.ksh | 38 # on its "origin" snapshot. 78 origin_prop=$(get_prop origin $ds) 81 origin_prop=$(get_prop origin $c_ds)
|
H A D | zfs_promote_003_pos.ksh | 42 # 3. Verify the origin filesystem and promoted filesystem include 74 # Array which stores the origin snapshots created in the origin filesystem 79 # The data will inject into the origin filesystem 126 origin_prop=$(get_prop origin $fs) 129 origin_prop=$(get_prop origin $clone)
|
/titanic_52/usr/src/lib/brand/shared/zone/ |
H A D | uninstall.ksh | 119 # first figure out if the target fs has an origin snapshot 120 zd_origin=`/sbin/zfs get -H -o value origin "$zd_fs1"` 122 printf "$f_2_zfs_get\n" origin "$zd_fs1" >&2 147 # we ignore errors while trying to destroy the origin since 148 # the origin could have been used as the source for other 305 # origin) we need to get rid of all it's snapshots. The "easiest" 308 # - delete any uncloned origin snapshots 309 # - find the oldest clone of the youngest origin snapshot (which 312 # the origin and the oldest clone. 313 # - if so, find any clones of those conflicting origin snapshot [all...] |
/titanic_52/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_receive/ |
H A D | zfs_receive_010_pos.ksh | 156 cat /tmp/zr010p | log_must $ZFS receive -o origin=$fs@s1 $rfs 166 cat /tmp/zr010p | log_must $ZFS receive -o origin=$fs2@s1 $rfs 172 cat /tmp/zr010p2 | log_must $ZFS receive -o origin=$fs@s1 $rfs
|
/titanic_52/usr/src/cmd/sort/common/ |
H A D | streams_mmap.c | 193 caddr_t origin = str->s_type.SF.s_release_origin; in stream_mmap_release_line() local 197 (origin + release) >= DEFAULT_RELEASE_SIZE) in stream_mmap_release_line() 203 if (madvise(origin, release, MADV_DONTNEED) == -1) in stream_mmap_release_line()
|
/titanic_52/usr/src/uts/common/fs/zfs/ |
H A D | dsl_dataset.c | 798 dsl_dataset_create_sync_dd(dsl_dir_t *dd, dsl_dataset_t *origin, in dsl_dataset_create_sync_dd() argument 807 if (origin == NULL) in dsl_dataset_create_sync_dd() 808 origin = dp->dp_origin_snap; in dsl_dataset_create_sync_dd() 810 ASSERT(origin == NULL || origin->ds_dir->dd_pool == dp); in dsl_dataset_create_sync_dd() 811 ASSERT(origin == NULL || dsl_dataset_phys(origin)->ds_num_children > 0); in dsl_dataset_create_sync_dd() 832 if (origin == NULL) { in dsl_dataset_create_sync_dd() 835 dsl_dataset_t *ohds; /* head of the origin snapshot */ in dsl_dataset_create_sync_dd() 837 dsphys->ds_prev_snap_obj = origin in dsl_dataset_create_sync_dd() 919 dsl_dataset_create_sync(dsl_dir_t * pdd,const char * lastname,dsl_dataset_t * origin,uint64_t flags,cred_t * cr,dmu_tx_t * tx) dsl_dataset_create_sync() argument 2979 dsl_dataset_t *origin = clone->ds_prev; dsl_dataset_clone_swap_sync_impl() local 3544 dsl_dataset_t *origin; dsl_dataset_is_before() local [all...] |