}
static int cml_attr_set(const struct lu_context *ctx, struct md_object *mo,
- struct md_attr *attr)
+ const struct md_attr *attr)
{
int rc;
ENTRY;
}
static int cmr_attr_set(const struct lu_context *ctx, struct md_object *mo,
- struct md_attr *attr)
+ const struct md_attr *attr)
{
RETURN(-EFAULT);
}
spin_lock(&fld->fld_lock);
target = fld->fld_hash->fh_scan_func(fld, seq);
spin_unlock(&fld->fld_lock);
-
+
RETURN(target);
}
rc = fld_client_rpc(target->fldt_exp,
&md_fld, FLD_DELETE);
-
+
RETURN(rc);
}
EXPORT_SYMBOL(fld_client_delete);
int (*moo_attr_get)(const struct lu_context *ctxt, struct md_object *dt,
struct md_attr *attr);
int (*moo_attr_set)(const struct lu_context *ctxt, struct md_object *dt,
- struct md_attr *attr);
+ const struct md_attr *attr);
int (*moo_xattr_get)(const struct lu_context *ctxt,
struct md_object *obj,
/* part of cross-ref operation */
int (*moo_object_create)(const struct lu_context *,
- struct md_object *,
- const struct md_create_spec *spec,
+ struct md_object *,
+ const struct md_create_spec *spec,
struct md_attr *);
int (*moo_ref_add)(const struct lu_context *, struct md_object *);
int (*moo_ref_del)(const struct lu_context *, struct md_object *,
struct md_attr *);
/* This method is used for creating data object for this meta object*/
int (*mdo_create_data)(const struct lu_context *cx, struct md_object *p,
- struct md_object *o,
+ struct md_object *o,
const struct md_create_spec *spec,
struct md_attr *ma);
int (*mdo_rename)(const struct lu_context *ctxt,
}
static inline int mo_attr_set(const struct lu_context *cx, struct md_object *m,
- struct md_attr *at)
+ const struct md_attr *at)
{
LASSERT(m->mo_ops->moo_attr_set);
return m->mo_ops->moo_attr_set(cx, m, at);
Index: iam/fs/ext3/Makefile
===================================================================
--- iam.orig/fs/ext3/Makefile 2006-05-31 20:24:32.000000000 +0400
-+++ iam/fs/ext3/Makefile 2006-08-05 13:57:49.000000000 +0400
++++ iam/fs/ext3/Makefile 2006-08-11 20:55:34.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-08-05 13:57:49.000000000 +0400
++++ iam/include/linux/lustre_iam.h 2006-08-11 20:55:34.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-08-05 13:57:49.000000000 +0400
-+++ iam/fs/ext3/Makefile 2006-08-05 13:57:50.000000000 +0400
+--- iam.orig/fs/ext3/Makefile 2006-08-11 20:55:34.000000000 +0400
++++ iam/fs/ext3/Makefile 2006-08-11 20:55:34.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-08-05 13:57:49.000000000 +0400
-+++ iam/fs/ext3/dir.c 2006-08-05 13:57:50.000000000 +0400
+--- iam.orig/fs/ext3/dir.c 2006-08-11 20:55:34.000000000 +0400
++++ iam/fs/ext3/dir.c 2006-08-11 20:55:34.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-08-05 13:57:49.000000000 +0400
-+++ iam/fs/ext3/file.c 2006-08-05 13:57:50.000000000 +0400
+--- iam.orig/fs/ext3/file.c 2006-08-11 20:55:34.000000000 +0400
++++ iam/fs/ext3/file.c 2006-08-11 20:55:34.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-08-05 13:57:50.000000000 +0400
++++ iam/fs/ext3/iam-uapi.c 2006-08-11 20:55:34.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-08-05 13:57:49.000000000 +0400
-+++ iam/fs/ext3/ioctl.c 2006-08-05 13:57:50.000000000 +0400
+--- iam.orig/fs/ext3/ioctl.c 2006-08-11 20:55:34.000000000 +0400
++++ iam/fs/ext3/ioctl.c 2006-08-11 20:55:34.000000000 +0400
@@ -250,6 +250,6 @@ flags_err:
}
Index: iam/include/linux/lustre_iam.h
===================================================================
---- 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
+--- iam.orig/include/linux/lustre_iam.h 2006-08-11 20:55:34.000000000 +0400
++++ iam/include/linux/lustre_iam.h 2006-08-11 20:55:34.000000000 +0400
@@ -30,9 +30,6 @@
#ifndef __LINUX_LUSTRE_IAM_H__
#define __LINUX_LUSTRE_IAM_H__
/* set attr and LOV EA at once, return updated attr */
static int mdd_attr_set(const struct lu_context *ctxt,
- struct md_object *obj, struct md_attr *ma)
+ struct md_object *obj, const struct md_attr *ma)
{
struct mdd_object *mdo = md2mdd_obj(obj);
struct mdd_device *mdd = mdo2mdd(obj);
}
/* XXX: llog cancel cookie? */
+ /*
+ * XXX: Hmmm... what is this? attr_get in attr_set?
+ */
+ /*
if (rc == 0)
rc = mdd_attr_get(ctxt, obj, ma);
-
+ */
mdd_unlock(ctxt, mdo, DT_WRITE_LOCK);
mdd_trans_stop(ctxt, mdd, handle);