Whamcloud - gitweb
LU-12396 utils: lfs should not output 'nul' char 37/35137/3
authorPatrick Farrell <pfarrell@whamcloud.com>
Mon, 10 Jun 2019 16:29:06 +0000 (12:29 -0400)
committerOleg Drokin <green@whamcloud.com>
Sun, 16 Jun 2019 03:30:03 +0000 (03:30 +0000)
commitf232d906f755c3ea823c5cf17b7729a6a3bd8fe5
tree7374967af665ef8ff3cc2b8aec1f9c4c5008467a
parent27572b0476b07b396174430940f184ed85088eeb
LU-12396 utils: lfs should not output 'nul' char

If lfs prints a nul char, it breaks parsing of the output.

Fixes: 68635c3d9b31 ("LU-11963 osd: Add nonrotational flag to statfs")
Signed-off-by: Yang Sheng <ys@whamcloud.com>
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Ibfa77920adf3a6c62b01efb005d02ca81db7f7c1
Reviewed-on: https://review.whamcloud.com/35137
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
lustre/utils/lfs.c