Whamcloud - gitweb
- CROW-related fixes from b_hd_mdref
[fs/lustre-release.git] / lustre / include / linux / obd_ost.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  *  Copyright (C) 2001 Cluster File Systems, Inc. <braam@clusterfs.com>
5  *
6  *   This file is part of Lustre, http://www.lustre.org.
7  *
8  *   Lustre is free software; you can redistribute it and/or
9  *   modify it under the terms of version 2 of the GNU General Public
10  *   License as published by the Free Software Foundation.
11  *
12  *   Lustre is distributed in the hope that it will be useful,
13  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *   GNU General Public License for more details.
16  *
17  *   You should have received a copy of the GNU General Public License
18  *   along with Lustre; if not, write to the Free Software
19  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20  *
21  * Data structures for object storage targets and client: OST & OSC's
22  * 
23  * See also lustre_idl.h for wire formats of requests.
24  *
25  */
26
27 #ifndef _LUSTRE_OST_H
28 #define _LUSTRE_OST_H
29
30 #include <linux/obd_class.h>
31
32 #define LUSTRE_OST_NAME "ost"
33 #define LUSTRE_OSC_NAME "osc"
34 #define LUSTRE_SANOSC_NAME "sanosc"
35 #define LUSTRE_SANOST_NAME "sanost"
36
37 struct osc_brw_async_args {
38         struct obdo     *aa_oa;
39         int              aa_requested_nob;
40         int              aa_nio_count;
41         obd_count        aa_page_count;
42         struct brw_page *aa_pga;
43         struct client_obd *aa_cli;
44         struct list_head aa_oaps;
45 };
46
47 struct osc_getattr_async_args {
48         struct obdo     *aa_oa;
49 };
50
51 extern int ost_brw_write(struct ptlrpc_request *, struct obd_trans_info *);
52 extern int ost_handle(struct ptlrpc_request *req);
53
54 #endif