- LOV's mount again.
- set some unitialized variables to 0
case ${host_cpu} in
um )
AC_MSG_RESULT($host_cpu)
- KCFLAGS='-g -Wall -pipe -Wno-trigraphs -Wstrict-prototypes -fno-strict-aliasing -fno-common '
+ KCFLAGS='-g -Wall -pipe -Wno-trigraphs -Wstrict-prototypes -fno-strict-aliasing -fno-common '
KCPPFLAGS='-D__KERNEL__ -U__i386__ -Ui386 -DUM_FASTCALL -D__arch_um__ -DSUBARCH="i386" -DNESTING=0 -D_LARGEFILE64_SOURCE -Derrno=kernel_errno -DPATCHLEVEL=4 -DMODULE -I$(LINUX)/arch/um/include '
MOD_LINK=elf_i386
;;
struct lustre_handle lockh;
int err, type, offset;
struct lookup_intent lookup_it = { IT_LOOKUP };
- obd_id ino;
+ obd_id ino = 0;
ENTRY;
}
if (dentry->d_it->it_disposition) {
- struct ll_inode_info *ii = ll_i2info(inode);
+ ii = ll_i2info(inode);
ii->lli_flags |= OBD_FL_CREATEONOPEN;
memcpy(&ii->lli_intent_lock_handle,
dentry->d_it->it_lock_handle,
static int lov_create(struct lustre_handle *conn, struct obdo *oa, struct lov_stripe_md **ea)
{
- int rc, i;
+ int rc = 0, i;
struct obdo tmp;
struct obd_export *export = class_conn2export(conn);
struct lov_obd *lov;
static int lov_destroy(struct lustre_handle *conn, struct obdo *oa,
struct lov_stripe_md *ea)
{
- int rc, i;
+ int rc = 0, i;
struct obdo tmp;
struct obd_export *export = class_conn2export(conn);
struct lov_obd *lov;
rc = mds_get_lovtgts(req->rq_obd, tgt_count,
lustre_msg_buf(req->rq_repmsg, 1));
if (rc) {
- CERROR("get_lovtgts error %d", rc);
+ CERROR("get_lovtgts error %d\n", rc);
req->rq_status = rc;
RETURN(0);
}
struct file *f;
int rc;
int rc2;
- int count;
push_ctxt(&saved, &mds->mds_ctxt);
f = filp_open("LOVTGTS", O_RDONLY, 0644);
if (rc2)
CERROR("Error closing LOVTGTS file: rc = %d\n", rc2);
- if (rc != count * sizeof(uuid_t)) {
+ if (rc != tgt_count * sizeof(uuid_t)) {
CERROR("Error reading LOVTGTS file: rc = %d\n", rc);
if (rc >= 0)
rc = -EIO;
GOTO(out, rc);
- }
+ } else
+ rc = 0;
EXIT;
out:
pop_ctxt(&saved);
}
case OBD_IOC_DESTROY: {
- void *ea;
+ //void *ea;
obd_data2conn(&conn, data);
- err = obd_destroy(&conn, &data->ioc_obdo1, ea);
+ err = obd_destroy(&conn, &data->ioc_obdo1, NULL);
if (err)
GOTO(out, err);
{
struct obd_run_ctxt saved;
struct super_block *sb;
- int onum; /* index to oas */
int pnum; /* index to pages (bufs) */
unsigned long retval;
int error;
/* count doubles as retval */
for (pg = 0; pg < oa_bufs; pg++) {
- CDEBUG(D_INODE, "OP %d obdo no/pno: (%d,%d) (%ld,%ld) "
+ CDEBUG(D_INODE, "OP %d obdo pgno: (%d) (%ld,%ld) "
"off count (%Ld,%Ld)\n",
- cmd, onum, pnum, file->f_dentry->d_inode->i_ino,
+ cmd, pnum, file->f_dentry->d_inode->i_ino,
(unsigned long)offset[pnum] >> PAGE_CACHE_SHIFT,
(unsigned long long)offset[pnum],
(unsigned long long)count[pnum]);
DEFS=
-CFLAGS:=-g -I. -I/usr/include/libxml2 -I/usr/include/glib-1.2 -I$(PORTALS)/include \
+CFLAGS:=-g -O2 -I. -I/usr/include/libxml2 -I/usr/include/glib-1.2 -I$(PORTALS)/include \
-I/usr/lib/glib/include -I$(srcdir)/../include -Wall
KFLAGS:=
CPPFLAGS =
if (strlen(argv[1]) > sizeof(uuid_t) - 1) {
fprintf(stderr, "lov_config: no %dB memory for uuid's\n",
- size);
+ strlen(argv[1]));
return -ENOMEM;
}
int jt_dev_test_getattr(int argc, char **argv)
{
- int rc;
+ int rc = 0;
struct obd_ioctl_data data;
struct timeval start, next_time;
int i, count, next_count;
int jt_dev_test_brw(int argc, char **argv)
{
- int rc;
+ int rc = 0;
struct obd_ioctl_data data;
struct timeval start, next_time;
char *bulk, *b;
def prepare_mountpoint(node):
name, uuid, oscuuid, mdcuuid, mtpt = getMTPTInfo(node)
print 'MTPT:', name, uuid, oscuuid, mdcuuid, mtpt
- cmd = "mount -t lustre_lite -o ost=%s,mds=%s none %s" % \
+ cmd = "echo mount -t lustre_lite -o ost=%s,mds=%s none %s" % \
(oscuuid, mdcuuid, mtpt)
run("mkdir", mtpt)
run(cmd)
int threads, next_thread;
int verbose;
int i, j;
- int rc;
+ int rc = 0;
if (argc < 5) {
fprintf(stderr,
if (strlen(argv[1]) > sizeof(uuid_t) - 1) {
fprintf(stderr, "lov_config: no %dB memory for uuid's\n",
- size);
+ strlen(argv[1]));
return -ENOMEM;
}