sofs19  0.1
FUSE based file system
rawdisk.h File Reference

Access to disk blocks at raw level. More...

#include <inttypes.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

void soOpenRawDisk (const char *devname, uint32_t *np=NULL)
 Open the storage device. More...
 
void soCloseRawDisk (void)
 Close the storage device. More...
 
void soReadRawBlock (uint32_t n, void *buf)
 Read a block of data from the storage device. More...
 
void soWriteRawBlock (uint32_t n, void *buf)
 Write a block of data from the storage device. More...
 

Detailed Description

Access to disk blocks at raw level.

Author
Artur Pereira - 2007-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 error code (an int)