diff options
author | heikki@hundin.mysql.fi <> | 2003-11-25 20:39:06 +0200 |
---|---|---|
committer | heikki@hundin.mysql.fi <> | 2003-11-25 20:39:06 +0200 |
commit | e82a7e2fd2d2426905b8160a294776fc9542d31b (patch) | |
tree | a19c7184495b927e60a18deea130bbc7d738ef68 /innobase/include | |
parent | 2dd79b37cf3c8bce8106dba304c25ca55c9bcc6c (diff) | |
download | mariadb-git-e82a7e2fd2d2426905b8160a294776fc9542d31b.tar.gz |
os0file.h, os0file.c:
Changes needed for ibbackup directory scanning fault tolerance
Diffstat (limited to 'innobase/include')
-rw-r--r-- | innobase/include/os0file.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/innobase/include/os0file.h b/innobase/include/os0file.h index 4a9fae90f07..5f2d6e3ed21 100644 --- a/innobase/include/os0file.h +++ b/innobase/include/os0file.h @@ -282,6 +282,15 @@ os_file_delete( /*===========*/ /* out: TRUE if success */ char* name); /* in: file path as a null-terminated string */ + +/*************************************************************************** +Deletes a file if it exists. The file has to be closed before calling this. */ + +ibool +os_file_delete_if_exists( +/*=====================*/ + /* out: TRUE if success */ + char* name); /* in: file path as a null-terminated string */ /*************************************************************************** Renames a file (can also move it to another directory). It is safest that the file is closed before calling this function. */ @@ -379,6 +388,23 @@ os_file_read( offset */ ulint n); /* in: number of bytes to read */ /*********************************************************************** +Requests a synchronous positioned read operation. This function does not do +any error handling. In case of error it returns FALSE. */ + +ibool +os_file_read_no_error_handling( +/*===========================*/ + /* out: TRUE if request was + successful, FALSE if fail */ + os_file_t file, /* in: handle to a file */ + void* buf, /* in: buffer where to read */ + ulint offset, /* in: least significant 32 bits of file + offset where to read */ + ulint offset_high,/* in: most significant 32 bits of + offset */ + ulint n); /* in: number of bytes to read */ + +/*********************************************************************** Requests a synchronous write operation. */ ibool |