Class: File::Extent
- Inherits:
-
Object
- Object
- File::Extent
- Defined in:
- lib/fiemap.rb,
ext/fiemap/fiemap.c
Constant Summary collapse
- FIEMAP_EXTENT_LAST =
INT2FIX(FIEMAP_EXTENT_LAST)
- FIEMAP_EXTENT_UNKNOWN =
INT2FIX(FIEMAP_EXTENT_UNKNOWN)
- FIEMAP_EXTENT_DELALLOC =
INT2FIX(FIEMAP_EXTENT_DELALLOC)
- FIEMAP_EXTENT_ENCODED =
INT2FIX(FIEMAP_EXTENT_ENCODED)
- FIEMAP_EXTENT_DATA_ENCRYPTED =
INT2FIX(FIEMAP_EXTENT_DATA_ENCRYPTED)
- FIEMAP_EXTENT_NOT_ALIGNED =
INT2FIX(FIEMAP_EXTENT_NOT_ALIGNED)
- FIEMAP_EXTENT_DATA_INLINE =
INT2FIX(FIEMAP_EXTENT_DATA_INLINE)
- FIEMAP_EXTENT_DATA_TAIL =
INT2FIX(FIEMAP_EXTENT_DATA_TAIL)
- FIEMAP_EXTENT_UNWRITTEN =
INT2FIX(FIEMAP_EXTENT_UNWRITTEN)
- FIEMAP_EXTENT_MERGED =
INT2FIX(FIEMAP_EXTENT_MERGED)
Instance Method Summary collapse
- #delalloc? ⇒ Boolean
- #encoded? ⇒ Boolean
- #encrypted? ⇒ Boolean
- #flags ⇒ Object
- #inline? ⇒ Boolean
- #inspect ⇒ Object (also: #to_s)
- #last? ⇒ Boolean
- #length ⇒ Object (also: #size)
- #merged? ⇒ Boolean
- #not_aligned? ⇒ Boolean
- #offset ⇒ Object
- #physical_offset ⇒ Object
- #tail? ⇒ Boolean
- #unwritten? ⇒ Boolean
Instance Method Details
#delalloc? ⇒ Boolean
98 99 100 101 102 |
# File 'ext/fiemap/fiemap.c', line 98
static VALUE
extent_delalloc_p(VALUE self)
{
return extent_test_flag(self, FIEMAP_EXTENT_DELALLOC);
}
|
#encoded? ⇒ Boolean
104 105 106 107 108 |
# File 'ext/fiemap/fiemap.c', line 104
static VALUE
extent_encoded_p(VALUE self)
{
return extent_test_flag(self, FIEMAP_EXTENT_ENCODED);
}
|
#encrypted? ⇒ Boolean
110 111 112 113 114 |
# File 'ext/fiemap/fiemap.c', line 110
static VALUE
extent_encrypted_p(VALUE self)
{
return extent_test_flag(self, FIEMAP_EXTENT_DATA_ENCRYPTED);
}
|
#flags ⇒ Object
71 72 73 74 75 |
# File 'ext/fiemap/fiemap.c', line 71
static VALUE
extent_flags(VALUE self)
{
return INT2FIX(get_extent(self)->fe_flags);
}
|
#inline? ⇒ Boolean
122 123 124 125 126 |
# File 'ext/fiemap/fiemap.c', line 122
static VALUE
extent_inline_p(VALUE self)
{
return extent_test_flag(self, FIEMAP_EXTENT_DATA_INLINE);
}
|
#inspect ⇒ Object Also known as: to_s
8 9 10 |
# File 'lib/fiemap.rb', line 8 def inspect "#<#{self.class} logical:#{self.offset} physical:#{self.physical_offset} flags:#{flags_inspect}>" end |
#last? ⇒ Boolean
86 87 88 89 90 |
# File 'ext/fiemap/fiemap.c', line 86
static VALUE
extent_last_p(VALUE self)
{
return extent_test_flag(self, FIEMAP_EXTENT_LAST);
}
|
#length ⇒ Object Also known as: size
65 66 67 68 69 |
# File 'ext/fiemap/fiemap.c', line 65
static VALUE
extent_length(VALUE self)
{
return LONG2NUM(get_extent(self)->fe_length);
}
|
#merged? ⇒ Boolean
140 141 142 143 144 |
# File 'ext/fiemap/fiemap.c', line 140
static VALUE
extent_merged_p(VALUE self)
{
return extent_test_flag(self, FIEMAP_EXTENT_MERGED);
}
|
#not_aligned? ⇒ Boolean
116 117 118 119 120 |
# File 'ext/fiemap/fiemap.c', line 116
static VALUE
extent_not_aligned_p(VALUE self)
{
return extent_test_flag(self, FIEMAP_EXTENT_NOT_ALIGNED);
}
|
#offset ⇒ Object
53 54 55 56 57 |
# File 'ext/fiemap/fiemap.c', line 53
static VALUE
extent_logical_offset(VALUE self)
{
return LONG2NUM(get_extent(self)->fe_logical);
}
|
#physical_offset ⇒ Object
59 60 61 62 63 |
# File 'ext/fiemap/fiemap.c', line 59
static VALUE
extent_physical_offset(VALUE self)
{
return LONG2NUM(get_extent(self)->fe_physical);
}
|
#tail? ⇒ Boolean
128 129 130 131 132 |
# File 'ext/fiemap/fiemap.c', line 128
static VALUE
extent_tail_p(VALUE self)
{
return extent_test_flag(self, FIEMAP_EXTENT_DATA_TAIL);
}
|
#unwritten? ⇒ Boolean
134 135 136 137 138 |
# File 'ext/fiemap/fiemap.c', line 134
static VALUE
extent_unwritten_p(VALUE self)
{
return extent_test_flag(self, FIEMAP_EXTENT_UNWRITTEN);
}
|