Whamcloud - gitweb
e4defrag: choose the best available posix_fadvise variant
authorBaruch Siach <baruch@tkos.co.il>
Thu, 2 Jan 2014 18:05:37 +0000 (13:05 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 6 Jan 2014 03:55:10 +0000 (22:55 -0500)
commit9a3938918545b831b215b2befc2454f7b1a2dd84
treea43bdacfb590b034db3cafd2ee51b3b5ce7f1501
parent603fc2cb4b0f04f7c4e9c75bfea1b91fe000e47a
e4defrag: choose the best available posix_fadvise variant

Use posix_fadvise64() when available.  This allows 64bit offsets on
32bit systems.

[ Modified by tytso to try to use fadvise64() as well, and to remove
  the attempt to call the syscall directly, since because and
  complexities caused by required dummy arguments on some
  architectures, it's not worth the hair.  ]

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
configure
configure.in
lib/config.h.in
misc/e4defrag.c