2017-11-20 02:18:27 +03:00
|
|
|
/*
|
2019-06-20 02:58:25 +03:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2017-11-20 02:18:27 +03:00
|
|
|
*
|
2019-06-20 02:58:25 +03:00
|
|
|
* This software may be used and distributed according to the terms of the
|
|
|
|
* GNU General Public License version 2.
|
2017-11-20 02:18:27 +03:00
|
|
|
*/
|
2019-10-11 15:26:59 +03:00
|
|
|
|
2017-11-20 02:18:27 +03:00
|
|
|
#pragma once
|
|
|
|
|
2018-01-31 01:16:05 +03:00
|
|
|
#include "eden/fs/takeover/TakeoverData.h"
|
2017-11-20 02:18:27 +03:00
|
|
|
#include "eden/fs/utils/PathFuncs.h"
|
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace eden {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Request to take over mount points from an existing edenfs process.
|
|
|
|
*
|
|
|
|
* Returns a TakeoverData object on success, or throws an exception on error.
|
|
|
|
*/
|
2018-01-31 01:16:05 +03:00
|
|
|
TakeoverData takeoverMounts(
|
|
|
|
AbsolutePathPiece socketPath,
|
|
|
|
// this parameter is present for testing purposes and should not normally
|
|
|
|
// be used in the production build.
|
|
|
|
const std::set<int32_t>& supportedTakeoverVersions =
|
|
|
|
kSupportedTakeoverVersions);
|
2017-11-20 02:18:27 +03:00
|
|
|
|
|
|
|
} // namespace eden
|
|
|
|
} // namespace facebook
|