Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1032535 Details for
Bug 1226305
Can not install "Fedora 22" into existing LVM-on-RAID partitions
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
A patch that prevents destroying raid members in blivet
blivet-1.0.9-os-raid-member.patch (text/plain), 2.99 KB, created by
Oleg Samarin
on 2015-05-30 17:26:12 UTC
(
hide
)
Description:
A patch that prevents destroying raid members in blivet
Filename:
MIME Type:
Creator:
Oleg Samarin
Created:
2015-05-30 17:26:12 UTC
Size:
2.99 KB
patch
obsolete
>diff -Naur blivet-1.0.9.old/blivet/devices/disk.py blivet-1.0.9.new/blivet/devices/disk.py >--- blivet-1.0.9.old/blivet/devices/disk.py 2015-05-07 22:03:15.000000000 +0300 >+++ blivet-1.0.9.new/blivet/devices/disk.py 2015-05-30 17:29:03.414743988 +0300 >@@ -124,6 +124,22 @@ > > StorageDevice._preDestroy(self) > >+class RaidMemberDevice(DiskDevice): >+ """ This is a workaround against exposing own partitions of raid members >+ >+ Using parted.Device with such didks may switch lvm >+ to use underlying disk partitions instead of the raid partitions >+ """ >+ _partitionable = False >+ >+ @StorageDevice.partedDevice.getter >+ def partedDevice(self): >+ return None; >+ >+ @DiskDevice.mediaPresent.getter >+ def mediaPresent(self): >+ return True; >+ > class DiskFile(DiskDevice): > """ This is a file that we will pretend is a disk. > >diff -Naur blivet-1.0.9.old/blivet/devices/__init__.py blivet-1.0.9.new/blivet/devices/__init__.py >--- blivet-1.0.9.old/blivet/devices/__init__.py 2015-05-07 22:03:15.000000000 +0300 >+++ blivet-1.0.9.new/blivet/devices/__init__.py 2015-05-30 17:28:21.094170431 +0300 >@@ -22,7 +22,7 @@ > from .lib import get_device_majors, devicePathToName, deviceNameToDiskByPath, ParentList > from .device import Device > from .storage import StorageDevice >-from .disk import DiskDevice, DiskFile, DMRaidArrayDevice, MultipathDevice, iScsiDiskDevice, FcoeDiskDevice, DASDDevice, ZFCPDiskDevice >+from .disk import DiskDevice, RaidMemberDevice, DiskFile, DMRaidArrayDevice, MultipathDevice, iScsiDiskDevice, FcoeDiskDevice, DASDDevice, ZFCPDiskDevice > from .partition import PartitionDevice > from .dm import DMDevice, DMLinearDevice, DMCryptDevice > from .luks import LUKSDevice >diff -Naur blivet-1.0.9.old/blivet/devicetree.py blivet-1.0.9.new/blivet/devicetree.py >--- blivet-1.0.9.old/blivet/devicetree.py 2015-05-07 22:03:15.000000000 +0300 >+++ blivet-1.0.9.new/blivet/devicetree.py 2015-05-30 16:30:57.313648875 +0300 >@@ -31,6 +31,7 @@ > from .errors import DeviceError, DeviceTreeError, DiskLabelCommitError, DMError, FSError, InvalidDiskLabelError, LUKSError, StorageError, UnusableConfigurationError > from .devices import BTRFSDevice, BTRFSSubVolumeDevice, BTRFSVolumeDevice, BTRFSSnapShotDevice > from .devices import DASDDevice, DMDevice, DMLinearDevice, DMRaidArrayDevice, DiskDevice >+from .devices import RaidMemberDevice > from .devices import FcoeDiskDevice, FileDevice, LoopDevice, LUKSDevice > from .devices import LVMLogicalVolumeDevice, LVMVolumeGroupDevice > from .devices import LVMThinPoolDevice, LVMThinLogicalVolumeDevice >@@ -1212,7 +1213,7 @@ > device = self.addUdevOpticalDevice(info) > elif udev.device_is_biosraid_member(info) and udev.device_is_disk(info): > log.info("%s is part of a biosraid", name) >- device = DiskDevice(name, >+ device = RaidMemberDevice(name, > major=udev.device_get_major(info), > minor=udev.device_get_minor(info), > sysfsPath=sysfs_path, exists=True)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1226305
:
1032037
|
1032038
|
1032039
| 1032535