Ronnie Sahlberg
584108f43e
Merge remote branch 'memphiz/listservers'
2011-09-13 15:06:21 +10:00
unknown
e078d276f7
[add] - list nfs servers nfsclient-sync
2011-09-12 20:01:42 +02:00
Memphiz
fcc42bfe85
[win32] - completed win32 port
2011-09-12 19:53:33 +02:00
Memphiz
f650a138b6
[fix] - vs2010 project for libnfs
2011-09-12 19:21:02 +02:00
Memphiz
20a96d422c
[add/change] - win32 wrappers
2011-09-12 18:58:28 +02:00
Memphiz
dba24f1079
[fix] - fixed example - don't exit on read failure during dirent (it could be a directory - non fatal if read fails on that)
...
- fixed sprintf pointer
2011-09-12 18:49:28 +02:00
Memphiz
87bfff2643
[fix] - fixed example - don't exit on read failure during dirent (it could be a directory - non fatal if read fails on that)
...
- fixed sprintf pointer
2011-09-12 18:46:57 +02:00
Ronnie Sahlberg
4e9dcb7665
remove debug message
2011-09-12 22:20:56 +10:00
Ronnie Sahlberg
07fd0cbc65
when creating a socket, spin over a number of low-numbered ports
...
and try to bind to a system port in case the user is root or the
binary has the CAP_NET_BIND_SERVICE capability
this removes the need to use 'insecure' on the server
2011-09-12 22:14:26 +10:00
Ronnie Sahlberg
18c27b73ff
Large-Writes: just like for large-reads, chop large writes up into the smallest
...
of 32kb and what the server responded as the max write size and send them out in parallell to the server.
32kb is a common limitation in XDR libraries so even if the server says IT can handle writes larget than that, our XDR library might not.
2011-09-11 22:13:28 +10:00
Ronnie Sahlberg
83aa785d92
Add a call to find the queue-length so we can see how many I/O we have in flight from the application layer.
2011-09-11 21:32:48 +10:00
Ronnie Sahlberg
37d14753ce
Update win32 readme to point to location for oncrpc library for windows
2011-09-03 16:23:44 +10:00
Ronnie Sahlberg
4b6737c15c
Add Windows as a supported platform
2011-09-03 15:40:13 +10:00
unknown
4b0e8df9a9
[fix] - fix connect for win32 - return values are inverted
2011-09-03 15:31:56 +10:00
unknown
99c14c9b81
[add] - implement set_non_blocking for socket
2011-09-03 15:30:01 +10:00
unknown
f5a488524d
[fix] - fix win32_inet_pton
2011-09-03 15:28:43 +10:00
WiSo
75e8e264d6
[WIN32] added nfsclient-sync to the solution. still manually linked with libnfs because the project dependency setting somehow didn't linked it.
2011-09-03 15:10:32 +10:00
WiSo
3446e792c1
[WIN32] added project file for nfsclient-sync.exe
2011-09-03 15:10:12 +10:00
WiSo
cb06480162
[WIN32] disable some warnings
2011-09-03 15:09:55 +10:00
WiSo
52674a70ea
[WIN32] added visual studio project files to libnfs (oncrpc path still hardcoded at several places)
2011-09-03 15:09:40 +10:00
Memphiz
a8a1b85846
[win32] - make it compile on win32
2011-09-03 15:08:48 +10:00
Ronnie Sahlberg
4b1097cde2
remove old libnfs.def and update the buildscript to the new name libnfs-win32.def
2011-09-03 14:53:10 +10:00
Memphiz
7f7993883c
[add] - win32 compat stuff
2011-09-03 14:51:54 +10:00
Ronnie Sahlberg
db4ea5dd80
Revert "Rename libnfs.def to libnfs-win32.def"
...
This reverts commit a3d6cf111e
.
2011-09-03 14:51:48 +10:00
Ronnie Sahlberg
ea98629aef
memset() is posix, bzero() is not change bzero into memset
2011-09-03 14:11:22 +10:00
Ronnie Sahlberg
a3d6cf111e
Rename libnfs.def to libnfs-win32.def
2011-09-03 13:29:39 +10:00
Ronnie Sahlberg
565369e0b2
remove some includes that dont exist on windows
2011-09-03 11:30:10 +10:00
Ronnie Sahlberg
bb4e9ed6a8
cast to char * to avoid compiler warnings for get/setsockopt
2011-09-03 11:25:50 +10:00
Ronnie Sahlberg
4ed97718b3
Merge branch 'master' into win32-3
2011-09-03 11:11:36 +10:00
Ronnie Sahlberg
42f43e48cc
cast the pointer to char * for all calls to bzero
2011-09-03 11:08:58 +10:00
Ronnie Sahlberg
41d82d7d82
Merge branch 'win32' into win32-3
2011-09-03 10:57:42 +10:00
Ronnie Sahlberg
0804e67d7a
using READDIRPLUS3 we get some extra fields for the direentry structure for free, such as type, mode, size, timestamps
2011-09-02 20:45:30 +10:00
Ronnie Sahlberg
f390f18157
nfs_opendir() switch to using READDIRPLUS3 instead of READDIR3 when reading directories.
2011-09-02 20:27:01 +10:00
Ronnie Sahlberg
e02614571c
nfs.x: some rpcgen's can not handle multiple union choices for the same arm.
...
Make sure each choice has a dedicated arm
2011-09-02 06:32:33 +10:00
Ronnie Sahlberg
647d2ea11c
add support for opensolaris
2011-09-01 19:48:42 +10:00
Ronnie Sahlberg
5733b1e17e
win32 add build script for visual studio
2011-08-30 16:03:26 +10:00
Ronnie Sahlberg
66ad6d8438
Win32: make the sympols public in a dll
2011-08-30 15:56:53 +10:00
Ronnie Sahlberg
427d71c0a7
Win32: add a libnfs.def file so we can build libraries/dlls
2011-08-30 15:54:29 +10:00
Ronnie Sahlberg
b85c7de2f7
use vsnprintf() on all platforms, dont special case win32 for vsnprintf and all other platforms use vasprintf
2011-08-29 19:59:36 +10:00
Ronnie Sahlberg
2606f9bb3d
Win32: add workaround for lack of vasprintf() and use vsnprintf() on windows on a fixed size buffer
2011-08-29 18:00:09 +10:00
Ronnie Sahlberg
0ad9a1f134
WIN32: win32 does not have poll()
...
add trivial replacement function
2011-08-28 19:48:01 +10:00
Ronnie Sahlberg
dd8fc17555
win32 oncrpc environment needx xdr.h before including auth.h
2011-08-28 19:46:12 +10:00
Ronnie Sahlberg
f4442bec27
wondows dont have vasprintf()
...
disable for now and reimplement later
2011-08-28 19:45:00 +10:00
Ronnie Sahlberg
6874f61e24
Win32: more win32 adaptations
2011-08-28 19:43:33 +10:00
Ronnie Sahlberg
fb6510bb68
VC10 dont like ';;'
2011-08-28 19:30:10 +10:00
Ronnie Sahlberg
d8143ff7d7
Win32: the stat structure on win32 does not have blocks or blocksize
2011-08-28 19:29:08 +10:00
Ronnie Sahlberg
93e9306f80
replace index/rindex with modern equivalents
2011-08-28 19:27:57 +10:00
Ronnie Sahlberg
a671a46510
replace index/rindex with modern equivalents
2011-08-28 19:27:23 +10:00
Ronnie Sahlberg
9896c7155c
nfs_set_auth() is a void and does not return anything
2011-08-28 19:26:07 +10:00
Ronnie Sahlberg
be337389bf
nfs_set_auth() is a void and does not return anything
2011-08-28 19:25:20 +10:00