271: use xfs_io to truncate file instead of truncate(1)
authorEryu Guan <guaneryu@gmail.com>
Fri, 27 Jan 2012 19:15:30 +0000 (13:15 -0600)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 27 Jan 2012 19:15:30 +0000 (13:15 -0600)
commitbc78389b3f98b25adb0e3de54c0cf7bea4c38def
treeadd62757158f2c7327509506d09d9dfdc0b38ed9
parentf73f284b235daec5e2059d778c7c8ef5a8f4f3b0
271: use xfs_io to truncate file instead of truncate(1)

Distros(eg. RHEL5) with older version of coreutils have no truncate(1)
command. Use xfs_io instead to avoid "command not found" failures.

Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
271