diff options
author | David Lehman <dlehman@redhat.com> | 2013-01-14 17:48:37 -0600 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2013-01-28 13:15:31 -0600 |
commit | 9040049d8d232eae3f0f51ffe442dbe49d273bce (patch) | |
tree | 5966597dd00948b4eae345a9dc8b509ebb0dab00 /pyanaconda/storage/formats/multipath.py | |
parent | e6c6261e1d7e912103ef1618e4a84c5f70abb00a (diff) | |
download | anaconda-9040049d8d232eae3f0f51ffe442dbe49d273bce.tar.gz anaconda-9040049d8d232eae3f0f51ffe442dbe49d273bce.tar.xz anaconda-9040049d8d232eae3f0f51ffe442dbe49d273bce.zip |
Remove the storage module and replace it with blivet.
Diffstat (limited to 'pyanaconda/storage/formats/multipath.py')
-rw-r--r-- | pyanaconda/storage/formats/multipath.py | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/pyanaconda/storage/formats/multipath.py b/pyanaconda/storage/formats/multipath.py deleted file mode 100644 index 01d69ee3e..000000000 --- a/pyanaconda/storage/formats/multipath.py +++ /dev/null @@ -1,94 +0,0 @@ -# multipath.py -# multipath device formats -# -# Copyright (C) 2009 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. -# -# Any Red Hat trademarks that are incorporated in the source code or -# documentation are not subject to the GNU General Public License and -# may only be used or replicated with the express permission of -# Red Hat, Inc. -# -# Red Hat Author(s): Peter Jones <pjones@redhat.com> -# - -from ..storage_log import log_method_call -from ..errors import * -from . import DeviceFormat, register_device_format - -import gettext -_ = lambda x: gettext.ldgettext("anaconda", x) - -import logging -log = logging.getLogger("storage") - -class MultipathMember(DeviceFormat): - """ A multipath member disk. """ - _type = "multipath_member" - _name = "multipath member device" - _udev_types = ["multipath_member"] - _formattable = False # can be formatted - _supported = True # is supported - _linuxNative = False # for clearpart - _packages = ["device-mapper-multipath"] # required packages - _resizable = False # can be resized - _maxSize = 0 # maximum size in MB - _minSize = 0 # minimum size in MB - _hidden = True # hide devices with this formatting? - - def __init__(self, *args, **kwargs): - """ Create a DeviceFormat instance. - - Keyword Arguments: - - device -- path to the underlying device - uuid -- this format's UUID - exists -- indicates whether this is an existing format - - On initialization this format is like DeviceFormat - - """ - log_method_call(self, *args, **kwargs) - DeviceFormat.__init__(self, *args, **kwargs) - - # Initialize the attribute that will hold the block object. - self._member = None - - def __repr__(self): - s = DeviceFormat.__repr__(self) - s += (" member = %(member)r" % {"member": self.member}) - return s - - def _getMember(self): - return self._member - - def _setMember(self, member): - self._member = member - - member = property(lambda s: s._getMember(), - lambda s,m: s._setMember(m)) - - def create(self, *args, **kwargs): - log_method_call(self, device=self.device, - type=self.type, status=self.status) - raise MultipathMemberError("creation of multipath members is non-sense") - - def destroy(self, *args, **kwargs): - log_method_call(self, device=self.device, - type=self.type, status=self.status) - raise MultipathMemberError("destruction of multipath members is non-sense") - -register_device_format(MultipathMember) - |