From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 17 Apr 2019 14:31:53 +0100 From: "Dr. David Alan Gilbert" Message-ID: <20190417133152.GD2839@work-vm> References: <20190416190858.16833-1-bo.liu@linux.alibaba.com> <20190416190858.16833-3-bo.liu@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190416190858.16833-3-bo.liu@linux.alibaba.com> Subject: Re: [Virtio-fs] [PATCH 2/4] virtiofsd: support nanosecond resolution for file timestamp List-Id: Development discussions about virtio-fs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liu Bo Cc: virtio-fs@redhat.com * Liu Bo (bo.liu@linux.alibaba.com) wrote: > From: Jiufei Xue > > Define HAVE_STRUCT_STAT_ST_ATIM to 1 if `st_atim' is member of `struct > stat' which means support nanosecond resolution for the file timestamp > fields. > > Signed-off-by: Jiufei Xue > Reviewed-by: Joseph Qi Reviewed-by: Dr. David Alan Gilbert Thanks, applied to my tree. > --- > configure | 16 ++++++++++++++++ > contrib/virtiofsd/fuse_misc.h | 1 + > 2 files changed, 17 insertions(+) > > diff --git a/configure b/configure > index 5c21a65..57336ec 100755 > --- a/configure > +++ b/configure > @@ -5147,6 +5147,19 @@ if compile_prog "" "" ; then > strchrnul=yes > fi > > +######################################### > +# check if we have st_atim > + > +st_atim=no > +cat > $TMPC << EOF > +#include > +#include > +int main(void) { return offsetof(struct stat, st_atim); } > +EOF > +if compile_prog "" "" ; then > + st_atim=yes > +fi > + > ########################################## > # check if trace backend exists > > @@ -6757,6 +6770,9 @@ fi > if test "$strchrnul" = "yes" ; then > echo "HAVE_STRCHRNUL=y" >> $config_host_mak > fi > +if test "$st_atim" = "yes" ; then > + echo "HAVE_STRUCT_STAT_ST_ATIM=y" >> $config_host_mak > +fi > if test "$byteswap_h" = "yes" ; then > echo "CONFIG_BYTESWAP_H=y" >> $config_host_mak > fi > diff --git a/contrib/virtiofsd/fuse_misc.h b/contrib/virtiofsd/fuse_misc.h > index 2f6663e..30a1d7f 100644 > --- a/contrib/virtiofsd/fuse_misc.h > +++ b/contrib/virtiofsd/fuse_misc.h > @@ -7,6 +7,7 @@ > */ > > #include > +#include "config-host.h" > > /* > Versioned symbols cannot be used in some cases because it > -- > 1.8.3.1 > > _______________________________________________ > Virtio-fs mailing list > Virtio-fs@redhat.com > https://www.redhat.com/mailman/listinfo/virtio-fs -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK