• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/openzfs/lib/libzfs/

Lines Matching defs:keylocation

132 	zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "Invalid keylocation"));
494 zfs_keyformat_t keyformat, char *keylocation, const char *fsname,
505 /* verify and parse the keylocation */
506 ret = zfs_prop_parse_keylocation(hdl, keylocation, &keyloc,
536 if ((ret = handler->zuh_handler(hdl, keylocation,
553 "Invalid keylocation."));
660 char *keylocation, nvlist_t *props, uint8_t **wkeydata, uint_t *wkeylen)
669 /* get key material from keyformat and keylocation */
670 ret = get_key_material(hdl, B_TRUE, newkey, keyformat, keylocation,
818 char *keylocation = NULL;
837 zfs_prop_to_name(ZFS_PROP_KEYLOCATION), &keylocation);
912 if (pcrypt == ZIO_CRYPT_OFF && keylocation == NULL &&
921 * Specifying a keylocation implies this will be a new encryption root.
924 if (keylocation != NULL && keyformat == ZFS_KEYFORMAT_NONE) {
931 /* default to prompt if no keylocation is specified */
932 if (keyformat != ZFS_KEYFORMAT_NONE && keylocation == NULL) {
933 keylocation = "prompt";
935 zfs_prop_to_name(ZFS_PROP_KEYLOCATION), keylocation);
944 if (keylocation != NULL) {
946 * 'zfs recv -o keylocation=prompt' won't work because stdin
949 if (!stdin_available && strcmp(keylocation, "prompt") == 0) {
952 "'prompt' keylocation because stdin is in use."));
957 B_TRUE, keyformat, keylocation, props, &wkeydata,
1091 char *keylocation = NULL;
1135 * if the caller has elected to override the keylocation property
1139 keylocation = alt_keylocation;
1145 "Failed to get keylocation for '%s'."),
1150 keylocation = prop_keylocation;
1176 keylocation, zfs_get_name(zhp), &key_material, &key_material_len,
1348 * keyformat, keylocation and pbkdf2iters. The actual validation of
1363 "Only keyformat, keylocation and pbkdf2iters may "
1399 char *keylocation = NULL;
1455 * Load keyformat and keylocation from the nvlist. Fetch from
1461 zfs_prop_to_name(ZFS_PROP_KEYLOCATION), &keylocation);
1483 if (keylocation == NULL) {
1490 "get existing keylocation "
1495 keylocation = prop_keylocation;
1507 /* default to prompt if no keylocation is specified */
1508 if (keylocation == NULL) {
1509 keylocation = "prompt";
1512 keylocation);
1520 zhp, B_TRUE, keyformat, keylocation, props, &wkeydata,