Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Development (http://www.linux-archive.org/gentoo-development/)
-   -   Notify the kernel/udev after creating swap space. (#818352) (http://www.linux-archive.org/gentoo-development/663170-notify-kernel-udev-after-creating-swap-space-818352-a.html)

Chris Lumens 05-04-2012 06:32 PM

Notify the kernel/udev after creating swap space. (#818352)
 
> diff --git a/pyanaconda/storage/formats/swap.py b/pyanaconda/storage/formats/swap.py
> index 860a551..aa169dc 100644
> --- a/pyanaconda/storage/formats/swap.py
> +++ b/pyanaconda/storage/formats/swap.py
> @@ -170,6 +170,7 @@ class SwapSpace(DeviceFormat):
> raise
> else:
> self.exists = True
> + self.notifyKernel()
> finally:
> if w:
> w.pop()

Looks fine.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 03:16 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.