Speed up test suite by avoiding fsync
authorColin Watson <cjwatson@ubuntu.com>
Wed, 27 Nov 2013 10:06:07 +0000 (10:06 +0000)
committerColin Watson <cjwatson@ubuntu.com>
Wed, 27 Nov 2013 10:10:22 +0000 (10:10 +0000)
commit5c7206e45ee74d82c563d675d5d08874092b0b5e
tree79025a23e0ecaa75508a792e9e708a8a105e2145
parentfc3f2b72cd96dddba6080f3ef2673b344450e886
Speed up test suite by avoiding fsync

Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls into
no-ops, and use it in programs that copy files but do not need to take
special care to sync writes (grub-mknetdir, grub-rescue,
grub-mkstandalone).

On my laptop, this reduces partmap_test's runtime from 1236 seconds to
204 seconds.
ChangeLog
grub-core/osdep/aros/hostdisk.c
grub-core/osdep/unix/hostdisk.c
grub-core/osdep/windows/hostdisk.c
include/grub/emu/hostfile.h
util/grub-install-common.c
util/grub-mknetdir.c
util/grub-mkrescue.c
util/grub-mkstandalone.c