Re: [ZFS] file in encrypted dataset disappears on first reboot

From: Taceant Omnes <taceant_at_gmail.com>
Date: Sat, 29 Jan 2022 11:51:23 UTC
On Sat, 29 Jan 2022 at 11:27, Taceant Omnes <taceant@gmail.com> wrote:
>
> On Sat, 29 Jan 2022 at 11:00, Andrea Venturoli <ml@netfence.it> wrote:
> > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261543
> > >
> >
> > You could try:
....
> > Other things to check:
> >
> > zfs list|grep zroot/enc
> > zfs get mounted zroot/enc
> > zfs get mountpoint zroot/enc

I ran those commands and a few more.


root@fbsd-vm:~ # zfs list | grep zroot/enc
zroot/enc            204K  32.8G      204K  /zroot/enc
root@fbsd-vm:~ # zfs get mounted zroot/enc
NAME       PROPERTY  VALUE    SOURCE
zroot/enc  mounted   no       -
root@fbsd-vm:~ # zfs get mountpoint zroot/enc
NAME       PROPERTY    VALUE       SOURCE
zroot/enc  mountpoint  /zroot/enc  inherited from zroot
root@fbsd-vm:~ # ls /zroot/enc
junkf2
root@fbsd-vm:~ # cat > /zroot/enc/junkf3
rururururururururru
root@fbsd-vm:~ # cat  /zroot/enc/junkf3
rururururururururru
root@fbsd-vm:~ #

So the property is not mounted but it allows me to create a file on
it? And still don't understand how file disappears only after the
first reboot but not the second!