mirror of
https://git.freebsd.org/ports.git
synced 2025-06-12 16:20:33 -04:00
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>
16 lines
401 B
Text
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
|