11470 vioblk: device capacity is always returned in 512B units

Review Request #2183 — Created July 15, 2019 and submitted

tsoome
illumos-gate
11470
2180
50e47a3...
general
11470 vioblk: device capacity is always returned in 512B units


  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
yuri.pankov
  1. Ship It!
  2. 
      
igork
  1. Ship It!
  2. 
      
hans
  1. Ship It!
    1. I think this and 11471 should be one single commit.

  2. 
      
seeemef@mac.com
  1. 
      
  2. usr/src/uts/common/io/vioblk/vioblk.c (Diff revision 1)
     
     

    Should there be a guard against divison by zero?

    1. we do set the value in attach() entry point...

    2. I wondered if there were a possibility of setting sc_blk_size to zero at line 917 and then dividing by that here.

  3. 
      
tsoome
seeemef@mac.com
  1. LGTM

  2. 
      
tsoome
tsoome
seeemef@mac.com
  1. Ship It!
  2. 
      
yuri.pankov
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...