Print this page
8115 parallel zfs mount
@@ -20,10 +20,11 @@
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
* Copyright (c) 2011 Bayard G. Bell. All rights reserved.
+ * Copyright (c) 2017 by Delphix. All rights reserved.
*/
#include <sys/types.h>
#include <sys/t_lock.h>
#include <sys/param.h>
@@ -119,11 +120,11 @@
static vfsdef_t vfw = {
VFSDEF_VERSION,
"udfs",
udfinit,
- VSW_HASPROTO|VSW_CANREMOUNT|VSW_STATS|VSW_CANLOFI,
+ VSW_HASPROTO|VSW_CANREMOUNT|VSW_STATS|VSW_CANLOFI|VSW_MOUNTDEV,
&udfs_mntopts
};
static mntopts_t udfs_mntopts = {
0,
@@ -487,12 +488,11 @@
/* ARGSUSED */
static int32_t
-udf_vget(struct vfs *vfsp,
- struct vnode **vpp, struct fid *fidp)
+udf_vget(struct vfs *vfsp, struct vnode **vpp, struct fid *fidp)
{
int32_t error = 0;
struct udf_fid *udfid;
struct udf_vfs *udf_vfsp;
struct ud_inode *ip;
@@ -610,12 +610,11 @@
/* ------------------------- local routines ------------------------- */
static int32_t
-ud_mountfs(struct vfs *vfsp,
- enum whymountroot why, dev_t dev, char *name,
+ud_mountfs(struct vfs *vfsp, enum whymountroot why, dev_t dev, char *name,
struct cred *cr, int32_t isroot)
{
struct vnode *devvp = NULL;
int32_t error = 0;
int32_t needclose = 0;