Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/ext2fs/inode.h
Show All 38 Lines | |||||
#ifndef _FS_EXT2FS_INODE_H_ | #ifndef _FS_EXT2FS_INODE_H_ | ||||
#define _FS_EXT2FS_INODE_H_ | #define _FS_EXT2FS_INODE_H_ | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/lock.h> | #include <sys/lock.h> | ||||
#include <sys/mutex.h> | #include <sys/mutex.h> | ||||
#include <sys/queue.h> | #include <sys/queue.h> | ||||
#include <sys/buf.h> | |||||
#include <fs/ext2fs/ext2_extents.h> | #include <fs/ext2fs/ext2_extents.h> | ||||
/* | /* | ||||
* This must agree with the definition in <ufs/ufs/dir.h>. | * This must agree with the definition in <ufs/ufs/dir.h>. | ||||
*/ | */ | ||||
#define doff_t int32_t | #define doff_t int32_t | ||||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | union { | ||||
struct { | struct { | ||||
uint32_t i_db[EXT2_NDADDR]; /* Direct disk blocks. */ | uint32_t i_db[EXT2_NDADDR]; /* Direct disk blocks. */ | ||||
uint32_t i_ib[EXT2_NIADDR]; /* Indirect disk blocks. */ | uint32_t i_ib[EXT2_NIADDR]; /* Indirect disk blocks. */ | ||||
}; | }; | ||||
uint32_t i_data[EXT2_NDADDR + EXT2_NIADDR]; | uint32_t i_data[EXT2_NDADDR + EXT2_NIADDR]; | ||||
}; | }; | ||||
struct ext4_extent_cache i_ext_cache; /* cache for ext4 extent */ | struct ext4_extent_cache i_ext_cache; /* cache for ext4 extent */ | ||||
struct vn_clusterw i_clusterw; /* Buffer clustering information */ | |||||
mckusick: Add comment /* Buffer clustering information */ | |||||
}; | }; | ||||
/* | /* | ||||
* The di_db fields may be overlaid with other information for | * The di_db fields may be overlaid with other information for | ||||
* file types that do not have associated disk storage. Block | * file types that do not have associated disk storage. Block | ||||
* and character devices overlay the first data block with their | * and character devices overlay the first data block with their | ||||
* dev_t value. Short symbolic links place their path in the | * dev_t value. Short symbolic links place their path in the | ||||
* di_db area. | * di_db area. | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |
Add comment /* Buffer clustering information */