]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: add convenience method lstat()
authorRishabh Dave <ridave@redhat.com>
Mon, 26 Aug 2019 05:28:32 +0000 (10:58 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 13 Sep 2019 05:15:27 +0000 (10:45 +0530)
It's more convenient lstat(path) than stat(path, follow_symlink=False).

Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/mount.py

index 43b53d5fd6a4b9bb60a0b5f091b0f264f1522e3c..9ac3a3b7b17b9fa2eedd065cd62ecb5c4862e7c3 100644 (file)
@@ -555,6 +555,9 @@ class CephFSMount(object):
     def get_osd_epoch(self):
         raise NotImplementedError()
 
+    def lstat(self, fs_path, follow_symlinks=False, wait=True):
+        return self.stat(fs_path, follow_symlinks=False, wait=True)
+
     def stat(self, fs_path, follow_symlinks=True, wait=True):
         """
         stat a file, and return the result as a dictionary like this: