From 42db7f1780d063b8219eea55cd97a32c4f22a555 Mon Sep 17 00:00:00 2001 From: marko <> Date: Thu, 28 Feb 2008 10:28:56 +0000 Subject: [PATCH] branches/zip: os_file_set_nocache(): Clean up the function comment. Add the function prototype to os0file.h. --- include/os0file.h | 11 +++++++++++ os/os0file.c | 10 ++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/include/os0file.h b/include/os0file.h index 2dce883d54a..4b0b6919866 100644 --- a/include/os0file.h +++ b/include/os0file.h @@ -290,6 +290,17 @@ os_file_create_simple_no_error_handling( used by a backup program reading the file */ ibool* success);/* out: TRUE if succeed, FALSE if error */ /******************************************************************** +Tries to disable OS caching on an opened file descriptor. */ +UNIV_INTERN +void +os_file_set_nocache( +/*================*/ + int fd, /* in: file descriptor to alter */ + const char* file_name, /* in: file name, used in the + diagnostic message */ + const char* operation_name);/* in: "open" or "create"; used in the + diagnostic message */ +/******************************************************************** Opens an existing file or creates a new. */ UNIV_INTERN os_file_t diff --git a/os/os0file.c b/os/os0file.c index 06d3d729650..c55a5aafc97 100644 --- a/os/os0file.c +++ b/os/os0file.c @@ -1109,12 +1109,10 @@ void os_file_set_nocache( /*================*/ int fd, /* in: file descriptor to alter */ - const char* file_name, /* in: used in the diagnostic message */ - const char* operation_name) /* in: used in the diagnostic message, - we call os_file_set_nocache() - immediately after opening or creating - a file, so this is either "open" or - "create" */ + const char* file_name, /* in: file name, used in the + diagnostic message */ + const char* operation_name) /* in: "open" or "create"; used in the + diagnostic message */ { /* some versions of Solaris may not have DIRECTIO_ON */ #if defined(UNIV_SOLARIS) && defined(DIRECTIO_ON)