class VirtFS::ThinFileDelegator
Dispatches File calls to/from VirtFS
and the 'Thin' subsystem
Attributes
fs_file_obj[R]
Public Class Methods
new(fs_file_obj, creation_path, fs_path, parsed_args)
click to toggle source
Instance methods
Calls superclass method
VirtFS::ThinIODelegatorMethods::new
# File lib/virtfs/thin_file_delegator.rb, line 12 def initialize(fs_file_obj, creation_path, fs_path, parsed_args) super(fs_file_obj, parsed_args) # Initialize IO instance. # @size = @fs_io_obj.size @creation_path = creation_path @full_path = VfsRealFile.join(@fs_io_obj.fs.mount_point, fs_path) @fs_path = fs_path end
Public Instance Methods
atime()
click to toggle source
# File lib/virtfs/thin_file_delegator.rb, line 27 def atime file_open @fs_io_obj.atime end
chmod(permission)
click to toggle source
# File lib/virtfs/thin_file_delegator.rb, line 32 def chmod(permission) file_open @fs_io_obj.chmod(permission) end
chown(owner, group)
click to toggle source
# File lib/virtfs/thin_file_delegator.rb, line 37 def chown(owner, group) file_open @fs_io_obj.chown(owner, group) end
ctime()
click to toggle source
# File lib/virtfs/thin_file_delegator.rb, line 42 def ctime file_open @fs_io_obj.ctime end
flock(locking_constant)
click to toggle source
# File lib/virtfs/thin_file_delegator.rb, line 47 def flock(locking_constant) file_open @fs_io_obj.flock(locking_constant) end
lstat()
click to toggle source
# File lib/virtfs/thin_file_delegator.rb, line 52 def lstat file_open @fs_io_obj.lstat end
mtime()
click to toggle source
# File lib/virtfs/thin_file_delegator.rb, line 57 def mtime file_open @fs_io_obj.mtime end
path()
click to toggle source
# File lib/virtfs/thin_file_delegator.rb, line 62 def path @creation_path end
Also aliased as: to_path
re_initialize(io_obj)
click to toggle source
Calls superclass method
VirtFS::ThinIODelegatorMethods#re_initialize
# File lib/virtfs/thin_file_delegator.rb, line 20 def re_initialize(io_obj) super(io_obj) # re-initialize IO @creation_path = io_obj.instance_variable_get(:@creation_path) @full_path = io_obj.instance_variable_get(:@full_path) @fs_path = io_obj.instance_variable_get(:@fs_path) end
size()
click to toggle source
# File lib/virtfs/thin_file_delegator.rb, line 67 def size file_open @size end
truncate(len)
click to toggle source
# File lib/virtfs/thin_file_delegator.rb, line 72 def truncate(len) file_open @fs_io_obj.truncate(len) end