summaryrefslogtreecommitdiffstats
path: root/isys/isys.py
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2005-03-09 18:41:11 +0000
committerPeter Jones <pjones@redhat.com>2005-03-09 18:41:11 +0000
commit37ccf119a00fdd350a9f03bc35307774740b10b3 (patch)
tree56d1c8c3f6debd675c3effb14ecbcd9e6571d67f /isys/isys.py
parent9792c2745116c37e6b6cc87fe642adc7090c76c1 (diff)
downloadanaconda-37ccf119a00fdd350a9f03bc35307774740b10b3.tar.gz
anaconda-37ccf119a00fdd350a9f03bc35307774740b10b3.tar.xz
anaconda-37ccf119a00fdd350a9f03bc35307774740b10b3.zip
take useless syscalls out of ddfile()
Diffstat (limited to 'isys/isys.py')
-rw-r--r--isys/isys.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/isys/isys.py b/isys/isys.py
index 948571ecc..f7ad38a77 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -144,9 +144,7 @@ def unlosetup(device):
os.close(loop)
def ddfile(file, megs, pw = None):
- fd = os.open("/dev/zero", os.O_RDONLY);
- buf = os.read(fd, 1024 * 256)
- os.close(fd)
+ buf = '\x00' * 1024 * 256
fd = os.open(file, os.O_RDWR | os.O_CREAT)