-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
+/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
/*
* Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
+ *
+ * Copyright (c) 2011, 2012, Whamcloud, Inc.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
#include <obd.h> /* for struct lov_stripe_md */
#include <lustre/lustre_build_version.h>
-#include <obd_class.h>
#include <lnet/lnetctl.h>
#include <libcfs/libcfsutil.h>
-#include <lustre/liblustreapi.h>
+#include <lustre/lustreapi.h>
#define MAX_STRING_SIZE 128
#define DEVICES_LIST "/proc/fs/lustre/devices"
const int nthreads = 1;
#endif
-#define MAX_IOC_BUFLEN 8192
-
static int cur_device = -1;
struct lov_oinfo lov_oinfos[LOV_MAX_STRIPE_COUNT];
&shared_data->body.start_time);
shmem_unlock();
- printf("Total: total %llu threads %d sec %f %f/second\n", total,
- total_threads, secs, total / secs);
+ printf("Total: total "LPU64" threads %d sec %f %f/second\n",
+ total, total_threads, secs, total / secs);
return;
}
data.ioc_count = MD_STEP_COUNT;
}
- child_base_id += data.ioc_count;
- count += data.ioc_count;
if (cmd == ECHO_MD_CREATE || cmd == ECHO_MD_MKDIR) {
/*Allocate fids for the create */
rc = jt_obd_alloc_fids(&fid_space, &fid,
data.ioc_obdo1.o_seq = fid.f_seq;
data.ioc_obdo1.o_id = fid.f_oid;
}
+
+ child_base_id += data.ioc_count;
+ count += data.ioc_count;
+
memset(buf, 0, sizeof(rawbuf));
rc = obd_ioctl_pack(&data, &buf, sizeof(rawbuf));
if (rc) {
{
struct sigaction sigact;
+ /* sigact initialization */
sigact.sa_handler = signal_server;
sigfillset(&sigact.sa_mask);
sigact.sa_flags = SA_RESTART;
+ /* coverity[uninit_use_in_call] */
sigaction(SIGINT, &sigact, NULL);
shmem_cleanup();