Lines Matching refs:volume

726 static char *make_bindname(const char *volume) {  in make_bindname()  argument
729 if (asprintf(&s, "@%" PRIx64"/cryptsetup/%s", random_u64(), volume) < 0) in make_bindname()
1749 const char *volume, *source, *key_file, *options; in run() local
1761 volume = argv[2]; in run()
1766 if (!filename_is_valid(volume)) in run()
1767 … return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Volume name '%s' is not valid.", volume); in run()
1781 volume, source, strempty(arg_type), strempty(arg_cipher)); in run()
1790 bindname = make_bindname(volume); in run()
1797 fn = strjoina(volume, ".key"); in run()
1806 log_debug("Automatically discovered key for volume '%s'.", volume); in run()
1820 status = crypt_status(cd, volume); in run()
1822 log_info("Volume %s already active.", volume); in run()
1856 … r = crypt_activate_by_token(cd, volume, CRYPT_ANY_TOKEN, NULL, flags); in run()
1858 … log_debug("Volume %s activated with LUKS token id %i.", volume, r); in run()
1902 … r = get_password(volume, source, until, tries == 0 && !arg_verify, &passwords); in run()
1911 … r = attach_tcrypt(cd, volume, key_file, key_data, key_data_size, passwords, flags); in run()
1913 …r = attach_luks_or_plain_or_bitlk(cd, volume, key_file, key_data, key_data_size, passwords, flags,… in run()
1936 const char *volume; in run() local
1938 volume = argv[2]; in run()
1940 if (!filename_is_valid(volume)) in run()
1941 … return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Volume name '%s' is not valid.", volume); in run()
1943 r = crypt_init_by_name(&cd, volume); in run()
1945 log_info("Volume %s already inactive.", volume); in run()
1953 r = crypt_deactivate(cd, volume); in run()