FreeBSD ZFS
The Zettabyte File System
Data Fields

znode Struct Reference

#include <zfs_znode.h>

Collaboration diagram for znode:
Collaboration graph
[legend]

Data Fields

struct zfsvfsz_zfsvfs
vnode_t * z_vnode
uint64_t z_id
 object ID for this znode
kmutex_t z_lock
 znode modification lock
krwlock_t z_parent_lock
 parent lock for directories
krwlock_t z_name_lock
 "master" lock for dirent locks
zfs_dirlock_tz_dirlocks
 directory entry lock list
kmutex_t z_range_lock
 protects changes to z_range_avl
avl_tree_t z_range_avl
 avl tree of file range locks
uint8_t z_unlinked
 file has been unlinked
uint8_t z_atime_dirty
 atime needs to be synced
uint8_t z_zn_prefetch
 Prefetch znodes?
uint8_t z_moved
 Has this znode been moved?
uint_t z_blksz
 block size in bytes
uint_t z_seq
 modification sequence number
uint64_t z_mapcnt
 number of pages mapped to file
uint64_t z_gen
 generation (cached)
uint64_t z_size
 file size (cached)
uint64_t z_atime [2]
 atime (cached)
uint64_t z_links
 file links (cached)
uint64_t z_pflags
 pflags (cached)
uint64_t z_uid
 uid fuid (cached)
uint64_t z_gid
 gid fuid (cached)
mode_t z_mode
 mode (cached)
uint32_t z_sync_cnt
 synchronous open count
kmutex_t z_acl_lock
 acl data lock
zfs_acl_tz_acl_cached
 cached acl
list_node_t z_link_node
 all znodes in fs link
sa_handle_tz_sa_hdl
 handle to sa data
boolean_t z_is_sa
 are we native sa?
struct task z_task
 FreeBSD-specific field.

Detailed Description

Definition at line 191 of file zfs_znode.h.


Field Documentation

cached acl

Definition at line 218 of file zfs_znode.h.

acl data lock

Definition at line 217 of file zfs_znode.h.

uint64_t znode::z_atime[2]

atime (cached)

Definition at line 210 of file zfs_znode.h.

atime needs to be synced

Definition at line 202 of file zfs_znode.h.

block size in bytes

Definition at line 205 of file zfs_znode.h.

directory entry lock list

Definition at line 198 of file zfs_znode.h.

uint64_t znode::z_gen

generation (cached)

Definition at line 208 of file zfs_znode.h.

uint64_t znode::z_gid

gid fuid (cached)

Definition at line 214 of file zfs_znode.h.

uint64_t znode::z_id

object ID for this znode

Definition at line 194 of file zfs_znode.h.

boolean_t znode::z_is_sa

are we native sa?

Definition at line 221 of file zfs_znode.h.

list_node_t znode::z_link_node

all znodes in fs link

Definition at line 219 of file zfs_znode.h.

uint64_t znode::z_links

file links (cached)

Definition at line 211 of file zfs_znode.h.

kmutex_t znode::z_lock

znode modification lock

Definition at line 195 of file zfs_znode.h.

uint64_t znode::z_mapcnt

number of pages mapped to file

Definition at line 207 of file zfs_znode.h.

mode_t znode::z_mode

mode (cached)

Definition at line 215 of file zfs_znode.h.

uint8_t znode::z_moved

Has this znode been moved?

Definition at line 204 of file zfs_znode.h.

krwlock_t znode::z_name_lock

"master" lock for dirent locks

Definition at line 197 of file zfs_znode.h.

parent lock for directories

Definition at line 196 of file zfs_znode.h.

uint64_t znode::z_pflags

pflags (cached)

Definition at line 212 of file zfs_znode.h.

avl_tree_t znode::z_range_avl

avl tree of file range locks

Definition at line 200 of file zfs_znode.h.

protects changes to z_range_avl

Definition at line 199 of file zfs_znode.h.

handle to sa data

Definition at line 220 of file zfs_znode.h.

uint_t znode::z_seq

modification sequence number

Definition at line 206 of file zfs_znode.h.

uint64_t znode::z_size

file size (cached)

Definition at line 209 of file zfs_znode.h.

synchronous open count

Definition at line 216 of file zfs_znode.h.

struct task znode::z_task

FreeBSD-specific field.

Definition at line 223 of file zfs_znode.h.

uint64_t znode::z_uid

uid fuid (cached)

Definition at line 213 of file zfs_znode.h.

file has been unlinked

Definition at line 201 of file zfs_znode.h.

vnode_t* znode::z_vnode

Definition at line 193 of file zfs_znode.h.

Definition at line 192 of file zfs_znode.h.

Prefetch znodes?

Definition at line 203 of file zfs_znode.h.


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