Whamcloud - gitweb
LU-13701 utils: fix usage of getopt_long in portals 36/40036/4
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Thu, 24 Sep 2020 23:49:05 +0000 (16:49 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 12 Oct 2020 05:47:51 +0000 (05:47 +0000)
commit404bb62da49ca33bdc6e287a12e69d086a1fa4c2
tree233a143a39d9ef937c01daa3a3e46c2daf85798f
parent817d6c116599639599919bcde7999a7f06b74d2c
LU-13701 utils: fix usage of getopt_long in portals

Due to char being unsigned by default, using this type to store
the int return value of getopt_long causes parsing issues on arm
platform, seen with lctl net_drop_add options. Fix it.

Test-Parameters: trivial testgroup=review-ldiskfs-arm
Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: Ibef6ba347a90d9ed3cd4bd9346ed9f79f0120b87
Reviewed-on: https://review.whamcloud.com/40036
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-lnet.sh
lustre/utils/portals.c