anchor.diff:          when "Device Id" then disk[:smart_devlce] = "megaraid,#{Regexp.last_match(2)}"
           when "WWN" then disk[:wwn] = Regexp.last_match(2)
           when "PD Type" then disk[:interface] = Regexp.last_match(2)
  -        when "Raw Size" then disk[:size] = parse_disk_size(Regexp.last_match(2).sub(/\s*\[.*\]$/, ""))
  +        when "Raw Size" then disk[:size] = memory_to_disk_size(Regexp.last_match(2).sub(/\s*\[.*\]$/, ""))
           when "Inquiry Data" then disk[:vendor], disk[:model], disk[:serial] = Regexp.last_match(2).split
           end
         end
  
positive.code:             model = Regexp.last_match(2)
            end
  
            if size > 1_000_000_000_000
              size = format "%d TB", size / 1_000_000_000_000
            elsif size > 1000000000
              size = format "%d GB", size / 1000000000
            end
  
            devices[:disks] << {
              :id => devices[:disks].count,
              :device => "/dev/#{File.basename(block)}",
              :vendor => vendor,
              :model => model,
              :firmware_version => read_sysctl_file("#{device}/rev"),
              :size => size,
              :arrays => []
            }
          end
  
negative.code:           when "Enclosure #" then disk[:location] = Regexp.last_match(2)
            when "Slot #" then disk[:location] = "#{disk[:location]}:#{Regexp.last_match(2)}"
            when "SAS Address" then disk[:device] = find_sas_device(Regexp.last_match(2).tr("-", ""))
            when "Size (in MB)/(in sectors)" then disk[:size] = memory_to_disk_size("#{Regexp.last_match(2).split('/').first} MB")
            when "Manufacturer" then disk[:vendor] = Regexp.last_match(2)
            when "Model Number" then disk[:model] = Regexp.last_match(2)
            when "Firmware Revision" then disk[:firmware_version] = Regexp.last_match(2)
  