sofs19
0.1
FUSE based file system
testtool.h
1
12
/*
13
* \author Artur Pereira 2007-2009, 2016-2019
14
* \author Miguel Oliveira e Silva 2009, 2017
15
* \author António Rui Borges - 2010--2015
16
*
17
*/
18
19
20
#ifndef __SOFS19_TESTTOOLS__
21
#define __SOFS19_TESTTOOLS__
22
23
#include <stdio.h>
24
25
extern
const
char
*devname;
26
27
extern
char
*progDir;
28
29
extern
int
quiet;
30
31
/* msgs */
32
void
promptMsg(
const
char
*fmt, ...);
33
void
resultMsg(
const
char
*fmt, ...);
34
void
errorMsg(
const
char
*fmt, ...);
35
void
errnoMsg(
int
en,
const
char
*fmt, ...);
36
void
fPurge(FILE * fin);
37
38
/* core */
39
void
notImplemented();
40
void
setProbeIDs();
41
void
addProbeIDs();
42
void
removeProbeIDs();
43
void
printProbeIDs();
44
void
createDisk();
45
void
formatDisk();
46
void
showBlock();
47
void
setBinIDs();
48
void
addBinIDs();
49
void
removeBinIDs();
50
void
printBinIDs();
51
52
/* freelists stuff */
53
void
allocInode();
54
void
freeInode();
55
void
allocDataBlock();
56
void
freeDataBlock();
57
void
replenishHeadCache();
58
void
depleteTailCache();
59
60
/* fileblocks */
61
void
getFileBlock();
62
void
allocFileBlock();
63
void
freeFileBlocks();
64
void
readFileBlock();
65
void
writeFileBlock();
66
67
/* direntries */
68
void
checkDirectoryEmptiness();
69
void
getDirEntry();
70
void
addDirEntry();
71
void
renameDirEntry();
72
void
deleteDirEntry();
73
void
traversePath();
74
75
/* inodeattrs */
76
void
setInodeSize();
77
void
setInodeAccess();
78
void
changeInodeOwnership();
79
void
checkInodeAccess();
80
void
decInodeLnkcnt();
81
void
incInodeLnkcnt();
82
83
#endif
/* __SOFS19_TESTTOOLS__ */
include
testtool.h
Generated by
1.8.16