Re: readdir vs. getdirentriesattr

2015-01-12 Thread Jim Luther
getattrlistbulk() works on all file systems. If the file system supports bulk enumeration natively, great! If it does not, then the kernel code takes care of it. In addition, getattrlistbulk() supports all non-volume attributes (getattrlistbulk only supported a large subset). The API calling co

Re: readdir vs. getdirentriesattr

2015-01-12 Thread James Bucanek
Jim, Eric, list, I have to say, the new getattrlistbulk() function is working very well here. Requiring ATTR_CMN_RETURNED_ATTRS made me reorganize my code a bit, but that was minor. Specifically, it's nice to have a single routine to call (instead of getdirentriesattr() and a readdir() fallbac

Re: Causing mount from kernel/kext

2015-01-12 Thread Jorgen Lundman
Having a vnode, then calling mount() to cover it with a new vnode, is very easy code :) Compared to creating a new devnode, with virtual "disk" providing enough hints to get DA excited (with fs.bundle), going to sleep, and then waking up once the eventual vfs_mount() call is received (with timeou