From 4c00d139562794883f1a75515a7b9da6696031b8 Mon Sep 17 00:00:00 2001 From: anwleung Date: Wed, 28 Mar 2007 19:23:51 +0000 Subject: [PATCH] ditto for lseek git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1313 29311d96-e01e-0410-9327-a35deaab8ce9 --- branches/aleung/security1/ceph/client/SyntheticClient.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/branches/aleung/security1/ceph/client/SyntheticClient.cc b/branches/aleung/security1/ceph/client/SyntheticClient.cc index 208dc252702a6..d778d2b0651bc 100644 --- a/branches/aleung/security1/ceph/client/SyntheticClient.cc +++ b/branches/aleung/security1/ceph/client/SyntheticClient.cc @@ -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(); -- 2.39.5