Date: Sat, 23 Sep 2023 08:45:36 -0600 From: Warner Losh <imp@bsdimp.com> To: Stefan Ehmann <shoesoft@gmx.net> Cc: FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org> Subject: Re: nvd compatibility links and geli Message-ID: <CANCZdfqp6GW0DtwD%2B%2BTRZ2JUjiDqzUSFNK%2BxzJE%2BMZ0PqNsxLw@mail.gmail.com> In-Reply-To: <99750134.ESjDGNxrJy@walrus.pepperland> References: <99750134.ESjDGNxrJy@walrus.pepperland>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000ded6f9060607c7c1 Content-Type: text/plain; charset="UTF-8" On Sat, Sep 23, 2023, 7:19 AM Stefan Ehmann <shoesoft@gmx.net> wrote: > The 20230612 entry in UPDATING says: > > Encrypted swap partitions need to be changed from nvd to nda if you > migrate, or you need to use the above to switch back to nvd. > > Are encrypted (non-swap) partitions supposed to work? If not, it would be > less > confusing to directly abort with an error message instead of prompting > "Enter > passphrase: " first. > > # ls -l /dev/nvd0p4 > lrwxr-xr-x 1 root wheel 6 Sep 23 14:59 /dev/nvd0p4 -> nda0p4 > # geli attach nvd0p4 > Enter passphrase: > geli: Provider not found: "nvd0p4" > geli: There was an error with at least one provider. > > Using nda works as expected: > # geli attach nda0p4 > # Enter passphrase: > <no error> > > Tested on 14.0-BETA3. > They do not work due to obscure issues with geom and how I implemented the compat code. You will either need to set the sysctl in the updating entry to switch back to nvd. Or you'll need to change the config to use the new name. Geom doesn't provide a nice centralized place to deal with all the name stuff, so my compat code was just at the most popular places. I missed a few... How hard is it for you to adapt? Warner > --000000000000ded6f9060607c7c1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" = class=3D"gmail_attr">On Sat, Sep 23, 2023, 7:19 AM Stefan Ehmann <<a hre= f=3D"mailto:shoesoft@gmx.net">shoesoft@gmx.net</a>> wrote:<br></div><blo= ckquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #c= cc solid;padding-left:1ex">The 20230612 entry in UPDATING says:<br> <br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Encrypted swap partitions need to be changed fr= om nvd to nda if you<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 migrate, or you need to use the above to switch= back to nvd.<br> <br> Are encrypted (non-swap) partitions supposed to work? If not, it would be l= ess<br> confusing to directly abort with an error message instead of prompting &quo= t;Enter<br> passphrase: " first.<br> <br> # ls -l /dev/nvd0p4<br> lrwxr-xr-x=C2=A0 1 root wheel 6 Sep 23 14:59 /dev/nvd0p4 -> nda0p4<br> # geli attach nvd0p4<br> Enter passphrase:<br> geli: Provider not found: "nvd0p4"<br> geli: There was an error with at least one provider.<br> <br> Using nda works as expected:<br> # geli attach nda0p4<br> # Enter passphrase:<br> <no error><br> <br> Tested on 14.0-BETA3.<br></blockquote></div></div><div dir=3D"auto"><br></d= iv><div dir=3D"auto">They do not work due to obscure issues with geom and h= ow I implemented the compat code. You will either need to set the sysctl in= the updating entry to switch back to nvd. Or you'll need to change the= config to use the new name.</div><div dir=3D"auto"><br></div><div dir=3D"a= uto">Geom doesn't provide a nice centralized place to deal with all the= name stuff, so my compat code was just at the most popular places. I misse= d a few...</div><div dir=3D"auto"><br></div><div dir=3D"auto">How hard is i= t for you to adapt?</div><div dir=3D"auto"><br></div><div dir=3D"auto">Warn= er</div><div dir=3D"auto"><div class=3D"gmail_quote"><blockquote class=3D"g= mail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-l= eft:1ex"> </blockquote></div></div></div> --000000000000ded6f9060607c7c1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqp6GW0DtwD%2B%2BTRZ2JUjiDqzUSFNK%2BxzJE%2BMZ0PqNsxLw>