diff options
Diffstat (limited to 'common/utils.h')
-rw-r--r-- | common/utils.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/common/utils.h b/common/utils.h index c6c34f49..23ac03d9 100644 --- a/common/utils.h +++ b/common/utils.h @@ -128,11 +128,6 @@ bool FileExists(const char* path); // Returns true if |path| exists and is a symbolic link. bool IsSymlink(const char* path); -// Try attaching UBI |volume_num|. If there is any error executing required -// commands to attach the volume, this function returns false. This function -// only returns true if "/dev/ubi%d_0" becomes available in |timeout| seconds. -bool TryAttachingUbiVolume(int volume_num, int timeout); - // If |base_filename_template| is neither absolute (starts with "/") nor // explicitly relative to the current working directory (starts with "./" or // "../"), then it is prepended the system's temporary directory. On success, @@ -163,14 +158,6 @@ bool SplitPartitionName(const std::string& partition_name, // Returns empty string when invalid parameters are passed in std::string MakePartitionName(const std::string& disk_name, int partition_num); -// Similar to "MakePartitionName" but returns a name that is suitable for -// mounting. On NAND system we can write to "/dev/ubiX_0", which is what -// MakePartitionName returns, but we cannot mount that device. To mount, we -// have to use "/dev/ubiblockX_0" for rootfs. Stateful and OEM partitions are -// mountable with "/dev/ubiX_0". The input is a partition device such as -// /dev/sda3. Return empty string on error. -std::string MakePartitionNameForMount(const std::string& part_name); - // Set the read-only attribute on the block device |device| to the value passed // in |read_only|. Return whether the operation succeeded. bool SetBlockDeviceReadOnly(const std::string& device, bool read_only); @@ -332,6 +319,9 @@ void ParseRollbackKeyVersion(const std::string& raw_version, // Return a string representation of |utime| for log file names. std::string GetTimeAsString(time_t utime); +// Returns the string format of the hashed |str_to_convert| that can be used +// with |Excluder| as the exclusion name. +std::string GetExclusionName(const std::string& str_to_convert); } // namespace utils |