2016-05-12 23:43:17 +03:00
|
|
|
/*
|
2019-06-20 02:58:25 +03:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2016-05-12 23:43:17 +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.
|
2016-05-12 23:43:17 +03:00
|
|
|
*/
|
2019-10-11 15:26:59 +03:00
|
|
|
|
2016-05-12 23:43:17 +03:00
|
|
|
#pragma once
|
|
|
|
#include <folly/io/IOBuf.h>
|
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace eden {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Represents data that may come from a buffer or a file descriptor.
|
|
|
|
*
|
2020-08-03 21:13:33 +03:00
|
|
|
* 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.
|
2016-05-12 23:43:17 +03:00
|
|
|
*/
|
2020-08-03 21:13:33 +03:00
|
|
|
using BufVec = std::unique_ptr<folly::IOBuf>;
|
2018-03-20 03:01:15 +03:00
|
|
|
|
2017-11-04 01:58:04 +03:00
|
|
|
} // namespace eden
|
|
|
|
} // namespace facebook
|