repositories
/
deb_libnfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a671a46
)
Win32: the stat structure on win32 does not have blocks or blocksize
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Sun, 28 Aug 2011 09:29:08 +0000
(19:29 +1000)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Sun, 28 Aug 2011 09:29:08 +0000
(19:29 +1000)
lib/libnfs.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/libnfs.c
b/lib/libnfs.c
index 80a7394d6d239c999ac70ee3e626b6d4908a6281..9e4a7564a9a67e1ebedffc4ccab87a8f98b91e16 100644
(file)
--- 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;