[Ocfs2-test-devel] [PATCH 4/7] o2tf: Fix untar
Sunil Mushran
sunil.mushran at oracle.com
Wed Aug 19 18:21:06 PDT 2009
The untar command now dumps the log to the given logfile
and not another file in that directory.
Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>
---
programs/python_common/o2tf.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/programs/python_common/o2tf.py b/programs/python_common/o2tf.py
index 2cef569..178e6af 100644
--- a/programs/python_common/o2tf.py
+++ b/programs/python_common/o2tf.py
@@ -171,7 +171,6 @@ def untar(DEBUGON, destdir, tarfile, logfile):
dirlog = os.path.dirname(logfile)
nodename = str(socket.gethostname())
pid = os.getpid()
- tarlog = dirlog+'/tar_'+nodename+'_'+str(pid)+'.log'
options = 'xvf'
compress = 'z'
st = os.stat(destdir)
@@ -186,7 +185,7 @@ def untar(DEBUGON, destdir, tarfile, logfile):
logfile, 0, '')
t1 = time.time()
os.system('cd %s; tar %s %s 2>&1 1>> %s; du -sh * 1>> %s' % \
- (destdir, options + compress, tarfile, tarlog,
+ (destdir, options + compress, tarfile, logfile,
logfile))
t2 = time.time()
printlog('o2tf.untar: Extraction elapsed time = %s' % \
--
1.6.0.4
More information about the Ocfs2-test-devel
mailing list