[PATCH 3/6] Pass a path (not a name) to devicePathToName.

Anne Mulhern amulhern at redhat.com
Tue Nov 11 22:27:12 UTC 2014









----- Original Message -----
> From: "David Lehman" <dlehman at redhat.com>
> To: anaconda-patches at lists.fedorahosted.org
> Sent: Tuesday, November 11, 2014 4:32:50 PM
> Subject: [PATCH 3/6] Pass a path (not a name) to devicePathToName.
> 
> Also, we were unfairly asking parted to make guesses about
> getDeviceNodeName for arbitrary files outside of /dev.
> ---
>  blivet/devices/partition.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/blivet/devices/partition.py b/blivet/devices/partition.py
> index df762a4..ee15b33 100644
> --- a/blivet/devices/partition.py
> +++ b/blivet/devices/partition.py
> @@ -376,7 +376,7 @@ class PartitionDevice(StorageDevice):
>              self.name = self.req_name
>          else:
>              self.name = \
> -                devicePathToName(self.partedPartition.getDeviceNodeName())
> +                devicePathToName(self.partedPartition.path)

Should probably unbreak the line, while you're here, since it no longer needs
to be broken.

>  
>      def dependsOn(self, dep):
>          """ Return True if this device depends on dep. """
> --
> 1.9.3
> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
> 

- mulhern


More information about the anaconda-patches mailing list