1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 * Ceph - scalable distributed file system
6 * Copyright (C) 2014 Red Hat
8 * This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License version 2.1, as published by the Free Software
11 * Foundation. See file COPYING.
23 #include "include/types.h"
24 #include "common/Mutex.h"
25 #include "common/Cond.h"
31 static FS *create(uint64_t f_type);
32 static FS *create_by_fd(int fd);
34 virtual const char *get_name() {
38 virtual int set_alloc_hint(int fd, uint64_t hint);
40 virtual int get_handle(int fd, std::string *h);
41 virtual int open_handle(int mount_fd, const std::string& h, int flags);
43 virtual int copy_file_range(int to_fd, uint64_t to_offset,
45 uint64_t from_offset, uint64_t from_len);
46 virtual int zero(int fd, uint64_t offset, uint64_t length);