[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH] Fix handling of swap files. (#496529)
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Subject: Re: [PATCH] Fix handling of swap files. (#496529)
- Date: Fri, 24 Apr 2009 15:50:36 -0400
> storage/__init__.py | 11 +++++++++++
> 1 files changed, 11 insertions(+), 0 deletions(-)
>
> diff --git a/storage/__init__.py b/storage/__init__.py
> index 519ac98..48a6690 100644
> --- a/storage/__init__.py
> +++ b/storage/__init__.py
> @@ -1481,6 +1481,17 @@ class FSSet(object):
>
> def turnOnSwap(self, anaconda, upgrading=None):
> for device in self.swapDevices:
> + if isinstance(device, FileDevice):
> + # set up FileDevices' parents now that they are accessible
> + targetDir = "%s/%s" % (anaconda.rootPath, device.path)
> + parent = get_containing_device(targetDir, self.devicetree)
> + if not parent:
> + log.error("cannot determine which device contains "
> + "directory %s" % device.path)
> + device.parents = []
> + else:
> + device.parents = [parent]
> +
> try:
> device.setup()
> device.format.setup()
Assuming it's been tested, looks good to me.
- Chris
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]