Print this page
5857 lofiadm should ask passphrase once if the crypto is already set up
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Toomas Soome <tsoome@me.com>

*** 20,29 **** --- 20,30 ---- */ /* * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. * * Copyright 2013 Nexenta Systems, Inc. All rights reserved. + * Copyright (c) 2016 Andrey Sokolov */ /* * lofi (loopback file) driver - allows you to attach a file to a device, * which can then be accessed through that device. The simple model is that
*** 130,148 **** #include <sys/crypto/common.h> #include <sys/crypto/api.h> #include <sys/rctl.h> #include <LzmaDec.h> - /* - * The basis for CRYOFF is derived from usr/src/uts/common/sys/fs/ufs_fs.h. - * Crypto metadata, if it exists, is located at the end of the boot block - * (BBOFF + BBSIZE, which is SBOFF). The super block and everything after - * is offset by the size of the crypto metadata which is handled by - * lsp->ls_crypto_offset. - */ - #define CRYOFF ((off_t)8192) - #define NBLOCKS_PROP_NAME "Nblocks" #define SIZE_PROP_NAME "Size" #define ZONE_PROP_NAME "zone" #define SETUP_C_DATA(cd, buf, len) \ --- 131,140 ----