Class: Sys::Filesystem::Mount

Inherits:
Object
  • Object
show all
Defined in:
lib/unix/sys/filesystem.rb,
lib/windows/sys/filesystem.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMount

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



183
184
185
186
187
188
189
190
191
# File 'lib/unix/sys/filesystem.rb', line 183

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

The dump frequency in days. May be nil.



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

def dump_frequency
  @dump_frequency
end

#frequencyObject (readonly) Also known as: freq

Always nil on MS Windows. Provided for interface compatibility only.



45
46
47
# File 'lib/windows/sys/filesystem.rb', line 45

def frequency
  @frequency
end

#mount_pointObject Also known as: dir

The volume mount point, e.g. ‘C:'



157
158
159
# File 'lib/unix/sys/filesystem.rb', line 157

def mount_point
  @mount_point
end

#mount_timeObject

The last time the volume was mounted. For MS Windows this equates to your system’s boot time.



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

def mount_time
  @mount_time
end

#mount_typeObject

The type of mount, e.g. NTFS, UDF, etc.



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

def mount_type
  @mount_type
end

#nameObject Also known as: fsname

The name of the volume. This is the device mapping.



154
155
156
# File 'lib/unix/sys/filesystem.rb', line 154

def name
  @name
end

#optionsObject Also known as: opts

Various comma separated options that reflect the volume’s features



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

def options
  @options
end

#pass_numberObject Also known as: passno

Always nil on MS Windows. Provided for interface compatibility only.



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

def pass_number
  @pass_number
end