NASD Programmer's Documentation
Drive types

On-disk types

These types are defined in nasd_od.h.

TypeRepresents
nasd_akvers_t Authentication key version
nasd_blkcnt_t A count of physical blocks
nasd_blkno_t A physical block number
nasd_generation_t The generation number of an inode
nasd_nodenum_t An inode number
nasd_oblkcnt_t Object block count - a count of logical blocks within an object
nasd_oblkno_t Object block number - the number of a particular logical block within an object
nasd_od_direct_ptr_t A direct pointer to a block, as stored in an indirect block or an inode
nasd_od_disk_t Disk header (single-sector)
nasd_od_extent_t A single range of physical blocks
nasd_od_indirect_ptr_t A pointer to a block, as stored in an indirect block or an inode
nasd_od_node_t An inode
nasd_part_t A partition header
nasd_precomp_diggest_t A precomputed security digest
nasd_pte_t An entry in the inode hash table
nasd_refcnt_t A reference count
nasd_sectcnt_t A count of sectors
nasd_sectno_t The number of a particular sector

In-core types

These types are defined in nasd_cache.h.

nasd_blkrec_t Representation of a block number as returned from mapping operations (additional information is for precomputed digest support)
nasd_ebuff_t Temporary buffer for data encryption
nasd_odc_counter_t Logical count of blocks, queue items, etc
nasd_odc_ent_t Cache entry for a block
nasd_odc_exle_t Extent list entry tracker - used to iterate through an extent list, saving state about progress made
nasd_odc_exlist_t List of disk extents
nasd_odc_exlist_ent_t Entry in a list of disk extents - represents a single range of blocks
nasd_odc_flags_t Generic bitwise flags word
nasd_odc_flush_t Logical controller for a disk flush operation
nasd_odc_icpart_t In-core representation of a partition
nasd_io_cbfunc_t Callback function for I/O completed notification
nasd_odc_nvstate_t Drive state which is kept in NVRAM, when present
nasd_odc_oq_t Queue of cache entries
nasd_odc_state_t Global state of cache
nasd_pagebuf_t Temporary buffer for control objects to hold read or write results
nasd_procpipe_t Representation of transport-level mechanism for moving bits, used by read and write operations

<--- ---> ^<br>|<br>|
Drive physical layout Inodes NASD Programmer's Documentation