-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfs.cpp
More file actions
43 lines (31 loc) · 740 Bytes
/
fs.cpp
File metadata and controls
43 lines (31 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "fs.h"
#include "KernelFS.h"
#include "part.h"
#include "MyPartition.h"
KernelFS fileSystem;
KernelFS* FS::myImpl = &fileSystem;
FS::FS() {
}
FS::~FS() {
}
char FS::mount(Partition *partition) {
return myImpl->mount(partition);
}
char FS::unmount(char part) {
return myImpl->unmount(part);
}
char FS::format(char part) {
return myImpl->format(part);
}
char FS::readRootDir(char part, EntryNum n, Directory& d) {
return myImpl->readRootDir(part, n, d);
}
char FS::doesExist(char *fname) {
return myImpl->doesExist(fname);
}
File* FS::open(char *fname, char mode) {
return myImpl->open(fname, mode);
}
char FS::deleteFile(char *fname) {
return myImpl->deleteFile(fname);
}