Change lbuild to support for FC15 and calm down warning message.
Signed-off-by: yang sheng <ys@whamcloud.com>
Change-Id: I365f708f82c01b0f72aeffa3c09e46800ca770d5
Reviewed-on: http://review.whamcloud.com/3849
Tested-by: Hudson
Reviewed-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Reviewed-by: Chris Gearing <chris.gearing@intel.com>
Reviewed-by: Brian J. Murrell <brian@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
# at 2.6.19 # $LINUX/include/linux/config.h is removed
# and at more old has only one line
# include <autoconf.h>
-LB_CHECK_FILE([$LINUX_OBJ/include/linux/autoconf.h],[AUTOCONF_HDIR=linux],
- [LB_CHECK_FILE([$LINUX_OBJ/include/generated/autoconf.h],[AUTOCONF_HDIR=generated],
+LB_CHECK_FILE([$LINUX_OBJ/include/generated/autoconf.h],[AUTOCONF_HDIR=generated],
+ [LB_CHECK_FILE([$LINUX_OBJ/include/linux/autoconf.h],[AUTOCONF_HDIR=linux],
[AC_MSG_ERROR([Run make config in $LINUX.])])])
AC_SUBST(AUTOCONF_HDIR)
LB_CHECK_FILE([$LINUX_OBJ/include/linux/version.h],[],
"SUSE LINUX")
name="sles"
;;
+ "Fedora")
+ name="fc"
+ ;;
*)
fatal 1 "I don't know what distro name $name and version $version is.\nEither update autodetect_distro() or use the --distro argument."
;;
rhel6) target="2.6-rhel6";;
sles10) target="2.6-sles10";;
sles11) target="2.6-sles11";;
+ fc15) target="2.6-fc15";;
*) fatal 1 "I don't know what distro $distro is.\nEither update autodetect_target() or use the --target argument.";;
esac
--- /dev/null
+# vim:expandtab:shiftwidth=4:softtabstop=4:tabstop=4:
+
+source ${0%/*}/lbuild-fc
+
+# increment this if you have made a change that should force a new kernel
+# to build built
+BUILD_GEN+=".0"
cfs_list_del(&sched->ws_list);
cfs_spin_unlock(&cfs_wi_data.wi_glock);
+#else
+ SET_BUT_UNUSED(i);
#endif
LASSERT(sched->ws_nscheduled == 0);
cfs_wi_sched_destroy(sched);
return rc;
}
+#else
+ SET_BUT_UNUSED(rc);
#endif
cfs_spin_lock(&cfs_wi_data.wi_glock);
cfs_list_add(&sched->ws_list, &cfs_wi_data.wi_scheds);
lstcon_rpc_ent_t *ent;
sfw_counters_t *sfwk;
srpc_counters_t *srpc;
- lnet_counters_t *lnet;
int show_rpc = 1;
int optidx = 0;
int rc = 0;
sfwk = (sfw_counters_t *)&ent->rpe_payload[0];
srpc = (srpc_counters_t *)((char *)sfwk + sizeof(*sfwk));
- lnet = (lnet_counters_t *)((char *)srpc + sizeof(*srpc));
if (srpc->errors == 0 &&
sfwk->brw_errors == 0 && sfwk->ping_errors == 0)
lustre/kernel_patches/targets/2.6-oel5.target
lustre/kernel_patches/targets/2.6-fc11.target
lustre/kernel_patches/targets/2.6-fc12.target
+lustre/kernel_patches/targets/2.6-fc15.target
lustre/ldlm/Makefile
lustre/fid/Makefile
lustre/fid/autoMakefile
struct dt_object *obj;
const struct dt_it_ops *iops;
struct fld_seq_param *param;
- struct fld_thread_info *info;
if (fld->lsf_obj == NULL)
return NULL;
lu_env_init(¶m->fsp_env, LCT_MD_THREAD);
param->fsp_it = iops->init(¶m->fsp_env, obj, 0, NULL);
- info = lu_context_key_get(¶m->fsp_env.le_ctx,
- &fld_thread_key);
iops->load(¶m->fsp_env, param->fsp_it, *pos);
--- /dev/null
+lnxmaj="2.6.38.6"
+lnxrel="26.rc1.fc15"
+
+KERNEL_SRPM=kernel-${lnxmaj}-${lnxrel}.src.rpm
+SERIES=""
+EXTRA_VERSION=${lnxrel}_lustre.@VERSION@
+LUSTRE_VERSION=@VERSION@
+BASE_ARCHS="i686 x86_64"
+BIGMEM_ARCHS=""
+BOOT_ARCHS=""
+JENSEN_ARCHS=""
+SMP_ARCHS=""
+UP_ARCHS=""
+
struct cl_object *obj = io->ci_obj;
struct ccc_io *cio = cl2ccc_io(env, ios);
__u32 gen;
- int result;
CLOBINVRNT(env, obj, ccc_object_invariant(obj));
/* check layout version */
- result = ll_layout_refresh(ccc_object_inode(obj), &gen);
+ ll_layout_refresh(ccc_object_inode(obj), &gen);
if (cio->cui_layout_gen > 0)
io->ci_need_restart = cio->cui_layout_gen == gen;
}
struct req_capsule *pill = &req->rq_pill;
struct ldlm_request *lockreq;
struct ldlm_reply *lockrep;
- __u64 bits = 0;
struct lustre_intent_data *intent = &it->d.lustre;
ENTRY;
ldlm_lock_decref(lockh, einfo->ei_mode);
einfo->ei_mode = lock->l_req_mode;
}
- bits = lock->l_policy_data.l_inodebits.bits;
LDLM_LOCK_PUT(lock);
}
handler = ptlrpcd_alloc_work(cli->cl_import, brw_queue_work, cli);
if (IS_ERR(handler))
- GOTO(out_client_setup, PTR_ERR(handler));
+ GOTO(out_client_setup, rc = PTR_ERR(handler));
cli->cl_writeback_work = handler;
rc = osc_quota_setup(obd);
if (error == 1) {
char command[4096];
- int rc;
rprintf(rank, n, 0, STATUS_FMT"\n",
write_char, write_size, write_size,
trunc_offset, trunc_offset);
sprintf(command, "od -Ax -a %s", fnames[0]);
- rc = system(command);
+ ret = system(command);
MPI_Abort(MPI_COMM_WORLD, 1);
}
}
for (i = 0; i < noProcessors; i++) {
char command[4096];
- int j, rc;
+ int j;
+
if (!memcmp(read_buf + (i * CHUNK_SIZE(n)),
chunk_buf[i], CHUNK_SIZE(n)))
continue;
}
sprintf(command, "od -Ad -a %s", filename);
- rc = system(command);
+ ret = system(command);
rprintf(0, n, "data check error - exiting\n");
}
}
size_t name_len)
{
static long *long_ret;
- int size;
int new_value;
case RESERVE2:
- size = var_val_len;
long_ret = (long *) var_val;