]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ditto for lseek
authoranwleung <anwleung@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 28 Mar 2007 19:23:51 +0000 (19:23 +0000)
committeranwleung <anwleung@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 28 Mar 2007 19:23:51 +0000 (19:23 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1313 29311d96-e01e-0410-9327-a35deaab8ce9

branches/aleung/security1/ceph/client/SyntheticClient.cc

index 208dc252702a6af84b973dbe27f695ca008ec3f8..d778d2b0651bce39aea5e87f0dec3d018f0644c4 100644 (file)
@@ -668,7 +668,13 @@ int SyntheticClient::play_trace(Trace& t, string& prefix)
       char *buf = new char[size];
       client->read(fh, buf, size, off);
       delete[] buf;
-    } else if (strcmp(op, "write") == 0) {
+    } else if (strcmp(op, "lseek") == 0) {
+      __int64_t id = t.get_int();
+      __int64_t fh = open_files[id];
+      int off = t.get_int();
+      int whence = t.get_int();
+      client->lseek(fh, off, whence);
+    }else if (strcmp(op, "write") == 0) {
       __int64_t id = t.get_int();
       __int64_t fh = open_files[id];
       int size = t.get_int();