]>
git.proxmox.com Git - ceph.git/blob - ceph/src/tools/cephfs/PgFiles.h
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) 2016 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.
18 #include "include/cephfs/libcephfs.h"
19 #include "osd/osd_types.h"
21 #include "osdc/Objecter.h"
24 * This utility scans the files (via an online MDS) and works out
25 * which ones rely on named PGs. For use when someone has
26 * some bad/damaged PGs and wants to see which files might be
33 struct ceph_mount_info
*cmount
;
36 std::set
<uint64_t> pools
;
38 void hit_file(std::string
const &path
, const struct ceph_statx
&stx
);
39 void hit_dir(std::string
const &path
);
43 PgFiles(Objecter
*o
, std::set
<pg_t
> pgs_
);
47 int scan_path(std::string
const &path
);