summaryrefslogtreecommitdiff
path: root/usr/src/cmd/boot/installgrub/installgrub.h
diff options
context:
space:
mode:
authorHans Rosenfeld <hans.rosenfeld@nexenta.com>2015-02-23 18:49:34 +0100
committerDan McDonald <danmcd@omniti.com>2015-02-26 12:09:40 -0500
commit9348d232b12debc31fa8e694c517ad8ecfd54bda (patch)
treebb69f8dff59c37873cb4696f06ea147c47420b56 /usr/src/cmd/boot/installgrub/installgrub.h
parentda5086c104e170d3832a3e1782dc8617061c7fc6 (diff)
downloadillumos-joyent-9348d232b12debc31fa8e694c517ad8ecfd54bda.tar.gz
5664 make installgrub more robust, bump grub capability version
Reviewed by: Jean McCormack <jean.mccormack@nexenta.com> Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/cmd/boot/installgrub/installgrub.h')
-rw-r--r--usr/src/cmd/boot/installgrub/installgrub.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/src/cmd/boot/installgrub/installgrub.h b/usr/src/cmd/boot/installgrub/installgrub.h
index 037ffad4ce..cf3f4f5a92 100644
--- a/usr/src/cmd/boot/installgrub/installgrub.h
+++ b/usr/src/cmd/boot/installgrub/installgrub.h
@@ -91,6 +91,12 @@ enum ig_devtype_t {
#define STAGE2_BLKOFF(type) \
(is_efi(type) ? 1024 : 50) /* offset from start of part */
+/*
+ * Maximum size of stage2 on EFI-labeled disks. Must not be larger than
+ * VDEV_BOOT_SIZE, defined in usr/src/uts/common/fs/zfs/sys/vdev_impl.h
+ */
+#define STAGE2_MAXSIZE (1ULL << 19)
+
#ifdef __cplusplus
}
#endif