remove the dead FileHandle class

Summary:
When we implemented FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT,
we forgot to remove the FileHandle and FileHandleBase code.

Reviewed By: pkaush

Differential Revision: D17991710

fbshipit-source-id: dfeb26d512f017cef7710929ccff1f6940cf8641
This commit is contained in:
Chad Austin 2019-10-18 12:16:07 -07:00 committed by Facebook Github Bot
parent 2d3937cbd1
commit 250c1b77cc
10 changed files with 0 additions and 122 deletions

View File

@ -14,7 +14,6 @@
#include <folly/logging/xlog.h>
#include "eden/fs/fuse/DirList.h"
#include "eden/fs/fuse/FileHandle.h"
#include "eden/fs/fuse/RequestData.h"
#include "eden/fs/utils/StatTimes.h"

View File

@ -1,19 +0,0 @@
/*
* 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 "eden/fs/fuse/FileHandleBase.h"
namespace facebook {
namespace eden {
class FileHandle : public FileHandleBase {
public:
};
} // namespace eden
} // namespace facebook

View File

@ -1,30 +0,0 @@
/*
* 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.
*/
#include "eden/fs/fuse/FileHandleBase.h"
namespace facebook {
namespace eden {
FileHandleBase::~FileHandleBase() {}
folly::Future<FileHandleBase::Ioctl> FileHandleBase::ioctl(
int /*cmd*/,
const void* /*arg*/,
folly::ByteRange /*inputData*/,
size_t /*outputSize*/) {
FUSELL_NOT_IMPL();
}
folly::Future<unsigned> FileHandleBase::poll(
std::unique_ptr<PollHandle> /*ph*/) {
FUSELL_NOT_IMPL();
}
} // namespace eden
} // namespace facebook

View File

@ -1,65 +0,0 @@
/*
* 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/futures/Future.h>
#include "eden/fs/fuse/BufVec.h"
#include "eden/fs/fuse/Dispatcher.h"
#include "eden/fs/fuse/PollHandle.h"
namespace facebook {
namespace eden {
class Dispatcher;
class FileHandleBase {
public:
virtual ~FileHandleBase();
/* The result of an ioctl operation */
struct Ioctl {
int result;
BufVec buf;
};
/**
* Ioctl
*
* Only well-formed (restricted) ioctls are supported. These are ioctls
* that have the argument size encoded using _IOR, _IOW, _IOWR macros.
*
* @param arg is the argument passed in from userspace
* @param inputData is a copy of the arg data from userspace
* @param outputSize is the maximum size of the output data
*/
virtual folly::Future<Ioctl> ioctl(
int cmd,
const void* arg,
folly::ByteRange inputData,
size_t outputSize);
/**
* Poll for IO readiness
*
* Introduced in version 2.8
*
* Note: If ph is non-NULL, the client should notify
* when IO readiness events occur by calling
* ph->notify().
*
* Regardless of the number of times poll with a non-NULL ph
* is received, single notification is enough to clear all.
* Notifying more times incurs overhead but doesn't harm
* correctness.
*
* Return the poll(2) revents mask.
*/
virtual folly::Future<unsigned> poll(std::unique_ptr<PollHandle> ph);
};
} // namespace eden
} // namespace facebook

View File

@ -16,7 +16,6 @@
#include <type_traits>
#include "eden/fs/fuse/DirList.h"
#include "eden/fs/fuse/Dispatcher.h"
#include "eden/fs/fuse/FileHandle.h"
#include "eden/fs/fuse/RequestData.h"
#include "eden/fs/utils/Bug.h"
#include "eden/fs/utils/Synchronized.h"

View File

@ -14,7 +14,6 @@
#include <shared_mutex>
#include "eden/fs/fuse/DirList.h"
#include "eden/fs/fuse/FileHandle.h"
#include "eden/fs/fuse/RequestData.h"
#include "eden/fs/inodes/EdenMount.h"
#include "eden/fs/inodes/FileInode.h"

View File

@ -13,7 +13,6 @@
#include <gtest/gtest.h>
#include <chrono>
#include "eden/fs/fuse/FileHandle.h"
#include "eden/fs/inodes/TreeInode.h"
#include "eden/fs/testharness/FakeBackingStore.h"
#include "eden/fs/testharness/FakeTreeBuilder.h"

View File

@ -8,7 +8,6 @@
#include <folly/test/TestUtils.h>
#include <gtest/gtest.h>
#include "eden/fs/fuse/FileHandle.h"
#include "eden/fs/inodes/FileInode.h"
#include "eden/fs/inodes/TreeInode.h"
#include "eden/fs/testharness/FakeTreeBuilder.h"

View File

@ -35,8 +35,6 @@
#include "eden/fs/win/utils/FileUtils.h" // @manual
#include "eden/fs/win/utils/Stub.h" // @manual
#else
#include "eden/fs/fuse/FileHandle.h"
#include "eden/fs/fuse/FileHandleBase.h"
#include "eden/fs/fuse/FuseChannel.h"
#include "eden/fs/fuse/privhelper/PrivHelper.h"
#include "eden/fs/inodes/EdenDispatcher.h"

View File

@ -18,7 +18,6 @@
#include <sys/types.h>
#include "eden/fs/config/CheckoutConfig.h"
#include "eden/fs/config/EdenConfig.h"
#include "eden/fs/fuse/FileHandle.h"
#include "eden/fs/fuse/privhelper/UserInfo.h"
#include "eden/fs/inodes/EdenDispatcher.h"
#include "eden/fs/inodes/FileInode.h"