-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplan2.txt
51 lines (38 loc) · 1.01 KB
/
plan2.txt
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
Block size: 4kbyte => 4_096 byte => ~ 1_000 u32
*------------*
| |
| BLOCK |
| 4KiB |
*------------*
Superblock => info about the storage
data blocks bitmap =>
inode bitmap
inodes
data sectors
---
meta 4 kib?
inodes
data blocks 4 kib
VecPackT
[..][..][..][..][..][..] .. [..]
\
\
*----Pack<T> .as_mut().unpack() -> PackGuard<T> {..}
|
|
*--- when Drop() -> (&mut self).update_inode(&self)?
What needed
===========
- store data type T
- journal, copy on write (COW) or (ROW)
Benefit
=======
- controlled file numbers (1)
- controlled ROW, or journal write
- Object version management
- faster backup, as single file
- memory efficiency
- in-memory, file, or hybrid data storage
- T conversion
- self healthcheck
- controlled storage creation