Whamcloud - gitweb
ddb2d8c0e212e4821d576583204b3bcc80104f58
[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_obd_data {
8         int snap_dev;             /* which device contains the data */
9         unsigned int snap_no;     /* which snapshot are we accessing */
10         unsigned int snap_count;  /* how many snapshots exist */
11         time_t snap_times[SNAP_MAX];
12 };
13
14 struct snap_obd {
15         unsigned int snap_no;    /* which snapshot are we accessing */
16         unsigned int snap_count; /* how many snapshots exist */
17         time_t snap_times[SNAP_MAX];
18 };
19
20 struct snap_object_data {
21         int od_magic;
22         /* id of snaps of object; slot 0 has the current data */
23         unsigned long od_ids[SNAP_MAX + 1]; 
24 };
25
26
27
28 #endif