-
Notifications
You must be signed in to change notification settings - Fork 5
/
journal.c
69 lines (52 loc) · 1.11 KB
/
journal.c
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
This file doesn't contain anything currently. You could fill it in
with a journaling implementation if you wanted (I may do that at some
point). Other parts of the file system will have to be modified to
support journaling when that is done.
THIS CODE COPYRIGHT DOMINIC GIAMPAOLO. NO WARRANTY IS EXPRESSED
OR IMPLIED. YOU MAY USE THIS CODE AND FREELY DISTRIBUTE IT FOR
NON-COMMERCIAL USE AS LONG AS THIS NOTICE REMAINS ATTACHED.
FOR COMMERCIAL USE, CONTACT DOMINIC GIAMPAOLO (dbg@be.com).
Dominic Giampaolo
dbg@be.com
*/
#include "myfs.h"
typedef struct j_entry
{
int junk;
} j_entry;
int
myfs_create_journal(myfs_info *myfs)
{
return 0;
}
int
myfs_init_journal(myfs_info *myfs)
{
return 0;
}
int
myfs_shutdown_journal(myfs_info *myfs)
{
return 0;
}
j_entry *
myfs_create_journal_entry(myfs_info *myfs)
{
return 0;
}
int
myfs_write_journal_entry(myfs_info *myfs, j_entry *jent,
fs_off_t block_addr, void *block)
{
return 0;
}
int
myfs_end_journal_entry(myfs_info *myfs, j_entry *jent)
{
return 0;
}
void
sync_journal(myfs_info *myfs)
{
}