Whamcloud - gitweb
land clio.
[fs/lustre-release.git] / lustre / lov / lovsub_io.c
similarity index 58%
rename from lustre/include/obd_echo.h
rename to lustre/lov/lovsub_io.c
index 7465b68..d8cfe0e 100644 (file)
  * GPL HEADER END
  */
 /*
- * Copyright  2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
  * Lustre is a trademark of Sun Microsystems, Inc.
+ *
+ * Implementation of cl_io for LOVSUB layer.
+ *
+ *   Author: Nikita Danilov <nikita.danilov@sun.com>
  */
 
-#ifndef _OBD_ECHO_H
-#define _OBD_ECHO_H
+#define DEBUG_SUBSYSTEM S_LOV
 
-/* The persistent object (i.e. actually stores stuff!) */
-#define ECHO_PERSISTENT_OBJID    1ULL
-#define ECHO_PERSISTENT_SIZE     ((__u64)(1<<20))
+#include "lov_cl_internal.h"
 
-/* block size to use for data verification */
-#define OBD_ECHO_BLOCK_SIZE    (4<<10)
+/** \addtogroup lov lov @{ */
 
-struct ec_object {
-        struct list_head       eco_obj_chain;
-        struct obd_device     *eco_device;
-        int                    eco_refcount;
-        int                    eco_deleted;
-        obd_id                 eco_id;
-        struct lov_stripe_md  *eco_lsm;
-};
+/*****************************************************************************
+ *
+ * Lovsub io operations.
+ *
+ */
 
-struct ec_lock {
-        struct list_head       ecl_exp_chain;
-        struct ec_object      *ecl_object;
-        __u64                  ecl_cookie;
-        struct lustre_handle   ecl_lock_handle;
-        ldlm_policy_data_t     ecl_policy;
-        __u32                  ecl_mode;
-};
+/* All trivial */
 
-#endif
+/** @} lov */