fsys-syncfs.lisp 550 B

12345678910111213141516171819
  1. (in-package :hurd-translator)
  2. ;; Sync a filesystem.
  3. (def-fsys-interface :fsys-syncfs ((control port)
  4. (reply port)
  5. (reply-type msg-type-name)
  6. (wait :boolean)
  7. (children :boolean))
  8. (declare (ignore reply reply-type children))
  9. (when (port-exists-p control)
  10. (let ((root-user (make-iouser-root)))
  11. (if (sync-fs *translator*
  12. root-user
  13. wait)
  14. t
  15. nil))))