Whamcloud - gitweb
Updated parameters for obdfs_writepage() to use struct *dentry instead of
[fs/lustre-release.git] / lustre / include / linux / obd_snap.h
1 #ifndef _OBD_SNAP
2 #define _OBD_SNAP
3
4 #define OBD_SNAP_MAGIC 0x47224722
5
6 #define SNAP_MAX  8 /* must fit in "u" area of struct inode */
7 struct snap {
8         time_t time;
9         int index;
10 };
11
12 struct snap_obd_data {
13         int snap_dev;             /* which device contains the data */
14         unsigned int snap_no;     /* which snapshot are we accessing */
15         unsigned int snap_count;  /* how many snapshots exist */
16         struct snap snap_snaps[SNAP_MAX]; /* times must be incr or attach will fail */
17 };
18
19 struct snap_obd {
20         unsigned int snap_no;    /* which snapshot are we accessing */
21         unsigned int snap_count; /* how many snapshots exist */
22         time_t snap_times[SNAP_MAX];
23         int snap_index[SNAP_MAX];
24 };
25
26 struct snap_object_data {
27         int od_magic;
28         /* id of snaps of object; slot 0 has the current data */
29         unsigned long od_ids[SNAP_MAX + 1]; 
30 };
31
32
33
34 #endif