mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-29 13:15:05 +00:00
boot/zfs: Add some fields to dsl_dir_phys_t
Most of the first block of pad bytes are now used for space accounting purposes. No functional change intended. MFC after: 1 week Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
cb63a64b8c
commit
731b737107
|
@ -1406,6 +1406,17 @@ typedef enum {
|
|||
#define SM2_RUN_MAX SM2_RUN_DECODE(~0ULL)
|
||||
#define SM2_OFFSET_MAX SM2_OFFSET_DECODE(~0ULL)
|
||||
|
||||
typedef enum dd_used {
|
||||
DD_USED_HEAD,
|
||||
DD_USED_SNAP,
|
||||
DD_USED_CHILD,
|
||||
DD_USED_CHILD_RSRV,
|
||||
DD_USED_REFRSRV,
|
||||
DD_USED_NUM
|
||||
} dd_used_t;
|
||||
|
||||
#define DD_FLAG_USED_BREAKDOWN (1 << 0)
|
||||
|
||||
typedef struct dsl_dir_phys {
|
||||
uint64_t dd_creation_time; /* not actually used */
|
||||
uint64_t dd_head_dataset_obj;
|
||||
|
@ -1424,7 +1435,9 @@ typedef struct dsl_dir_phys {
|
|||
/* Administrative reservation setting */
|
||||
uint64_t dd_reserved;
|
||||
uint64_t dd_props_zapobj;
|
||||
uint64_t dd_pad[7];
|
||||
uint64_t dd_pad[1];
|
||||
uint64_t dd_flags;
|
||||
uint64_t dd_used_breakdown[DD_USED_NUM];
|
||||
uint64_t dd_clones;
|
||||
uint64_t dd_pad1[13]; /* pad out to 256 bytes for good measure */
|
||||
} dsl_dir_phys_t;
|
||||
|
|
Loading…
Reference in a new issue