mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
s3: VFS: delay_inject: Remove SMB_VFS_NTIMES()
Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
248151bac6
commit
059b565aba
@ -40,15 +40,6 @@ static void inject_delay(const char *vfs_func, vfs_handle_struct *handle)
|
||||
smb_msleep(delay);
|
||||
}
|
||||
|
||||
static int vfs_delay_inject_ntimes(vfs_handle_struct *handle,
|
||||
const struct smb_filename *smb_fname,
|
||||
struct smb_file_time *ft)
|
||||
{
|
||||
inject_delay("ntimes", handle);
|
||||
|
||||
return SMB_VFS_NEXT_NTIMES(handle, smb_fname, ft);
|
||||
}
|
||||
|
||||
static int vfs_delay_inject_fntimes(vfs_handle_struct *handle,
|
||||
files_struct *fsp,
|
||||
struct smb_file_time *ft)
|
||||
@ -431,7 +422,6 @@ static bool vfs_delay_inject_brl_unlock_windows(struct vfs_handle_struct *handle
|
||||
}
|
||||
|
||||
static struct vfs_fn_pointers vfs_delay_inject_fns = {
|
||||
.ntimes_fn = vfs_delay_inject_ntimes,
|
||||
.fntimes_fn = vfs_delay_inject_fntimes,
|
||||
.pread_send_fn = vfs_delay_inject_pread_send,
|
||||
.pread_recv_fn = vfs_delay_inject_pread_recv,
|
||||
|
@ -11,7 +11,7 @@ cd $SELFTEST_TMPDIR || exit 1
|
||||
|
||||
delay_inject_conf=$(dirname $SMB_CONF_PATH)/delay_inject.conf
|
||||
|
||||
echo 'delay_inject:ntimes = 5000' > $delay_inject_conf
|
||||
echo 'delay_inject:fntimes = 5000' > $delay_inject_conf
|
||||
|
||||
testit "durable_v2_delay.durable_v2_reconnect_delay" $VALGRIND \
|
||||
$BINDIR/smbtorture //$SERVER_IP/delay_inject \
|
||||
|
Loading…
x
Reference in New Issue
Block a user