sofs19  0.1
FUSE based file system
direntries.h
Go to the documentation of this file.
1 
12 #ifndef __SOFS19_DIRENTRIES__
13 #define __SOFS19_DIRENTRIES__
14 
15 #include <inttypes.h>
16 
17 namespace sofs19
18 {
19 
20  /* ************************************************** */
21 
28  /* ************************************************** */
29 
52  uint32_t soTraversePath(char *path);
53 
54  /* ************************************************** */
55 
74  uint32_t soGetDirEntry(int pih, const char *name);
75 
76  /* ************************************************** */
77 
95  void soAddDirEntry(int pih, const char *name, uint32_t cin);
96 
97  /* ************************************************** */
98 
116  uint32_t soDeleteDirEntry(int pih, const char *name);
117 
118  /* ************************************************** */
119 
135  void soRenameDirEntry(int pih, const char *name, const char *newName);
136 
137  /* ************************************************** */
138 
151  bool soCheckDirEmpty(int ih);
152 
153  /* ************************************************** */
154 
156  /* ************************************************** */
157 
158 };
159 
160 #endif /* __SOFS19_DIRENTRIES__ */
sofs19::soTraversePath
uint32_t soTraversePath(char *path)
Get the inode associated to a given path.
sofs19::soRenameDirEntry
void soRenameDirEntry(int pih, const char *name, const char *newName)
Rename an entry of a directory.
sofs19::soGetDirEntry
uint32_t soGetDirEntry(int pih, const char *name)
Get the inode associated to a given name.
sofs19::soAddDirEntry
void soAddDirEntry(int pih, const char *name, uint32_t cin)
Add a new entry to the parent directory.
sofs19::soCheckDirEmpty
bool soCheckDirEmpty(int ih)
Check directory emptiness.
sofs19::soDeleteDirEntry
uint32_t soDeleteDirEntry(int pih, const char *name)
Delete an entry from a parent directory.