sofs19  0.1
FUSE based file system
fileblocks.h File Reference

Functions to manage file blocks. More...

#include <inttypes.h>

Go to the source code of this file.

Functions

uint32_t soGetFileBlock (int ih, uint32_t fbn)
 Get the data block number corresponding to the given file block. More...
 
uint32_t soAllocFileBlock (int ih, uint32_t fbn)
 Associate a data block to the given file block position. More...
 
void soFreeFileBlocks (int ih, uint32_t ffbn)
 Free all file blocks from the given position on. More...
 
void soReadFileBlock (int ih, uint32_t fbn, void *buf)
 Read a file block. More...
 
void soWriteFileBlock (int ih, uint32_t fbn, void *buf)
 Write a file block. More...
 

Detailed Description

Functions to manage file blocks.

Author
Artur Pereira - 2008-2009, 2016-2019
Miguel Oliveira e Silva - 2009, 2017
António Rui Borges - 2010-2015
Remarks
In case an error occurs, every function throws an SOException