core/rails/app/models/barclamp_raid/raid_hammer.rb
# Compares a configed volume versus a wanted volume
#
# @param cv [BarclampRaid::Volume] configured volume
# @param wv [Config Request Volume] requested volume
# @return [Boolean] true if volumes are the same
Compares a configed volume versus a wanted volume
Compares a configed volume versus a wanted volume
def same_volume(cv, wv)
    return false unless cv
    return false unless wv
    return false if cv['name'] != wv['name']
    return false if cv['raid_level'] != wv['raid_level']
    return false if cv['disks'].length != wv['disks']
    return true
  end
def same_volume ( cv , wv ) return false unless cv return false unless wv return false if cv [ 'name' ] != wv [ 'name' ] return false if cv [ 'raid_level' ] != wv [ 'raid_level' ] return false if cv [ 'disks' ] . length != wv [ 'disks' ] return true end
Compares a configed volume versus a wanted volume
Compares a configed volume versus a wanted volume
true if volumes are the same
true if volumes are the same
Boolean
cv
None
wv
None