FreeBSD ZFS
The Zettabyte File System
Data Fields

znode_phys Struct Reference

This is a deprecated data structure that only exists for dealing with file systems create prior to ZPL version 5. More...

#include <zfs_sa.h>

Collaboration diagram for znode_phys:
Collaboration graph
[legend]

Data Fields

uint64_t zp_atime [2]
 0 - last file access time
uint64_t zp_mtime [2]
 16 - last file modification time
uint64_t zp_ctime [2]
 32 - last file change time
uint64_t zp_crtime [2]
 48 - creation time
uint64_t zp_gen
 64 - generation (txg of creation)
uint64_t zp_mode
 72 - file mode bits
uint64_t zp_size
 80 - size of file
uint64_t zp_parent
 88 - directory parent (`..')
uint64_t zp_links
 96 - number of links to file
uint64_t zp_xattr
 104 - DMU object for xattrs
uint64_t zp_rdev
 112 - dev_t for VBLK & VCHR files
uint64_t zp_flags
 120 - persistent flags
uint64_t zp_uid
 128 - file owner
uint64_t zp_gid
 136 - owning group
uint64_t zp_zap
 144 - extra attributes
uint64_t zp_pad [3]
 152 - future
zfs_acl_phys_t zp_acl
 176 - 263 ACL

Detailed Description

This is a deprecated data structure that only exists for dealing with file systems create prior to ZPL version 5.

Data may pad out any remaining bytes in the znode buffer, eg:

 
  |<---------------------- dnode_phys (512) ------------------------>|
  |<-- dnode (192) --->|<----------- "bonus" buffer (320) ---------->|
 			|<---- znode (264) ---->|<---- data (56) ---->|
 
 

At present, we use this space for the following:

Definition at line 109 of file zfs_sa.h.


Field Documentation

176 - 263 ACL

Definition at line 126 of file zfs_sa.h.

uint64_t znode_phys::zp_atime[2]

0 - last file access time

Definition at line 110 of file zfs_sa.h.

uint64_t znode_phys::zp_crtime[2]

48 - creation time

Definition at line 113 of file zfs_sa.h.

uint64_t znode_phys::zp_ctime[2]

32 - last file change time

Definition at line 112 of file zfs_sa.h.

120 - persistent flags

Definition at line 121 of file zfs_sa.h.

64 - generation (txg of creation)

Definition at line 114 of file zfs_sa.h.

136 - owning group

Definition at line 123 of file zfs_sa.h.

96 - number of links to file

Definition at line 118 of file zfs_sa.h.

72 - file mode bits

Definition at line 115 of file zfs_sa.h.

uint64_t znode_phys::zp_mtime[2]

16 - last file modification time

Definition at line 111 of file zfs_sa.h.

uint64_t znode_phys::zp_pad[3]

152 - future

Definition at line 125 of file zfs_sa.h.

88 - directory parent (`..')

Definition at line 117 of file zfs_sa.h.

112 - dev_t for VBLK & VCHR files

Definition at line 120 of file zfs_sa.h.

80 - size of file

Definition at line 116 of file zfs_sa.h.

128 - file owner

Definition at line 122 of file zfs_sa.h.

104 - DMU object for xattrs

Definition at line 119 of file zfs_sa.h.

144 - extra attributes

Definition at line 124 of file zfs_sa.h.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines