Exemplo n.º 1
0
static int
smb_fem_oplock_read(
    femarg_t		*arg,
    uio_t		*uiop,
    int			ioflag,
    cred_t		*cr,
    caller_context_t	*ct)
{
	int	rc;

	rc = smb_fem_oplock_break(arg, ct);
	if (rc == 0)
		rc = vnext_read(arg, uiop, ioflag, cr, ct);
	return (rc);
}
Exemplo n.º 2
0
static int
smb_fem_oplock_read(
    femarg_t		*arg,
    uio_t		*uiop,
    int			ioflag,
    cred_t		*cr,
    caller_context_t	*ct)
{
	int	rc = 0;

	if (ct != &smb_ct) {
		rc = smb_fem_oplock_break(arg, ct,
		    SMB_OPLOCK_BREAK_TO_LEVEL_II);
	}
	if (rc == 0)
		rc = vnext_read(arg, uiop, ioflag, cr, ct);

	return (rc);
}