    # File lib/chef/provider/mdadm.rb, line 37
          def load_current_resource
            @current_resource = Chef::Resource::Mdadm.new(@new_resource.name)
            @current_resource.raid_device(@new_resource.raid_device)
            Chef::Log.debug("#{@new_resource} checking for software raid device #{@current_resource.raid_device}")

            device_not_found = 4
            mdadm = shell_out!("mdadm --detail --test #{@new_resource.raid_device}", :returns => [0,device_not_found])
            exists = (mdadm.status == 0)
            @current_resource.exists(exists)
          end