> It looks like we're missing implementations of 
> client.bin.fsdev_mgr.BaseFsdevManager use_partition() and check_mount_point() 
> methods that we only had internal site implementations of.  I'll mail a patch 
> adding them shortly.
> -gps

patch attached.
--- client/bin/fsdev_mgr.py	2009-07-10 18:03:08.000000000 -0700
+++ client/bin/fsdev_mgr.py	2011-06-24 11:10:56.467448000 -0700
@@ -12,15 +12,36 @@
         pass
 
 
-    def include_partition(self, partname):
+    def include_partition(self, part_name):
         # Client to fill in logic that will pick the right partitions
         return False
 
 
-    def map_drive_name(self, partname):
+    def map_drive_name(self, part_name):
         return partname
 
 
+    def check_mount_point(self, part_name, mount_point):
+        """
+        @param part_name: A partition name such as 'sda3' or similar.
+        @param mount_point: A mount point such as '/usr/local' or an empty
+                string if no mount point is known.
+
+        @returns The expected mount point for part_name or a false value
+                (None or '') if the client should not mount this partition.
+        """
+        return mount_point
+
+
+    def use_partition(self, part_name):
+        """
+        @param part_name: A partition name such as 'sda3' or similar.
+
+        @returns bool, should we use this partition for testing?
+        """
+        return True
+
+
 SiteFsdevManager = utils.import_site_class(
     __file__, "autotest_lib.client.bin.site_fsdev", "SiteFsdevManager",
     BaseFsdevManager)
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to