tasks/cephfs: add Filesystem.data_scan wrapper

Signed-off-by: John Spray <john.spray@redhat.com>
This commit is contained in:
John Spray 2015-05-13 13:39:22 +01:00
parent b5b668edb2
commit 0f34d0785c

View File

@ -683,3 +683,9 @@ class Filesystem(object):
Invoke cephfs-table-tool with the passed arguments, and return its stdout
"""
return self._run_tool("cephfs-table-tool", args, None, quiet)
def data_scan(self, args, quiet=False):
"""
Invoke cephfs-data-scan with the passed arguments, and return its stdout
"""
return self._run_tool("cephfs-data-scan", args, None, quiet)