FreeBSD ZFS
The Zettabyte File System
|
Directory Entry Locks. More...
#include <zfs_znode.h>
Data Fields | |
char * | dl_name |
directory entry being locked | |
uint32_t | dl_sharecnt |
0 if exclusive, > 0 if shared | |
uint8_t | dl_namelock |
1 if z_name_lock is NOT held | |
uint16_t | dl_namesize |
set if dl_name was allocated | |
kcondvar_t | dl_cv |
wait for entry to be unlocked | |
struct znode * | dl_dzp |
directory znode | |
struct zfs_dirlock * | dl_next |
next in z_dirlocks list |
Directory Entry Locks.
Directory entry locks control access to directory entries. They are used to protect creates, deletes, and renames. Each directory znode has a mutex and a list of locked names.
Definition at line 181 of file zfs_znode.h.
kcondvar_t zfs_dirlock::dl_cv |
wait for entry to be unlocked
Definition at line 186 of file zfs_znode.h.
struct znode* zfs_dirlock::dl_dzp |
directory znode
Definition at line 187 of file zfs_znode.h.
char* zfs_dirlock::dl_name |
directory entry being locked
Definition at line 182 of file zfs_znode.h.
uint8_t zfs_dirlock::dl_namelock |
1 if z_name_lock is NOT held
Definition at line 184 of file zfs_znode.h.
uint16_t zfs_dirlock::dl_namesize |
set if dl_name was allocated
Definition at line 185 of file zfs_znode.h.
struct zfs_dirlock* zfs_dirlock::dl_next |
next in z_dirlocks list
Definition at line 188 of file zfs_znode.h.
uint32_t zfs_dirlock::dl_sharecnt |
0 if exclusive, > 0 if shared
Definition at line 183 of file zfs_znode.h.