1 AUTHOR = "Akshay Lal <akshaylal (a] google.com>" 2 NAME = "wb_kupdate" 3 TEST_CATEGORY = "Functional" 4 TEST_CLASS = "General" 5 TEST_TYPE = "client" 6 TIME = 'MEDIUM' 7 DOC=''' 8 This tests checks the wb_kupdate code path by writting data to a sparse file 9 and waiting at max of `max_flush_time` for the file to be flushed from the 10 cache to disk. 11 ''' 12 13 import os 14 # Required Parameters: 15 # -------------------- 16 mount_point='/export/wb_kupdate' # Absolute path. 17 file_count=5 # The number of files to write. 18 write_size=1 # In MB. 19 20 # Optional Parameters: 21 # -------------------- 22 max_flush_time=1 # In minutes. 23 file_system='ext4' # mkfs.<file_system> must already exist on 24 # the machine. To avoid device initialization 25 # set to None. 26 remove_previous=False # Boolean. 27 sparse_file=os.path.join( # Absolute path to the sparse file. 28 job.tmpdir, 29 'sparse_file') 30 old_cleanup=False # Remove a previously created mount_point if it 31 # exits and not mounted. 32 33 # Beginning execution of the xfstests: 34 # ------------------------------------ 35 job.run_test('wb_kupdate', 36 mount_point=mount_point, 37 file_count=int(file_count), 38 write_size=int(write_size), 39 max_flush_time=int(max_flush_time), 40 file_system=file_system, 41 remove_previous=remove_previous, 42 sparse_file=sparse_file, 43 old_cleanup=old_cleanup, 44 tag='wb_kupdate_execution') 45