core/rails/lib/barclamp_raid/driver.rb
# Get the disks that are members of a volume.  Note that this does not tell you which
# volumes the disks are members of.
Get the disks that are members of a volume.  Note that this does not tell you which
volumes the disks are members of.
Get the disks that are members of a volume . Note that this does not tell you which volumes the disks are members of .
def used_disks
      self.volumes.reduce([]) do |memo,obj|
        (memo + obj.disks).uniq
      end
    end
def used_disks self . volumes . reduce ( [ ] ) do | memo , obj | ( memo + obj . disks ) . uniq end end
Get the disks that are members of a volume.
Get the disks that are members of a volume .