Whamcloud - gitweb
e4defrag: fix build failure if libc doesn't have sync_file_range()
authorTheodore Ts'o <tytso@mit.edu>
Sun, 6 Sep 2015 02:18:29 +0000 (22:18 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 6 Sep 2015 02:18:29 +0000 (22:18 -0400)
commit7719e69a5c3308f383babb9abde7cf60ebec0027
treefd1f7a04afca8ca5ba8f51fcea55376614b230bc
parente695c12892d0de5e6a3087fffb532e68e0b02242
e4defrag: fix build failure if libc doesn't have sync_file_range()

The posix_fadvise() to hint to the system that the file can be removed
from memory will probably not work well without the sync_file_range(2)
call, but e4defrag should still fundamentally work, and this will
allow e4defrag to compile if the C library doesn't happen this system
call exposed.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/e4defrag.c