* available snapshot slots (14 in 56 bytes vs. 7 in 56 bytes until we
* increase the size of OBD_OBDMDSZ).
*/
-typedef ino_t snap_id;
+typedef obd_id snap_id;
/* maximum number of snapshot tables we maintain in the kernel */
#define SNAP_MAX_TABLES 8
};
struct snap_iterdata {
- struct obd_conn *conn;
- struct obd_conn *ch_conn;
+ struct lustre_handle *conn;
+ struct lustre_handle *ch_conn;
int index;
int previndex;
int currentindex;
time_t prevtime;
};
-inline struct obd_conn *child_conn(struct obd_conn *conn);
+inline struct lustre_handle *child_conn(struct lustre_handle *conn);
int snap_deleteobj(obd_id id, obd_gr group, void *data);
int snap_restoreobj(obd_id id, obd_gr group, void *data);
int snap_printobj(obd_id id, obd_gr group, void *data);
-int snap_iocontrol(int cmd, struct obd_conn *conn, int len, void *karg, void *uarg);
+int snap_iocontrol(int cmd, struct lustre_handle *conn, int len, void *karg, void *uarg);
/* In the future, this function may have to deal with offsets into the obdmd.
* Currently, we assume we have the whole obdmd struct.