ports/sysutils/diskscrub/files/extrapatch-freebsd4
Shaun Amott cbd80d14b6 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>
2006-11-28 23:35:01 +00:00

16 lines
401 B
Text

--- 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