diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-08-23 21:25:52 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-08-23 21:25:52 +0000 |
commit | 4fcc0f58700d3d4229f477998fb572774fcd0867 (patch) | |
tree | 15f19ab15631ee2c812fa95f698438a2e5019f1c /isys/isys.py | |
parent | 00b96265652164d87166666f44155f03b3aecee2 (diff) | |
download | anaconda-4fcc0f58700d3d4229f477998fb572774fcd0867.tar.gz anaconda-4fcc0f58700d3d4229f477998fb572774fcd0867.tar.xz anaconda-4fcc0f58700d3d4229f477998fb572774fcd0867.zip |
some hacks to work around the lvm tools being stupid
* wipe md superblocks if we successfully create a pv (#130713)
* disable filtering for all of our creates. I know better than the
tools (#130706)
Diffstat (limited to 'isys/isys.py')
-rw-r--r-- | isys/isys.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/isys/isys.py b/isys/isys.py index 8190359a1..8c09ebf48 100644 --- a/isys/isys.py +++ b/isys/isys.py @@ -78,6 +78,19 @@ def raidstart(mdDevice, aMember): os.close(fd) os.remove("/tmp/member") +def wipeRaidSB(device): + try: + fd = os.open(device, O_WRONLY) + except OSError, e: + log("error wiping raid device superblock for %s: %s", device, e) + return + + try: + _isys.wiperaidsb(fd) + finally: + os.close(fd) + return + def raidsb(mdDevice): makeDevInode(mdDevice, "/tmp/md") return raidsbFromDevice("/tmp/md") |