diff options
Diffstat (limited to 'fs_mgr/libdm/include/libdm/dm.h')
-rw-r--r-- | fs_mgr/libdm/include/libdm/dm.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/fs_mgr/libdm/include/libdm/dm.h b/fs_mgr/libdm/include/libdm/dm.h index bdbbf9112..abe9c4cda 100644 --- a/fs_mgr/libdm/include/libdm/dm.h +++ b/fs_mgr/libdm/include/libdm/dm.h @@ -49,10 +49,6 @@ enum class DmDeviceState { INVALID, SUSPENDED, ACTIVE }; static constexpr uint64_t kSectorSize = 512; -// Returns `path` without /dev/block prefix if and only if `path` starts with -// that prefix. -std::optional<std::string> ExtractBlockDeviceName(const std::string& path); - class DeviceMapper final { public: class DmBlockDevice final { @@ -99,12 +95,6 @@ class DeviceMapper final { bool DeleteDevice(const std::string& name, const std::chrono::milliseconds& timeout_ms); bool DeleteDeviceIfExists(const std::string& name, const std::chrono::milliseconds& timeout_ms); - // Enqueues a deletion of device mapper device with the given name once last reference is - // closed. - // Returns 'true' on success, false otherwise. - bool DeleteDeviceDeferred(const std::string& name); - bool DeleteDeviceIfExistsDeferred(const std::string& name); - // Fetches and returns the complete state of the underlying device mapper // device with given name. std::optional<Info> GetDetailedInfo(const std::string& name) const; @@ -182,13 +172,6 @@ class DeviceMapper final { // could race with ueventd. bool GetDmDevicePathByName(const std::string& name, std::string* path); - // Returns the device mapper UUID for a given name. If the device does not - // exist, false is returned, and the path parameter is not set. - // - // WaitForFile() should not be used in conjunction with this call, since it - // could race with ueventd. - bool GetDmDeviceUuidByName(const std::string& name, std::string* path); - // Returns a device's unique path as generated by ueventd. This will return // true as long as the device has been created, even if ueventd has not // processed it yet. |