dsl_userhold.c (275782) | dsl_userhold.c (286575) |
---|---|
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 --- 338 unchanged lines hidden (view full) --- 347dsl_dataset_user_release_check_one(dsl_dataset_user_release_arg_t *ddura, 348 dsl_dataset_t *ds, nvlist_t *holds, const char *snapname) 349{ 350 uint64_t zapobj; 351 nvlist_t *holds_found; 352 objset_t *mos; 353 int numholds; 354 | 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 --- 338 unchanged lines hidden (view full) --- 347dsl_dataset_user_release_check_one(dsl_dataset_user_release_arg_t *ddura, 348 dsl_dataset_t *ds, nvlist_t *holds, const char *snapname) 349{ 350 uint64_t zapobj; 351 nvlist_t *holds_found; 352 objset_t *mos; 353 int numholds; 354 |
355 if (!dsl_dataset_is_snapshot(ds)) | 355 if (!ds->ds_is_snapshot) |
356 return (SET_ERROR(EINVAL)); 357 358 if (nvlist_empty(holds)) 359 return (0); 360 361 numholds = 0; 362 mos = ds->ds_dir->dd_pool->dp_meta_objset; 363 zapobj = dsl_dataset_phys(ds)->ds_userrefs_obj; --- 303 unchanged lines hidden --- | 356 return (SET_ERROR(EINVAL)); 357 358 if (nvlist_empty(holds)) 359 return (0); 360 361 numholds = 0; 362 mos = ds->ds_dir->dd_pool->dp_meta_objset; 363 zapobj = dsl_dataset_phys(ds)->ds_userrefs_obj; --- 303 unchanged lines hidden --- |