--- storage/innobase/os/os0file.c.orig 2009-02-05 18:39:49.000000000 +0900 +++ storage/innobase/os/os0file.c 2009-02-05 18:42:27.000000000 +0900 @@ -1153,6 +1153,16 @@ "see MySQL Bug#26662\n"); } } +#elif defined(F_NOCACHE) + if (fcntl(fd, F_NOCACHE, 1) == -1) { + int errno_save; + errno_save = (int)errno; + ut_print_timestamp(stderr); + fprintf(stderr, + " InnoDB: Failed to set O_DIRECT " + "on file %s: %s: %s, continuing anyway\n", + file_name, operation_name, strerror(errno_save)); + } #endif }