Repository navigation
Conversation
FolderWizardSelectiveSync::validatePage() only accepted the "use virtual files instead of downloading content immediately" checkbox when the best available VFS mode was WindowsCfApi. On Linux the best available mode is OpenVFS, so the tick was silently discarded: the folder was created as a classic sync folder and the client downloaded all files immediately, although the user had selected virtual files. Use the mode that was actually detected and let Vfs::checkAvailability() validate it, instead of hard coding the Windows mode. Fixes nextcloud#11096 Refs nextcloud#11193 Signed-off-by: fwuerrer <fwuerrer@users.noreply.github.com>
fwuerrer
requested review from
camilasan,
claucambra,
i2h3,
mgallien and
nilsding
as code owners
November 2, 2026 09:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FolderWizardSelectiveSync::validatePage()only honoured the "Use virtual files instead of downloading content immediately" checkbox when the best available VFS mode wasWindowsCfApi:On Linux the best available mode is
Vfs::OpenVFS, souseVirtualFileswas alwaysfalse, the wizard reporteduseVirtualFiles=falseandAccountSettings::slotFolderWizardAccepted()leftFolderDefinition::virtualFilesModeatVfs::Off. The checkbox is shown on Linux (it is aQCheckBoxcreated wheneverbestAvailableVfsMode() != Vfs::Off), so the user could tick it and it was silently ignored — the folder was created as a classic sync folder and everything was downloaded.Fixes #11096.
Change
Accept the checkbox for every available VFS mode and let the existing
Vfs::checkAvailability()call in the same function validate the selected location, instead of hard coding the Windows mode:How to test
fuse3+ config installed).virtualFilesMode=openvfsand the files show up as placeholders instead of being downloaded.Without the patch the tick is discarded and the whole folder is downloaded, exactly as reported in #11096.
Notes
This very likely also addresses #11193: the "> 500 MB" and external storage exclusions are already disabled for VFS folders (
DiscoveryPhase::activeFolderSizeLimit()/checkSelectiveSyncNewFolder()return early when the VFS mode is notOff), they only appeared because such folders were created without VFS at all. I would still like that one to be confirmed by the reporter before closing it.