* Copyright 2009 Sun Microsystems, Inc. All rights reserved
* Use is subject to license terms.
*
- * Copyright (c) 2012, Intel Corporation.
+ * Copyright (c) 2012, 2013, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
char *ldo_pool;
struct dt_object **ldo_stripe;
/* to know how much memory to free, ldo_stripenr can be less */
- int ldo_stripes_allocated;
/* default striping for directory represented by this object
* is cached in stripenr/stripe_size */
- int ldo_striping_cached:1,
+ unsigned int ldo_stripes_allocated:16,
+ ldo_striping_cached:1,
ldo_def_striping_set:1;
__u32 ldo_def_stripe_size;
__u16 ldo_def_stripenr;
struct dt_object, do_lu);
}
-static inline struct dt_object *lu2dt_obj(struct lu_object *o)
-{
- LASSERT(ergo(o != NULL, lu_device_is_dt(o->lo_dev)));
- return container_of0(o, struct dt_object, do_lu);
-}
-
static inline struct dt_object *dt_object_child(struct dt_object *o)
{
return container_of0(lu_object_next(&(o)->do_lu),
/* lod_lov.c */
void lod_getref(struct lod_tgt_descs *ltd);
void lod_putref(struct lod_device *lod, struct lod_tgt_descs *ltd);
-int lod_add_device(const struct lu_env *env, struct lod_device *m,
- char *osp, unsigned index, unsigned gen, int active);
+int lod_add_device(const struct lu_env *env, struct lod_device *lod,
+ char *osp, unsigned index, unsigned gen, int mdt_index,
+ char *type, int active);
int lod_del_device(const struct lu_env *env, struct lod_device *lod,
struct lod_tgt_descs *ltd, char *osp, unsigned idx,
unsigned gen);