Skip to content

Commit a5c10a4

Browse files
committed
Changes to pass all posix PJD tests
1. Test suite uses /dev/urandom to generate random names for the files that it creates. 2. When used with SplitFS, /dev/urandom (handled by SplitFS) always returns 0 causing the same random number to be generated for all files. This affects the tests that do comparison between two different files --- they end up being compared with themselves due to same name generated. Delegate the non-regular file operations to posix - this was already done but only for tar workloads. This change does the same for all workloads.
1 parent 878b6c1 commit a5c10a4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

splitfs/fileops_hub.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,6 @@ RETT_OPEN _hub_OPEN(INTF_OPEN)
639639

640640
#endif
641641

642-
#if WORKLOAD_TAR | WORKLOAD_GIT | WORKLOAD_RSYNC
643642

644643
if(path[0] == '/' && path[1] == 'v' && path[2] == 'a' && path[3] == 'r') {
645644
op_to_use = _hub_fileops;
@@ -692,7 +691,6 @@ RETT_OPEN _hub_OPEN(INTF_OPEN)
692691

693692
}
694693

695-
#endif // WORKLOAD_TAR
696694

697695
// op_to_use = _hub_managed_fileops;
698696
assert(op_to_use != NULL);

0 commit comments

Comments
 (0)