dsl_userhold.c (251646) | dsl_userhold.c (252219) |
---|---|
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 --- 112 unchanged lines hidden (view full) --- 121 * reported if needed, such as when all holds fail. 122 */ 123 fnvlist_add_int32(dduha->dduha_errlist, name, error); 124 if (error != ENOENT) 125 return (error); 126 } 127 } 128 | 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 --- 112 unchanged lines hidden (view full) --- 121 * reported if needed, such as when all holds fail. 122 */ 123 fnvlist_add_int32(dduha->dduha_errlist, name, error); 124 if (error != ENOENT) 125 return (error); 126 } 127 } 128 |
129 /* Return ENOENT if no holds would be created. */ 130 if (nvlist_empty(dduha->dduha_chkholds)) 131 return (SET_ERROR(ENOENT)); 132 | |
133 return (0); 134} 135 136 137static void 138dsl_dataset_user_hold_sync_one_impl(nvlist_t *tmpholds, dsl_dataset_t *ds, 139 const char *htag, minor_t minor, uint64_t now, dmu_tx_t *tx) 140{ --- 322 unchanged lines hidden (view full) --- 463 * Non-existent snapshots are put on the errlist, 464 * but don't cause an overall failure. 465 */ 466 if (error != ENOENT) 467 return (error); 468 } 469 } 470 | 129 return (0); 130} 131 132 133static void 134dsl_dataset_user_hold_sync_one_impl(nvlist_t *tmpholds, dsl_dataset_t *ds, 135 const char *htag, minor_t minor, uint64_t now, dmu_tx_t *tx) 136{ --- 322 unchanged lines hidden (view full) --- 459 * Non-existent snapshots are put on the errlist, 460 * but don't cause an overall failure. 461 */ 462 if (error != ENOENT) 463 return (error); 464 } 465 } 466 |
471 /* Return ENOENT if none of the holds existed. */ 472 if (nvlist_empty(ddura->ddura_chkholds)) 473 return (SET_ERROR(ENOENT)); 474 | |
475 return (0); 476} 477 478static void 479dsl_dataset_user_release_sync_one(dsl_dataset_t *ds, nvlist_t *holds, 480 dmu_tx_t *tx) 481{ 482 dsl_pool_t *dp = ds->ds_dir->dd_pool; --- 189 unchanged lines hidden --- | 467 return (0); 468} 469 470static void 471dsl_dataset_user_release_sync_one(dsl_dataset_t *ds, nvlist_t *holds, 472 dmu_tx_t *tx) 473{ 474 dsl_pool_t *dp = ds->ds_dir->dd_pool; --- 189 unchanged lines hidden --- |