]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/cephfs: add Filesystem.data_scan wrapper
authorJohn Spray <jspray@redhat.com>
Wed, 13 May 2015 12:39:22 +0000 (13:39 +0100)
committerJohn Spray <jspray@redhat.com>
Wed, 17 Jun 2015 13:06:22 +0000 (14:06 +0100)
Signed-off-by: John Spray <john.spray@redhat.com>
tasks/cephfs/filesystem.py

index bf3a739e8ad63f35ec34d53d0372985c7aa035f0..667c07120b60e77170f4bced2eb6c42913555d17 100644 (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)