WDef
Group: Members
Posts: 798
Joined: Sep. 2005 |
|
Posted: Jan. 03 2008,20:27 |
|
Doing sync is a good idea after writing any file to disk when there is a risk that the drive might get disconnected shortly after, or when you otherwise want previous writes to be finished - otherwise data might still be sitting in the buffer and never have time to get written.
Especially important with slow-writing devices like usb sticks.
umount is supposed to call sync, so the buffer should get flushed on umounting the drive.
|