dmu_send.c (282632) | dmu_send.c (283525) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 969 unchanged lines hidden (view full) --- 978 dsl_dataset_rele(snap, FTAG); 979 return (SET_ERROR(ETXTBSY)); 980 } 981 drba->drba_snapobj = ds->ds_prev->ds_object; 982 } 983 984 dsl_dataset_rele(snap, FTAG); 985 } else { | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 969 unchanged lines hidden (view full) --- 978 dsl_dataset_rele(snap, FTAG); 979 return (SET_ERROR(ETXTBSY)); 980 } 981 drba->drba_snapobj = ds->ds_prev->ds_object; 982 } 983 984 dsl_dataset_rele(snap, FTAG); 985 } else { |
986 /* if full, most recent snapshot must be $ORIGIN */ 987 if (dsl_dataset_phys(ds)->ds_prev_snap_txg >= TXG_INITIAL) 988 return (SET_ERROR(ENODEV)); 989 drba->drba_snapobj = dsl_dataset_phys(ds)->ds_prev_snap_obj; | 986 /* if full, then must be forced */ 987 if (!drba->drba_cookie->drc_force) 988 return (SET_ERROR(EEXIST)); 989 /* start from $ORIGIN@$ORIGIN, if supported */ 990 drba->drba_snapobj = dp->dp_origin_snap != NULL ? 991 dp->dp_origin_snap->ds_object : 0; |
990 } 991 992 return (0); 993 994} 995 996static int 997dmu_recv_begin_check(void *arg, dmu_tx_t *tx) --- 1233 unchanged lines hidden --- | 992 } 993 994 return (0); 995 996} 997 998static int 999dmu_recv_begin_check(void *arg, dmu_tx_t *tx) --- 1233 unchanged lines hidden --- |