/* We need a particular syncfs stub that doesn't lock the NODE which was passed to file_syncfs () since we want to lock it in tarfs_sync_fs (). */ error_t netfs_S_file_syncfs (struct protid *user, int wait, int dochildren) { error_t err; if (!user) return EOPNOTSUPP; err = netfs_attempt_syncfs (user->user, wait); return err; }
error_t netfs_S_file_syncfs (struct protid *user, int wait, int dochildren) { error_t err; if (!user) return EOPNOTSUPP; /* Translators not yet supported by netfs. XXX */ mutex_lock (&user->po->np->lock); err = netfs_attempt_syncfs (user->user, wait); mutex_unlock (&user->po->np->lock); return err; }
error_t netfs_S_fsys_syncfs (mach_port_t cntl, mach_port_t reply, mach_msg_type_name_t reply_type, int wait, int children) { struct iouser *cred; error_t err; err = iohelp_create_simple_iouser (&cred, 0, 0); if (err) return err; err = netfs_attempt_syncfs (cred, wait); iohelp_free_iouser (cred); return err; }