Re: Causing mount from kernel/kext
Re: Causing mount from kernel/kext
- Subject: Re: Causing mount from kernel/kext
- From: Eric Tamura <email@hidden>
- Date: Fri, 09 Jan 2015 11:53:00 -0800
There is no way to trigger a mount in-kernel at the moment.
Are DiskArbitration functionalities (produce devnode, probing, etc). not sufficient to achieve the desired behaviors?
Eric
> On 8 Jan 2015, at 5:28 PM, Jorgen Lundman <email@hidden> wrote:
>
>
> Hello lists,
>
> Trying to be compatible with upstream ZFS, we wish to cause snapshots to be
> mounted automatically on access (usually triggered in vnop_lookup). But I
> seem unable to cause mounts to happen from within the kernel.
>
> mount and __mac_mount has opaque structs and possibly deal only with copyin
> from userspace.
>
> NFS uses kernel_mount() but it is not available (inlined due to only one
> caller?) - Possibly I could call mount_list_add() myself, but "struct
> mount" is also opaque. Seems to be a lot of hoops for such a basic feature.
>
> Is there no way to cause a mount to happen from the kernel?
>
> Lund
>
> --
> Jorgen Lundman | <email@hidden>
> Unix Administrator | +81 (0)3 -5456-2687 ext 1017 (work)
> Shibuya-ku, Tokyo | +81 (0)90-5578-8500 (cell)
> Japan | +81 (0)3 -3375-1767 (home)
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Filesystem-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden