Skip to content

Reduce number of possible stats in LocalInfo - #1123

Merged
TheOneRing merged 1 commit into
mainfrom
work/less_stats
Sep 30, 2026
Merged

TheOneRing merged 1 commit into
mainfrom
work/less_stats

Conversation

@TheOneRing

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

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.

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 Medium severity

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.

Comment thread src/libsync/discoveryphase.cpp Resolved
@TheOneRing
TheOneRing force-pushed the work/less_stats branch 5 times, most recently from 482cc2f to a58e261 Compare September 29, 2026 08:36
@TheOneRing
TheOneRing requested a lite review from Copilot September 29, 2026 09:14

Copilot AI left a comment

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.

Copilot review overview

🟡 Changes recommended

Critical compilation and correctness issues remain unresolved.

Review effort: Lite
Findings: 1 High severity

Open (1)
Resolved since last review (1)

Comment thread src/plugins/vfs/openvfs/vfs_openvfs.cpp Resolved
Comment thread src/libsync/localinfo.cpp
}
#else
struct stat sb;
if (lstat(dirent.path().native().data(), &sb) < 0) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why dont we use QFileInfo here?

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.

because we would not get the inode

Comment thread src/plugins/vfs/cfapi/vfs_cfapi.cpp Resolved
@TheOneRing
TheOneRing merged commit 538315e into main Sep 30, 2026
14 of 15 checks passed
@TheOneRing
TheOneRing deleted the work/less_stats branch September 30, 2026 13:21
@openclouders openclouders mentioned this pull request Nov 13, 2026
1 task
@saw-jan saw-jan mentioned this pull request Nov 25, 2026
9 of 22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants