# common.py - shared symbols and globals

import os

NOTOK = 1
OK = 0
BYTES_PER_KB = 1 << 10
BYTES_PER_MB = 1 << 20
FD_UNDEFINED = -1


class rq:
    READ = 0
    RANDOM_READ = 1
    CREATE = 2
    RANDOM_WRITE = 3
    APPEND = 4
    LINK = 5
    DELETE = 6
    RENAME = 7
    TRUNCATE = 8
    HARDLINK = 9


class file_access_dist:
    UNIFORM = 2
    GAUSSIAN = 3


# bit mask that allows selective enabling of debug messages
verbosity = 0
e = os.getenv("VERBOSITY")
if e != None:
    verbosity = int(e)
    print('verbosity = %u (0x%08x)' % (verbosity, verbosity))

# exception class so you know where exception came from

class FsDriftException(Exception):
    pass


@@ -46,16 +46,118 @@
 ort os%0A%0A
+# exception class so you know where exception came from%0A%0Aclass FsDriftException(Exception):%0A    pass%0A%0A
 NOTOK = 
@@ -406,67 +406,799 @@
 = 9%0A
-%0A%0Aclass file_access_dist:%0A    UNIFORM = 2%0A    GAUSSIAN = 3%0A
+    REMOUNT = 10%0A%0A%0A# file size can either be fixed or exponential random distribution%0A%0Aclass FileSizeDistr:%0A    fixed = 0%0A    exponential = 1%0A%0Adef FileSizeDistr2str(v):%0A    if v == FileSizeDistr.fixed:%0A        return %22fixed%22%0A    elif v == FileSizeDistr.exponential:%0A        return %22exponential%22%0A    raise FsDriftException(%0A        'file size distribution must be one of: fixed, exponential')%0A %0A# files are selected from population with random uniform %0A# or gaussian distribution.%0A%0Aclass FileAccessDistr:%0A    uniform = 2%0A    gaussian = 3%0A%0Adef FileAccessDistr2str(v):%0A    if v == FileAccessDistr.uniform:%0A        return %22uniform%22%0A    elif v == FileAccessDistr.gaussian:%0A        return %22gaussian%22%0A    raise FsDriftException(%0A        'file access distribution must be one of: uniform, gaussian')
 %0A%0A# 
@@ -1400,106 +1400,4 @@
 ))%0A%0A
-# exception class so you know where exception came from%0A%0Aclass FsDriftException(Exception):%0A    pass%0A%0A

remove dependence on smallfile