Whamcloud - gitweb
Lproc-snmp code drop
[fs/lustre-release.git] / lustre / include / linux / obd_snap_support.h
index ff8fc9a..75ec08a 100644 (file)
@@ -1,12 +1,18 @@
 #ifndef __OBD_SNAP_SUPP_H
 #define __OBD_SNAP_SUPP_H
+/*
+ * Copyright (C) 2001  Cluster File Systems, Inc.
+ *
+ * This code is issued under the GNU General Public License.
+ * See the file COPYING in this distribution
+ */
 
 /* What we use to point to IDs in the obdmd data for snapshots.  If we use
  * obd_id (8 bytes) instead of ino_t (4 bytes), we halve the number of
  * 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
@@ -54,8 +60,8 @@ struct snap_table {
 };
 
 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;
@@ -63,11 +69,11 @@ struct snap_iterdata {
        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.