4 #define OBD_SNAP_MAGIC 0x47224722
6 #define SNAP_MAX 8 /* must fit in "u" area of struct inode */
8 /* if time is 0 this designates the "current" snapshot, i.e.
17 /* snap ioctl data for attach */
18 struct snap_obd_data {
19 int snap_dev; /* which device contains the data */
20 unsigned int snap_no; /* which snapshot are we accessing */
21 unsigned int snap_count; /* how many snapshots exist */
22 struct snap snap_snaps[SNAP_MAX]; /* times must be incr or attach will fail */
26 /* this is the obd device descriptor */
28 unsigned int snap_no; /* which snapshot index are we accessing */
29 unsigned int snap_current;
30 unsigned int snap_count; /* how many snapshots exist */
31 time_t snap_times[SNAP_MAX];
32 int snap_index[SNAP_MAX];
36 /* stored as inline data in the objects */
37 struct snap_object_data {
39 /* id of snaps of object; slot 0 has the current data */
40 unsigned long od_ids[SNAP_MAX + 1];