[syslinux:elflink] extlinux: Make sure ldlinux.sys file is installed

syslinux-bot for Paulo Alcantara pcacjr at zytor.com
Fri Jan 11 01:36:03 PST 2013


Commit-ID:  39add3bc254a585aeba8dba7c32e4aa462221e24
Gitweb:     http://www.syslinux.org/commit/39add3bc254a585aeba8dba7c32e4aa462221e24
Author:     Paulo Alcantara <pcacjr at zytor.com>
AuthorDate: Mon, 7 Jan 2013 06:14:47 -0200
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Thu, 10 Jan 2013 10:51:16 +0000

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 <pcacjr at zytor.com>
Signed-off-by: Matt Fleming <matt.fleming at intel.com>

---
 extlinux/main.c | 2 ++
 1 file changed, 2 insertions(+)

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;


More information about the Syslinux-commits mailing list