Whamcloud - gitweb
- added standard CFS headers in some source files.
[fs/lustre-release.git] / lustre / cmobd / cm_internal.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  * Copyright (C) 2002, 2003, 2004 Cluster File Systems, Inc.
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
22 #ifndef CM_INTERNAL_H
23 #define CM_INTERNAL_H
24
25 int cmobd_reintegrate(struct obd_device *);
26 int cmobd_dummy_lsm(struct lov_stripe_md **, int, struct obdo*, __u32);
27 void cmobd_free_lsm(struct lov_stripe_md **);
28
29 int cmobd_replay_write(struct obd_device *, struct obdo *, 
30                        struct ldlm_extent *);
31
32 int cmobd_init_write_srv(struct obd_device *);
33 void cmobd_cleanup_write_srv(struct obd_device *);
34
35 int cmobd_reint_mds(struct obd_device*obd, void *record, int opcode);
36 int cmobd_reint_oss(struct obd_device *obd, void *record, int opcode);
37
38 /* methods for updating/reading master lustre_id from local MDS inode EA.*/
39 int mds_update_mid(struct obd_device *obd, struct lustre_id *id,
40                    void *data, int data_len);
41
42 int mds_read_mid(struct obd_device *obd, struct lustre_id *id,
43                  void *data, int data_len);
44
45 #endif /* CM_INTERNAL_H */