Ronnie Sahlberg [Tue, 21 Jun 2011 08:33:50 +0000 (18:33 +1000)]
Add a very subtle bug in nfs_set_error()
when nfs_set_error is called with error_string being the result of a lower layer
problem so it is passed as "rpc_get_error()"
This meant that since free that nfs->rpc->error_string before we reference it a few lines further down in the vasprintf(..., error_string,
adn memory corruption triggers.
Ronnie Sahlberg [Sat, 18 Jun 2011 22:43:28 +0000 (08:43 +1000)]
Add support in read/pread to be aware of the Maximum Read size that the server
suggested.
When a read/pread operation that is 'oversize' is issued, the read/pread command will internally chop this up into smaller chunsk and send then concurrently to the server.
As replies come back from the server we add the data to a reassembly buffer
and as soon as all replies have been received we invoke the callback and pass the reassembly buffer back to the application.
Memphis [Wed, 8 Jun 2011 15:19:32 +0000 (17:19 +0200)]
- add configure option for disabling the call to ldconfig on make install
- this is needed because we use a prefix which is writable by the user - calling ldconfig
would need root rights which we have to avoid...
Memphiz [Tue, 7 Jun 2011 22:23:04 +0000 (00:23 +0200)]
- honor @cc@,@CLFAGS@ and @LDFLAGS@ which is important for cross compilation
- use a more generic regexp for renaming the generated rpc header includes - because the include is without subpath on darwin/ios
- make linkerstuff and so names dynamic according to @is_darwin@
- create install directorys if they don't exist
- use $(prefix) instead of $(DESTDIR) for installation
- build examples only if @ENABLE_EXAMPLES@ is set (default is on)
- rm -rf bin on clean because darwin adds directories here on compilation
- use u_int64_t for rpcgen on darwin instead of unsigned hyper (it is not known to the darwin rpcgen...)
Memphiz [Tue, 7 Jun 2011 22:22:37 +0000 (00:22 +0200)]
- no ldconfig for darwin
- add variable is_darwin - used in Makefile.in for building the proper dynamic lib
- add option --without-examples for disable build of examples
Ronnie Sahlberg [Wed, 1 Jun 2011 11:31:40 +0000 (21:31 +1000)]
Use HAVE_SOCK_SIN_LEN and set ->sin_len
for legacy unixens (AIX)
so that we will compile and run on those systems with a "weird"
sockaddr_in definition.