X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Futils%2Freq-layout.c;h=2ff41b5c7b645645d7519a6e70a996c537c8526f;hb=d10200a80770f0029d1d665af954187b9ad883df;hp=bcdf3873b3f4c260ccd3d8c4e34e591bd508dd38;hpb=780a5724177ab87ed088a1da484fb99c3f75c7c6;p=fs%2Flustre-release.git diff --git a/lustre/utils/req-layout.c b/lustre/utils/req-layout.c index bcdf387..2ff41b5 100644 --- a/lustre/utils/req-layout.c +++ b/lustre/utils/req-layout.c @@ -15,11 +15,7 @@ * * You should have received a copy of the GNU General Public License * version 2 along with this program; If not, see - * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf - * - * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, - * CA 95054 USA or visit www.sun.com if you need additional information or - * have any questions. + * http://www.gnu.org/licenses/gpl-2.0.html * * GPL HEADER END */ @@ -27,7 +23,7 @@ * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * - * Copyright (c) 2011, 2012, Intel Corporation. + * Copyright (c) 2011, 2016, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -40,14 +36,25 @@ * Author: Nikita Danilov */ +#include +#include #include #include +#include #include -#include -#include +#include #define __REQ_LAYOUT_USER__ (1) +#define EXPORT_SYMBOL(s) + +#include +#include +#include + +#ifndef ARRAY_SIZE +# define ARRAY_SIZE(a) ((sizeof(a)) / (sizeof((a)[0]))) +#endif /* !ARRAY_SIZE */ #define lustre_swab_generic_32s NULL #define lustre_swab_lu_seq_range NULL @@ -82,14 +89,33 @@ #define lustre_swab_gl_desc NULL #define lustre_swab_mgs_config_body NULL #define lustre_swab_mgs_config_res NULL +#define lustre_swab_swap_layouts NULL #define lustre_swab_lu_fid NULL +#define lustre_swab_ost_id NULL #define lustre_swab_hsm_progress_kernel NULL #define lustre_swab_hsm_user_item NULL +#define lustre_swab_hsm_user_state NULL +#define lustre_swab_hsm_state_set NULL +#define lustre_swab_hsm_current_action NULL +#define lustre_swab_hsm_request NULL +#define lustre_swab_close_data NULL +#define lustre_swab_object_update NULL +#define lustre_swab_object_update_result NULL +#define lustre_swab_object_update_reply NULL +#define lustre_swab_object_update_request NULL +#define lustre_swab_out_update_header NULL +#define lustre_swab_out_update_buffer NULL + #define dump_rniobuf NULL #define dump_ioo NULL #define dump_obdo NULL #define dump_ost_body NULL #define dump_rcs NULL +#define lustre_swab_lmv_user_md NULL +#define lustre_swab_lfsck_request NULL +#define lustre_swab_lfsck_reply NULL +#define lustre_swab_ladvise_hdr NULL +#define lustre_swab_ladvise NULL /* * Yes, include .c file. @@ -118,7 +144,7 @@ void print_layout(const struct req_format *rf) [RCL_SERVER] = "S" }; - printf("L %s (%i/%i)\n", rf->rf_name, + printf("L %s (%zu/%zu)\n", rf->rf_name, rf->rf_fields[RCL_CLIENT].nr, rf->rf_fields[RCL_SERVER].nr); for (j = 0; j < RCL_NR; ++j) {