#define OBD_SNAP_MAGIC 0x47224722
#define SNAP_MAX 8 /* must fit in "u" area of struct inode */
+struct snap {
+ time_t time;
+ int index;
+};
+
struct snap_obd_data {
int snap_dev; /* which device contains the data */
unsigned int snap_no; /* which snapshot are we accessing */
unsigned int snap_count; /* how many snapshots exist */
- time_t snap_times[SNAP_MAX];
+ struct snap snap_snaps[SNAP_MAX]; /* times must be incr or attach will fail */
};
struct snap_obd {
unsigned int snap_no; /* which snapshot are we accessing */
unsigned int snap_count; /* how many snapshots exist */
time_t snap_times[SNAP_MAX];
+ int snap_index[SNAP_MAX];
};
struct snap_object_data {