From a95d6ac5818a749db67d34bcbe9a358d403b6a6e Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 16 Jul 2026 20:32:51 +0200 Subject: fusefrontend: sharedstorage: introduce UnlockSharedStorage helper --- internal/fusefrontend/file_allocate_truncate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/fusefrontend/file_allocate_truncate.go') diff --git a/internal/fusefrontend/file_allocate_truncate.go b/internal/fusefrontend/file_allocate_truncate.go index 7f1371c..ecef0f1 100644 --- a/internal/fusefrontend/file_allocate_truncate.go +++ b/internal/fusefrontend/file_allocate_truncate.go @@ -115,7 +115,7 @@ func (f *File) truncate(newSize uint64) (errno syscall.Errno) { // racy on tmpfs and ext4 ( https://lore.kernel.org/all/18e9fa0f-ec31-9107-459c-ae1694503f87@gmail.com/t/ ) // as evident by TestOpenTruncate test failures. f.LockSharedStorage(unix.F_WRLCK, 0, 0) - defer f.LockSharedStorage(unix.F_UNLCK, 0, 0) + defer f.UnlockSharedStorage(0, 0) // With -sharedstorage, we keep the on-disk file header. // Other mounts may have the file ID cached so we cannot mess with it. -- cgit v1.2.3