Whamcloud - gitweb
LU-6210 osd: Change positional struct initializers to C99 70/23770/2
authorSteve Guminski <stephenx.guminski@intel.com>
Mon, 14 Nov 2016 20:42:44 +0000 (15:42 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 1 Jan 2017 02:00:54 +0000 (02:00 +0000)
commit226fdfbd8d177587787f473f4fb48714e1ffad91
tree4cb45aa920b48a22835891bf25ad3075fb17dae4
parentee41ed7803c860cb79782b3d7df8ac2b8e0ab31a
LU-6210 osd: Change positional struct initializers to C99

This patch makes no functional changes.  Struct initializers in the
osd directories that use C89 or GCC-only syntax are updated to C99
syntax.

The C99 syntax prevents incorrect initialization if values are
accidently placed in the wrong position, allows changes in the struct
definition, and clears any members that are not given an explicit
value.

The following struct initializers have been updated:

lustre/osd-ldiskfs/osd_scrub.c:
static const struct osd_lf_map osd_lf_maps[]
static const struct osd_lf_map osd_dl_maps[]
lustre/osd-zfs/osd_oi.c:
static const struct named_oid oids[]

Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: I1aa2bf64f0efcbd9c34f21f60c462f7a95c41f98
Reviewed-on: https://review.whamcloud.com/23770
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_scrub.c
lustre/osd-zfs/osd_oi.c