From owner-freebsd-current@freebsd.org Sat Oct 17 13:08:08 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 47DBE437EA4 for ; Sat, 17 Oct 2020 13:08:08 +0000 (UTC) (envelope-from freqlabs@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CD3Gw1BvZz47j4 for ; Sat, 17 Oct 2020 13:08:08 +0000 (UTC) (envelope-from freqlabs@FreeBSD.org) Received: from Ryans-MBP.attlocal.net (unknown [IPv6:2600:1700:358a:c660:8100:aa15:a7e4:9e5e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: freqlabs/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id EB33921AF4 for ; Sat, 17 Oct 2020 13:08:07 +0000 (UTC) (envelope-from freqlabs@FreeBSD.org) Subject: Re: OpenZFS: using an encrypted dataset without a prompt for its passphrase To: freebsd-current@freebsd.org References: <4fb31ed5-2281-13cf-e45e-28dae27f26b3@FreeBSD.org> <267214f8-a099-b16c-1a13-c082ec95c4b8@gmail.com> From: Ryan Moeller Message-ID: <208f93cb-1228-6631-aa9e-afb83c43d4e0@FreeBSD.org> Date: Sat, 17 Oct 2020 09:08:07 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <267214f8-a099-b16c-1a13-c082ec95c4b8@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Oct 2020 13:08:08 -0000 On 10/17/20 9:02 AM, Graham Perrin wrote: > root@momh167-gjp4-8570p:~ # date ; uname -v ; uptime > Sat Oct 17 14:00:10 BST 2020 > FreeBSD 13.0-CURRENT #69 r366648: Tue Oct 13 05:49:05 BST 2020 > root@momh167-gjp4-8570p:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG >  2:00PM  up 9 mins, 5 users, load averages: 0.29, 0.56, 0.31 > root@momh167-gjp4-8570p:~ # zpool export Transcend && ls -hl > /Volumes/t500/VirtualBox ; zpool import Transcend && ls -hl > /Volumes/t500/VirtualBox > ls: /Volumes/t500/VirtualBox: No such file or directory > total 18 > drwxr-xr-x  2 grahamperrin  grahamperrin     2B Sep 11 19:28 CloudReady > drwxr-xr-x  6 grahamperrin  grahamperrin     6B May  8 09:04 FreeBSD > drwxr-xr-x  4 grahamperrin  grahamperrin     4B Sep 20 17:03 Linux > drwxr-xr-x  4 grahamperrin  grahamperrin     7B Oct 16 17:41 Windows > root@momh167-gjp4-8570p:~ # zfs get all Transcend/VirtualBox | grep -e > crypt -e key -e mountpoint | sort > Transcend/VirtualBox  encryption aes-256-gcm               - > Transcend/VirtualBox  encryptionroot Transcend/VirtualBox      - > Transcend/VirtualBox  keyformat passphrase                - > Transcend/VirtualBox  keylocation prompt                    local > Transcend/VirtualBox  keystatus unavailable               - > Transcend/VirtualBox  mountpoint /Volumes/t500/VirtualBox inherited > from Transcend > root@momh167-gjp4-8570p:~ # zfs --version > zfs-0.8.0-1 > zfs-kmod-v2020100400-zfs_79f0935fa > root@momh167-gjp4-8570p:~ # This doesn't necessarily mean the encrypted filesystem is mounted though. The contents you are seeing must be in the parent filesystem. Check the output of the mount command, you should find Transcend/VirtualBox is not mounted.