Skip to content

Conversation

@flier
Copy link

@flier flier commented Sep 8, 2015

When we trace file with inode, it will confuse sincedb if filesystem reuse an inode, which cause the file truncated random

https://logstash.jira.com/browse/LOGSTASH-685

Since we hard to prevent filesystem reuse a inode, we could use another fileId like windows did

http://stackoverflow.com/questions/16069898/can-inode-and-crtime-be-used-as-a-unique-file-identifier

As you know, most modern filesystem support Extended File Attributes, we could generate a UUID for file and store it in xattrs, which will associated with inodes (files, directories, symlinks, etc).

https://en.wikipedia.org/wiki/Extended_file_attributes
http://manpages.ubuntu.com/manpages/precise/man2/getxattr.2.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant