Lines Matching defs:policy
89 char *policy = NULL;
123 /* Get BE policy to create this snapshot under */
125 BE_ATTR_POLICY, DATA_TYPE_STRING, &policy, NULL) != 0) {
140 if ((ret = _be_create_snapshot(be_name, &snap_name, policy))
393 * policy - The clean-up policy type. (library wide use only)
401 _be_create_snapshot(char *be_name, char **snap_name, char *policy)
416 bt.policy = policy;
451 /* If BE policy not specified, use the default policy */
452 if (bt.policy == NULL) {
453 bt.policy = be_default_policy();
455 /* Validate policy type */
456 if (!valid_be_policy(bt.policy)) {
458 "invalid BE policy type (%s)\n"), bt.policy);
501 * cleanup policy there. Otherwise don't set one - this snapshot
502 * will always inherit the cleanup policy from its parent.
512 bt.policy) != 0) {
518 } else if (policy != NULL) {
520 * If an explicit cleanup policy was requested
524 "cleanup policy: ZFS pool version is %d\n"),