Re: [PATCH 1/8] Let users set the size property of StorageDevices.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/storage/devices.py b/storage/devices.py
> index 678ed62..2f4b1e9 100644
> --- a/storage/devices.py
> +++ b/storage/devices.py
> @@ -530,11 +530,10 @@ class StorageDevice(Device):
>  
>      def _setSize(self, newsize):
>          """ Set the device's size to a new value. """
> -        # FIXME: this should involve some verification
>          self._size = newsize

We should verify that the new size is not larger than the maximum
allowed by the parent devices and whatever device type it is, at least
for the partition case.

Dave

>  
>      size = property(lambda x: x._getSize(),
> -                    #lambda x, y: x._setSize(y),
> +                    lambda x, y: x._setSize(y),
>                      doc="The device's size, accounting for pending changes")
>  
>      @property

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux