From cb25ddd100f38ffb96430e0b7b00290140eb766d Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 27 Dec 2001 00:56:40 +0200 Subject: os0file.c: Make os_file_flush to ignore the error we get from a raw device in fsync innobase/os/os0file.c: Make os_file_flush to ignore the error we get from a raw device in fsync --- innobase/os/os0file.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'innobase') diff --git a/innobase/os/os0file.c b/innobase/os/os0file.c index 9fecf2c04fd..363ed587c4e 100644 --- a/innobase/os/os0file.c +++ b/innobase/os/os0file.c @@ -582,6 +582,13 @@ os_file_flush( return(TRUE); } + /* Since Linux returns EINVAL if the 'file' is actually a raw device, + we choose to ignore that error */ + + if (errno == EINVAL) { + return(TRUE); + } + fprintf(stderr, "InnoDB: Error: the OS said file flush did not succeed\n"); -- cgit v1.2.1