ssize_t written;
struct timeval start;
struct timeval end;
- double used_delay = torture_setting_int(tctx, "writetimeupdatedelay", 2000000);
- int normal_delay = 2000000;
+ double used_delay = torture_setting_int(tctx, "writetimeupdatedelay", 1000000);
+ int normal_delay = 1000000;
double sec = ((double)used_delay) / ((double)normal_delay);
int msec = 1000 * sec;
goto done;
}
- GET_INFO_BOTH(finfo1,pinfo1);
+ //GET_INFO_BOTH(finfo1,pinfo1);
+ GET_INFO_FILE(finfo1);
COMPARE_WRITE_TIME_EQUAL(finfo1,finfo0);
/*
smb_msleep(0.5 * msec);
}
- GET_INFO_BOTH(finfo1,pinfo1);
- COMPARE_WRITE_TIME_GREATER(pinfo1, pinfo0);
+ //GET_INFO_BOTH(finfo1,pinfo1);
+ GET_INFO_FILE(finfo1);
+ COMPARE_WRITE_TIME_GREATER(finfo1, finfo0);
/* sure any further write doesn't update the write time */
start = timeval_current();
smb_msleep(1 * msec);
}
- GET_INFO_BOTH(finfo2,pinfo2);
+ //GET_INFO_BOTH(finfo2,pinfo2);
+ GET_INFO_FILE(finfo2);
COMPARE_WRITE_TIME_EQUAL(finfo2, finfo1);
if (finfo2.basic_info.out.write_time == finfo1.basic_info.out.write_time) {
torture_comment(tctx, "Server did not updatewrite_time (correct)\n");
/* sleep */
smb_msleep(5 * msec);
- GET_INFO_BOTH(finfo3,pinfo3);
+ //GET_INFO_BOTH(finfo3,pinfo3);
+ GET_INFO_FILE(finfo3);
COMPARE_WRITE_TIME_EQUAL(finfo3, finfo2);
/*