X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flinux%2Fobd_snap_support.h;h=75ec08a0b349ff0b889216416a1661e5f4a03c7b;hp=ff8fc9a94c706584dc0339ad9971df54cc4637c0;hb=400b0681017091fab9cef9bd00e0f536e1793dcc;hpb=37b7de1e7e692510cf04378eb614049d156da81b diff --git a/lustre/include/linux/obd_snap_support.h b/lustre/include/linux/obd_snap_support.h index ff8fc9a..75ec08a 100644 --- a/lustre/include/linux/obd_snap_support.h +++ b/lustre/include/linux/obd_snap_support.h @@ -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.