What Happens When Writing to a Completely Full Hard Drive?

JoAuSc
Messages
197
Reaction score
1
Let's say you're running a Fortran program that writes to the hard drive. What happens when the hard drive is completely full? Do other files get written over?
 
on Phys.org
This is an operating system issue, not a Fortran issue. A write request that would more than consume all available disk space will fail on any reasonable operating system.
 
For DOS and Windows, the returned count of bytes written will be less than requested, and will be zero if the disk is already full.
 
JoAuSc said:
Let's say you're running a Fortran program that writes to the hard drive. What happens when the hard drive is completely full? Do other files get written over?

Your command will fail.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
Replies
13
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
2
Views
2K
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 49 ·
2
Replies
49
Views
5K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
69
Views
12K