diff options
Diffstat (limited to 'glustolibs-io/shared_files/scripts/fd_writes.py')
-rwxr-xr-x | glustolibs-io/shared_files/scripts/fd_writes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glustolibs-io/shared_files/scripts/fd_writes.py b/glustolibs-io/shared_files/scripts/fd_writes.py index 0eaf51375..ba46a5f7d 100755 --- a/glustolibs-io/shared_files/scripts/fd_writes.py +++ b/glustolibs-io/shared_files/scripts/fd_writes.py @@ -17,7 +17,6 @@ import argparse import random -import subprocess import os import time import string @@ -72,7 +71,7 @@ def create_dir(dir_path): if not path_exists(dir_abs_path): try: os.makedirs(dir_abs_path) - except (OSError, IOError) as e: + except (OSError, IOError): print "Unable to create dir: %s" % dir_abs_path return 1 return 0 @@ -190,6 +189,7 @@ def fd_writes(args): each_process.join() return 0 + if __name__ == "__main__": parser = argparse.ArgumentParser( description="Program to perfrom fd based writes on files for time t", |