[blivet] Update _name directly when tearing down loop devices (#1104558)

David Shea dshea at redhat.com
Wed Jun 4 20:01:15 UTC 2014


On 06/04/2014 03:50 PM, Anne Mulhern wrote:
> I have no idea why a LoopDevice's name has to be reset after teardown,
> this is not the case for any other kind of device.

My guess was because LoopDevice is unique in that it changes its name 
after __init__ to the actual loop device being allocated, and during 
teardown the loop%d name no longer corresponds to a device in /dev. I 
don't know if that actually matters, though.

>
> Perhaps _setName() ought to be reevaluated a bit, in light of this
> new development and new info.
>
> - mulhern
>
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches



More information about the anaconda-patches mailing list