4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 only,
8 * as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License version 2 for more details (a copy is included
14 * in the LICENSE file that accompanied this code).
16 * You should have received a copy of the GNU General Public License
17 * version 2 along with this program; If not, see
18 * http://www.gnu.org/licenses/gpl-2.0.html
23 * Copyright (c) 2012, 2017, Intel Corporation.
26 * lustre/osd-ldiskfs/osd_scrub.h
28 * Definitions and declarations for ldiskfs backend OI scrub.
30 * Author: Fan Yong <yong.fan@whamcloud.com>
36 #include <lustre_scrub.h>
39 /* The flags here are only used inside OSD, NOT be visible by dump(). */
40 enum scrub_internal_flags {
41 /* This is a new formatted device. */
42 SIF_NO_HANDLE_OLD_FID = 0x0001,
45 struct osd_iit_param {
46 struct super_block *sb;
47 struct buffer_head *bitmap;
55 struct lustre_scrub os_scrub;
56 struct lvfs_run_ctxt os_ctxt;
57 struct osd_idmap_cache os_oic;
58 struct osd_iit_param os_iit_param;
60 /* statistics for /lost+found are in ram only, it will be reset
61 * when each time the device remount. */
63 /* How many objects have been scanned during initial OI scrub. */
65 /* How many objects have been repaired during initial OI scrub. */
67 /* How many objects failed to be processed during initial OI scrub. */
70 __u64 os_bad_oimap_count;
71 time64_t os_bad_oimap_time;
74 #endif /* _OSD_SCRUB_H */