diff options
author | Jakob Unterwurzacher | 2018-07-15 14:14:12 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2018-07-15 15:12:55 +0200 |
commit | c70df522d2a78f3152fa61511bed9fafa7c495a3 (patch) | |
tree | 0ce081f2454a8e6da923355d11e5ed832ad7e302 /internal/fusefrontend/file_holes.go | |
parent | 55bb22bad6c196f363ad27fbedad4f5360c4879f (diff) |
fusefrontend: doWrite: delete file header if first write fails
xfstests generic/083 fills the filesystem almost completely while
running fsstress in parallel. In fsck, these would show up:
readFileID 2580: incomplete file, got 18 instead of 19 bytes
This could happen when writing the file header works, but writing
the actual data fails.
Now we kill the header again by truncating the file to zero.
Diffstat (limited to 'internal/fusefrontend/file_holes.go')
-rw-r--r-- | internal/fusefrontend/file_holes.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/internal/fusefrontend/file_holes.go b/internal/fusefrontend/file_holes.go index 04a00ec..3725f56 100644 --- a/internal/fusefrontend/file_holes.go +++ b/internal/fusefrontend/file_holes.go @@ -36,7 +36,6 @@ func (f *File) writePadHole(targetOff int64) fuse.Status { // will contain a file hole in the ciphertext. status := f.zeroPad(plainSize) if status != fuse.OK { - tlog.Warn.Printf("zeroPad returned error %v", status) return status } return fuse.OK |