[Bug 243530] sysutils/cciss_vol_status: Does not display physical drives on FreeBSD 12.1

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 24 Jan 2024 12:25:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243530

--- Comment #3 from Peter Eriksson <pen@lysator.liu.se> ---
Created attachment 247922
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247922&action=edit
Patch to solve numerous issues in cciss_vol_status

This patch solves a number of issues, and cleans up formatting of the output a
little bit.

1. Fixes a number of bitwise comparisions that uses "&&" but really should be
using "&".

2. Fixes a buffer overrun where the code writes to byte[41] (ie 42) in a 41
byte buffer...

3. Solves the "missing disks" problem - it seems the CISS HBA puts any disks
with 4K native sector sizes in the "non-disk" list, even though they work
perfectly fine with FreeBSD (when the controller is used as an HBA - they won't
work when used as a RAID controller). 

4. Adds a "-D" option which prints a little bit more info than "-V".

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