core/rails/lib/barclamp_raid/lsi_ircu.rb
#
# All unallocated disks are in the jbod volume
#
All unallocated disks are in the jbod volume
All unallocated disks are in the jbod volume
def fix_up_jbod(c)
      disks = c.disks.dup
      c.volumes.each do |v|
        disks = disks - v.members
      end
      unless disks.empty?
        rv = Rebar::RAID::Volume.new
        rv.controller = c
        rv.raid_level = :JBOD
        rv.members = disks
        c.volumes << rv
      end
    end
def fix_up_jbod ( c ) disks = c . disks . dup c . volumes . each do | v | disks = disks - v . members end unless disks . empty? rv = Rebar :: RAID :: Volume . new rv . controller = c rv . raid_level = :JBOD rv . members = disks c . volumes << rv end end
All unallocated disks are in the jbod volume
All unallocated disks are in the jbod volume
c
<not_specific>