Commit graph

7 commits

Author SHA1 Message Date
dholland
e427df6d13 Use DIOCGINFO and/or DIOCGWEDGEINFO if DIOCGPART isn't defined. Fixes
build on netbsd-6 and up. Caution: while it builds, I haven't actually
tested it.
2013-06-17 06:09:06 +00:00
dholland
c0e9ec90a0 Merge two patches that patch the same file. 2013-06-17 05:37:22 +00:00
obache
e89e58a1c1 Add an patch for DragonFly, based on PR#44348 by Tony Young. 2011-01-10 06:12:16 +00:00
joerg
3697bfb680 DESTDIR support 2010-01-27 20:28:15 +00:00
joerg
0b5fc8af1d Depend on errno.h for errno. 2005-11-10 16:31:25 +00:00
agc
d81d19f8e0 Add RMD160 digests. 2005-02-24 12:51:41 +00:00
minskim
363f3ec7e1 Import wipe from pkgsrc-wip. Packaged by pancake and modified by me.
Wipe is a secure file wiping utility.

There are some low level issues that must be taken into consideration.
One of these is that there must be some sort of write barrier between
passes.  Wipe uses fdatasync(2) (or fsync(2)) as a write barrier, or
if fsync(2) isn't available, the file is opened with the O_DSYNC or
O_SYNC flag.  For wipe to be effective, each pass must be completely
written.  To ensure this, the drive must support some form of a write
barrier, write cache flush, or write cache disabling.  SCSI supports
ordered command tags, has a force media access bit for commands, and
write cache can be disable on mode page 8.  IDE/ATA drives support
write cache flushes and write cache disabling.

Unfortunately, not all drives actually disable write cache when asked
to.  Those drives are broken.  Write caching should always be
disabled, unless your system is battery backed and always powers down
cleanly.
2004-08-16 20:15:54 +00:00