mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
Folder watching under Linux might be broken for SMB2/3 network filesystems. #7892
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#7892
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Cilph on GitHub (Oct 9, 2018).
Please provide the following information
qBittorrent version and Operating System
qBittorrent 4.1.3, Debian Linux 9
What is the problem
Running qBittorrent in a docker setup, watching a networked SMB folder (/downloads/watch/), results in no torrents being added either by inotify or polling. Except on startup and local changes. The folder is mounted as SMB3 (vers=3.0)
What is the expected behavior
The watched folder will be polled periodically.
Extra info(if any)
I've did some of my own investigation and found that
statreports the networked folder as of typesmb2. Peeking intoUtils::Fs::isNetworkFileSystemreveals checks for CIFS, NFS and SMB. SMB2 however uses a different magic number (0xFE534D42) compared to the one listed (0x517B) which seems to only match SMB1. This would result in no periodic polling being done on the watched folder. The difference being presumably because of the large protocol differences between SMB1 and SMB2/3. Adjusting my mount options to use SMB1 explicitly (vers=1.0) seems to fix the issue entirely, seemingly confirming my hypothesis.@Chocobo1 commented on GitHub (Oct 9, 2018):
Thanks for reporting! I've submitted PR #9673.
@Chocobo1 commented on GitHub (Oct 11, 2018):
Will be fixed in next release v4.1.4.