Commit Graph

203 Commits (370ae18137f7db4234538f3a9f1c7dc22b9ded1d)

Author SHA1 Message Date
Ronnie Sahlberg 370ae18137 update the licence text and proide an explicit copy of LGPL2.1 and GPL3 2012-03-04 17:13:08 +11:00
Ronnie Sahlberg 47e5a2c740 new version 1.3 2012-03-03 19:04:58 +11:00
Ronnie Sahlberg 8e25581668 change rpc_nfs_symlink_async to take a full SYMLINK3args as parameter 2012-01-14 08:18:19 +11:00
Ronnie Sahlberg 16104b27bd make low level readlink_async function take READLINK3args as argument 2012-01-14 08:11:09 +11:00
Ronnie Sahlberg 7edc9026db make mkdir_async take a full MKDIR3args argument 2012-01-12 16:02:32 +11:00
Ronnie Sahlberg bac0bc5404 rpc_nfs_create_async, args is now a pointer, not a structur
so we shouldnt take the address of it
2012-01-12 15:56:02 +11:00
Ronnie Sahlberg c985c015f2 change crate_async low level function to take a full RATE3args structure as argument instead of just name and mode 2012-01-12 15:31:49 +11:00
Ronnie Sahlberg b426ef0404 read returns a READ3res, not a ACCESS3res 2012-01-12 15:19:45 +11:00
Ronnie Sahlberg 8724c83390 Add function to get root filehandle from a nfs context 2012-01-11 07:04:01 +11:00
Ronnie Sahlberg e6cac86f77 Try to rotate the ports we assign when root better so we dont reuse
a port htat is in time-wait too frequently
2012-01-03 07:25:25 +11:00
Ronnie Sahlberg 59f298f5bf Improve an error message to show the errno value 2012-01-03 07:18:56 +11:00
Ronnie Sahlberg 8e9d7dde75 MOUNT: describe mount version 1 2012-01-01 10:37:54 +11:00
Ronnie Sahlberg 1fbe408023 PORTMAPPER: Add set/unset functions 2011-12-31 15:01:38 +11:00
Ronnie Sahlberg 5c6b1176c2 PMAP: allow to ask for tcp/udp port, dont assume users only ever want the tcp port 2011-12-31 14:24:20 +11:00
Ronnie Sahlberg 345422a2e3 New version 1.2 2011-12-06 18:02:34 +11:00
Ronnie Sahlberg d7ec001f1a Set IFREG from file type, dont assume mode bits contain it
Needed for HaneWin which does not set S_IFMT in the modebits returned
2011-12-05 13:54:21 +11:00
Ronnie Sahlberg 183451cff5 Remove all [s]size_t / off_t and replace with [u]int64_t making libnfs 64-bit pure 2011-11-27 14:49:08 +11:00
Ronnie Sahlberg 1ec6b50aef Add MKNOD command support
Add support for raw nfs3 mknod  and sync and async posixlike api
2011-11-27 14:08:24 +11:00
Ronnie Sahlberg 86ef491004 New version 1.1 2011-11-27 11:20:57 +11:00
Ronnie Sahlberg 71f480591a Make _FILE_OFFSET_BITS=64 always 2011-11-27 11:09:09 +11:00
Ronnie Sahlberg 14a062eb59 Everytime we use rpc_connect_async() internally, make sure we clear the ->connect_cb so that we dont have a callback function and "private data" being invoked long after the "private data" structure has been free()d. 2011-10-09 19:47:07 +11:00
Ronnie Sahlberg a3d44462cb Sync API: Once the sync nfs_mount() functions is finished we have to clear rpc->connect_cb.
Otherwise we get a crash once the connect_cb callback is invoked the second time.
2011-10-09 19:10:18 +11:00
Ronnie Sahlberg b990de23c6 Only call the "connect callback" if the callback is set to non-NULL 2011-10-09 19:00:24 +11:00
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