/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2013 Nexenta Systems, Inc. All rights reserved.
*/
/*
* Helper functions for SMB2 open handles
*/
#include <smbsrv/smb2_kproto.h>
{
int rc;
case SMB_FTYPE_DISK:
case SMB_FTYPE_PRINTER:
break;
case SMB_FTYPE_BYTE_PIPE:
case SMB_FTYPE_MESG_PIPE:
break;
default:
break;
}
if (rc)
return (smb_errno2status(rc));
return (0);
}
/*
* Get the stuff needed by FileStandardInformation that was
* not already obtained by smb2_ofile_getattr().
* (qi_delete_on_close, qi_isdir)
*/
{
case SMB_FTYPE_DISK:
case SMB_FTYPE_PRINTER:
break;
case SMB_FTYPE_BYTE_PIPE:
case SMB_FTYPE_MESG_PIPE:
break;
default:
return (NT_STATUS_INVALID_DEVICE_REQUEST);
}
return (0);
}
/*
* Get info for FileNameInformation, FileAlternateNameInformation.
* (qi_name, qi_shortname)
*/
{
int rc;
case SMB_FTYPE_DISK:
case SMB_FTYPE_PRINTER:
break;
case SMB_FTYPE_BYTE_PIPE:
case SMB_FTYPE_MESG_PIPE:
break;
default:
break;
}
if (rc)
return (smb_errno2status(rc));
return (0);
}