1 //  Copyright (c) 2016-present, Facebook, Inc.  All rights reserved.
2 //  This source code is licensed under both the GPLv2 (found in the
3 //  COPYING file in the root directory) and Apache 2.0 License
4 //  (found in the LICENSE.Apache file in the root directory).
5 
6 #pragma once
7 
8 #if !defined(ROCKSDB_LITE) && !defined(OS_WIN)
9 
10 #include <string>
11 
12 #include "rocksdb/env.h"
13 
14 namespace ROCKSDB_NAMESPACE {
15 
16 // Returns an Env that translates paths such that the root directory appears to
17 // be chroot_dir. chroot_dir should refer to an existing directory.
18 Env* NewChrootEnv(Env* base_env, const std::string& chroot_dir);
19 
20 }  // namespace ROCKSDB_NAMESPACE
21 
22 #endif  // !defined(ROCKSDB_LITE) && !defined(OS_WIN)
23