From f9a2bb13df6a96a35951b7a76229c3e869c55793 Mon Sep 17 00:00:00 2001 From: adash Date: Wed, 19 May 2010 17:21:30 +0000 Subject: [PATCH] add missing files --- .../Recovery/FileSystem/recovery/DFile.java | 30 ++++++++++++ .../FileSystem/recovery/Directory.java | 46 +++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 Robust/src/Benchmarks/Recovery/FileSystem/recovery/DFile.java create mode 100644 Robust/src/Benchmarks/Recovery/FileSystem/recovery/Directory.java diff --git a/Robust/src/Benchmarks/Recovery/FileSystem/recovery/DFile.java b/Robust/src/Benchmarks/Recovery/FileSystem/recovery/DFile.java new file mode 100644 index 00000000..1c3773f1 --- /dev/null +++ b/Robust/src/Benchmarks/Recovery/FileSystem/recovery/DFile.java @@ -0,0 +1,30 @@ +public class DFile { + char [] data; + int size; + public DFile() { + data=global new char[4096]; + size=data.length; + } + public void write(int offset, char[] towrite) { + int length=offset+towrite.length; + if (length>size) { + if (length>data.length) { + char [] ptr=global new char[length]; + for(int i=0;i