All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian Chrisman <brchrisman@gmail.com>
To: ceph-devel@vger.kernel.org
Cc: Brian Chrisman <brchrisman@gmail.com>
Subject: [PATCH 2/2] updated test to cover "." directory stat
Date: Wed, 11 May 2011 22:26:47 -0700	[thread overview]
Message-ID: <1305178007-2927-3-git-send-email-brchrisman@gmail.com> (raw)
In-Reply-To: <1305178007-2927-1-git-send-email-brchrisman@gmail.com>


Signed-off-by: Brian Chrisman <brchrisman@gmail.com>
---
 src/client/testceph.cc |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/client/testceph.cc b/src/client/testceph.cc
index da4b7a2..520fa75 100644
--- a/src/client/testceph.cc
+++ b/src/client/testceph.cc
@@ -174,6 +174,23 @@ int main(int argc, const char **argv)
   if (strncmp((char *) aybabtu, aybabtu_reference,7)) {
     cerr << "ceph_getxattr error: no match (" << aybabtu << ") should be (" << aybabtu_reference << cpp_strerror(ret) << std::endl;
   }
+  cout << "Attempting lstat on '/.'" << std::endl;
+  ret = ceph_lstat(cmount, "/.", &stbuf);
+  if (ret) {
+    cerr << "ceph_lstat error: " << cpp_strerror(ret) << std::endl;
+    return 1;
+  } else {
+    cout << "ceph_lstat: success" << std::endl;
+  }
+  cout << "Attempting lstat on '.'" << std::endl;
+  ret = ceph_lstat(cmount, ".", &stbuf);
+  if (ret) {
+    cerr << "ceph_lstat error: " << cpp_strerror(ret) << std::endl;
+    return 1;
+  } else {
+    cout << "ceph_lstat: success" << std::endl;
+  }
+
 
   ceph_shutdown(cmount);
 
-- 
1.7.1


  parent reply	other threads:[~2011-05-12  5:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-12  5:26 [PATCH 0/2] Update Client to handle self directories Brian Chrisman
2011-05-12  5:26 ` [PATCH 1/2] Add analogous special case for "." directory alongside ".." in _lookup Brian Chrisman
2011-05-12  5:26 ` Brian Chrisman [this message]
2011-05-12 15:32 ` [PATCH 0/2] Update Client to handle self directories Sage Weil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1305178007-2927-3-git-send-email-brchrisman@gmail.com \
    --to=brchrisman@gmail.com \
    --cc=ceph-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.