X7ROOT File Manager
Current Path:
/usr/lib/python2.7/site-packages/blivet/formats
usr
/
lib
/
python2.7
/
site-packages
/
blivet
/
formats
/
📁
..
📄
__init__.py
(17.56 KB)
📄
__init__.pyc
(19.68 KB)
📄
__init__.pyo
(19.68 KB)
📄
biosboot.py
(2.14 KB)
📄
biosboot.pyc
(1.83 KB)
📄
biosboot.pyo
(1.83 KB)
📄
disklabel.py
(18.98 KB)
📄
disklabel.pyc
(17.31 KB)
📄
disklabel.pyo
(17.31 KB)
📄
dmraid.py
(4.09 KB)
📄
dmraid.pyc
(3.54 KB)
📄
dmraid.pyo
(3.54 KB)
📄
fs.py
(59.14 KB)
📄
fs.pyc
(56.33 KB)
📄
fs.pyo
(56.33 KB)
📄
fslabel.py
(5.95 KB)
📄
fslabel.pyc
(10.01 KB)
📄
fslabel.pyo
(10.01 KB)
📄
fslabeling.py
(4.31 KB)
📄
fslabeling.pyc
(8.81 KB)
📄
fslabeling.pyo
(8.81 KB)
📄
luks.py
(13.33 KB)
📄
luks.pyc
(12.52 KB)
📄
luks.pyo
(12.52 KB)
📄
lvmpv.py
(6.43 KB)
📄
lvmpv.pyc
(5.61 KB)
📄
lvmpv.pyo
(5.61 KB)
📄
mdraid.py
(4.23 KB)
📄
mdraid.pyc
(3.96 KB)
📄
mdraid.pyo
(3.96 KB)
📄
multipath.py
(3 KB)
📄
multipath.pyc
(3.09 KB)
📄
multipath.pyo
(3.09 KB)
📄
prepboot.py
(3.66 KB)
📄
prepboot.pyc
(3.41 KB)
📄
prepboot.pyo
(3.41 KB)
📄
swap.py
(6.76 KB)
📄
swap.pyc
(7.23 KB)
📄
swap.pyo
(7.23 KB)
Editing: multipath.py
# 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 MultipathMemberError from ..i18n import N_ from . import DeviceFormat, register_device_format import logging log = logging.getLogger("blivet") class MultipathMember(DeviceFormat): """ A multipath member disk. """ _type = "multipath_member" _name = N_("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 _hidden = True # hide devices with this formatting? def __init__(self, **kwargs): """ :keyword device: path to the underlying device (required) :keyword uuid: this format's UUID :keyword exists: whether this is an existing format :type exists: bool """ log_method_call(self, **kwargs) DeviceFormat.__init__(self, **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, **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, **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)
Upload File
Create Folder