Re: [PATCH] Make sure DASD info is available (#729910)

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

 



On Wed, Apr 25, 2012 at 07:11:23AM -0700, Jesse Keating wrote:
> This is a bit heavy handed, but is safer than a kernel change at this
> point.
> 
> Resolves: rhbz#729910
> ---
>  storage/dasd.py |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)
> 
> diff --git a/storage/dasd.py b/storage/dasd.py
> index 2b95b19..97bc3bd 100644
> --- a/storage/dasd.py
> +++ b/storage/dasd.py
> @@ -79,6 +79,15 @@ class DASD:
>              if not os.path.isfile(statusfile):
>                  continue
>  
> +            # This works around what I believe to be a kernel bug and
> +            # forces udev to notice all the information about these
> +            # devices (#729910)
> +            path = "/sys/block/%s" % device
> +            try:
> +                iutil.notify_kernel(path)
> +            except Exception, e:
> +                log.warning("failed to notify kernel of change: %s" % e)
> +
>              f = open(statusfile, "r")
>              status = f.read().strip()
>              f.close()
> -- 
> 1.7.7.6

Ack

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)

Attachment: pgpLlCRCL5KfP.pgp
Description: PGP signature

_______________________________________________
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