fsx: Add check for mmap last-page zero fill
authorTheodore Ts'o <tytso@mit.edu>
Wed, 13 May 2009 20:52:42 +0000 (15:52 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 13 May 2009 20:52:42 +0000 (15:52 -0500)
commit6bb39a9df4a9a3f9b5fae0e14309ea183052ab55
treef1dad6b75016e71fd238409305b8fda5ab47e9e6
parent969f36df3e22ff0893bc74bfbab4fee55df008ab
fsx: Add check for mmap last-page zero fill
Check to make sure the VM system provided 0's beyond the true end of
the file mapping (as required by mmap def in 1996 posix 1003.1)

This check was taken from the FreeBSD version of fsx.c.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
ltp/fsx.c