1. Kaspar Schiess
  2. iscsi-tools

Commits

Kaspar Schiess  committed a53d7e5

More relevant information

  • Participants
  • Parent commits 3c73281
  • Branches master

Comments (0)

Files changed (2)

File bin/iscsi

View file
  • Ignore whitespace
         puts target.name
         p target.groups.map(&:name)
         
-        pp target.views.map(&:lu).map(&:name)
+        target.views.map(&:lu).each do |lu| 
+          puts "LU #{lu.name} #{lu.data_file}"
+        end
       end
     end
   end

File lib/iscsi/lu.rb

View file
  • Ignore whitespace
     def views
       context.views(name)
     end
+    
+    def data_file
+      @node[:data_file].value
+    end
   end
 end