/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2013 Nexenta Systems, Inc. All rights reserved.
*/
#include <smbsrv/smb_ktypes.h>
#include <smbsrv/smb_kproto.h>
static void smb_vfs_destroy(smb_vfs_t *);
/*
* If a hold on the specified VFS has already been taken
* then only increment the reference count of the corresponding
* smb_vfs_t structure. If no smb_vfs_t structure has been created
* yet for the specified VFS then create one and take a hold on
* the VFS.
*/
int
{
int rc;
return (EINVAL);
return (0);
}
return (rc);
}
/*
* We have a hold on the root vnode of the file system
* from the VFS_ROOT call above.
*/
return (0);
}
/*
* smb_vfs_rele
*
* Decrements the reference count of the fs passed in. If the reference count
* drops to zero the smb_vfs_t structure associated with the fs is freed.
*/
void
{
if (smb_vfs) {
return;
}
}
}
/*
* smb_vfs_rele_all()
*
* Release all holds on root vnodes of file systems which were taken
* due to the existence of at least one enabled share on the file system.
* Called at driver close time.
*/
void
{
}
}
/*
* Goes through the list of smb_vfs_t structure and returns the one matching
* the vnode passed in. If no match is found a NULL pointer is returned.
*
* The list of smb_vfs_t structures has to have been entered prior calling
* this function.
*/
static smb_vfs_t *
{
while (smb_vfs) {
return (smb_vfs);
}
return (NULL);
}
static void
{
}