summaryrefslogtreecommitdiffstats
path: root/sys/sys/disk.h
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2009-12-24 11:05:23 +0000
committermav <mav@FreeBSD.org>2009-12-24 11:05:23 +0000
commitf90d8324367d5d579faf67e2a84261d958916058 (patch)
treea2fd3264b860fd9b4d26648a1c3776d37606a4b0 /sys/sys/disk.h
parent5908bf1b9fa686f7864c16aae75e08714dc56192 (diff)
downloadFreeBSD-src-f90d8324367d5d579faf67e2a84261d958916058.zip
FreeBSD-src-f90d8324367d5d579faf67e2a84261d958916058.tar.gz
Add two disk ioctls, giving user-level tools information about disk/array
stripe (optimal access block) size and offset.
Diffstat (limited to 'sys/sys/disk.h')
-rw-r--r--sys/sys/disk.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/sys/disk.h b/sys/sys/disk.h
index 4fe2e09..422229e 100644
--- a/sys/sys/disk.h
+++ b/sys/sys/disk.h
@@ -104,4 +104,16 @@ void disk_err(struct bio *bp, const char *what, int blkdone, int nl);
* must be at least MAXPATHLEN bytes long.
*/
+#define DIOCGSTRIPESIZE _IOR('d', 139, off_t) /* Get stripe size in bytes */
+ /*-
+ * Get the size of the device's optimal access block in bytes.
+ * This should be a multiple of the sectorsize.
+ */
+
+#define DIOCGSTRIPEOFFSET _IOR('d', 140, off_t) /* Get stripe offset in bytes */
+ /*-
+ * Get the offset of the first device's optimal access block in bytes.
+ * This should be a multiple of the sectorsize.
+ */
+
#endif /* _SYS_DISK_H_ */
OpenPOWER on IntegriCloud