RETURN(rc);
}
-static int cml_create_data_object(const struct lu_context *ctx,
- struct md_object *p, struct md_object *o,
- const void *eadata, int eadatalen,
- struct md_attr *ma)
+static int cml_create_data(const struct lu_context *ctx,
+ struct md_object *p, struct md_object *o,
+ const void *eadata, int eadatalen,
+ struct md_attr *ma)
{
int rc;
ENTRY;
- rc = mdo_create_data_object(ctx, md_object_next(p), md_object_next(o),
- eadata, eadatalen, ma);
+ rc = mdo_create_data(ctx, md_object_next(p), md_object_next(o),
+ eadata, eadatalen, ma);
RETURN(rc);
}
.mdo_name_insert = cml_name_insert,
.mdo_rename = cml_rename,
.mdo_rename_tgt = cml_rename_tgt,
- .mdo_create_data_object = cml_create_data_object,
+ .mdo_create_data = cml_create_data
};
/* -------------------------------------------------------------------
const char *target_name, const void *eadata,
int eadatalen, struct md_attr *);
/* This method is used for creating data object for this meta object*/
- int (*mdo_create_data_object)(const struct lu_context *cx,
- struct md_object *p, struct md_object *o,
- const void *eadata, int eadatalen,
- struct md_attr *ma);
+ int (*mdo_create_data)(const struct lu_context *cx, struct md_object *p,
+ struct md_object *o, const void *eadata,
+ int eadatalen, struct md_attr *ma);
int (*mdo_rename)(const struct lu_context *ctxt,
struct md_object *spobj, struct md_object *tpobj,
const struct lu_fid *lf, const char *sname,
struct md_upcall {
struct md_device *mu_upcall_dev;
- int (*mu_upcall)(const struct lu_context *ctxt, struct md_device *md,
+ int (*mu_upcall)(const struct lu_context *ctxt, struct md_device *md,
enum md_upcall_event ev);
};
static inline int mdo_create(const struct lu_context *cx, struct md_object *p,
const char *child_name, struct md_object *c,
- const char *target_name, const void *eadata,
+ const char *target_name, const void *eadata,
int eadatalen, struct md_attr *at)
{
LASSERT(c->mo_dir_ops->mdo_create);
- return c->mo_dir_ops->mdo_create(cx, p, child_name, c, target_name,
+ return c->mo_dir_ops->mdo_create(cx, p, child_name, c, target_name,
eadata, eadatalen, at);
}
-static inline int mdo_create_data_object(const struct lu_context *cx,
- struct md_object *p, struct md_object *c,
- const void *eadata, int eadatalen,
- struct md_attr *ma)
+static inline int mdo_create_data(const struct lu_context *cx,
+ struct md_object *p, struct md_object *c,
+ const void *eadata, int eadatalen,
+ struct md_attr *ma)
{
- LASSERT(c->mo_dir_ops->mdo_create_data_object);
- return c->mo_dir_ops->mdo_create_data_object(cx, p, c, eadata,
- eadatalen, ma);
+ LASSERT(c->mo_dir_ops->mdo_create_data);
+ return c->mo_dir_ops->mdo_create_data(cx, p, c, eadata, eadatalen, ma);
}
static inline int mdo_rename(const struct lu_context *cx,
Index: iam/fs/ext3/Makefile
===================================================================
--- iam.orig/fs/ext3/Makefile 2006-05-31 20:24:32.000000000 +0400
-+++ iam/fs/ext3/Makefile 2006-07-28 20:55:09.000000000 +0400
++++ iam/fs/ext3/Makefile 2006-08-05 13:57:49.000000000 +0400
@@ -6,7 +6,7 @@ obj-$(CONFIG_EXT3_FS) += ext3.o
ext3-y := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o iopen.o \
Index: iam/include/linux/lustre_iam.h
===================================================================
--- iam.orig/include/linux/lustre_iam.h 2006-05-31 20:24:32.000000000 +0400
-+++ iam/include/linux/lustre_iam.h 2006-07-28 20:55:09.000000000 +0400
++++ iam/include/linux/lustre_iam.h 2006-08-05 13:57:49.000000000 +0400
@@ -1,9 +1,68 @@
+/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
+ * vim:expandtab:shiftwidth=8:tabstop=8:
Index: iam/fs/ext3/Makefile
===================================================================
---- iam.orig/fs/ext3/Makefile 2006-07-28 20:55:09.000000000 +0400
-+++ iam/fs/ext3/Makefile 2006-07-28 20:55:10.000000000 +0400
+--- iam.orig/fs/ext3/Makefile 2006-08-05 13:57:49.000000000 +0400
++++ iam/fs/ext3/Makefile 2006-08-05 13:57:50.000000000 +0400
@@ -6,7 +6,7 @@ obj-$(CONFIG_EXT3_FS) += ext3.o
ext3-y := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o iopen.o \
ext3-$(CONFIG_EXT3_FS_POSIX_ACL) += acl.o
Index: iam/fs/ext3/dir.c
===================================================================
---- iam.orig/fs/ext3/dir.c 2006-07-28 20:55:09.000000000 +0400
-+++ iam/fs/ext3/dir.c 2006-07-28 20:55:10.000000000 +0400
+--- iam.orig/fs/ext3/dir.c 2006-08-05 13:57:49.000000000 +0400
++++ iam/fs/ext3/dir.c 2006-08-05 13:57:50.000000000 +0400
@@ -28,6 +28,7 @@
#include <linux/smp_lock.h>
#include <linux/slab.h>
(filp->f_version != inode->i_version)) {
Index: iam/fs/ext3/file.c
===================================================================
---- iam.orig/fs/ext3/file.c 2006-07-28 20:55:09.000000000 +0400
-+++ iam/fs/ext3/file.c 2006-07-28 20:55:10.000000000 +0400
+--- iam.orig/fs/ext3/file.c 2006-08-05 13:57:49.000000000 +0400
++++ iam/fs/ext3/file.c 2006-08-05 13:57:50.000000000 +0400
@@ -23,6 +23,7 @@
#include <linux/jbd.h>
#include <linux/ext3_fs.h>
Index: iam/fs/ext3/iam-uapi.c
===================================================================
--- iam.orig/fs/ext3/iam-uapi.c 2004-04-06 17:27:52.000000000 +0400
-+++ iam/fs/ext3/iam-uapi.c 2006-07-28 20:55:10.000000000 +0400
++++ iam/fs/ext3/iam-uapi.c 2006-08-05 13:57:50.000000000 +0400
@@ -0,0 +1,361 @@
+/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
+ * vim:expandtab:shiftwidth=8:tabstop=8:
+}
Index: iam/fs/ext3/ioctl.c
===================================================================
---- iam.orig/fs/ext3/ioctl.c 2006-07-28 20:55:09.000000000 +0400
-+++ iam/fs/ext3/ioctl.c 2006-07-28 20:55:10.000000000 +0400
+--- iam.orig/fs/ext3/ioctl.c 2006-08-05 13:57:49.000000000 +0400
++++ iam/fs/ext3/ioctl.c 2006-08-05 13:57:50.000000000 +0400
@@ -250,6 +250,6 @@ flags_err:
}
Index: iam/include/linux/lustre_iam.h
===================================================================
---- iam.orig/include/linux/lustre_iam.h 2006-07-28 20:55:09.000000000 +0400
-+++ iam/include/linux/lustre_iam.h 2006-07-28 20:55:10.000000000 +0400
+--- iam.orig/include/linux/lustre_iam.h 2006-08-05 13:57:49.000000000 +0400
++++ iam/include/linux/lustre_iam.h 2006-08-05 13:57:50.000000000 +0400
@@ -30,9 +30,6 @@
#ifndef __LINUX_LUSTRE_IAM_H__
#define __LINUX_LUSTRE_IAM_H__
return rc;
}
-static int mdd_create_data_object(const struct lu_context *ctxt,
- struct md_object *pobj, struct md_object *cobj,
- const void *eadata, int eadatasize,
- struct md_attr *ma)
+static int mdd_create_data(const struct lu_context *ctxt,
+ struct md_object *pobj, struct md_object *cobj,
+ const void *eadata, int eadatasize,
+ struct md_attr *ma)
{
struct mdd_device *mdd = mdo2mdd(pobj);
struct mdd_object *mdo = md2mdd_obj(pobj);
.mdo_name_insert = mdd_mkname,
.mdo_name_remove = mdd_name_remove,
.mdo_rename_tgt = mdd_rename_tgt,
- .mdo_create_data_object = mdd_create_data_object
+ .mdo_create_data = mdd_create_data
};
struct md_attr *ma = &info->mti_attr;
struct mdt_reint_record *mrr = &info->mti_rr;
- return mdo_create_data_object(info->mti_ctxt, mdt_object_child(p),
- mdt_object_child(o), mrr->rr_eadata,
- mrr->rr_eadatalen, ma);
+ return mdo_create_data(info->mti_ctxt, mdt_object_child(p),
+ mdt_object_child(o), mrr->rr_eadata,
+ mrr->rr_eadatalen, ma);
}
static int mdt_mfd_open(struct mdt_thread_info *info,
}
mounted_lustre_filesystems() {
- awk '($3 ~ "lustre" && $1 ~ ":") { print $2 }' /proc/mounts
+ awk '($3 ~ "lustre" && $1 ~ ":") { print $2 }' /proc/mounts
}
MOUNTED="`mounted_lustre_filesystems`"