Whamcloud - gitweb
Branch: b_new_cmd
authorwangdi <wangdi>
Thu, 8 Jun 2006 10:04:29 +0000 (10:04 +0000)
committerwangdi <wangdi>
Thu, 8 Jun 2006 10:04:29 +0000 (10:04 +0000)
separate fld stuff from lustre_fid.h

lustre/fld/fld_handle.c
lustre/fld/fld_iam.c
lustre/include/lustre_fid.h
lustre/include/lustre_fld.h [new file with mode: 0644]
lustre/mdt/mdt_internal.h

index 73144c6..9c45929 100644 (file)
@@ -41,7 +41,7 @@
 #include <dt_object.h>
 #include <md_object.h>
 #include <lustre_mdc.h>
-#include <lustre_fid.h>
+#include <lustre_fld.h>
 #include "fld_internal.h"
 
 static int fld_handle(const struct lu_context *ctx,
index b201a5a..554c75b 100644 (file)
@@ -41,7 +41,7 @@
 #include <dt_object.h>
 #include <md_object.h>
 #include <lustre_mdc.h>
-#include <lustre_fid.h>
+#include <lustre_fld.h>
 #include "fld_internal.h"
 
 
index 2932abe..0376d3a 100644 (file)
@@ -73,20 +73,5 @@ static inline int fid_is_local(struct lu_site *site, const struct lu_fid *fid)
 
 void fid_to_le(struct lu_fid *dst, const struct lu_fid *src);
 
-/*
- * fld (fid location database) interface.
- */
-struct lu_fld {
-        struct proc_dir_entry   *fld_proc_entry;
-        struct ptlrpc_service   *fld_service;
-        struct dt_device        *fld_dt;
-        struct dt_object        *fld_obj;
-        struct lu_fid            fld_fid; /* used during initialization */
-        struct dt_index_cookie  *fld_cookie;
-};
-
-int  fld_server_init(const struct lu_context *ctx, struct lu_fld *fld,
-                     struct dt_device *dt);
-void fld_server_fini(const struct lu_context *ctx, struct lu_fld *fld);
 
 #endif /* __LINUX_OBD_CLASS_H */
diff --git a/lustre/include/lustre_fld.h b/lustre/include/lustre_fld.h
new file mode 100644 (file)
index 0000000..a468a4b
--- /dev/null
@@ -0,0 +1,41 @@
+/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
+ * vim:expandtab:shiftwidth=8:tabstop=8:
+ *
+ *  Copyright (C) 2006 Cluster File Systems, Inc.
+ *
+ *   This file is part of Lustre, http://www.lustre.org.
+ *
+ *   Lustre is free software; you can redistribute it and/or
+ *   modify it under the terms of version 2 of the GNU General Public
+ *   License as published by the Free Software Foundation.
+ *
+ *   Lustre is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
+ *
+ *   You should have received a copy of the GNU General Public License
+ *   along with Lustre; if not, write to the Free Software
+ *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ */
+
+#ifndef __LINUX_FLD_H
+#define __LINUX_FLD_H
+/*
+ * fld (fid location database) interface.
+ */
+struct lu_fld {
+        struct proc_dir_entry   *fld_proc_entry;
+        struct ptlrpc_service   *fld_service;
+        struct dt_device        *fld_dt;
+        struct dt_object        *fld_obj;
+        struct lu_fid            fld_fid; /* used during initialization */
+        struct dt_index_cookie  *fld_cookie;
+};
+
+int  fld_server_init(const struct lu_context *ctx, struct lu_fld *fld,
+                     struct dt_device *dt);
+void fld_server_fini(const struct lu_context *ctx, struct lu_fld *fld);
+
+#endif
index e929a14..bbbb734 100644 (file)
@@ -47,6 +47,7 @@
 #include <lustre/lustre_idl.h>
 #include <md_object.h>
 #include <lustre_fid.h>
+#include <lustre_fld.h>
 #include <lustre_req_layout.h>
 
 struct mdt_device {