[Bug 286818] Running "lsblk -d" behaves abnormally when CD/DVD Drive 1 is attached as a "Client Device" on FreeBSD 14.3 Beta2

[email protected] Thu, 15 May 2025 10:12:26 +0000
Newsgroups gmane.os.freebsd.devel.standards
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286818

            Bug ID: 286818
           Summary: Running "lsblk -d" behaves abnormally when CD/DVD
                    Drive 1 is attached as a "Client Device" on FreeBSD
                    14.3 Beta2
           Product: Base System
           Version: 14.3-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: standards
          Assignee: [email protected]
          Reporter: [email protected]

We are testing FreeBSD 14.3 Beta2 guest OS on vSphere. It needs to configure a
CD/DVD Driver1 as "Datastore ISO File" attached with FreeBSD 14.3 Beta2 ISO
image like "FreeBSD-14.3-BETA1-amd64-dvd1.iso". After installation, it needs
often to change the "Datastore ISO file" to "Client Device". There is
difference between them.

If set the CD/DVD Drive1 as "Client Device", it hits error when using "lsblk
-d".
# lsblk -d
DEVICE SIZE MODEL

Parse error: bad expression
    <stdin>:1


Parse error: bad expression
    <stdin>:1

[: -gt: unexpected operator
cd0      0B NECVMWar VMware SATA CD00

Parse error: bad token
    <stdin>:1

da0    1.0G VMware Virtual disk

Parse error: bad token
    <stdin>:1

da1     40G VMware Virtual disk

Parse error: bad token
    <stdin>:1

printf: : expected numeric value
-        0G TOTAL SYSTEM STORAGE

It's OK if don't use the option of "-d".
 # lsblk
DEVICE         MAJ:MIN SIZE TYPE                                    LABEL MOUNT
da0              0:83  1.0G GPT                                         - -
  <FREE>         -:-   1.0M -                                           - -
  da0p1          0:85  1.0G freebsd-ufs                   gpt/freebsd-ufs -
  <FREE>         -:-   1.0M -                                           - -
da1              0:84   40G GPT                                         - -
  da1p1          0:86  512K freebsd-boot                     gpt/gptboot0 -
  <FREE>         -:-   492K -                                           - -
  da1p2          0:87  2.0G freebsd-swap                 gpt/freebsd-swap -
  da1p3          0:88   38G freebsd-zfs                   gpt/freebsd-zfs <ZFS>
  <FREE>         -:-   1.0M -                                           - -


And it's OK when change the CD/DVD Driver1 from "Client Device" to "Datastore
ISO File".
# lsblk -d
DEVICE SIZE MODEL
cd0    2.4G NECVMWar VMware SATA CD00
da0    1.0G VMware Virtual disk
da1     40G VMware Virtual disk
-       43G TOTAL SYSTEM STORAGE

Would you please take a look?

Thanks in advance!

-- 
You are receiving this mail because:
You are the assignee for the bug.