Class: Mountfd::MountInfo

Inherits:
Data
  • Object
show all
Defined in:
lib/mountfd/mount_info.rb,
sig/mountfd.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attrsObject (readonly)

Returns the value of attribute attrs

Returns:

  • (Object)

    the current value of attrs



4
5
6
# File 'lib/mountfd/mount_info.rb', line 4

def attrs
  @attrs
end

#dev_majorObject (readonly)

Returns the value of attribute dev_major

Returns:

  • (Object)

    the current value of dev_major



4
5
6
# File 'lib/mountfd/mount_info.rb', line 4

def dev_major
  @dev_major
end

#dev_minorObject (readonly)

Returns the value of attribute dev_minor

Returns:

  • (Object)

    the current value of dev_minor



4
5
6
# File 'lib/mountfd/mount_info.rb', line 4

def dev_minor
  @dev_minor
end

#fs_typeObject (readonly)

Returns the value of attribute fs_type

Returns:

  • (Object)

    the current value of fs_type



4
5
6
# File 'lib/mountfd/mount_info.rb', line 4

def fs_type
  @fs_type
end

#mnt_idObject (readonly)

Returns the value of attribute mnt_id

Returns:

  • (Object)

    the current value of mnt_id



4
5
6
# File 'lib/mountfd/mount_info.rb', line 4

def mnt_id
  @mnt_id
end

#mnt_rootObject (readonly)

Returns the value of attribute mnt_root

Returns:

  • (Object)

    the current value of mnt_root



4
5
6
# File 'lib/mountfd/mount_info.rb', line 4

def mnt_root
  @mnt_root
end

#mount_pointObject (readonly)

Returns the value of attribute mount_point

Returns:

  • (Object)

    the current value of mount_point



4
5
6
# File 'lib/mountfd/mount_info.rb', line 4

def mount_point
  @mount_point
end

#optionsObject (readonly)

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



4
5
6
# File 'lib/mountfd/mount_info.rb', line 4

def options
  @options
end

#parent_idObject (readonly)

Returns the value of attribute parent_id

Returns:

  • (Object)

    the current value of parent_id



4
5
6
# File 'lib/mountfd/mount_info.rb', line 4

def parent_id
  @parent_id
end

#propagationObject (readonly)

Returns the value of attribute propagation

Returns:

  • (Object)

    the current value of propagation



4
5
6
# File 'lib/mountfd/mount_info.rb', line 4

def propagation
  @propagation
end

#sourceObject (readonly)

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



4
5
6
# File 'lib/mountfd/mount_info.rb', line 4

def source
  @source
end

Instance Method Details

#idmapped?Boolean

Returns:

  • (Boolean)


8
# File 'lib/mountfd/mount_info.rb', line 8

def idmapped? = attrs.include?(:idmap) || options.include?("idmapped")

#readonly?Boolean

Returns:

  • (Boolean)


9
# File 'lib/mountfd/mount_info.rb', line 9

def readonly? = attrs.include?(:rdonly) || options.include?("ro")