summaryrefslogtreecommitdiff
path: root/src/fileops/fileops.src
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-02-17 17:25:57 +0000
committer <>2015-03-17 16:26:24 +0000
commit780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch)
tree598f8b9fa431b228d29897e798de4ac0c1d3d970 /src/fileops/fileops.src
parent7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff)
downloadberkeleydb-master.tar.gz
Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz.HEADdb-6.1.23master
Diffstat (limited to 'src/fileops/fileops.src')
-rw-r--r--src/fileops/fileops.src91
1 files changed, 84 insertions, 7 deletions
diff --git a/src/fileops/fileops.src b/src/fileops/fileops.src
index cdb6af27..3cb874b7 100644
--- a/src/fileops/fileops.src
+++ b/src/fileops/fileops.src
@@ -1,7 +1,7 @@
/*-
* See the file LICENSE for redistribution information.
*
- * Copyright (c) 2001, 2012 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2015 Oracle and/or its affiliates. All rights reserved.
*
* $Id$
*/
@@ -30,7 +30,14 @@ ARG appname u_int32_t lu
ARG mode u_int32_t o
END
-BEGIN create 48 143
+BEGIN_COMPAT create 60 143
+DBT name DBT s
+DBT dirname DBT s
+ARG appname u_int32_t lu
+ARG mode u_int32_t o
+END
+
+BEGIN create 60p1 143
DBT name DBT s
DBT dirname DBT s
ARG appname u_int32_t lu
@@ -43,7 +50,13 @@ END
* name: name in the file system
* appname: indicates if the name needs to go through __db_appname
*/
-BEGIN remove 42 144
+BEGIN_COMPAT remove 60 144
+DBT name DBT s
+DBT fid DBT s
+ARG appname u_int32_t lu
+END
+
+BEGIN remove 60p1 144
DBT name DBT s
DBT fid DBT s
ARG appname u_int32_t lu
@@ -71,7 +84,18 @@ DBT page DBT s
ARG flag u_int32_t lu
END
-BEGIN write 48 145
+BEGIN_COMPAT write 60 145
+DBT name DBT s
+DBT dirname DBT s
+ARG appname u_int32_t lu
+ARG pgsize u_int32_t lu
+ARG pageno db_pgno_t lu
+ARG offset u_int32_t lu
+DBT page DBT s
+ARG flag u_int32_t lu
+END
+
+BEGIN write 60p1 145
DBT name DBT s
DBT dirname DBT s
ARG appname u_int32_t lu
@@ -83,6 +107,42 @@ ARG flag u_int32_t lu
END
/*
+ * write_file: log the writing of data into a file.
+ *
+ * name: file containing the data.
+ * appname: indicates if the name needs to go through __db_appname
+ * offset_lo: offset in the file, low part of a 64 bit integer.
+ * offset_hi: offset in the file, high part of a 64 bit integer.
+ * old_data: Data being overwritten, if there is any
+ * new_data: Data being written to the file.
+ * flag: DB_FOP_APPEND (0x00000001), DB_FOP_CREATE (0x00000002) and
+ * DB_FOP_REDO (0x00000008). Used to tell how the operation can be
+ * undone, truncating in the case of append and deleting the file in
+ * the case of create, and whether enough information was logged so
+ * that the operation can be redone.
+ */
+BEGIN_COMPAT write_file 60 86
+DBT name DBT s
+DBT dirname DBT s
+ARG appname u_int32_t lu
+ARG offset_lo u_int32_t lu
+ARG offset_hi u_int32_t lu
+DBT old_data DBT s
+DBT new_data DBT s
+ARG flag u_int32_t lu
+END
+
+BEGIN write_file 60p1 86
+DBT name DBT s
+DBT dirname DBT s
+ARG appname u_int32_t lu
+LONGARG offset u_int64_t llu
+DBT old_data DBT s
+DBT new_data DBT s
+ARG flag u_int32_t lu
+END
+
+/*
* rename: move a file from one name to another.
* The appname value indicates if this is a path name that should be used
* directly (i.e., no interpretation) or if it is a pathname that should
@@ -105,8 +165,17 @@ DBT fileid DBT s
ARG appname u_int32_t lu
END
-BEGIN rename 48 146
-DUPLICATE rename_noundo 46 150
+BEGIN_COMPAT rename 60 146
+DUPLICATE rename_noundo 60 150
+DBT oldname DBT s
+DBT newname DBT s
+DBT dirname DBT s
+DBT fileid DBT s
+ARG appname u_int32_t lu
+END
+
+BEGIN rename 60p1 146
+DUPLICATE rename_noundo 60p1 150
DBT oldname DBT s
DBT newname DBT s
DBT dirname DBT s
@@ -128,7 +197,15 @@ END
* child: The transaction that removed or renamed the file.
*/
*/
-BEGIN file_remove 42 141
+BEGIN_COMPAT file_remove 60 141
+DBT real_fid DBT s
+DBT tmp_fid DBT s
+DBT name DBT s
+ARG appname u_int32_t lu
+ARG child u_int32_t lx
+END
+
+BEGIN file_remove 60p1 141
DBT real_fid DBT s
DBT tmp_fid DBT s
DBT name DBT s