def GetFormatData(self, name: Str) -> Structure:
        """Get the device format.

        :param name: a name of the device
        :return: an instance of DeviceFormatData
        """
        return DeviceFormatData.to_structure(self.implementation.get_format_data(name))
Exemple #2
0
    def GetFormatData(self, name: Str) -> Structure:
        """Get the device format data.

        :param name: a name of the device
        :return: a structure with format data
        """
        return DeviceFormatData.to_structure(self.implementation.get_format_data(name))
Exemple #3
0
    def GetFormatTypeData(self, name: Str) -> Structure:
        """Get the format type data.

        For example: ext4

        :param name: a name of the format type
        :return: a structure with format data
        """
        return DeviceFormatData.to_structure(self.implementation.get_format_type_data(name))
Exemple #4
0
    def GetFormatData(self, name: Str) -> Structure:
        """Get the device format data.

        Return data about a format of the specified device.

        For example: sda1

        :param name: a name of the device
        :return: a structure with format data
        """
        return DeviceFormatData.to_structure(
            self.implementation.get_format_data(name))