From: Rishabh Dave Date: Mon, 26 Aug 2019 05:28:32 +0000 (+0530) Subject: qa/cephfs: add convenience method lstat() X-Git-Tag: v15.1.0~1555^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a8a159cc407c6795e2c75e84295154df711f52ca;p=ceph.git qa/cephfs: add convenience method lstat() It's more convenient lstat(path) than stat(path, follow_symlink=False). Signed-off-by: Rishabh Dave --- diff --git a/qa/tasks/cephfs/mount.py b/qa/tasks/cephfs/mount.py index 43b53d5fd6a4..9ac3a3b7b17b 100644 --- a/qa/tasks/cephfs/mount.py +++ b/qa/tasks/cephfs/mount.py @@ -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: