Whamcloud - gitweb
land v0.9.1 on HEAD, in preparation for a 1.0.x branch
[fs/lustre-release.git] / lustre / lov / lov_internal.h
index f3bc191..6c26a16 100644 (file)
@@ -7,20 +7,44 @@
  * See the file COPYING in this distribution
  */
 
+#ifndef LOV_INTERNAL_H
+#define LOV_INTERNAL_H
+
+#include <linux/lustre_user.h>
+
+#define LAP_MAGIC 8200
+
+struct lov_async_page {
+        int                             lap_magic;
+        int                             lap_stripe;
+        obd_off                         lap_sub_offset;
+        void                            *lap_sub_cookie;
+        struct obd_async_page_ops       *lap_caller_ops;
+        struct obd_async_page_ops       *lap_caller_data;
+        obd_id                          lap_loi_id;
+};
+
 /* lov_obd.c */
 int lov_get_stripecnt(struct lov_obd *lov, int stripe_count);
-int lov_alloc_memmd(struct lov_stripe_md **lsmp, int stripe_count);
+int lov_alloc_memmd(struct lov_stripe_md **lsmp, int stripe_count, int pattern);
 void lov_free_memmd(struct lov_stripe_md **lsmp);
 
+/* lov_log.c */
+int lov_llog_init(struct obd_device *obd, struct obd_device *tgt,
+                  int count, struct llog_logid *logid);
+int lov_llog_finish(struct obd_device *obd, int count);
+
 /* lov_pack.c */
-int lov_packmd(struct lustre_handle *conn, struct lov_mds_md **lmm,
+int lov_packmd(struct obd_export *exp, struct lov_mds_md **lmm,
                struct lov_stripe_md *lsm);
-int lov_unpackmd(struct lustre_handle *conn, struct lov_stripe_md **lsm,
-                 struct lov_mds_md *lmm, int lmmsize);
-int lov_setstripe(struct lustre_handle *conn,
-                  struct lov_stripe_md **lsmp, struct lov_mds_md *lmmu);
-int lov_getstripe(struct lustre_handle *conn,
-                  struct lov_stripe_md *lsm, struct lov_mds_md *lmmu);
+int lov_unpackmd(struct obd_export *exp, struct lov_stripe_md **lsmp,
+                 struct lov_mds_md *lmm, int lmm_bytes);
+int lov_setstripe(struct obd_export *exp,
+                  struct lov_stripe_md **lsmp, struct lov_user_md *lump);
+int lov_getstripe(struct obd_export *exp,
+                  struct lov_stripe_md *lsm, struct lov_user_md *lump);
 
 /* lproc_lov.c */
 extern struct file_operations lov_proc_target_fops;
+
+#endif