- @function vfs_settriggercallback
- @abstract Install a callback to be called after unmount attempts on a volume,
- to restore triggers for failed unmounts and release state for successful ones.
- @discussion Installs a callback which will be called in two situations: a
- failed unmount where vnodes may have been reclaimed and a successful unmount.
- Gives an external trigger-marking entity an opportunity to replace triggers
- which may have been reclaimed. The callback can only be installed (not
- cleared), and only one callback can be installed. The callback will be called
- with a read-write lock held on the mount point; in the VTC_REPLACE case, the
- <em>only</em> valid VFS operation to perform in the context of the callback is
- vfs_addtrigger() on the mountpoint in question. This rwlock is held in order
- to attempt to provide some modicum of coverage from lookups which might find
- missing trigger vnodes and receive spurious ENOENTs. Note that this
- protection is incomplete--current working directories, or traversals up into a
- volume via ".." may still find missing triggers. As of this writing, no
- serialization mechanism exists to do better than this.
- When the "op" is VTC_RELEASE, the mountpoint is going away, and the only valid
- VFS operation is to free the private data pointer if needed. The callback
- will be called immediately, with VTC_REPLACE, from vfs_settriggercallback(),
- if installation is successful.
- @param fsid FSID for filesystem in question.
- @param vtc Callback pointer.
- @param data Context pointer to be passed to callback.
- @param flags Currently unused.
- @param ctx Authorization context.
- @return 0 for success. EBUSY if a trigger has already been installed.
- */
-int vfs_settriggercallback(fsid_t *fsid, vfs_trigger_callback_t vtc, void *data, uint32_t flags, vfs_context_t ctx);
-
-#endif /* KERNEL_PRIVATE */
+ * @function vfs_settriggercallback
+ * @abstract Install a callback to be called after unmount attempts on a volume,
+ * to restore triggers for failed unmounts and release state for successful ones.
+ * @discussion Installs a callback which will be called in two situations: a
+ * failed unmount where vnodes may have been reclaimed and a successful unmount.
+ * Gives an external trigger-marking entity an opportunity to replace triggers
+ * which may have been reclaimed. The callback can only be installed (not
+ * cleared), and only one callback can be installed. The callback will be called
+ * with a read-write lock held on the mount point; in the VTC_REPLACE case, the
+ * <em>only</em> valid VFS operation to perform in the context of the callback is
+ * vfs_addtrigger() on the mountpoint in question. This rwlock is held in order
+ * to attempt to provide some modicum of coverage from lookups which might find
+ * missing trigger vnodes and receive spurious ENOENTs. Note that this
+ * protection is incomplete--current working directories, or traversals up into a
+ * volume via ".." may still find missing triggers. As of this writing, no
+ * serialization mechanism exists to do better than this.
+ * When the "op" is VTC_RELEASE, the mountpoint is going away, and the only valid
+ * VFS operation is to free the private data pointer if needed. The callback
+ * will be called immediately, with VTC_REPLACE, from vfs_settriggercallback(),
+ * if installation is successful.
+ * @param fsid FSID for filesystem in question.
+ * @param vtc Callback pointer.
+ * @param data Context pointer to be passed to callback.
+ * @param flags Currently unused.
+ * @param ctx Authorization context.
+ * @return 0 for success. EBUSY if a trigger has already been installed.
+ */
+int vfs_settriggercallback(fsid_t *fsid, vfs_trigger_callback_t vtc, void *data, uint32_t flags, vfs_context_t ctx);
+
+/* tags a volume as not supporting extended readdir for NFS exports */
+void mount_set_noreaddirext(mount_t);
+
+/*!
+ * @function vfs_get_statfs64
+ * @abstract Get the same information as vfs_statfs(), but in a format suitable
+ * for copying to userland.
+ */
+void vfs_get_statfs64(struct mount *mp, struct statfs64 *sfs);
+
+#endif /* KERNEL_PRIVATE */