[PATCH 2/2] updated test to cover "." directory stat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Brian Chrisman <brchrisman@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux