Re: [PATCH 1/6] Enforce libata's 15 partition maximum for scsi disks.

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

 



It's not really a libata limitation -- it's the scsi layer.  And we
should probably handle the limitations which are present for other disk
types too (partedUtils.py had a list of most of them)

... that said

On Tuesday, April 14 2009, David Lehman said:
> diff --git a/storage/devices.py b/storage/devices.py
> index 080cd7f..d01fcc7 100644
> --- a/storage/devices.py
> +++ b/storage/devices.py
> @@ -798,6 +798,10 @@ class DiskDevice(StorageDevice):
>          if not self.mediaPresent:
>              raise DeviceError("cannot commit to disk %s which has no media" % self.name)
>  
> +        if self.name.startswith("sd") and \
> +           self.partedDisk.lastPartitionNumber > 15:
> +            raise DeviceError("disk %s has too many partitions" % self.name)
> +

Traceback'ing here is probably not ideal.  People certainly have setups
with more partitions than we support.  We just have to ignore the later
ones

Jeremy

_______________________________________________
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