-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
env: Add Zoned Namespace SSD support on TerarkDB (#129)
* env: Add Zoned Namespace SSD support on TerarkDB Support zone namespace SSD by transplanting and modifying ZenFS from Hans Holmberg of WesternDigital Inc. https://github.com/westerndigitalcorporation/zenfs Since TerarkDB is based on RocksDB v5.18.3, we also made some adoption to the codebase. In this version, the `zenfs` is not fully functional yet but prepared the basic function & utilities for next stage integration. Signed-off-by: Changlong Chen <chenchanglong@bytedance.com> Signed-off-by: Kuankuan Guo <guokuankuan@bytedance.com> Co-authored-by: Hans Holmberg <hans.holmberg@wdc.com> Co-authored-by: Yuanliang Wang <wangyuanliang@bytedance.com> Co-authored-by: Changlong Chen <chenchanglong@bytedance.com>
- Loading branch information
1 parent
a24bf87
commit 6eecaa2
Showing
15 changed files
with
563 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ build/ | |
|
||
ldb | ||
manifest_dump | ||
zenfs | ||
sst_dump | ||
blob_dump | ||
column_aware_encoding_exp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. | ||
// Copyright (c) 2019-present, Western Digital Corporation | ||
// Copyright (c) 2021-present, Bytedance Inc. All rights reserved. | ||
// This source code is licensed under both the GPLv2 (found in the | ||
// COPYING file in the root directory) and Apache 2.0 License | ||
// (found in the LICENSE.Apache file in the root directory). | ||
|
||
#include <cstdio> | ||
#ifdef ROCKSDB_LITE | ||
int main() { | ||
fprintf("Not supported in lite mode.\n"); | ||
return 1; | ||
} | ||
#else | ||
#ifdef GFLAGS | ||
#ifdef LIBZBD | ||
int zenfs_tool(int argc, char** argv); | ||
int main(int argc, char** argv) { return zenfs_tool(argc, argv); } | ||
#else | ||
int main() { | ||
fprintf(stderr, "Please install libzbd to run the zenfs tool\n"); | ||
return 1; | ||
} | ||
#endif // LIBZBD | ||
#else | ||
int main() { | ||
fprintf(stderr, "Please install gflags to run rocksdb tools\n"); | ||
return 1; | ||
} | ||
#endif // GFLAGS | ||
#endif // ROCKSDB_LITE | ||
|
Oops, something went wrong.