File size: 2,349 Bytes
684cc60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Virtual SSD Simulation Todo List

## Phase 3: Implement VirtualFlash and persistence mechanisms
- [x] Implement VirtualFlash to simulate NAND cells with a large sparse file or dictionary.
- [x] Use sqlite or shelve to store only written pages (to save RAM) or mmap/write a virtual .vdisk file.
- [x] Implement persistence for VirtualFlash state.

## Phase 4: Implement FileSystemMap and SSDController (FTL)
- [x] Implement FileSystemMap to emulate FAT32 or EXT4.
- [x] Store file tree as JSON or dict in RAM (save as "superblock").
- [x] Implement SSDController (FTL) for LBA to PPN mapping.
- [x] Implement wear leveling and garbage collection.

## Phase 5: Implement AppInterface, VirtualOS, VirtualDriver, and Kernel Buffering
- [x] Implement AppInterface for save/read file operations.
- [x] Implement VirtualOS to handle file system, allocate memory, buffering.
- [x] Implement VirtualDriver to translate write commands into block ops.
- [x] Implement Kernel Buffering (Write Cache) with VirtualRAMBuffer.

## Phase 6: Integrate all components and test the virtual SSD
- [x] Integrate all implemented modules.
- [x] Implement full interaction chain.
- [x] Test read/write/mount/unmount operations.
- [x] Implement persistence for FTL and file map states.

## Phase 7: Develop a web UI to visualize SSD capacity and files
- [x] Create a web UI project.
- [x] Develop UI to display SSD capacity (total, used, free).
- [x] Develop UI to display files and their properties.
- [x] Connect UI to the virtual SSD backend.

## Phase 8: Present the web UI and virtual SSD functionality
- [x] Deploy the web UI.
- [x] Demonstrate the virtual SSD functionality through the UI.



## Phase 9: Modify VirtualFlash for in-memory storage
- [x] Create VirtualFlashMemory class that stores data in RAM.

## Phase 10: Modify FileSystemMap for in-memory storage
- [x] Create FileSystemMapMemory class that stores metadata in RAM.

## Phase 11: Modify SSDController for in-memory storage
- [x] Create SSDControllerMemory class that stores FTL data in RAM.

## Phase 12: Update VirtualSSD and other components to remove file persistence
- [x] Update VirtualSSD to use in-memory versions of components.
- [x] Remove file-based persistence logic from VirtualSSD.
- [x] Update `ssd_api.py` to use the in-memory VirtualSSD.
- [x] Remove old persistence-based files.