Skip to content

Commit

Permalink
file_wrapper: Fix a typo in a comment
Browse files Browse the repository at this point in the history
In addition, add more descritpion about FileId.

[skip ci]

Signed-off-by: Takuro Ashie <[email protected]>
  • Loading branch information
ashie committed Jun 9, 2022
1 parent e1e9c47 commit c95e3d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions fluentd.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency("win32-service", ["~> 2.3.0"])
gem.add_runtime_dependency("win32-ipc", ["~> 0.7.0"])
gem.add_runtime_dependency("win32-event", ["~> 0.6.3"])
gem.add_runtime_dependency("windows-api", ["~> 0.4.5"])
gem.add_runtime_dependency("windows-pr", ["~> 1.2.6"])
gem.add_runtime_dependency("certstore_c", ["~> 0.1.7"])
end
Expand Down
5 changes: 3 additions & 2 deletions lib/fluent/plugin/file_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ def close

# To keep backward compatibility, we continue to use GetFileInformationByHandle()
# to get file id.
# Node that Ruby's File.stat uses GetFileInformationByHandleEx() with FileIdInfo
# and returned value is different with above one.
# Note that Ruby's File.stat uses GetFileInformationByHandleEx() with FileIdInfo
# and returned value is different with above one, former one is 64 bit while
# later one is 128bit.
def ino
by_handle_file_information = '\0'*(4+8+8+8+4+4+4+4+4+4) #72bytes

Expand Down

0 comments on commit c95e3d1

Please sign in to comment.