MCPcopy Create free account
hub / github.com/F-Stack/f-stack / user_release_one

Function user_release_one

freebsd/contrib/openzfs/cmd/ztest/ztest.c:5721–5735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5719}
5720
5721static int
5722user_release_one(const char *snapname, const char *holdname)
5723{
5724 nvlist_t *snaps, *holds;
5725 int error;
5726
5727 snaps = fnvlist_alloc();
5728 holds = fnvlist_alloc();
5729 fnvlist_add_boolean(holds, holdname);
5730 fnvlist_add_nvlist(snaps, snapname, holds);
5731 fnvlist_free(holds);
5732 error = dsl_dataset_user_release(snaps, NULL);
5733 fnvlist_free(snaps);
5734 return (error);
5735}
5736
5737/*
5738 * Test snapshot hold/release and deferred destroy.

Callers 1

ztest_dmu_snapshot_holdFunction · 0.85

Calls 5

fnvlist_allocFunction · 0.85
fnvlist_add_booleanFunction · 0.85
fnvlist_add_nvlistFunction · 0.85
fnvlist_freeFunction · 0.85
dsl_dataset_user_releaseFunction · 0.85

Tested by

no test coverage detected