From 07dc9ba83efc6a6482a973fdcbe085260813cf5e Mon Sep 17 00:00:00 2001 From: sageweil Date: Tue, 11 Sep 2007 05:43:05 +0000 Subject: [PATCH] don't stat the root directory so much git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1827 29311d96-e01e-0410-9327-a35deaab8ce9 --- trunk/ceph/client/SyntheticClient.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/trunk/ceph/client/SyntheticClient.cc b/trunk/ceph/client/SyntheticClient.cc index 25623b75dc2c9..b2474b9421a1b 100644 --- a/trunk/ceph/client/SyntheticClient.cc +++ b/trunk/ceph/client/SyntheticClient.cc @@ -930,7 +930,10 @@ int SyntheticClient::play_trace(Trace& t, string& prefix, bool metadata_only) } else if (strcmp(op, "lstat") == 0) { struct stat st; const char *a = t.get_string(buf, p); - client->lstat(a, &st); + if (strcmp(a, p) != 0 && + strcmp(a, "/") != 0 && + strcmp(a, "") != 0) // stop stating the root directory already + client->lstat(a, &st); } else if (strcmp(op, "chmod") == 0) { const char *a = t.get_string(buf, p); int64_t b = t.get_int(); -- 2.39.5