• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Causing mount from kernel/kext
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Causing mount from kernel/kext
      • From: Eric Tamura <email@hidden>
  • Next by Date: Re: Causing mount from kernel/kext
  • Next by thread: Re: Causing mount from kernel/kext
  • Index(es):
    • Date
    • Thread