Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Aug 2016 22:56:44 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Ed Schouten <ed@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r304182 - head/sys/compat/cloudabi
Message-ID:  <20160815195644.GC83214@kib.kiev.ua>
In-Reply-To: <201608151942.u7FJgL99007373@repo.freebsd.org>
References:  <201608151942.u7FJgL99007373@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 15, 2016 at 07:42:21PM +0000, Ed Schouten wrote:
> Author: ed
> Date: Mon Aug 15 19:42:21 2016
> New Revision: 304182
> URL: https://svnweb.freebsd.org/changeset/base/304182
> 
> Log:
>   Let CloudABI use fdatasync() as well.
>   
>   Now that FreeBSD supports fdatasync() natively, we can tidy up
>   CloudABI's equivalent system call to use that instead.
> 
> Modified:
>   head/sys/compat/cloudabi/cloudabi_fd.c
> 
> Modified: head/sys/compat/cloudabi/cloudabi_fd.c
> ==============================================================================
> --- head/sys/compat/cloudabi/cloudabi_fd.c	Mon Aug 15 19:37:18 2016	(r304181)
> +++ head/sys/compat/cloudabi/cloudabi_fd.c	Mon Aug 15 19:42:21 2016	(r304182)
> @@ -172,12 +172,11 @@ int
>  cloudabi_sys_fd_datasync(struct thread *td,
>      struct cloudabi_sys_fd_datasync_args *uap)
>  {
> -	struct fsync_args fsync_args = {
> +	struct fdatasync_args fdatasync_args = {
>  		.fd = uap->fd
>  	};
>  
> -	/* Call into fsync(), as FreeBSD lacks fdatasync(). */
> -	return (sys_fsync(td, &fsync_args));
> +	return (sys_fdatasync(td, &fdatasync_args));
>  }
>  
Please make kern_fsync() non-static and use it instead of providing fake
fdatasync_args structure.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160815195644.GC83214>