I am copying a number of large files (50-500MB each). What I'm observing is that rsync continues to think it's syncing files even when
df reports no disk space left. (Or actually, it reports some amount less than the next file to be synced.) When I noticed this happening, I hit Control+C on the rsync process, and only then did it suddenly report it was out of disk space, reporting the file it ran out of disk space on was about 20 files back!
I've got a lot of RAM so I assume that everything is not getting synced to disk right away, but wouldn't the file system have to keep track of used space in RAM to know when it's out of space even though the actual data hadn't been written? The fact that
df shows there is no disk space left would seem to support this assumption.
In case it makes a different, this is on a Linux box running rsync between two NTFS formatted drives.
How do I get rsync to immediately fail when I run out of disk space?