Whamcloud - gitweb
LU-6695 jobstats: skip too long env variables 77/15177/2
authorNiu Yawei <yawei.niu@intel.com>
Mon, 8 Jun 2015 06:33:58 +0000 (02:33 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 16 Jun 2015 08:46:27 +0000 (08:46 +0000)
commit3c8a2d49ef4a17aad2973475178aea794b669f38
tree899d7a3b31ddefc275f99b72c4366b0ada0507c5
parent5ccd7a4a556b1a847eb5bff8b2395522a6f4bca8
LU-6695 jobstats: skip too long env variables

The PATH env variable can be very large, it may exceed the page
size sometimes. cfs_get_envrion() should skip such too long env
variables instead of returning error.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: I43c103a647cde3afa499dec3a11312155c3cf924
Reviewed-on: http://review.whamcloud.com/15177
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/libcfs/linux/linux-curproc.c