Skip to content

Conversation

@butonic
Copy link

@butonic butonic commented Nov 10, 2025

fixes opencloud-eu/opencloud#1793

This will leave empty mlock files on disk. We MUST NOT delete them, or the inode might change, which will allow more than one goroutine to "lock" the file, because file handles used by FLOCK underneath use the inode.

We need to find another solution if we want to keep the disk tidy. For now, the mlock files have to stay. In posix we have moved them to a metadata folder so they do not clutter the normal files.

@butonic butonic self-assigned this Nov 10, 2025
@butonic butonic requested a review from rhafer November 10, 2025 12:07
@github-project-automation github-project-automation bot moved this to Qualification in OpenCloud Team Board Nov 10, 2025
@butonic butonic moved this from Qualification to In Progress in OpenCloud Team Board Nov 10, 2025
@butonic
Copy link
Author

butonic commented Nov 10, 2025

hm, we should at least delete the mlock file when deleting the file 🤔

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
@butonic butonic force-pushed the fix-metadata-locking branch from a0bfab3 to be86d8b Compare November 10, 2025 14:24
@butonic
Copy link
Author

butonic commented Nov 10, 2025

Leaving opencloud-eu/opencloud#1827 as a followup issue

@butonic
Copy link
Author

butonic commented Nov 10, 2025

  • also recursively purge metadata for decomposedfs
  • use concurrency to speed up listing of trash

…h items

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
@butonic butonic force-pushed the fix-metadata-locking branch from 7196109 to beb7cab Compare November 11, 2025 08:45
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
@rhafer rhafer merged commit be4e151 into main Nov 12, 2025
19 checks passed
@rhafer rhafer deleted the fix-metadata-locking branch November 12, 2025 10:09
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenCloud Team Board Nov 12, 2025
@openclouders openclouders mentioned this pull request Nov 10, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Treesize propagation seems to be broken

3 participants