From a8a159cc407c6795e2c75e84295154df711f52ca Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Mon, 26 Aug 2019 10:58:32 +0530 Subject: [PATCH] qa/cephfs: add convenience method lstat() It's more convenient lstat(path) than stat(path, follow_symlink=False). Signed-off-by: Rishabh Dave --- qa/tasks/cephfs/mount.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qa/tasks/cephfs/mount.py b/qa/tasks/cephfs/mount.py index 43b53d5fd6a..9ac3a3b7b17 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: -- 2.39.5