From: Ronnie Sahlberg Date: Sun, 28 Aug 2011 09:29:08 +0000 (+1000) Subject: Win32: the stat structure on win32 does not have blocks or blocksize X-Git-Tag: upstream/1.9.6^2~326^2~10 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d8143ff7d765363ccaea6881c424d217bb146361;p=deb_libnfs.git Win32: the stat structure on win32 does not have blocks or blocksize --- diff --git a/lib/libnfs.c b/lib/libnfs.c index 80a7394..9e4a756 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -671,8 +671,10 @@ static void nfs_stat_1_cb(struct rpc_context *rpc _U_, int status, void *command st.st_gid = res->GETATTR3res_u.resok.obj_attributes.gid; st.st_rdev = 0; st.st_size = res->GETATTR3res_u.resok.obj_attributes.size; +#if !defined(WIN32) st.st_blksize = 4096; st.st_blocks = res->GETATTR3res_u.resok.obj_attributes.size / 4096; +#endif st.st_atime = res->GETATTR3res_u.resok.obj_attributes.atime.seconds; st.st_mtime = res->GETATTR3res_u.resok.obj_attributes.mtime.seconds; st.st_ctime = res->GETATTR3res_u.resok.obj_attributes.ctime.seconds;