mounta
if ((alp->action.action_list_entry_u.mounta.spec =
if ((alp->action.action_list_entry_u.mounta.dir =
alp->action.action_list_entry_u.mounta.optptr = buf;
alp->action.action_list_entry_u.mounta.optlen = strlen(buf) + 1;
alp->action.action_list_entry_u.mounta.flags =
if ((alp->action.action_list_entry_u.mounta.fstype =
alp->action.action_list_entry_u.mounta.dataptr = (char *)fnip;
alp->action.action_list_entry_u.mounta.datalen = sizeof (*fnip);
alp->action.action_list_entry_u.mounta.dataptr = NULL;
alp->action.action_list_entry_u.mounta.datalen = 0;
free_mounta(&alp->action.action_list_entry_u.mounta);
free_mounta(struct mounta *m)
struct mounta *mp;
mp = &(p->action.action_list_entry_u.mounta);
alp->action.action_list_entry_u.mounta.spec =
alp->action.action_list_entry_u.mounta.dir = strdup(mntpnt);
alp->action.action_list_entry_u.mounta.flags =
alp->action.action_list_entry_u.mounta.fstype =
alp->action.action_list_entry_u.mounta.dataptr = (char *)head;
alp->action.action_list_entry_u.mounta.datalen =
alp->action.action_list_entry_u.mounta.optptr = mntopts;
alp->action.action_list_entry_u.mounta.optlen =
xdr_mounta(register XDR *xdrs, struct mounta *objp)
if (!xdr_mounta(xdrs, &objp->action_list_entry_u.mounta))
struct mounta; /* defined in sys/vfs.h */
extern void free_mounta(struct mounta *);
struct mounta ma;
char mounta[MAXPATHLEN];
verify(zfs_prop_get(*za, ZFS_PROP_MOUNTPOINT, mounta,
sizeof (mounta), NULL, NULL, 0, B_FALSE) == 0);
return (strcmp(mounta, mountb));
char mounta[MAXPATHLEN];
hasmounta = (zfs_prop_get(ca->cn_handle, ZFS_PROP_MOUNTPOINT, mounta,
sizeof (mounta), NULL, NULL, 0, B_FALSE) == 0);
return (strcmp(mountb, mounta));
char mounta[MAXPATHLEN];
const char *a = mounta;
verify(zfs_prop_get(za, ZFS_PROP_MOUNTPOINT, mounta,
sizeof (mounta), NULL, NULL, 0, B_FALSE) == 0);
const char *mounta = *((char **)a);
return (strcmp(mountb, mounta));
fsop_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr)
fake_domount(char *fsname, struct mounta *uap, struct vfs **vfspp)
struct mounta;
int fake_domount(char *, struct mounta *, struct vfs **);
int (*vfs_mount)(struct vfs *, struct vnode *, struct mounta *,
struct mounta *m, margs;
m = &p->action.action_list_entry_u.mounta;
auto_free_autofs_args(struct mounta *m)
struct mounta *m;
m = &alp->action.action_list_entry_u.mounta;
fstype = alp->action.action_list_entry_u.mounta.fstype;
m = &alp->action.action_list_entry_u.mounta;
struct mounta *m;
m = &p->action.action_list_entry_u.mounta;
static int auto_mount(vfs_t *, vnode_t *, struct mounta *, cred_t *);
auto_mount(vfs_t *vfsp, vnode_t *vp, struct mounta *uap, cred_t *cr)
if (!xdr_mounta(xdrs, &objp->action_list_entry_u.mounta))
xdr_mounta(XDR *xdrs, struct mounta *objp)
bool_t xdr_mounta(XDR *, struct mounta *);
bootfs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr)
ctfs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr)
sdev_copyin_mountargs(struct mounta *uap, struct sdev_mountargs *args)
sdev_mount(struct vfs *vfsp, struct vnode *mvp, struct mounta *uap,
static int sdev_mount(struct vfs *, struct vnode *, struct mounta *,
devfs_mount(struct vfs *vfsp, struct vnode *mvp, struct mounta *uap,
static int devfs_mount(struct vfs *, struct vnode *, struct mounta *,
fdmount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr)
fshead_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr)
vfsnext_mount(fsemarg_t *vf, vnode_t *mvp, struct mounta *uap, cred_t *cr)
struct mounta *uap, struct cred *cr);
struct mounta *uap, struct cred *cr)
lo_mount(struct vfs *vfsp, struct vnode *vp, struct mounta *uap,
struct mounta *uap, struct cred *cr)
nm_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *crp)
static int nfs3_mount(vfs_t *, vnode_t *, struct mounta *, cred_t *);
nfs3_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr)
struct mounta *uap;
uap = kmem_zalloc(sizeof (struct mounta), KM_SLEEP);
kmem_free(uap, sizeof (struct mounta));
int nfs4_mount(vfs_t *, vnode_t *, struct mounta *, cred_t *);
nfs4_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr)
static int nfs_mount(vfs_t *, vnode_t *, struct mounta *, cred_t *);
nfs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr)
objfs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr)
struct mounta *uap,
struct mounta *uap,
static int pcfs_mount(struct vfs *, struct vnode *, struct mounta *,
struct mounta *uap, struct cred *cr)
sharefs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr)
static int smbfs_mount(vfs_t *, vnode_t *, struct mounta *, cred_t *);
smbfs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr)
tmp_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr)
struct mounta *, struct cred *);
struct vnode *, struct mounta *, struct cred *);
struct mounta *uap, struct cred *cr)
ufs_mount(struct vfs *vfsp, struct vnode *mvp, struct mounta *uap,
domount(char *fsname, struct mounta *uap, vnode_t *vp, struct cred *credp,
fsop_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr)
struct mounta mounta = { /* fake mounta for devfs_mount() */
if (VFS_MOUNT(&devices, mvp, &mounta, CRED()))
struct mounta mounta = { /* fake mounta for sdev_mount() */
if (VFS_MOUNT(&dev, mvp, &mounta, CRED()))
struct mounta mounta;
bzero(&mounta, sizeof (mounta));
mounta.flags = MS_SYSSPACE | MS_DATA;
mounta.fstype = module;
mounta.spec = spec;
mounta.dir = path;
if (domount(NULL, &mounta, mvp, CRED(), &vfsp))
mntopts_t *mntopts, struct mounta *uap)
struct mounta margs;
zfs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr)
static int zfs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr);
struct mounta *uap, cred_t *cr); \
extern int vfsnext_mount(fsemarg_t *vf, vnode_t *mvp, struct mounta *uap,
extern int sdev_copyin_mountargs(struct mounta *, struct sdev_mountargs *);
int (*vfs_mount)(vfs_t *, vnode_t *, struct mounta *, cred_t *); \
extern int fsop_mount(vfs_t *, vnode_t *, struct mounta *, cred_t *);
int domount(char *, struct mounta *, vnode_t *, struct cred *,
struct mounta *uap;
struct mounta native;
uap = (struct mounta *)lp;