aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/geom_disk.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2013-10-25 19:19:12 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2013-10-25 19:19:12 +0000
commitd6d78db57f839cad9bb5e100e4a0f249eee5b2a6 (patch)
treedc60ebcf360ca88130b3309ee3dcb548d97af395 /sys/geom/geom_disk.h
parent498fa7c1f9c8fa941e443c8c11c280b1853d8557 (diff)
downloadsrc-d6d78db57f839cad9bb5e100e4a0f249eee5b2a6.tar.gz
src-d6d78db57f839cad9bb5e100e4a0f249eee5b2a6.zip
Reject attempts to attack a disk device that has the old NEEDSGIANT
flag set. Reviewed by: mav
Notes
Notes: svn path=/head/; revision=257131
Diffstat (limited to 'sys/geom/geom_disk.h')
-rw-r--r--sys/geom/geom_disk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/geom_disk.h b/sys/geom/geom_disk.h
index 3c983ee6e043..4cf53c4e5d0f 100644
--- a/sys/geom/geom_disk.h
+++ b/sys/geom/geom_disk.h
@@ -103,6 +103,7 @@ struct disk {
void *d_drv1;
};
+#define DISKFLAG_RESERVED 0x1 /* Was NEEDSGIANT */
#define DISKFLAG_OPEN 0x2
#define DISKFLAG_CANDELETE 0x4
#define DISKFLAG_CANFLUSHCACHE 0x8