Sha256: 18df8fe20492f4c57876010d1b6d1436c7d44c1f0db66aa380e97666d461fc53

Contents?: true

Size: 279 Bytes

Versions: 49

Compression:

Stored size: 279 Bytes

Contents

module MiqDiskCommon
  def self.file_mode(d_info)
    if d_info.mountMode.nil? || d_info.mountMode == "r"
      d_info.mountMode = "r"
      return "r"
    elsif d_info.mountMode == "rw"
      return "r+"
    end
    raise "Unrecognized mountMode: #{d_info.mountMode}"
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
manageiq-smartstate-0.10.1 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.10.0 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.9.0 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.8.1 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.8.0 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.7.0 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.6.2 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.5.10 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.3.10 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.6.1 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.3.9 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.6.0 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.5.9 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.5.8 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.3.8 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.5.7 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.3.7 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.5.6 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.3.6 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.5.5 lib/disk/modules/miq_disk_common.rb