diff options
author | mrambacher <mrambach@gmail.com> | 2021-11-02 09:06:02 -0700 |
---|---|---|
committer | Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> | 2021-11-02 09:07:11 -0700 |
commit | f72c834eab08f6e72780d8fead6039acfe565f44 (patch) | |
tree | 6c739838e5d3aa7bd95fcbf8bb0dc6c12decb61a /port/win | |
parent | cfc57f55b5247e5a6634e76f083cfaca2613d90b (diff) |
Make FileSystem a Customizable Class (#8649)
Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/8649
Reviewed By: zhichao-cao
Differential Revision: D32036059
Pulled By: mrambacher
fbshipit-source-id: 4f1e7557ecac52eb849b83ae02b8d7d232112295
Diffstat (limited to 'port/win')
-rw-r--r-- | port/win/env_win.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/port/win/env_win.h b/port/win/env_win.h index e86515979..d64b82c92 100644 --- a/port/win/env_win.h +++ b/port/win/env_win.h @@ -110,7 +110,10 @@ class WinFileSystem : public FileSystem { static const std::shared_ptr<WinFileSystem>& Default(); WinFileSystem(const std::shared_ptr<SystemClock>& clock); ~WinFileSystem() {} - const char* Name() const { return "WinFS"; } + static const char* kClassName() { return "WinFS"; } + const char* Name() const override { return kClassName(); } + const char* NickName() const { return kDefaultName(); } + static size_t GetSectorSize(const std::string& fname); size_t GetPageSize() const { return page_size_; } size_t GetAllocationGranularity() const { return allocation_granularity_; } |