The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/openzfs/include/sys/vdev_indirect_births.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * CDDL HEADER START
    3  *
    4  * This file and its contents are supplied under the terms of the
    5  * Common Development and Distribution License ("CDDL"), version 1.0.
    6  * You may only use this file in accordance with the terms of version
    7  * 1.0 of the CDDL.
    8  *
    9  * A full copy of the text of the CDDL should have accompanied this
   10  * source.  A copy of the CDDL is also available via the Internet at
   11  * http://www.illumos.org/license/CDDL.
   12  *
   13  * CDDL HEADER END
   14  */
   15 
   16 /*
   17  * Copyright (c) 2015 by Delphix. All rights reserved.
   18  */
   19 
   20 #ifndef _SYS_VDEV_INDIRECT_BIRTHS_H
   21 #define _SYS_VDEV_INDIRECT_BIRTHS_H
   22 
   23 #include <sys/dmu.h>
   24 #include <sys/spa.h>
   25 
   26 #ifdef  __cplusplus
   27 extern "C" {
   28 #endif
   29 
   30 typedef struct vdev_indirect_birth_entry_phys {
   31         uint64_t vibe_offset;
   32         uint64_t vibe_phys_birth_txg;
   33 } vdev_indirect_birth_entry_phys_t;
   34 
   35 typedef struct vdev_indirect_birth_phys {
   36         uint64_t        vib_count; /* count of v_i_b_entry_phys_t's */
   37 } vdev_indirect_birth_phys_t;
   38 
   39 typedef struct vdev_indirect_births {
   40         uint64_t        vib_object;
   41 
   42         /*
   43          * Each entry indicates that everything up to but not including
   44          * vibe_offset was copied in vibe_phys_birth_txg. Entries are sorted
   45          * by increasing phys_birth, and also by increasing offset. See
   46          * vdev_indirect_births_physbirth for usage.
   47          */
   48         vdev_indirect_birth_entry_phys_t *vib_entries;
   49 
   50         objset_t        *vib_objset;
   51 
   52         dmu_buf_t       *vib_dbuf;
   53         vdev_indirect_birth_phys_t      *vib_phys;
   54 } vdev_indirect_births_t;
   55 
   56 extern vdev_indirect_births_t *vdev_indirect_births_open(objset_t *os,
   57     uint64_t object);
   58 extern void vdev_indirect_births_close(vdev_indirect_births_t *vib);
   59 extern boolean_t vdev_indirect_births_is_open(vdev_indirect_births_t *vib);
   60 extern uint64_t vdev_indirect_births_alloc(objset_t *os, dmu_tx_t *tx);
   61 extern void vdev_indirect_births_free(objset_t *os, uint64_t object,
   62     dmu_tx_t *tx);
   63 
   64 extern uint64_t vdev_indirect_births_count(vdev_indirect_births_t *vib);
   65 extern uint64_t vdev_indirect_births_object(vdev_indirect_births_t *vib);
   66 
   67 extern void vdev_indirect_births_add_entry(vdev_indirect_births_t *vib,
   68     uint64_t offset, uint64_t txg, dmu_tx_t *tx);
   69 
   70 extern uint64_t vdev_indirect_births_physbirth(vdev_indirect_births_t *vib,
   71     uint64_t offset, uint64_t asize);
   72 
   73 extern uint64_t vdev_indirect_births_last_entry_txg(
   74     vdev_indirect_births_t *vib);
   75 
   76 #ifdef  __cplusplus
   77 }
   78 #endif
   79 
   80 #endif  /* _SYS_VDEV_INDIRECT_BIRTHS_H */

Cache object: 5884724b6578f23d48de2890c0a2cbc3


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.