Re: [PATCH 09/11] Fix: DiskLabel.destroy: Instance of 'Disk' has no 'clobber' member

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

 



On Tue, 2009-09-01 at 15:04 +0200, Hans de Goede wrote:
> ---
>  storage/formats/disklabel.py |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)

Oops -- it should be self.partedDevice.clobber().

> 
> diff --git a/storage/formats/disklabel.py b/storage/formats/disklabel.py
> index e4122fb..bfbb7f5 100644
> --- a/storage/formats/disklabel.py
> +++ b/storage/formats/disklabel.py
> @@ -176,6 +176,7 @@ class DiskLabel(DeviceFormat):
>  
>      def destroy(self, *args, **kwargs):
>          """ Wipe the disklabel from the device. """
> +        # XXX NOTUSED
>          log_method_call(self, device=self.device,
>                          type=self.type, status=self.status)
>          if not self.exists:
> @@ -184,7 +185,8 @@ class DiskLabel(DeviceFormat):
>          if not os.access(self.device, os.W_OK):
>              raise DeviceFormatError("device path does not exist")
>  
> -        self.partedDisk.clobber()
> +        # No way to really destroy the disklabel, but atleast we can empty it
> +        self._partedDisk = self.freshPartedDisk()
>          self.commit()
>          self.exists = False
>  

_______________________________________________
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