Commit Graph

  • 4b307c1714 Merge pull request #10 from Memphiz/master Ronnie Sahlberg 2011-07-11 14:32:07 -0700
  • 41a6209bef [fix] - fix allocation of if list for osx - removed one unneeded header in examples/nfsclient-bcast.c which was breaking build under osx Memphiz 2011-07-11 19:16:13 +0200
  • 9a96dd46d2 We have to include config.h when testing for precense of sockaddr sa_len Ronnie Sahlberg 2011-07-10 08:50:36 +1000
  • 1be803ce7f On OSX and other systems where we have sockaddr_in, SIOCGIFCONF returns a packed list of ifreq structures, so we can not just index them as (struct ifreq *)[i] Ronnie Sahlberg 2011-07-10 08:39:54 +1000
  • 0b470f1e5e Merge pull request #9 from t-nelson/fix_vpath_build Ronnie Sahlberg 2011-07-07 00:11:58 -0700
  • 7ac8057eae Merge pull request #8 from t-nelson/update_gitignore Ronnie Sahlberg 2011-07-07 00:09:34 -0700
  • 56320c681f Fix out-of-tree (VPATH) builds Trent Nelson 2011-07-06 16:33:00 -0400
  • b7e444c6cf Simplify examples Makefile Trent Nelson 2011-07-06 16:32:08 -0400
  • 0916784a7c Add new example bins to .gitignore Trent Nelson 2011-07-06 16:37:06 -0400
  • 1ad6f93185 when ioctl() for getting the broadcast address fails, continue the loop to the next entry instead of exiting out Ronnie Sahlberg 2011-07-04 08:46:19 +1000
  • ae8569b28f Merge pull request #7 from Memphiz/master Ronnie Sahlberg 2011-07-03 06:30:25 -0700
  • b989ca9c36 - fixed missing include for osx Memphiz 2011-07-03 15:25:48 +0200
  • 3847f8f6ae add support got NFSACL protocol and NULL and GETACL procedures. add example of raw interface for NFSACL Ronnie Sahlberg 2011-07-03 15:30:18 +1000
  • f7f931c7e3 add back a check for sa_len in sockaddr structure. Ronnie Sahlberg 2011-07-03 07:41:15 +1000
  • 1b9917b886 With broadcast PDUs we can receive multiple replies so must make sure we delete the previuous unmarshalling buffer when we start over and process the second pdu to the initial call. Ronnie Sahlberg 2011-07-02 12:16:37 +1000
  • fb0cf38eda remove some headers we dont need from the listservers example Ronnie Sahlberg 2011-07-02 11:23:50 +1000
  • 9ab4d56ef9 Add the bcast and the listservers examples to the new build system Ronnie Sahlberg 2011-07-02 11:21:44 +1000
  • 2e4db0d145 Merge remote branch 't-nelson/automake' Ronnie Sahlberg 2011-07-02 11:10:36 +1000
  • 67ec00b286 Pull out changes to Makefile.in so that t-nelsons autobuild changes apply Ronnie Sahlberg 2011-07-02 11:10:05 +1000
  • 9c4212bf55 document the find_all_servers function Ronnie Sahlberg 2011-07-02 10:33:19 +1000
  • 552c766578 add example for sync interface to probe for all local servers Ronnie Sahlberg 2011-07-02 10:30:16 +1000
  • 5e9910f0f0 collect nfs servers into a dedicated list and parse this list and print the results once the response collection timeout has expired Ronnie Sahlberg 2011-07-02 10:04:50 +1000
  • cb46c8fb9d make the bcast example use timers and wait for up to 1 second for all replies to come back in Ronnie Sahlberg 2011-07-02 09:47:20 +1000
  • 92e787feac update the bcast example to broadcast on all available ipv4 interfaces to detect nfs servers on the locally attached networks Ronnie Sahlberg 2011-07-02 09:33:26 +1000
  • 28f7bd6696 add example of broadcast context and broadcasting an RPC call Ronnie Sahlberg 2011-07-02 07:36:09 +1000
  • c3d740919f Remove log path with arg from configure. Trent Nelson 2011-06-28 17:09:00 -0400
  • 4a75cfa214 Fix example linkage under solaris Trent Nelson 2011-06-28 03:54:44 -0400
  • fc01d2a961 Fix compile error on solaris. Trent Nelson 2011-06-28 02:19:21 -0400
  • 13283beb69 Fix solaris bootstrap. Trent Nelson 2011-06-28 02:17:52 -0400
  • 752d8ed28a Add back rpcgen uint64 fix for osx Trent Nelson 2011-06-28 03:10:25 -0400
  • 2842ff15c8 Handle versioning the libtool way. Trent Nelson 2011-06-25 14:21:54 -0400
  • 6c437065d3 Rewrite build system using automake Trent Nelson 2011-06-24 17:23:43 -0400
  • 7ff2f3a01d when destroying a udp rpc context, free any udp_dest data we may have Ronnie Sahlberg 2011-06-26 18:58:54 +1000
  • fd59fd0da3 add a function for portmap/callit for the low level raw interface Ronnie Sahlberg 2011-06-26 18:52:03 +1000
  • 15083e9a6c indentation change in portmap.x Ronnie Sahlberg 2011-06-26 18:48:53 +1000
  • 5cb18618bc for portmap callit, change call_args and rell_result to prefix them with pmap_ to avoid polluting the namespace too bad Ronnie Sahlberg 2011-06-26 18:47:33 +1000
  • c481da67f2 add function to extract the sockaddr from which we received the current rpc pdu (useful when parsing replies from broadcast rpc calls) Ronnie Sahlberg 2011-06-26 18:45:38 +1000
  • 5bf60dc601 add function to set the target for UDP rpc calls. including doing broadcast calls Ronnie Sahlberg 2011-06-26 18:42:53 +1000
  • 485bc9b9a7 add function to bind a udp rpc context to a local port/address Ronnie Sahlberg 2011-06-26 18:40:00 +1000
  • 870b3764ac change the portmapper structure 'mapping' to 'pmap_mapping' so we dont pollute the namespace when not needed Ronnie Sahlberg 2011-06-26 18:35:01 +1000
  • 070287e516 Dont allow a tcp _connect to a UDP context Ronnie Sahlberg 2011-06-26 18:32:06 +1000
  • 0268794fe3 add capability to read UDP datagrams from the socket and pass them to the parser Ronnie Sahlberg 2011-06-26 18:30:26 +1000
  • 2d0c44ced1 add a sockaddr_storage so we can store the socket UPD packets came in from Ronnie Sahlberg 2011-06-26 18:29:49 +1000
  • 5911f3e8ab for UDP sockets, we ONLY wait for pollin events since upd sockets are always writeable. they just silently drop packets when congested Ronnie Sahlberg 2011-06-26 18:26:34 +1000
  • a669857d0d add support for sending and receiving udp pdu Ronnie Sahlberg 2011-06-26 18:24:24 +1000
  • a9b241622f add a sockaddr_storage to the rpc context so we can store the socket a upd packet came in from Ronnie Sahlberg 2011-06-26 18:22:45 +1000
  • 2ae460667b add a 'is broadcast' flag to the rpc context structure this is used for broadcast udp rpc calls (==pormatp/callit) Ronnie Sahlberg 2011-06-26 18:18:59 +1000
  • a19924120d in allocate pdu, if context is udp, dont allocate space for a record marker Ronnie Sahlberg 2011-06-26 17:30:00 +1000
  • 9e00b8c663 add function to request a UDP context (private use only since we dont want applications to use UDP) Ronnie Sahlberg 2011-06-26 17:27:40 +1000
  • d16a3ca4bb add rpc_context field to track if a UDP connection was requested Ronnie Sahlberg 2011-06-26 17:17:59 +1000
  • 57187d219a add test reading from non-0 offset to the sync api example Ronnie Sahlberg 2011-06-25 15:05:50 +1000
  • 947e89301b add RPC definition for the portmapper/callit function Ronnie Sahlberg 2011-06-25 13:59:12 +1000
  • 7ed9d87a5b redo the previous patch to instead initialize max_offset correctly before we invoke the chunks. Ronnie Sahlberg 2011-06-25 12:23:52 +1000
  • 215228a23d handle the case where we try a multi-read that is completely beyond the end of file. Ronnie Sahlberg 2011-06-25 12:13:11 +1000
  • 739df145d6 fix crash in mount/export Ronnie Sahlberg 2011-06-25 11:06:53 +1000
  • 1e8994af0f 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()" Ronnie Sahlberg 2011-06-21 18:33:50 +1000
  • e4a5ba42b8 When doping chunked multi-reads of a blob bigger than the max readsize, a read can sometimes span beyond the end of file. Ronnie Sahlberg 2011-06-21 06:07:29 +1000
  • e8cab72a79 From Paul van der Zwan Ronnie Sahlberg 2011-06-20 01:02:48 +1000
  • cdb19ec164 Redo the buffer handling for input buffers and make sure we only read one PDU at a time Ronnie Sahlberg 2011-06-20 00:56:47 +1000
  • e210bd2af8 remove the need for an explicit rpc context for the highlevel function mount_getexports() Ronnie Sahlberg 2011-06-19 23:20:35 +1000
  • df5af25fd2 add a sync function to get the export list from a server and add an example of how to use this functio n to nfsclient-sync Ronnie Sahlberg 2011-06-19 22:31:34 +1000
  • 7f0242ca9a Add a high-level async function to read the export list Ronnie Sahlberg 2011-06-19 14:54:17 +1000
  • 440a7dfced Add example for how to call MOUNT/EXPORT and get the exports list using the raw lowlevel api. Ronnie Sahlberg 2011-06-19 10:28:25 +1000
  • 1896d37bfa get rid of all remaining printfs from the library Ronnie Sahlberg 2011-06-19 09:38:20 +1000
  • 5f9d02f839 get rid of compiler warning Ronnie Sahlberg 2011-06-19 09:05:20 +1000
  • cbbf9d3e81 remove all printf's and replace them with rpc_set_error() Ronnie Sahlberg 2011-06-19 09:03:04 +1000
  • 921f877be4 Add support in read/pread to be aware of the Maximum Read size that the server suggested. Ronnie Sahlberg 2011-06-19 08:43:28 +1000
  • e2ba5764d4 Remove the _sync postfix for the synchronous functions Ronnie Sahlberg 2011-06-18 15:07:53 +1000
  • bc11f4c3f1 Merge pull request #5 from OpenELEC/libnfs-destdir Ronnie Sahlberg 2011-06-11 16:10:09 -0700
  • 3d1fec08f7 Merge pull request #4 from Memphiz/readme Ronnie Sahlberg 2011-06-11 16:07:09 -0700
  • 310bb382d4 add DESTDIR support, needed for crosscompiling; dont hardcode /usr/include - use --includedir= instead on configure time Stephan Raue 2011-06-11 23:25:07 +0200
  • d20a6d6bcd Disable run of ldconfig if crosscompiling too Stephan Raue 2011-06-11 23:22:19 +0200
  • 2461e2117e - adapted README with tested plattforms Memphiz 2011-06-11 19:37:28 +0200
  • 81132c6dcb Merge pull request #3 from Memphiz/originalnfs2 Ronnie Sahlberg 2011-06-10 15:04:51 -0700
  • e644e70061 - 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... Memphis 2011-06-08 17:19:32 +0200
  • 2060155945 - make unsigned hyper overridable by cmdline by specifying -DU_INT64_PLATTFORM_TYPE to rpcgen Memphiz 2011-06-08 00:23:59 +0200
  • fb109a12e1 - 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 2011-06-08 00:23:04 +0200
  • 23701e4246 - 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 Memphiz 2011-06-08 00:22:37 +0200
  • 2e4fb8e647 - fixed library path for mac osx (there is no lib64 path here...) Memphiz 2011-06-07 00:02:17 +0200
  • 77c23b46c0 Add support for version 2 of the rquota protocol Ronnie Sahlberg 2011-06-02 22:16:42 +1000
  • 19e74f5a32 Add RQUOTA1/GETACTIVEQUOTA call to the raw low level API Ronnie Sahlberg 2011-06-02 22:06:25 +1000
  • 734ab63acd Merge pull request #1 from Memphiz/originalnfs Ronnie Sahlberg 2011-06-02 00:48:03 -0700
  • c353ec247e - missing rpc/rpc.h for new rquota too Memphiz 2011-06-01 19:10:23 +0200
  • 98f5fee87d - linux, osx, and ios need rpc/rpc.h includede before rpc/xdr.h - fixed some missing includes for bzero, malloc and free Memphis 2011-06-01 18:06:15 +0200
  • a62cb4b707 - include string.h for memcpy Memphis 2011-06-01 18:05:50 +0200
  • d6ced294d8 - refactored parametername from reserved keyword "export" to "exportname" Memphis 2011-06-01 18:05:18 +0200
  • 684c77edb0 - removed unneeded dependency to libpopt Memphis 2011-06-01 18:04:53 +0200
  • ea214e4566 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. Ronnie Sahlberg 2011-06-01 21:31:40 +1000
  • 05a777d98a Initial support for RQUOTA protocol Ronnie Sahlberg 2011-06-01 20:55:27 +1000
  • 7d0397cf0f get rid of some compiler warnings Ronnie Sahlberg 2011-06-01 00:12:55 +1000
  • 17ef62fad7 Read the max read/write sizes supported when connecting to NFS and store in the nfs context. Privide accessor functions to read the max sizes. Ronnie Sahlberg 2011-06-01 00:08:29 +1000
  • f4b9cb0e0f Add example of NFS/FSINFO async call Ronnie Sahlberg 2011-05-31 23:50:44 +1000
  • 1058201ef0 Add support for async version of NFS/FSINFO3 call Ronnie Sahlberg 2011-05-31 23:50:18 +1000
  • 912f7ad5b0 Use getsockopt to extract better failure condition when tcp layer receives a failure Ronnie Sahlberg 2011-02-07 22:11:12 +1100
  • f7b81274cb README: mention that you need "insecure" to use libnfs as non-root user Ronnie Sahlberg 2011-02-06 16:39:37 +1100
  • 84004dbf9b initial libnfs checkin Ronnie Sahlberg 2011-02-06 15:45:09 +1100