Menu

#5530 FreeBSD Only showing disks 0-9, not 10 or higher

1.982
closed-fixed
nobody
disks limit (1)
5
2021-12-04
2021-12-04
Karl Gustav
No

Similar to ticket #4811 https://sourceforge.net/p/webadmin/bugs/4811/

But in my case:

FreeBSD 11.3.
Same on FreeBSD 10.3 and 11.1.
Not 8 disk limit as in the ticket above.

Only disks/drives with a number lower than 10 show up.
Frontpage(temperatures), SMART and Partitions show the same problem.

Editing bsdfdisk fixed the problem:
(glob("/dev/ada[0-9]"),
glob("/dev/ad[0-9]"),
glob("/dev/da[0-9]"),
Added---> glob("/dev/da[0-9][!p]")) {

My coding skills are limited so the above "fix" is the best I could cook up with the help of Google.
Original:
(glob("/dev/ada[0-9]"),
glob("/dev/ad[0-9]"),
glob("/dev/da[0-9]")) {

You can probably create a real fix much more correct.

Discussion

  • Jamie Cameron

    Jamie Cameron - 2021-12-04
    • status: open --> closed-fixed
     
  • Karl Gustav

    Karl Gustav - 2021-12-04

    Thanks for the quick response. Applied the patch and tested it on 12 and 23 drive systems. Works perfectly.

     

Log in to post a comment.