Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / vol / vg_cache.h
1 /*
2 * Copyright 2009-2010, Sine Nomine Associates and others.
3 * All Rights Reserved.
4 *
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
8 */
9
10 /*
11 * demand attach fs
12 * volume group membership cache
13 */
14
15 #ifndef _AFS_VOL_VG_CACHE_H
16 #define _AFS_VOL_VG_CACHE_H 1
17
18 #include "vg_cache_types.h"
19 #include "partition.h"
20
21 extern int VVGCache_entry_add(struct DiskPartition64 *, VolumeId parent,
22 VolumeId child, afs_int32 *newvg);
23 extern int VVGCache_entry_add_r(struct DiskPartition64 *, VolumeId parent,
24 VolumeId child, afs_int32 *newvg);
25 extern int VVGCache_entry_del(struct DiskPartition64 *, VolumeId parent, VolumeId child);
26 extern int VVGCache_entry_del_r(struct DiskPartition64 *, VolumeId parent, VolumeId child);
27 extern int VVGCache_query(struct DiskPartition64 *, VolumeId volume, VVGCache_query_t * res);
28 extern int VVGCache_query_r(struct DiskPartition64 *, VolumeId volume, VVGCache_query_t * res);
29
30 extern int VVGCache_scanStart(struct DiskPartition64 *);
31 extern int VVGCache_scanStart_r(struct DiskPartition64 *);
32 extern int VVGCache_scanWait(struct DiskPartition64 *);
33 extern int VVGCache_scanWait_r(struct DiskPartition64 *);
34 extern int VVGCache_checkPartition_r(struct DiskPartition64 *);
35
36 extern int VVGCache_PkgInit(void);
37 extern int VVGCache_PkgShutdown(void);
38
39
40 #endif /* _AFS_VOL_VG_CACHE_H */