    # File lib/chef/provider/mdadm.rb, line 34
          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}")

            mdadm = shell_out!("mdadm --detail --scan")
            exists = mdadm.stdout.include?(@new_resource.raid_device)
            #exists = false
            # popen4(command) do |pid, stdin, stdout, stderr|
            #   stdout.each do |line|
            #     if line.include? @new_resource.raid_device
            #       exists = true
            #     end
            #   end
            # end
            @current_resource.exists(exists)
          end