From: Paulo Alcantara Date: Mon, 7 Jan 2013 08:14:47 +0000 (-0200) Subject: extlinux: Make sure ldlinux.sys file is installed X-Git-Tag: syslinux-5.01-pre2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39add3bc254a585aeba8dba7c32e4aa462221e24;p=platform%2Fupstream%2Fsyslinux.git extlinux: Make sure ldlinux.sys file is installed Due to delayed allocation feature on XFS filesystems, a write is not guaranteed to flushed out to the underlying file system after crash or something else - so we need to make sure that ldlinux.sys is installed correctly in the mounted filesystem. Signed-off-by: Paulo Alcantara Signed-off-by: Matt Fleming --- diff --git a/extlinux/main.c b/extlinux/main.c index 0204caa..fa54152 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -687,6 +687,8 @@ static int xfs_install_file(const char *path, int devfd, struct stat *rst) } close(dirfd); + + sync(); close(fd); return 0;