Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
4fb0bfb
log structure
yungshengtu Sep 15, 2022
455f6bd
zns info structure
yungshengtu Sep 15, 2022
5498961
fixed some warnings and changed the type of nsid in struct zns_info f…
yungshengtu Sep 15, 2022
a6791c3
revised some minor misplace errors
yungshengtu Sep 15, 2022
ddfed4c
changed log to metadata
yungshengtu Sep 16, 2022
740b432
init function update
yungshengtu Sep 16, 2022
bfad1c5
Changes in zns_info structure
bergstartup Sep 16, 2022
3ed49fb
Merge branch 'development' of https://github.com/bergstartup/2022-sto…
bergstartup Sep 16, 2022
7245aed
[WIP] Implement hash funciton and resolved conflicts
bergstartup Sep 16, 2022
75457f9
removal of 'stashed chages'
bergstartup Sep 16, 2022
23b91f8
modified init function
yungshengtu Sep 16, 2022
723984e
Added hash function support, read and support
bergstartup Sep 16, 2022
2e137d1
Working patch 1
bergstartup Sep 17, 2022
6f6896a
changed the definition of user_zns_device::capacity_bytes
yungshengtu Sep 18, 2022
d807c7d
restore the prototype of init_ss_zns_device
yungshengtu Sep 18, 2022
51d796c
Changed cpacity bytes defintion and added few more parameters
bergstartup Sep 19, 2022
90e6e6a
Merge branch 'development' of https://github.com/bergstartup/2022-sto…
bergstartup Sep 19, 2022
ba31649
add read cache
yungshengtu Sep 19, 2022
3f92d2d
turn off the read cache function
yungshengtu Sep 19, 2022
74a6db4
turn off the read cache function
yungshengtu Sep 19, 2022
f4111f5
\Merge branch 'test' of https://github.com/bergstartup/2022-stosys-gr…
bergstartup Sep 21, 2022
eb66cdf
change map's hash function
yungshengtu Sep 23, 2022
e0ead08
Conflict resolved
bergstartup Sep 23, 2022
b85cc1f
add log_zone_info structure
yungshengtu Sep 24, 2022
18449b1
Merge branch 'development' of https://github.com/bergstartup/2022-sto…
bergstartup Sep 24, 2022
7e5d76c
[WIP] GC with deadlock
bergstartup Sep 25, 2022
f3301c1
[WIP] Used log zone list removal bug
bergstartup Sep 25, 2022
7eda604
revise indentation
yungshengtu Sep 25, 2022
f9c954e
[WIP] write working code
bergstartup Sep 25, 2022
b136c8b
Conflict resolved
bergstartup Sep 25, 2022
d57c256
Partial working patch
bergstartup Sep 26, 2022
411046c
Working patch 2
yungshengtu Sep 26, 2022
29b2ce5
Commit resolved
yungshengtu Sep 26, 2022
5f9945c
The working patch
bergstartup Sep 26, 2022
de6960b
Bug fixes in working patch
bergstartup Sep 26, 2022
b6d8a69
fixed some bugs
yungshengtu Sep 26, 2022
2158796
clean code
yungshengtu Sep 26, 2022
b1bf80a
make page_maps become ordered
yungshengtu Sep 29, 2022
42ab87d
appending data first to data zone if the data's address can append
yungshengtu Sep 30, 2022
1a537e0
write multiple pages
yungshengtu Oct 1, 2022
2d356ed
reduce zasl
yungshengtu Oct 1, 2022
498e5dc
user can read data size of which is multiple lba
yungshengtu Oct 2, 2022
70b7be0
revise parameter's type
yungshengtu Oct 2, 2022
c876abb
read multiple pages
yungshengtu Oct 2, 2022
c24b7fd
Basic struct and class decl
bergstartup Oct 7, 2022
1384d5e
support data the size of which is above a zone size
yungshengtu Oct 7, 2022
cc78098
Merge branch 'development' of https://github.com/bergstartup/2022-sto…
yungshengtu Oct 7, 2022
a2a9af6
Upgrade to struct def and functions
bergstartup Oct 8, 2022
6f1d57a
Merge branch 'development' of https://github.com/bergstartup/2022-sto…
bergstartup Oct 8, 2022
483ffb2
fixed gc crash bug
yungshengtu Oct 9, 2022
9e317ab
Merge branch 'development' of https://github.com/bergstartup/2022-sto…
yungshengtu Oct 9, 2022
1454397
fix bug
yungshengtu Oct 9, 2022
c5fd256
Structure and function update
bergstartup Oct 9, 2022
420536d
Conflict resolution
bergstartup Oct 9, 2022
0e4527e
Updated struct and function def
bergstartup Oct 9, 2022
dab15bb
Bug fixes
bergstartup Oct 10, 2022
f668211
Updates to FS
bergstartup Oct 11, 2022
b131510
w/r multiple lba while gc merging
yungshengtu Oct 12, 2022
6a6cfd9
add load balancing
yungshengtu Oct 12, 2022
991298d
Partial working code
bergstartup Oct 12, 2022
f7c2f45
Merge branch 'development' of https://github.com/bergstartup/2022-sto…
bergstartup Oct 12, 2022
483914f
conflict resolved
bergstartup Oct 12, 2022
18634fe
ftl bitmap used page
yungshengtu Oct 12, 2022
27dff08
Merge branch 'development' of https://github.com/bergstartup/2022-sto…
yungshengtu Oct 12, 2022
3c4235e
Revert "conflict resolved"
bergstartup Oct 12, 2022
6e32f13
add bitmap
yungshengtu Oct 12, 2022
f2067c3
Merge branch 'development' of https://github.com/bergstartup/2022-sto…
yungshengtu Oct 12, 2022
d3b3701
Working patch 1
bergstartup Oct 13, 2022
a9254b6
Merge branch 'development' of https://github.com/bergstartup/2022-sto…
bergstartup Oct 13, 2022
4b527df
Working patch with 1 leak
bergstartup Oct 13, 2022
1d37cb5
WP1 with leaks cleaned from couts
bergstartup Oct 13, 2022
7577114
fix leak bugs
yungshengtu Oct 13, 2022
235e6cb
CmakeLists
yungshengtu Oct 13, 2022
0f29775
Slow working patch
bergstartup Oct 13, 2022
7b45f8a
Patch with write buffering
bergstartup Oct 13, 2022
9ae163c
Larger buffering
bergstartup Oct 13, 2022
0d1f99a
clean version of m45
yungshengtu Oct 14, 2022
758e5dd
clean code
yungshengtu Oct 14, 2022
827e236
finish m1
yungshengtu Oct 14, 2022
63a27b7
complete m1
yungshengtu Oct 14, 2022
89a6d08
final m1
yungshengtu Oct 14, 2022
4493977
change to c++
yungshengtu Oct 15, 2022
dee4c81
clean m1 m2 m3 code
yungshengtu Oct 15, 2022
34b9547
slight change
yungshengtu Oct 15, 2022
ccc66de
use standard thread and mutex
yungshengtu Oct 15, 2022
27d3882
final ftl without restore
yungshengtu Oct 15, 2022
134fe8e
final ftl without restore
yungshengtu Oct 15, 2022
df57be6
final ftl without restore
yungshengtu Oct 15, 2022
c10f2d3
final ftl without restore
yungshengtu Oct 15, 2022
24d6947
final ftl without restore
yungshengtu Oct 15, 2022
31425ec
final ftl without restore
yungshengtu Oct 15, 2022
b790b50
final ftl without restore
yungshengtu Oct 15, 2022
dbe5983
clean all log zone and keep first zone clean
yungshengtu Oct 15, 2022
a67b644
clean all log zone and keep the first zone clean
yungshengtu Oct 15, 2022
64849e3
clean all log zone and keep the first zone clean
yungshengtu Oct 15, 2022
6e4c79e
clean all log zone and keep the first zone clean
yungshengtu Oct 15, 2022
8bd920f
clean all log zone and keep the first zone clean
yungshengtu Oct 16, 2022
7536f34
clean all log zone and keep the first zone clean
yungshengtu Oct 16, 2022
3e8f642
clean all log zone and keep the first zone clean
yungshengtu Oct 16, 2022
8634776
clean all log zone and keep the first zone clean
yungshengtu Oct 16, 2022
36cc085
clean all log zone and keep the first zone clean
yungshengtu Oct 16, 2022
9770f11
not yet restore data
yungshengtu Oct 16, 2022
7e633a2
ftl done
yungshengtu Oct 16, 2022
8d25b11
ftl done!
yungshengtu Oct 16, 2022
181f2ca
Merge branch 'master' into development
yungshengtu Oct 16, 2022
8ee1aac
[WIP] persistent FS layer
bergstartup Oct 16, 2022
f08a0cf
change to always rest false
yungshengtu Oct 16, 2022
20ac1a1
change to always rest false
yungshengtu Oct 16, 2022
aa07ffa
ftl is ready for persistency but keeping reset option
yungshengtu Oct 16, 2022
923c073
Init commit with m1
yungshengtu Oct 17, 2022
b55941b
small change
yungshengtu Oct 17, 2022
079038c
small change 2
yungshengtu Oct 17, 2022
1efb068
bug fixed in update_page_map
yungshengtu Oct 17, 2022
d282e3c
latest ftl
yungshengtu Oct 17, 2022
b9d0bb5
FS persistency
bergstartup Oct 17, 2022
ac4a478
[WIP] persistency
bergstartup Oct 17, 2022
fd13e60
Bug fix
bergstartup Oct 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ set(CMAKE_LIBRARY_PATH "/home/$ENV{USER}/local/lib/")
set(CMAKE_INSTALL_PREFIX "/home/$ENV{USER}/local/")

