2 This module defines the BaseFsdevManager Class which provides an
3 implementation of the 'fsdev' helper API; site specific extensions
4 to any of these methods should inherit this class.
7 from autotest_lib
.client
.bin
import utils
9 class BaseFsdevManager(object):
15 def include_partition(self
, part_name
):
16 # Client to fill in logic that will pick the right partitions
20 def map_drive_name(self
, part_name
):
24 def check_mount_point(self
, part_name
, mount_point
):
26 @param part_name: A partition name such as 'sda3' or similar.
27 @param mount_point: A mount point such as '/usr/local' or an empty
28 string if no mount point is known.
30 @returns The expected mount point for part_name or a false value
31 (None or '') if the client should not mount this partition.
36 def use_partition(self
, part_name
):
38 @param part_name: A partition name such as 'sda3' or similar.
40 @returns bool, should we use this partition for testing?
45 SiteFsdevManager
= utils
.import_site_class(
46 __file__
, "autotest_lib.client.bin.site_fsdev", "SiteFsdevManager",
49 # Wrap whatever SiteFsdevManager class we've found above in a class
50 class FsdevManager(SiteFsdevManager
):