sofs19  0.1
FUSE based file system
blockviews.h File Reference

Display the contents of a block. More...

#include "core.h"
#include <inttypes.h>

Go to the source code of this file.

Functions

void printBlockAsHex (void *buf, uint32_t off=0x0)
 Display block as hexadecimal data. More...
 
void printBlockAsAscii (void *buf, uint32_t off=0x0)
 Display block as ASCII data. More...
 
void printSuperBlock (void *buf)
 Display block as superblock data. More...
 
void printBlockOfInodes (void *buf, uint32_t off=0x0, bool showtimes=true)
 Display the block contents as inode data. More...
 
void printBlockOfDirents (void *buf, uint32_t off=0x0)
 Display the block contents as direntry data. More...
 
void printBlockOfRefs (void *buf, uint32_t off=0x0)
 Display the block contents as reference data. More...
 

Detailed Description

Display the contents of a block.

\li hexadecimal data
\li ascii data
\li superblock data
\li inode data
\li cluster references
\li directory entry.
Author
Artur Pereira - 2007-2009, 2016-2019
Miguel Oliveira e Silva - 2009, 2017
António Rui Borges - 2010-2015

Function Documentation

◆ printBlockAsHex()

void sofs19::printBlockAsHex ( void *  buf,
uint32_t  off = 0x0 
)

Display block as hexadecimal data.

Parameters
bufpointer to a buffer with block contents
offoffset for the labels

◆ printBlockAsAscii()

void sofs19::printBlockAsAscii ( void *  buf,
uint32_t  off = 0x0 
)

Display block as ASCII data.

Parameters
bufpointer to a buffer with block contents
offoffset for the labels

◆ printSuperBlock()

void sofs19::printSuperBlock ( void *  buf)

Display block as superblock data.

Parameters
bufpointer to a buffer with block contents

◆ printBlockOfInodes()

void sofs19::printBlockOfInodes ( void *  buf,
uint32_t  off = 0x0,
bool  showtimes = true 
)

Display the block contents as inode data.

Parameters
bufpointer to a buffer with block contents
offoffset for the labels (0 by default)
showtimesflag to show/not show times (default true)

◆ printBlockOfDirents()

void sofs19::printBlockOfDirents ( void *  buf,
uint32_t  off = 0x0 
)

Display the block contents as direntry data.

Parameters
bufpointer to a buffer with block contents
offoffset for the labels

◆ printBlockOfRefs()

void sofs19::printBlockOfRefs ( void *  buf,
uint32_t  off = 0x0 
)

Display the block contents as reference data.

Parameters
bufpointer to a buffer with block contents
offoffset for the labels