Whamcloud - gitweb
- added fid_store.c which contains methods working with backing store what is needed...
[fs/lustre-release.git] / lustre / fid / fid_internal.h
1 /* -*- MODE: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  *  fid/fid_internal.h
5  *
6  *  Copyright (C) 2006 Cluster File Systems, Inc.
7  *
8  *   This file is part of the Lustre file system, http://www.lustre.org
9  *   Lustre is a trademark of Cluster File Systems, Inc.
10  *
11  *   You may have signed or agreed to another license before downloading
12  *   this software.  If so, you are bound by the terms and conditions
13  *   of that agreement, and the following does not apply to you.  See the
14  *   LICENSE file included with this distribution for more information.
15  *
16  *   If you did not agree to a different license, then this copy of Lustre
17  *   is open source software; you can redistribute it and/or modify it
18  *   under the terms of version 2 of the GNU General Public License as
19  *   published by the Free Software Foundation.
20  *
21  *   In either case, Lustre is distributed in the hope that it will be
22  *   useful, but WITHOUT ANY WARRANTY; without even the implied warranty
23  *   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24  *   license text for more details.
25  */
26 #ifndef _FID_INTERNAL_H
27 #define _FID_INTERNAL_H
28
29 #define SEQ_SERVICE_WATCHDOG_TIMEOUT (obd_timeout * 1000)
30
31 #ifdef LPROCFS
32 extern struct lprocfs_vars seq_server_proc_list[];
33 extern struct lprocfs_vars seq_client_proc_list[];
34 #endif
35
36 #ifdef __KERNEL__
37 int seq_store_init(struct lu_server_seq *seq,
38                    const struct lu_context *ctx);
39
40 void seq_store_fini(struct lu_server_seq *seq,
41                     const struct lu_context *ctx);
42
43 int seq_store_write(struct lu_server_seq *seq,
44                     const struct lu_context *ctx);
45
46 int seq_store_read(struct lu_server_seq *seq,
47                    const struct lu_context *ctx);
48 #endif
49
50 #endif