From nobody Sat Jan 29 12:31:13 2022 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 267D5198B987 for ; Sat, 29 Jan 2022 12:31:19 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (mailserver.netfence.it [78.134.96.152]) (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 (2048 bits) client-digest SHA256) (Client CN "mailserver.netfence.it", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JmDFy1m0Tz3qS3 for ; Sat, 29 Jan 2022 12:31:18 +0000 (UTC) (envelope-from ml@netfence.it) Received: from [10.1.2.18] (mailserver.netfence.it [78.134.96.152]) (authenticated bits=0) by soth.netfence.it (8.17.1/8.17.1) with ESMTPSA id 20TCVDW6026758 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Sat, 29 Jan 2022 13:31:13 +0100 (CET) (envelope-from ml@netfence.it) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfence.it; s=202111; t=1643459476; bh=BQvCufHHFWIPkH7QJ67o7Tyu6EkBfw5i7pahkWIYi10=; h=Date:Subject:To:References:From:In-Reply-To; b=zZ85dfDl0/AAaCx6UTmWxUyc20xnX65WM/jFsMhXGZcpODD6JdyOQuPY7jMEf4y8F FO8paJl45py7qzxkvJPaSAV1KZyt4G3gq7ivHdLh2tghArKbslEEiojkzgcSX8NLvb OUa4BDqmSrFXh3TsaZCQj7fFcDk/2LmNV2JE8B00= X-Authentication-Warning: soth.netfence.it: Host mailserver.netfence.it [78.134.96.152] claimed to be [10.1.2.18] Message-ID: Date: Sat, 29 Jan 2022 13:31:13 +0100 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [ZFS] file in encrypted dataset disappears on first reboot Content-Language: en-US To: questions@freebsd.org References: <308caf55-7fad-3b24-0f6c-3d7bb9a9ca1b@netfence.it> From: Andrea Venturoli In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 X-Rspamd-Queue-Id: 4JmDFy1m0Tz3qS3 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=netfence.it header.s=202111 header.b=zZ85dfDl; dmarc=pass (policy=none) header.from=netfence.it; spf=pass (mx1.freebsd.org: domain of ml@netfence.it designates 78.134.96.152 as permitted sender) smtp.mailfrom=ml@netfence.it X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[netfence.it:s=202111]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:78.134.96.152]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; NEURAL_SPAM_SHORT(1.00)[1.000]; DKIM_TRACE(0.00)[netfence.it:+]; DMARC_POLICY_ALLOW(-0.50)[netfence.it,none]; MLMMJ_DEST(0.00)[questions]; RCVD_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:35612, ipnet:78.134.0.0/17, country:IT]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 1/29/22 12:51, Taceant Omnes wrote: > root@fbsd-vm:~ # zfs get mounted zroot/enc > NAME PROPERTY VALUE SOURCE > zroot/enc mounted no - There it is! > So the property is not mounted but it allows me to create a file on > it? Not exatcly. If a dataset is not mounted you are NOT creating a file on it. Rather you are creating it in its parent (i.e. in directory enc on dataset zroot). This is like any other filesystem. > And still don't understand how file disappears only after the > first reboot but not the second! You initially created the file on the (mounted) dataset. You reboot and it was not mounted, so you didn't see it. You created the file once again, but (see above) not on the dataset you think (because it's unmounted). You reboot again and saw the second file (since the dataset was still unmounted). If you mount the dataset, you'll see the first file. > The dataset is automatically mounted after I create it Yes. > and after rebooting, so I don't think this is a mount problem. Seems not. bye av.