# Project configuration specific parameters
set(STOSYS_M45 OFF)
set(STOSYS_M45 ON)
set(STOSYS_CMAKE_DEBUG OFF)
set(STOSYS_ASAN ON)

Expand Down Expand Up @@ -146,4 +146,4 @@ if(STOSYS_CMAKE_DEBUG)
foreach (_variableName ${_variableNames})
message(STATUS "${_variableName}=${${_variableName}}")
endforeach()
endif()
endif()
38 changes: 19 additions & 19 deletions src/common/nvmeprint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,25 +311,25 @@ const char *ss_nvme_status_to_string(__u16 status) {
}
}

static const char *nvme_feature_lba_type_to_string(__u8 type) {
switch (type) {
case 0:
return "Reserved";
case 1:
return "Filesystem";
case 2:
return "RAID";
case 3:
return "Cache";
case 4:
return "Page / Swap file";
default:
if (type >= 0x05 && type <= 0x7f)
return "Reserved";
else
return "Vendor Specific";
}
}
// static const char *nvme_feature_lba_type_to_string(__u8 type) {
// switch (type) {
// case 0:
// return "Reserved";
// case 1:
// return "Filesystem";
// case 2:
// return "RAID";
// case 3:
// return "Cache";
// case 4:
// return "Page / Swap file";
// default:
// if (type >= 0x05 && type <= 0x7f)
// return "Reserved";
// else
// return "Vendor Specific";
// }
// }

static void nvme_show_id_ns_nsfeat(__u8 nsfeat) {
__u8 rsvd = (nsfeat & 0xE0) >> 5;
Expand Down
Loading