Bug 397 – writing an file to a partition without enough free space creates "ghosts" files
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-10-04T01:36:00Z
Last change time
2014-02-15T13:19:26Z
Assigned to
bugzilla
Creator
thomas-dloop
Comments
Comment #0 by thomas-dloop — 2006-10-04T01:36:33Z
"dmd -c test.d" has to create an object file bigger than the remaining free space on the device.
> ls -l /cage
total 998
-rw-r----- 1 tk tk 1015808 2006-10-04 09:07 fill
> dmd -c test.d -of/cage/test.o
Error: Error writing file '/cage/test.o'
> ls -l /cage
total 999
-rw-r----- 1 tk tk 0 2006-10-04 09:08 test.o
-rw-r----- 1 tk tk 1015808 2006-10-04 09:07 fill
The empty test.o shouldn't be there after dmd finishes.
The same happens for "dmd -D -o- -Dd/cage" and "dmd -H -o- -Hd/cage".