diff options
author | Shaun Amott <shaun@FreeBSD.org> | 2006-11-28 23:35:01 +0000 |
---|---|---|
committer | Shaun Amott <shaun@FreeBSD.org> | 2006-11-28 23:35:01 +0000 |
commit | cbd80d14b62b45aa2ba37fc7d8ec4d0c0f152d7a (patch) | |
tree | 40f3208a0d8f09eddcaf9387af67f28de9812e2c /sysutils/diskscrub/files | |
parent | PKGNAMESUFFIX needs a - before the string ... (diff) |
Add sysutils/diskscrub:
This port performs disk scrubbing on either an entire disk, a single
file, or 'free space' (by creating a new file that fills the FS and
scrubbing that).
PR: ports/105980
Submitted by: Erik Greenwald <erik@smluc.org>
Diffstat (limited to 'sysutils/diskscrub/files')
-rw-r--r-- | sysutils/diskscrub/files/extrapatch-freebsd4 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sysutils/diskscrub/files/extrapatch-freebsd4 b/sysutils/diskscrub/files/extrapatch-freebsd4 new file mode 100644 index 000000000000..a0916b57737c --- /dev/null +++ b/sysutils/diskscrub/files/extrapatch-freebsd4 @@ -0,0 +1,16 @@ +--- getsize.c.orig Thu Aug 17 05:15:45 2006 ++++ getsize.c Tue Nov 28 23:00:49 2006 +@@ -81,6 +81,13 @@ + #elif defined(__FreeBSD__) + /* scrub-1.7 tested freebsd 5.3-RELEASE-p5 */ + #include <sys/ioctl.h> ++#include <sys/queue.h> ++ ++#ifndef DIOCGMEDIASIZE ++#define DIOCGMEDIASIZE _IOR('d', 129, off_t) /* Get media size in bytes */ ++#endif ++ ++#include <sys/disklabel.h> + #include <sys/disk.h> + + off_t |