Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lnet / libcfs / linux / linux-utils.c
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  * Copyright (C) 2002 Cluster File Systems, Inc.
5  * Author: Phil Schwan <phil@clusterfs.com>
6  *
7  * This file is part of Lustre, http://www.lustre.org.
8  *
9  * Lustre is free software; you can redistribute it and/or
10  * modify it under the terms of version 2 of the GNU General Public
11  * License as published by the Free Software Foundation.
12  *
13  * Lustre is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with Lustre; if not, write to the Free Software
20  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  *
22  */
23
24 /*
25  * miscellaneous libcfs stuff
26  */
27 #define DEBUG_SUBSYSTEM S_LNET
28 #include <lnet/types.h>
29
30 /*
31  * Convert server error code to client format. Error codes are from
32  * Linux errno.h, so for Linux client---identity.
33  */
34 int convert_server_error(__u64 ecode)
35 {
36         return ecode;
37 }
38 EXPORT_SYMBOL(convert_server_error);
39
40 /*
41  * convert <fcntl.h> flag from client to server.
42  */
43 int convert_client_oflag(int cflag, int *result)
44 {
45         *result = cflag;
46         return 0;
47 }
48 EXPORT_SYMBOL(convert_client_oflag);
49
50 void cfs_stack_trace_fill(struct cfs_stack_trace *trace)
51 {}
52
53 EXPORT_SYMBOL(cfs_stack_trace_fill);
54
55 void *cfs_stack_trace_frame(struct cfs_stack_trace *trace, int frame_no)
56 {
57         return NULL;
58 }
59 EXPORT_SYMBOL(cfs_stack_trace_frame);
60