Ronnie Sahlberg
8704724f83
Change remaining "struct AUTH *" to "AUTH *"
2011-10-09 15:22:05 +11:00
Ronnie Sahlberg
7bd7041bd8
Merge pull request #19 from Memphiz/auth2
...
[fix] - fix improper definition of struct AUTH from osx (caution - API ch
2011-10-08 16:31:20 -07:00
Memphiz
fa33813ed4
[fix] - fix improper definition of struct AUTH from osx (caution - API change - not clear if typedef is there on all plattforms...)
2011-10-08 18:10:06 +02:00
Ronnie Sahlberg
acf31bb24d
Bump version to 1.0.0
2011-10-04 18:30:15 +11:00
Ronnie Sahlberg
d678b73e4d
Fragment reassembly. Add reassembly of fragmented RPC PDUs
2011-10-04 12:31:56 +11:00
Ronnie Sahlberg
1744ef9011
Autoreconnect: autoreconnect was completely broken. Reimplement it so that it reconnects properly on session failure.
2011-10-04 11:25:10 +11:00
Ronnie Sahlberg
fb69c64c02
READDIRPLUS emulation: Some embedded servers do not support READDIRPLUS,
...
so try to trap this and emulate it with READDIR + a LOOKUP loop to get the attributes.
Since we are fully async we can do all the lookups in concurrently so it should not be that very exopensive compared to the cheaper READDIRPLUS call.
2011-10-03 10:55:42 +11:00
Ronnie Sahlberg
762621fa3d
Donr declate AUTH as a struct in libnfs.h
...
make it include rpc/auth.h properly instead
2011-09-19 20:23:45 +10:00
Mike Frysinger
46a8a235e8
ignore generate libnfs.pc
2011-09-19 20:16:22 +10:00
Mike Frysinger
6a14f02fb2
tirpc: use pkg-config to find details
...
Hardcoding paths breaks cross-compiling, so use the pkg-config files
that libtirpc already provides.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-09-19 20:16:03 +10:00
Ronnie Sahlberg
357f65c0e1
Merge branch 'master' of github.com:sahlberg/libnfs
2011-09-19 20:15:47 +10:00
Mike Frysinger
5a1f145434
add maintainer e-mail to AC_INIT
...
This way `./configure --help` and PACKAGE_BUGREPORT get the right values.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-09-19 20:08:07 +10:00
Ronnie Sahlberg
95b7217dc8
Merge pull request #15 from OpenELEC/libnfs-pkgconfig
...
add support to create a pkgconfig file 'libnfs.pc' on build, and install
2011-09-16 02:01:11 -07:00
Stephan Raue
ea545df912
add support to create a pkgconfig file 'libnfs.pc' on build, and install this with 'make install'
...
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2011-09-16 08:23:23 +02:00
Ronnie Sahlberg
22e73f32dd
update README with highly non-portable capability support on some linux kernels
2011-09-13 15:17:21 +10:00
Ronnie Sahlberg
1e1b70a24a
Merge remote branch 'memphiz/win32'
2011-09-13 15:10:45 +10:00
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