This value is setted in this way because mkisofs man said, less than this amount he have to pad the content of the iso file that mean a limit of 400 kb file since 1 sector of iso file = 2048 bytes
# File lib/deltacloud/drivers/vsphere/vsphere_filemanager.rb, line 57 def delete_iso!(datastore,file_name) deleteFile(datastore, file_name) end
# File lib/deltacloud/drivers/vsphere/vsphere_filemanager.rb, line 66 def delete_mapping!(datastore, file_name) deleteFile(datastore, file_name) end
# File lib/deltacloud/drivers/vsphere/vsphere_filemanager.rb, line 74 def list_mappings(datastore) listFolder(datastore) end
# File lib/deltacloud/drivers/vsphere/vsphere_filemanager.rb, line 70 def load_mapping(datastore, file_name) YAML::load(downloadFile(datastore, file_name)) end
# File lib/deltacloud/drivers/vsphere/vsphere_filemanager.rb, line 40 def store_iso!(datastore,base64_iso, file_name) file = StringIO.new(get_plain_iso(base64_iso).read) uploadFile(datastore, file, file_name) end
# File lib/deltacloud/drivers/vsphere/vsphere_filemanager.rb, line 61 def store_mapping!(datastore, yaml_object, file_name) file = StringIO::new(yaml_object) uploadFile(datastore, file, file_name) end
# File lib/deltacloud/drivers/vsphere/vsphere_filemanager.rb, line 45 def user_data!(datastore,base64_content,file_name) command="#{MKISOFS_EXECUTABLE} -stream-file-name deltacloud-user-data.txt -stream-media-size #{ISO_SECTORS}" iso_file='' Open3::popen3(command) do |stdin, stdout, stderr| stdin.write(base64_content.unpack("m")) stdin.close() iso_file=StringIO::new(stdout.read) end uploadFile(datastore,iso_file,file_name) end
Generated with the Darkfish Rdoc Generator 2.