sofs19  0.1
FUSE based file system
rawdisk.h
Go to the documentation of this file.
1 
12 #ifndef __SOFS19_RAWDISK__
13 #define __SOFS19_RAWDISK__
14 
15 #include <inttypes.h>
16 #include <stdlib.h>
17 
18 namespace sofs19
19 {
20 
28  /* ***************************************** */
29 
42  void soOpenRawDisk(const char *devname, uint32_t * np = NULL);
43 
44  /* ***************************************** */
45 
51  void soCloseRawDisk(void);
52 
53  /* ***************************************** */
54 
61  void soReadRawBlock(uint32_t n, void *buf);
62 
63  /* ***************************************** */
64 
71  void soWriteRawBlock(uint32_t n, void *buf);
72 
73 /* ***************************************** */
74 
77 };
78 
79 #endif /* __SOFS19_RAWDISK__ */
sofs19::soReadRawBlock
void soReadRawBlock(uint32_t n, void *buf)
Read a block of data from the storage device.
sofs19::soCloseRawDisk
void soCloseRawDisk(void)
Close the storage device.
sofs19::soOpenRawDisk
void soOpenRawDisk(const char *devname, uint32_t *np=NULL)
Open the storage device.
sofs19::soWriteRawBlock
void soWriteRawBlock(uint32_t n, void *buf)
Write a block of data from the storage device.