Skip to content

Modified inotify update condition#208

Open
obi1 wants to merge 4 commits intorakshasa:masterfrom
obi1:master
Open

Modified inotify update condition#208
obi1 wants to merge 4 commits intorakshasa:masterfrom
obi1:master

Conversation

@obi1
Copy link
Copy Markdown
Contributor

@obi1 obi1 commented Dec 28, 2019

If using nfs or samba files get closed with CLOSE_NOWRITE or their
attributes get changed (ATTRIB). If inotify doesn't report these events
a lot of files gets missed due to not being readable.

obi1 added 4 commits November 30, 2019 21:31
If a browser uses temporary files in the same folder as destination
a inotify event occurs for the temporary file and is added by libtorrent
before the rename happens. In this case when removing the torrent the
file associated with it did not exist anymore. Sometimes the rename
happened just before libtorrent wanted to add the temporary file. In
that case the torrent was not added to downloads. This fix tells
libtorrent to just add files ending in .torrent. Maybe a better fix
would be to add a rename handler.
If using nfs or samba files get closed with CLOSE_NOWRITE or their
attributes get changed (ATTRIB). If inotify doesn't report these events
a lot of files gets missed due to not being readable.
If using nfs or samba files get closed with CLOSE_NOWRITE or their
attributes get changed (ATTRIB). If inotify doesn't report these events
a lot of files gets missed due to not being readable.
@neheb
Copy link
Copy Markdown
Contributor

neheb commented Apr 22, 2025

is this still relevant?

itr->slot(itr->path + event->name);
if (itr != m_wd_list.end()) {
std::string sname(event->name);
if((sname.substr(sname.find_last_of(".") ) == ".torrent"))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks very similar to already present code...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beats me, It's been over 5 years since this commit...

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.

2 participants