Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / os / filestore / XfsFileStoreBackend.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3 /*
4  * Ceph - scalable distributed file system
5  *
6  * Copyright (C) 2014 Inktank, Inc
7  *
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.
12  *
13  */
14
15 #ifndef CEPH_XFSFILESTOREBACKEND_H
16 #define CEPH_XFSFILESTOREBACKEND_H
17
18 #include "GenericFileStoreBackend.h"
19
20 #include "include/int_types.h"
21
22 class XfsFileStoreBackend : public GenericFileStoreBackend {
23 private:
24   bool m_has_extsize;
25   int set_extsize(int fd, unsigned int val);
26 public:
27   explicit XfsFileStoreBackend(FileStore *fs);
28   ~XfsFileStoreBackend() override {}
29   const char *get_name() override {
30     return "xfs";
31   }
32   int detect_features() override;
33   int set_alloc_hint(int fd, uint64_t hint) override;
34 };
35
36 #endif /* CEPH_XFSFILESTOREBACKEND_H */