class VirtFS::NativeFS::Thin::File
Attributes
block_size[R]
file_obj[R]
fs[R]
Public Class Methods
new(fs, instance_handle, parsed_args)
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 6 def initialize(fs, instance_handle, parsed_args) @fs = fs @file_obj = instance_handle @parsed_args = parsed_args @block_size = 512 end
Public Instance Methods
atime()
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 13 def atime @file_obj.atime end
chmod(permission)
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 17 def chmod(permission) @file_obj.chmod(permission) end
chown(owner, group)
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 21 def chown(owner, group) @file_obj.chown(owner, group) end
close()
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 25 def close @file_obj.close unless @file_obj.closed? end
close_on_exec=(bool)
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 33 def close_on_exec=(bool) @file_obj.close_on_exec = bool end
close_on_exec?()
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 29 def close_on_exec? @file_obj.close_on_exec? end
close_read()
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 37 def close_read @file_obj.close_read end
close_write()
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 41 def close_write @file_obj.close_write end
ctime()
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 45 def ctime @file_obj.ctime end
fcntl(cmd, arg)
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 49 def fcntl(cmd, arg) @file_obj.fcntl(cmd, arg) end
fdatasync()
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 53 def fdatasync @file_obj.fdatasync end
fileno()
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 61 def fileno @file_obj.fileno end
flock(locking_constant)
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 65 def flock(locking_constant) @file_obj.flock(locking_constant) end
flush()
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 57 def flush @file_obj.flush end
fsync()
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 69 def fsync @file_obj.fsync end
isatty()
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 73 def isatty @file_obj.isatty end
lstat()
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 77 def lstat @file_obj.lstat end
mtime()
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 81 def mtime @file_obj.mtime end
pid()
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 85 def pid @file_obj.pid end
raw_read(start_byte, num_bytes)
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 89 def raw_read(start_byte, num_bytes) @file_obj.sysseek(start_byte, IO::SEEK_SET) @file_obj.sysread(num_bytes) end
raw_write(start_byte, buf)
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 94 def raw_write(start_byte, buf) @file_obj.sysseek(start_byte, IO::SEEK_SET) @file_obj.syswrite(buf) end
size()
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 99 def size @file_obj.size end
stat()
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 103 def stat @file_obj.stat end
truncate(len)
click to toggle source
# File lib/virtfs/nativefs/thin/file.rb, line 107 def truncate(len) @file_obj.truncate(len) end