From: adilger Date: Tue, 1 Oct 2002 01:56:12 +0000 (+0000) Subject: Add handle for exports from obdfilter. X-Git-Tag: v1_7_100~4652 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=b0b59c946db3d9a9fa1bc75777add5d4f8f8b973 Add handle for exports from obdfilter. Add handle for LOV open. --- diff --git a/lustre/include/linux/obd.h b/lustre/include/linux/obd.h index f8bc5fe..260035e 100644 --- a/lustre/include/linux/obd.h +++ b/lustre/include/linux/obd.h @@ -36,6 +36,7 @@ struct brw_page { struct lov_oinfo { /* per-child structure */ __u64 loi_id; /* object ID on the target OST */ __u64 loi_size; /* size of this object on the target OST */ + struct lustre_handle *loi_handle; /* handle for object on OST */ int loi_ost_idx; /* OST stripe index in lmd_objects array */ }; @@ -95,6 +96,7 @@ struct filter_obd { struct file_operations *fo_fop; struct inode_operations *fo_iop; struct address_space_operations *fo_aops; + struct list_head fo_export_list; }; struct mds_server_data; @@ -273,15 +275,15 @@ struct obd_ops { int (*o_getattr)(struct lustre_handle *conn, struct obdo *oa, struct lov_stripe_md *ea); int (*o_open)(struct lustre_handle *conn, struct obdo *oa, - struct lov_stripe_md *); + struct lov_stripe_md *ea); int (*o_close)(struct lustre_handle *conn, struct obdo *oa, - struct lov_stripe_md *); + struct lov_stripe_md *ea); int (*o_brw)(int rw, struct lustre_handle *conn, - struct lov_stripe_md *md, obd_count oa_bufs, + struct lov_stripe_md *ea, obd_count oa_bufs, struct brw_page *pgarr, brw_callback_t callback, struct io_cb_data *data); int (*o_punch)(struct lustre_handle *conn, struct obdo *tgt, - struct lov_stripe_md *md, obd_size count, + struct lov_stripe_md *ea, obd_size count, obd_off offset); int (*o_sync)(struct lustre_handle *conn, struct obdo *tgt, obd_size count, obd_off offset);