Lines Matching defs:policy
85 char *policy = NULL;
119 /* Get BE policy to create this snapshot under */
121 BE_ATTR_POLICY, DATA_TYPE_STRING, &policy, NULL) != 0) {
136 if ((ret = _be_create_snapshot(be_name, &snap_name, policy))
363 * policy - The clean-up policy type. (library wide use only)
371 _be_create_snapshot(char *be_name, char **snap_name, char *policy)
386 bt.policy = policy;
411 /* If BE policy not specified, use the default policy */
412 if (bt.policy == NULL) {
413 bt.policy = be_default_policy();
415 /* Validate policy type */
416 if (!valid_be_policy(bt.policy)) {
418 "invalid BE policy type (%s)\n"), bt.policy);
461 * cleanup policy there. Otherwise don't set one - this snapshot
462 * will always inherit the cleanup policy from its parent.
470 if (nvlist_add_string(ss_props, BE_POLICY_PROPERTY, bt.policy)
477 } else if (policy != NULL) {
479 * If an explicit cleanup policy was requested
483 "cleanup policy: ZFS pool version is %d\n"), pool_version);