aboutsummaryrefslogtreecommitdiff
path: root/internal/syscallcompat/getdents_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-07-15 12:00:08 +0200
committerJakob Unterwurzacher2018-07-15 12:02:39 +0200
commitbbf5b72fff8b07251faacce9e77dd427a4379081 (patch)
treeee7da7a4ba45cc51906c97f812d84d6812feace2 /internal/syscallcompat/getdents_test.go
parentbcca323cb778d3ab9bf3b16e041ede5e67b18ff8 (diff)
WriteDirIV: delete incomplete gocryptfs.diriv file if write fails
If the underlying filesystem is full, writing to gocryptfs.diriv may fail, and later fsck show this: OpenDir "xyz": could not read gocryptfs.diriv: wanted 16 bytes, got 0 Uncovered by xfstests generic/083. Also fixes a fd leak in the error path.
Diffstat (limited to 'internal/syscallcompat/getdents_test.go')
0 files changed, 0 insertions, 0 deletions