From 9db35dd9ded34c82e8e327d9bbc5c98bb4f9756f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Iv=C3=A1n=20L=C3=B3pez=20Gonz=C3=A1lez?= Date: Tue, 22 Oct 2024 13:07:23 +0100 Subject: [PATCH] storage: fix types --- .../lib/y2storage/proposal/agama_device_planner.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/service/lib/y2storage/proposal/agama_device_planner.rb b/service/lib/y2storage/proposal/agama_device_planner.rb index b245b29b8..1c48d3397 100644 --- a/service/lib/y2storage/proposal/agama_device_planner.rb +++ b/service/lib/y2storage/proposal/agama_device_planner.rb @@ -87,14 +87,14 @@ def grow?(device, config) config.size.max.unlimited? || config.size.max > device.size end - # @param planned [Planned::Disk, Planned::Partition] + # @param planned [Planned::Disk, Planned::Partition, Planned::LvmLv] # @param config [#encryption, #filesystem] def configure_block_device(planned, config) configure_encryption(planned, config.encryption) if config.encryption configure_filesystem(planned, config.filesystem) if config.filesystem end - # @param planned [Planned::Disk, Planned::Partition] + # @param planned [Planned::Disk, Planned::Partition, Planned::LvmLv] # @param config [Agama::Storage::Configs::Filesystem] def configure_filesystem(planned, config) planned.mount_point = config.path @@ -105,14 +105,14 @@ def configure_filesystem(planned, config) configure_filesystem_type(planned, config.type) if config.type end - # @param planned [Planned::Disk, Planned::Partition] + # @param planned [Planned::Disk, Planned::Partition, Planned::LvmLv] # @param config [Agama::Storage::Configs::FilesystemType] def configure_filesystem_type(planned, config) planned.filesystem_type = config.fs_type configure_btrfs(planned, config.btrfs) if config.btrfs end - # @param planned [Planned::Disk, Planned::Partition] + # @param planned [Planned::Disk, Planned::Partition, Planned::LvmLv] # @param config [Agama::Storage::Configs::Btrfs] def configure_btrfs(planned, config) # TODO: we need to discuss what to do with transactional systems and the read_only @@ -123,7 +123,7 @@ def configure_btrfs(planned, config) planned.subvolumes = config.subvolumes end - # @param planned [Planned::Disk, Planned::Partition] + # @param planned [Planned::Disk, Planned::Partition, Planned::LvmLv] # @param config [Agama::Storage::Configs::Encryption] def configure_encryption(planned, config) planned.encryption_password = config.password @@ -134,7 +134,7 @@ def configure_encryption(planned, config) planned.encryption_key_size = config.key_size end - # @param planned [Planned::Partition] + # @param planned [Planned::Partition, Planned::LvmLv] # @param config [Agama::Storage::Configs::Size] def configure_size(planned, config) planned.min_size = config.min