Class: CzSystemInfo::Filesystem::Mount

Inherits:
Object
  • Object
show all
Defined in:
lib/cz_system_info/filesystem.rb

Overview

Mount objects are returned by the CzSystemInfo::Filesystem.mounts method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMount

Creates a CzSystemInfo::Filesystem::Mount object. This is meant for internal use only. Do no instantiate directly.



189
190
191
192
193
194
195
196
197
# File 'lib/cz_system_info/filesystem.rb', line 189

def initialize
  @name = nil
  @mount_point = nil
  @mount_type = nil
  @options = nil
  @mount_time = nil
  @dump_frequency = nil
  @pass_number = nil
end

Instance Attribute Details

#dump_frequencyObject Also known as: freq

The dump frequency in days. May be nil.



175
176
177
# File 'lib/cz_system_info/filesystem.rb', line 175

def dump_frequency
  @dump_frequency
end

#mount_pointObject Also known as: dir

The mount point/directory.



163
164
165
# File 'lib/cz_system_info/filesystem.rb', line 163

def mount_point
  @mount_point
end

#mount_timeObject

The time the filesystem was mounted. May be nil.



172
173
174
# File 'lib/cz_system_info/filesystem.rb', line 172

def mount_time
  @mount_time
end

#mount_typeObject

The type of filesystem mount, e.g. ufs, nfs, etc.



166
167
168
# File 'lib/cz_system_info/filesystem.rb', line 166

def mount_type
  @mount_type
end

#nameObject Also known as: fsname

The name of the mounted resource.



160
161
162
# File 'lib/cz_system_info/filesystem.rb', line 160

def name
  @name
end

#optionsObject Also known as: opts

A list of comma separated options for the mount, e.g. nosuid, etc.



169
170
171
# File 'lib/cz_system_info/filesystem.rb', line 169

def options
  @options
end

#pass_numberObject Also known as: passno

The pass number of the filessytem check. May be nil.



178
179
180
# File 'lib/cz_system_info/filesystem.rb', line 178

def pass_number
  @pass_number
end