Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / wipe / DESCR
bloba20578a5a0374246af0341f0b32ffffbf896f493
1 Wipe is a secure file wiping utility.
3 There are some low level issues that must be taken into consideration.
4 One of these is that there must be some sort of write barrier between
5 passes.  Wipe uses fdatasync(2) (or fsync(2)) as a write barrier, or
6 if fsync(2) isn't available, the file is opened with the O_DSYNC or
7 O_SYNC flag.  For wipe to be effective, each pass must be completely
8 written.  To ensure this, the drive must support some form of a write
9 barrier, write cache flush, or write cache disabling.  SCSI supports
10 ordered command tags, has a force media access bit for commands, and
11 write cache can be disable on mode page 8.  IDE/ATA drives support
12 write cache flushes and write cache disabling.
14 Unfortunately, not all drives actually disable write cache when asked
15 to.  Those drives are broken.  Write caching should always be
16 disabled, unless your system is battery backed and always powers down
17 cleanly.