Skip to content

Mount and unmount openvfs#795

Merged
TheOneRing merged 2 commits intomainfrom
work/vfs_mount
Feb 12, 2026
Merged

Mount and unmount openvfs#795
TheOneRing merged 2 commits intomainfrom
work/vfs_mount

Conversation

@TheOneRing
Copy link
Contributor

@TheOneRing TheOneRing commented Feb 4, 2026

I could split the changes here in two reviews if needed.
The refactoring of the vfs cases to make checkAvailability available without an instance of a backend and the mount/unmount part.

I'm currently not happy with the name checkAvailability as it does more than that and takes care of the unmounting of the stale mounts.

Depends on: dragotin/openvfs#22

@TheOneRing TheOneRing force-pushed the work/vfs_mount branch 5 times, most recently from 03d782f to 7b74175 Compare February 5, 2026 08:56
@TheOneRing TheOneRing marked this pull request as ready for review February 5, 2026 08:57
@TheOneRing TheOneRing changed the title Work/vfs mount Mount and unmount openvfs Feb 5, 2026
@TheOneRing TheOneRing requested a review from dragotin February 5, 2026 08:57
@TheOneRing TheOneRing force-pushed the work/vfs_mount branch 4 times, most recently from e98b5bf to 1beb67c Compare February 9, 2026 15:07
@TheOneRing TheOneRing force-pushed the work/vfs_mount branch 2 times, most recently from 0d405a5 to fd41181 Compare February 11, 2026 10:59
Copy link
Member

@dragotin dragotin left a comment

Choose a reason for hiding this comment

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

Yes, lets go and do more testing.

const auto result = VfsPluginManager::instance().checkAvailability(path(), _vfs->mode());
if (!result) {
error = result.error();
} else if (error.isEmpty()) {
Copy link
Member

Choose a reason for hiding this comment

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

Hm, I think it would be nicer to have the vfs preperation in its own method rather than stuffing it into checkLocalPath(). How about prepVfs() or something, just to make the purpose more clear?

@TheOneRing TheOneRing force-pushed the work/vfs_mount branch 2 times, most recently from 6d9ec27 to 1917c2b Compare February 12, 2026 10:46
@TheOneRing TheOneRing enabled auto-merge (rebase) February 12, 2026 13:10
@TheOneRing TheOneRing disabled auto-merge February 12, 2026 13:10
@TheOneRing TheOneRing merged commit 63e4fa1 into main Feb 12, 2026
9 of 13 checks passed
@TheOneRing TheOneRing deleted the work/vfs_mount branch February 12, 2026 13:10
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

Comments