crypto.c (49780a582d8bcedf098237f8997214c8424124be) | crypto.c (b92902dfeaafbceaf744ab7473f2d070284f6172) |
---|---|
1/* 2 * QEMU block full disk encryption 3 * 4 * Copyright (c) 2015-2016 Red Hat, Inc. 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either --- 587 unchanged lines hidden (view full) --- 596 } 597 598 ret = 0; 599fail: 600 bdrv_unref(bs); 601 return ret; 602} 603 | 1/* 2 * QEMU block full disk encryption 3 * 4 * Copyright (c) 2015-2016 Red Hat, Inc. 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either --- 587 unchanged lines hidden (view full) --- 596 } 597 598 ret = 0; 599fail: 600 bdrv_unref(bs); 601 return ret; 602} 603 |
604static int coroutine_fn block_crypto_co_create_opts_luks(const char *filename, | 604static int coroutine_fn block_crypto_co_create_opts_luks(BlockDriver *drv, 605 const char *filename, |
605 QemuOpts *opts, 606 Error **errp) 607{ 608 QCryptoBlockCreateOptions *create_opts = NULL; 609 BlockDriverState *bs = NULL; 610 QDict *cryptoopts; 611 PreallocMode prealloc; 612 char *buf = NULL; --- 152 unchanged lines hidden --- | 606 QemuOpts *opts, 607 Error **errp) 608{ 609 QCryptoBlockCreateOptions *create_opts = NULL; 610 BlockDriverState *bs = NULL; 611 QDict *cryptoopts; 612 PreallocMode prealloc; 613 char *buf = NULL; --- 152 unchanged lines hidden --- |