mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
7b2c803904
Summary: This is not per-se fuse related, thus move it to a common location and remove the duplicated define in FileInode.h Reviewed By: chadaustin Differential Revision: D23465192 fbshipit-source-id: 5fa7709f127c2d3372ee5ea3aeb89e793ea5b9f7
28 lines
760 B
C++
28 lines
760 B
C++
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This software may be used and distributed according to the terms of the
|
|
* GNU General Public License version 2.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <folly/io/IOBuf.h>
|
|
|
|
namespace facebook {
|
|
namespace eden {
|
|
|
|
/**
|
|
* Represents data that may come from a buffer or a file descriptor.
|
|
*
|
|
* EdenFS does not currently support splicing between the FUSE device
|
|
* pipe and the backing files in the overlay, but there's an opportunity
|
|
* to improve performance on large files by enabling FUSE_CAP_SPLICE_READ or
|
|
* FUSE_CAP_SPLICE_WRITE.
|
|
*
|
|
* So pretend we have a type that corresponds roughly to libfuse's fuse_bufvec.
|
|
*/
|
|
using BufVec = std::unique_ptr<folly::IOBuf>;
|
|
|
|
} // namespace eden
|
|
} // namespace facebook
|