Causing mount from kernel/kext
Causing mount from kernel/kext
- Subject: Causing mount from kernel/kext
- From: Jorgen Lundman <email@hidden>
- Date: Fri, 09 Jan 2015 10:28:10 +0900
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