Repository navigation
Reduce number of possible stats in LocalInfo - #1123
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Fix placeholder misclassification and avoid duplicate metadata operations during discovery.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Refactors local filesystem type detection into LocalInfo and updates its consumers.
Changes:
- Centralizes type inference and adds move support to
LocalInfo. - Updates discovery, filesystem, VFS, tests, and build configuration.
- Removes the obsolete type helper.
| File | Summary |
|---|---|
test/testutility.cpp |
Updates LocalInfo includes. |
src/libsync/vfs/vfs.h |
Updates VFS includes. |
src/libsync/localinfo.h |
Updates the LocalInfo API. |
src/libsync/localinfo.cpp |
Implements type inference and move support. |
src/libsync/filesystem.cpp |
Uses LocalInfo for type checks. |
src/libsync/discoveryphase.cpp |
Uses LocalInfo during discovery. |
src/libsync/discovery.h |
Updates includes. |
src/libsync/CMakeLists.txt |
Builds localinfo.cpp. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
TheOneRing
force-pushed
the
work/less_stats
branch
5 times, most recently
from
September 29, 2026 08:36
482cc2f to
a58e261
Compare
TheOneRing
force-pushed
the
work/less_stats
branch
from
September 29, 2026 10:18
2b0b756 to
37feca4
Compare
dragotin
requested changes
Sep 29, 2026
| } | ||
| #else | ||
| struct stat sb; | ||
| if (lstat(dirent.path().native().data(), &sb) < 0) { |
Member
There was a problem hiding this comment.
Why dont we use QFileInfo here?
Contributor
Author
There was a problem hiding this comment.
because we would not get the inode
TheOneRing
force-pushed
the
work/less_stats
branch
from
September 30, 2026 08:51
37feca4 to
1d8e884
Compare
dragotin
approved these changes
Sep 30, 2026
TheOneRing
force-pushed
the
work/less_stats
branch
from
September 30, 2026 12:46
1d8e884 to
c425528
Compare
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.


No description provided.