aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorJakob Unterwurzacher2026-07-16 21:01:01 +0200
committerJakob Unterwurzacher2026-07-16 22:07:54 +0200
commit67e9abeb2830c517cbcbbd93de184055b2d4227b (patch)
treea3c557cc6b0f8cf6949ebc6b135d849fdfb1ee40 /internal
parentb89f0dc94bd83857b187a84a0d4ae127000f0b1c (diff)
tests/cluster: fix possible fd exhaustion
...and one typo.
Diffstat (limited to 'internal')
-rw-r--r--internal/fusefrontend/file_allocate_truncate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fusefrontend/file_allocate_truncate.go b/internal/fusefrontend/file_allocate_truncate.go
index ecef0f1..ad02041 100644
--- a/internal/fusefrontend/file_allocate_truncate.go
+++ b/internal/fusefrontend/file_allocate_truncate.go
@@ -126,7 +126,7 @@ func (f *File) truncate(newSize uint64) (errno syscall.Errno) {
return fs.ToErrno(syscall.Ftruncate(int(f.fd.Fd()), contentenc.HeaderLen))
}
// We don't have the file ID cached, so the file may be empty on disk.
- // We dont't want to grow it, as this will create an all-zero header.
+ // We don't want to grow it, as this will create an all-zero header.
fi, err := f.fd.Stat()
if err != nil {
return fs.ToErrno(err)