summaryrefslogtreecommitdiffstats
path: root/sys/sys/disk.h
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2014-11-06 00:48:36 +0000
committermav <mav@FreeBSD.org>2014-11-06 00:48:36 +0000
commite22f45febced94fa20499d8f0e1ac165420b311f (patch)
treea7ac3756c88f1b3d46b44245bc78d1a55eb63a56 /sys/sys/disk.h
parent7f33ec799c2121befb5f0a4ad517023aa0bbb3f7 (diff)
downloadFreeBSD-src-e22f45febced94fa20499d8f0e1ac165420b311f.zip
FreeBSD-src-e22f45febced94fa20499d8f0e1ac165420b311f.tar.gz
Add to CTL support for logical block provisioning threshold notifications.
For ZVOL-backed LUNs this allows to inform initiators if storage's used or available spaces get above/below the configured thresholds. MFC after: 2 weeks Sponsored by: iXsystems, Inc.
Diffstat (limited to 'sys/sys/disk.h')
-rw-r--r--sys/sys/disk.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/sys/disk.h b/sys/sys/disk.h
index 112eed0..75e3100 100644
--- a/sys/sys/disk.h
+++ b/sys/sys/disk.h
@@ -124,4 +124,14 @@ void disk_err(struct bio *bp, const char *what, int blkdone, int nl);
* occupant of that location.
*/
+struct diocgattr_arg {
+ char name[64];
+ int len;
+ union {
+ char str[DISK_IDENT_SIZE];
+ off_t off;
+ } value;
+};
+#define DIOCGATTR _IOWR('d', 142, struct diocgattr_arg)
+
#endif /* _SYS_DISK_H_ */
OpenPOWER on IntegriCloud