Class: RFuse::FileInfo

Inherits:
Object
  • Object
show all
Defined in:
ext/rfuse/file_info.c,
lib/rfuse.rb,
ext/rfuse/file_info.c

Overview

Represents an open file (or directory) that is reused across multiple fuse operations

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fhObject

Returns user specified filehandle object. See RFuse::Fuse#open.

Returns:

Instance Method Details

#directObject



84
85
86
87
88
89
90
91
92
# File 'ext/rfuse/file_info.c', line 84

VALUE file_info_direct(VALUE self) {
   struct fuse_file_info *f;
   Data_Get_Struct(self,struct fuse_file_info,f);
  if (TYPE(f->direct_io) != T_NONE) {
    return (VALUE) f->direct_io;
  } else {
    return Qnil;
  }
}

#direct=(value) ⇒ Object



94
95
96
97
98
99
# File 'ext/rfuse/file_info.c', line 94

VALUE file_info_direct_assign(VALUE self,VALUE value) {
   struct fuse_file_info *f;
   Data_Get_Struct(self,struct fuse_file_info,f);
   f->direct_io = value;
   return value;
}

#flagsObject



78
79
80
81
82
# File 'ext/rfuse/file_info.c', line 78

VALUE file_info_flags(VALUE self) {
  struct fuse_file_info *f;
  Data_Get_Struct(self,struct fuse_file_info,f);
  return INT2FIX(f->flags);
}

#nonseekableObject



101
102
103
104
105
106
107
108
109
# File 'ext/rfuse/file_info.c', line 101

VALUE file_info_nonseekable(VALUE self) {
   struct fuse_file_info *f;
   Data_Get_Struct(self,struct fuse_file_info,f);
  if (TYPE(f->nonseekable) != T_NONE) {
    return (VALUE) f->nonseekable;
  } else {
    return Qnil;
  }
}

#nonseekable=(value) ⇒ Object



111
112
113
114
115
116
# File 'ext/rfuse/file_info.c', line 111

VALUE file_info_nonseekable_assign(VALUE self,VALUE value) {
   struct fuse_file_info *f;
   Data_Get_Struct(self,struct fuse_file_info,f);
   f->nonseekable = value;
   return value;
}

#writepageObject



72
73
74
75
76
# File 'ext/rfuse/file_info.c', line 72

VALUE file_info_writepage(VALUE self) {
  struct fuse_file_info *f;
  Data_Get_Struct(self,struct fuse_file_info,f);
  return INT2FIX(f->writepage);
}