Whamcloud - gitweb
e4defrag: defensively check results of sysconf(_SC_PAGESIZE)
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Dec 2013 18:08:45 +0000 (13:08 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 12 Dec 2013 18:08:49 +0000 (13:08 -0500)
commitb1667425f8cd8b3c3d6b205ac9f3dee2e085058c
treefe019c84085c469b1e72e62a9af46eb91b7fc7c5
parente661d2815194d6db3f3e38223277569ad55bb420
e4defrag: defensively check results of sysconf(_SC_PAGESIZE)

sysconf(_SC_PAGESIZE) will probably never return an error, but just in
case it does, we shouldn't pass what looks like a huge number to
sync_file_range() and posix_fadvise().

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/e4defrag.c