Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/smbfs/smbfs_vfsops.c
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | |||||
VFS_SET(smbfs_vfsops, smbfs, VFCF_NETWORK); | VFS_SET(smbfs_vfsops, smbfs, VFCF_NETWORK); | ||||
MODULE_DEPEND(smbfs, netsmb, NSMB_VERSION, NSMB_VERSION, NSMB_VERSION); | MODULE_DEPEND(smbfs, netsmb, NSMB_VERSION, NSMB_VERSION, NSMB_VERSION); | ||||
MODULE_DEPEND(smbfs, libiconv, 1, 1, 2); | MODULE_DEPEND(smbfs, libiconv, 1, 1, 2); | ||||
MODULE_DEPEND(smbfs, libmchain, 1, 1, 1); | MODULE_DEPEND(smbfs, libmchain, 1, 1, 1); | ||||
int smbfs_pbuf_freecnt = -1; /* start out unlimited */ | uma_zone_t smbfs_pbuf_zone; | ||||
static int | static int | ||||
smbfs_cmount(struct mntarg *ma, void * data, uint64_t flags) | smbfs_cmount(struct mntarg *ma, void * data, uint64_t flags) | ||||
{ | { | ||||
struct smbfs_args args; | struct smbfs_args args; | ||||
int error; | int error; | ||||
error = copyin(data, &args, sizeof(struct smbfs_args)); | error = copyin(data, &args, sizeof(struct smbfs_args)); | ||||
▲ Show 20 Lines • Show All 262 Lines • ▼ Show 20 Lines | smbfs_quotactl(mp, cmd, uid, arg) | ||||
SMBVDEBUG("return EOPNOTSUPP\n"); | SMBVDEBUG("return EOPNOTSUPP\n"); | ||||
return EOPNOTSUPP; | return EOPNOTSUPP; | ||||
} | } | ||||
/*ARGSUSED*/ | /*ARGSUSED*/ | ||||
int | int | ||||
smbfs_init(struct vfsconf *vfsp) | smbfs_init(struct vfsconf *vfsp) | ||||
{ | { | ||||
smbfs_pbuf_freecnt = nswbuf / 2 + 1; | smbfs_pbuf_zone = uma_zsecond_create("smbpbuf", pbuf_ctor, pbuf_dtor, pbuf_init, NULL, pbuf_zone); | ||||
uma_zone_set_max(smbfs_pbuf_zone, nswbuf / 2 + 1); | |||||
SMBVDEBUG("done.\n"); | SMBVDEBUG("done.\n"); | ||||
return 0; | return 0; | ||||
} | } | ||||
/*ARGSUSED*/ | /*ARGSUSED*/ | ||||
int | int | ||||
smbfs_uninit(struct vfsconf *vfsp) | smbfs_uninit(struct vfsconf *vfsp) | ||||
{ | { | ||||
uma_zdestroy(smbfs_pbuf_zone); | |||||
SMBVDEBUG("done.\n"); | SMBVDEBUG("done.\n"); | ||||
return 0; | return 0; | ||||
} | } | ||||
/* | /* | ||||
* smbfs_statfs call | * smbfs_statfs call | ||||
*/ | */ | ||||
int | int | ||||
Show All 21 Lines |