]> git.proxmox.com Git - mirror_zfs-debian.git/blobdiff - include/sys/uberblock_impl.h
New upstream version 0.7.2
[mirror_zfs-debian.git] / include / sys / uberblock_impl.h
index 6ab6aa3135a2205d72ea388d51791866f7c7ed9d..08eeabdda9d689149c636f1bfea9abaf927c7557 100644 (file)
@@ -20,6 +20,7 @@
  */
 /*
  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017 by Delphix. All rights reserved.
  */
 
 #ifndef _SYS_UBERBLOCK_IMPL_H
@@ -43,6 +44,7 @@ extern "C" {
  */
 #define        UBERBLOCK_MAGIC         0x00bab10c              /* oo-ba-bloc!  */
 #define        UBERBLOCK_SHIFT         10                      /* up to 1K     */
+#define        MMP_MAGIC               0xa11cea11              /* all-see-all  */
 
 struct uberblock {
        uint64_t        ub_magic;       /* UBERBLOCK_MAGIC              */
@@ -54,6 +56,12 @@ struct uberblock {
 
        /* highest SPA_VERSION supported by software that wrote this txg */
        uint64_t        ub_software_version;
+
+       /* Maybe missing in uberblocks we read, but always written */
+       uint64_t        ub_mmp_magic;   /* MMP_MAGIC                    */
+       uint64_t        ub_mmp_delay;   /* nanosec since last MMP write */
+       uint64_t        ub_mmp_seq;     /* reserved for sequence number */
+       uint64_t        ub_checkpoint_txg;
 };
 
 #ifdef __cplusplus