public function datasync($cb, $pri = EIO_PRI_DEFAULT)
{
$cb = CallbackWrapper::forceWrap($cb);
if (!$this->fd) {
if ($cb) {
$cb($this, false);
}
return false;
}
if (!FileSystem::$supported) {
$cb($this, true);
return false;
}
return eio_fdatasync($this->fd, $pri, $cb, $this);
}