pos inode fffffffffffffffftffffffffffffffffn
# File lib/fluent/plugin/in_tail.rb, line 764 def initialize(file, seek) @file = file @seek = seek end
# File lib/fluent/plugin/in_tail.rb, line 779 def read_inode @file.pos = @seek + INO_OFFSET raw = @file.read(16) raw ? raw.to_i(16) : 0 end
# File lib/fluent/plugin/in_tail.rb, line 785 def read_pos @file.pos = @seek raw = @file.read(16) raw ? raw.to_i(16) : 0 end
# File lib/fluent/plugin/in_tail.rb, line 769 def update(ino, pos) @file.pos = @seek @file.write "%016x\t%016x" % [pos, ino] end
# File lib/fluent/plugin/in_tail.rb, line 774 def update_pos(pos) @file.pos = @seek @file.write "%016x" % pos end