Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
datastream.h File Reference

Go to the source code of this file.

Functions

struct buffer_head * befs_read_datastream (struct super_block *sb, befs_data_stream *ds, befs_off_t pos, uint *off)
 
int befs_fblock2brun (struct super_block *sb, befs_data_stream *data, befs_blocknr_t fblock, befs_block_run *run)
 
size_t befs_read_lsymlink (struct super_block *sb, befs_data_stream *data, void *buff, befs_off_t len)
 
befs_blocknr_t befs_count_blocks (struct super_block *sb, befs_data_stream *ds)
 

Variables

const befs_inode_addr BAD_IADDR
 

Function Documentation

befs_blocknr_t befs_count_blocks ( struct super_block sb,
befs_data_stream *  ds 
)

befs_count_blocks - blocks used by a file : Filesystem superblock : Datastream of the file

Counts the number of fs blocks that the file represented by inode occupies on the filesystem, counting both regular file data and filesystem metadata (and eventually attribute data when we support attributes)

Definition at line 165 of file datastream.c.

int befs_fblock2brun ( struct super_block sb,
befs_data_stream *  data,
befs_blocknr_t  fblock,
befs_block_run *  run 
)

Definition at line 91 of file datastream.c.

struct buffer_head* befs_read_datastream ( struct super_block sb,
befs_data_stream *  ds,
befs_off_t  pos,
uint off 
)
read

befs_read_datastream - get buffer_head containing data, starting from pos. : Filesystem superblock : datastrem to find data with : start of data : offset of data in buffer_head->b_data

Returns pointer to buffer_head containing data starting with offset , if you don't need to know offset just set = NULL.

Definition at line 48 of file datastream.c.

size_t befs_read_lsymlink ( struct super_block sb,
befs_data_stream *  ds,
void buff,
befs_off_t  len 
)

befs_read_lsmylink - read long symlink from datastream. : Filesystem superblock : Datastrem to read from : Buffer in which to place long symlink data : Length of the long symlink in bytes

Returns the number of bytes read

Definition at line 125 of file datastream.c.

Variable Documentation

Definition at line 21 of file datastream.c.