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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License version 2 for more details. A copy is
14 * included in the COPYING file that accompanied this code.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 * Copyright (c) 2012 Whamcloud, Inc.
26 * lustre/include/lustre/lustre_lfsck_user.h
28 * Lustre LFSCK userspace interfaces.
30 * Author: Fan Yong <yong.fan@whamcloud.com>
33 #ifndef _LUSTRE_LFSCK_USER_H
34 # define _LUSTRE_LFSCK_USER_H
36 enum lfsck_param_flags {
37 /* Reset LFSCK iterator position to the device beginning. */
43 /* Dryrun mode, only check without modification */
48 /* For MDT-OST consistency check/repair. */
51 /* For MDT-MDT consistency check/repair. */
55 #define LFSCK_VERSION_V1 1
57 #define LFSCK_TYPES_ALL ((__u16)(~0))
58 #define LFSCK_TYPES_DEF ((__u16)0)
60 #define LFSCK_SPEED_NO_LIMIT 0
61 #define LFSCK_SPEED_LIMIT_DEF LFSCK_SPEED_NO_LIMIT
63 enum lfsck_start_valid {
64 LSV_SPEED_LIMIT = 0x00000001,
65 LSV_ERROR_HANDLE = 0x00000002,
66 LSV_DRYRUN = 0x00000004,
69 /* Arguments for starting lfsck. */
71 /* Which arguments are valid, see 'enum lfsck_start_valid'. */
74 /* How many items can be scanned at most per second. */
77 /* For compatibility between user space tools and kernel service. */
80 /* Which LFSCK components to be (have been) started. */
83 /* Flags for the LFSCK, see 'enum lfsck_param_flags'. */
86 /* For 64-bits aligned. */
90 #endif /* _LUSTRE_LFSCK_USER_H */