X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fos%2Fkstore%2Fkstore_types.h;fp=src%2Fceph%2Fsrc%2Fos%2Fkstore%2Fkstore_types.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=7cfb2475d1f2ff5ebc28ffa6c3f9f3375013ed2b;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/os/kstore/kstore_types.h b/src/ceph/src/os/kstore/kstore_types.h deleted file mode 100644 index 7cfb247..0000000 --- a/src/ceph/src/os/kstore/kstore_types.h +++ /dev/null @@ -1,68 +0,0 @@ -// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- -// vim: ts=8 sw=2 smarttab -/* - * Ceph - scalable distributed file system - * - * Copyright (C) 2014 Red Hat - * - * This is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License version 2.1, as published by the Free Software - * Foundation. See file COPYING. - * - */ - -#ifndef CEPH_OSD_KSTORE_TYPES_H -#define CEPH_OSD_KSTORE_TYPES_H - -#include -#include "include/types.h" -#include "include/interval_set.h" -#include "include/utime.h" -#include "common/hobject.h" - -namespace ceph { - class Formatter; -} -/// collection metadata -struct kstore_cnode_t { - uint32_t bits; ///< how many bits of coll pgid are significant - - explicit kstore_cnode_t(int b=0) : bits(b) {} - - void encode(bufferlist& bl) const; - void decode(bufferlist::iterator& p); - void dump(Formatter *f) const; - static void generate_test_instances(list& o); -}; -WRITE_CLASS_ENCODER(kstore_cnode_t) - -/// onode: per-object metadata -struct kstore_onode_t { - uint64_t nid; ///< numeric id (locally unique) - uint64_t size; ///< object size - map attrs; ///< attrs - uint64_t omap_head; ///< id for omap root node - uint32_t stripe_size; ///< stripe size - - uint32_t expected_object_size; - uint32_t expected_write_size; - uint32_t alloc_hint_flags; - - kstore_onode_t() - : nid(0), - size(0), - omap_head(0), - stripe_size(0), - expected_object_size(0), - expected_write_size(0), - alloc_hint_flags(0) {} - - void encode(bufferlist& bl) const; - void decode(bufferlist::iterator& p); - void dump(Formatter *f) const; - static void generate_test_instances(list& o); -}; -WRITE_CLASS_ENCODER(kstore_onode_t) - -#endif