Class: Sys::Filesystem::Mount
- Inherits:
-
Object
- Object
- Sys::Filesystem::Mount
- Defined in:
- lib/sys/unix/sys/filesystem.rb,
lib/sys/windows/sys/filesystem.rb
Overview
Mount objects are returned by the Sys::Filesystem.mounts method.
Instance Attribute Summary collapse
-
#dump_frequency ⇒ Object
The dump frequency in days.
-
#frequency ⇒ Object
(also: #freq)
readonly
Always nil on MS Windows.
-
#mount_point ⇒ Object
(also: #dir)
The volume mount point, e.g.
-
#mount_time ⇒ Object
The last time the volume was mounted.
-
#mount_type ⇒ Object
The type of mount, e.g.
-
#name ⇒ Object
(also: #fsname)
The name of the volume.
-
#options ⇒ Object
(also: #opts)
Various comma separated options that reflect the volume’s features.
-
#pass_number ⇒ Object
(also: #passno)
Always nil on MS Windows.
Instance Method Summary collapse
-
#initialize ⇒ Mount
constructor
Creates a Sys::Filesystem::Mount object.
Constructor Details
#initialize ⇒ Mount
Creates a Sys::Filesystem::Mount object. This is meant for internal use only. Do no instantiate directly.
207 208 209 210 211 212 213 214 215 |
# File 'lib/sys/unix/sys/filesystem.rb', line 207 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_frequency ⇒ Object
The dump frequency in days. May be nil.
193 194 195 |
# File 'lib/sys/unix/sys/filesystem.rb', line 193 def dump_frequency @dump_frequency end |
#frequency ⇒ Object (readonly) Also known as: freq
Always nil on MS Windows. Provided for interface compatibility only.
44 45 46 |
# File 'lib/sys/windows/sys/filesystem.rb', line 44 def frequency @frequency end |
#mount_point ⇒ Object Also known as: dir
The volume mount point, e.g. ‘C:'
181 182 183 |
# File 'lib/sys/unix/sys/filesystem.rb', line 181 def mount_point @mount_point end |
#mount_time ⇒ Object
The last time the volume was mounted. For MS Windows this equates to your system’s boot time.
190 191 192 |
# File 'lib/sys/unix/sys/filesystem.rb', line 190 def mount_time @mount_time end |
#mount_type ⇒ Object
The type of mount, e.g. NTFS, UDF, etc.
184 185 186 |
# File 'lib/sys/unix/sys/filesystem.rb', line 184 def mount_type @mount_type end |
#name ⇒ Object Also known as: fsname
The name of the volume. This is the device mapping.
178 179 180 |
# File 'lib/sys/unix/sys/filesystem.rb', line 178 def name @name end |
#options ⇒ Object Also known as: opts
Various comma separated options that reflect the volume’s features
187 188 189 |
# File 'lib/sys/unix/sys/filesystem.rb', line 187 def @options end |
#pass_number ⇒ Object Also known as: passno
Always nil on MS Windows. Provided for interface compatibility only.
196 197 198 |
# File 'lib/sys/unix/sys/filesystem.rb', line 196 def pass_number @pass_number end |