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.2.18 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.2.17 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.2.16 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.2.15 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.2.14 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.2.13 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.2.12 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.2.11 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.2.10 lib/disk/modules/miq_disk_common.rb