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.5.4 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.3.5 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.5.3 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.5.2 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.5.1 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.5.0 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.3.4 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.4.0 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.2.18.2 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.3.3 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.3.2 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.3.1 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.3.0 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.2.24 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.2.18.1 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.2.23 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.2.22 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.2.21 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.2.20 lib/disk/modules/miq_disk_common.rb
manageiq-smartstate-0.2.19 lib/disk/modules/miq_disk_common.rb