Re: [PATCH] vfs: fix statfs64() does not handle errors

2016-11-14 Thread Li Wang
On Mon, Nov 07, 2016 at 11:03:11AM -0700, Andreas Dilger wrote: > On Nov 7, 2016, at 3:21 AM, Li Wang wrote: > > > > statfs64() does NOT return -1 and setting errno to EOVERFLOW when some > > variables(like: f_bsize) overflowed in the returned struct. > > > > reproducer: > > step1. mount hugetlb

Re: [PATCH] vfs: fix statfs64() does not handle errors

2016-11-07 Thread Andreas Dilger
On Nov 7, 2016, at 3:21 AM, Li Wang wrote: > > statfs64() does NOT return -1 and setting errno to EOVERFLOW when some > variables(like: f_bsize) overflowed in the returned struct. > > reproducer: > step1. mount hugetlbfs with two different pagesize on ppc64 arch. > > $ hugeadm --pool-pages-max

[PATCH] vfs: fix statfs64() does not handle errors

2016-11-07 Thread Li Wang
statfs64() does NOT return -1 and setting errno to EOVERFLOW when some variables(like: f_bsize) overflowed in the returned struct. reproducer: step1. mount hugetlbfs with two different pagesize on ppc64 arch. $ hugeadm --pool-pages-max 16M:0 $ hugeadm --create-mount $ mount | grep -i hugetlbfs no