Whamcloud - gitweb
LU-5095 hsm: Allow receiving messages to be non-blocking
[fs/lustre-release.git] / lustre / utils / lustreapi_internal.h
1 /*
2  * LGPL HEADER START
3  *
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * (C) Copyright 2012 Commissariat a l'energie atomique et aux energies
7  *     alternatives
8  *
9  * All rights reserved. This program and the accompanying materials
10  * are made available under the terms of the GNU Lesser General Public License
11  * (LGPL) version 2.1 or (at your discretion) any later version.
12  * (LGPL) version 2.1 accompanies this distribution, and is available at
13  * http://www.gnu.org/licenses/lgpl-2.1.html
14  *
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * Lesser General Public License for more details.
20  *
21  * LGPL HEADER END
22  */
23 /*
24  *
25  * lustre/utils/lustreapi_internal.h
26  *
27  */
28 /*
29  *
30  * Author: Aurelien Degremont <aurelien.degremont@cea.fr>
31  * Author: JC Lafoucriere <jacques-charles.lafoucriere@cea.fr>
32  * Author: Thomas Leibovici <thomas.leibovici@cea.fr>
33  */
34
35 #ifndef _LUSTREAPI_INTERNAL_H_
36 #define _LUSTREAPI_INTERNAL_H_
37
38 #define WANT_PATH   0x1
39 #define WANT_FSNAME 0x2
40 #define WANT_FD     0x4
41 #define WANT_INDEX  0x8
42 #define WANT_ERROR  0x10
43 int get_root_path(int want, char *fsname, int *outfd, char *path, int index);
44 int root_ioctl(const char *mdtname, int opc, void *data, int *mdtidxp,
45                int want_error);
46 int get_param(const char *param_path, char *result,
47               unsigned int result_size);
48
49 #endif /* _LUSTREAPI_INTERNAL_H_ */