From nobody Sat Sep 23 14:45:36 2023 X-Original-To: freebsd-stable@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 4RtBlL05wdz4tm4H for ; Sat, 23 Sep 2023 14:45:50 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RtBlK5Vj2z4Db7 for ; Sat, 23 Sep 2023 14:45:49 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-533cbbd0153so811484a12.0 for ; Sat, 23 Sep 2023 07:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1695480348; x=1696085148; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=IieSq3p251lvXPhkEApbDSgJxCvlnUejjAVz84VpuHE=; b=Z97/O5P/1YtKf07vfe/OB8Th5uRzIEKNLPjSlUEXmy9A3SAa1cxgb/84khFg+R6T74 8tbf7y+h4HkxECa5RzqSAbaSRh21hsDKD1dNKqhthyDJ7EMOt5gL6vokqxzOGi+0jTld zfkkuOUuCv5CwSReiUfd9YFrZkcogMMprjrcaJtt4hUb2WZMlxelA9HSnw2jiTANGyrk tJ4xnw2KggCmZ/pX9rHbuM5A7sggO0ic9IVDvWaOnor2cqtMA8w1ZooPkaiI44bjUCKh JBokdF8mZNd2YHPVLh9ZuDDbk+Zff5InL5MWBMKnVFDj65lmx0iosnMqzMaKUmnyX+rZ u/pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695480348; x=1696085148; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IieSq3p251lvXPhkEApbDSgJxCvlnUejjAVz84VpuHE=; b=sr7BtLLXxwXM3kdXBS8CJJnWzu3l0ssWUrXfigGYsWv8P4JU1zEw5p+gZeyKhPMLnY PVAHx4l5Od2ibBnCMG81Dgj7mtNCB2b2UCr4k7PKibta6Kk1ifH8RNy56DRgkc7Rn986 O4PkylR0+JWCD0Y2s3fVghZ+04geUjHcqsbsJLX601OTO6/GE0xu//VgBK5Zi4XKmHEG D2CYv+uHkd3nMZpS916zDPC4NLLX20Nh9x5IhHMwuvt+Oeh0OM+QKBlkbsN/Ezl3ffVN E7+GYusYB71upOeSLJi1RHIeSZGlqxaWgcAqkEnte4LkxbLTbqe/xxxFy1i2IGCcium+ A81Q== X-Gm-Message-State: AOJu0YyBuL4f8s+qYbMC0JSDiNZ8NxvMS8enY4Rfqa0gh0wVW8U3bo6h mdLL7PsCp5s69ULc+zPc+LfeqFtBsu41eS+nLy0X7g== X-Google-Smtp-Source: AGHT+IGX8R8lW0+ML8trK/q1TgZ74/wyECLj3uZX+lFXGDwBufl1f+3Sg2tl2+3Z+3p1mD+P+/sw+WyL5MUPnE0phsU= X-Received: by 2002:aa7:c98b:0:b0:530:74ed:fc85 with SMTP id c11-20020aa7c98b000000b0053074edfc85mr1840114edt.3.1695480348065; Sat, 23 Sep 2023 07:45:48 -0700 (PDT) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 References: <99750134.ESjDGNxrJy@walrus.pepperland> In-Reply-To: <99750134.ESjDGNxrJy@walrus.pepperland> From: Warner Losh Date: Sat, 23 Sep 2023 08:45:36 -0600 Message-ID: Subject: Re: nvd compatibility links and geli To: Stefan Ehmann Cc: FreeBSD-STABLE Mailing List Content-Type: multipart/alternative; boundary="000000000000ded6f9060607c7c1" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4RtBlK5Vj2z4Db7 --000000000000ded6f9060607c7c1 Content-Type: text/plain; charset="UTF-8" On Sat, Sep 23, 2023, 7:19 AM Stefan Ehmann 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: > > > 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


On Sat, Sep 23, 2023, 7:19 AM Stefan Ehmann <shoesoft@gmx.net> wrote:
The 20230612 entry in UPDATING says:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 Encrypted swap partitions need to be changed fr= om nvd to nda if you
=C2=A0 =C2=A0 =C2=A0 =C2=A0 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 l= ess
confusing to directly abort with an error message instead of prompting &quo= t;Enter
passphrase: " first.

# ls -l /dev/nvd0p4
lrwxr-xr-x=C2=A0 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 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.

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...

How hard is i= t for you to adapt?

Warn= er
--000000000000ded6f9060607c7c1--