Ronnie Sahlberg
0e37be0339
Document the new url argument to disable autoreconnect
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-05-10 18:28:51 -07:00
Ronnie Sahlberg
367ef3b189
Merge pull request #213 from earlchew/issues-212
...
Allow autoreconnect to be disabled
2017-05-10 18:13:56 -07:00
Ronnie Sahlberg
2db0878396
Use clock_gettime(CLOCK_MONOTONIC_COARSE) if/when available
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-05-10 18:11:00 -07:00
Ronnie Sahlberg
14adfbfc4b
Merge pull request #211 from earlchew/issues-210
...
Check result of FSINFO before using result in nfs_mount_10_cb()
2017-05-09 22:26:23 -07:00
Ronnie Sahlberg
d8d9e5556b
Merge pull request #214 from earlchew/issues-206-01
...
Return an error if either readmax or writemax are less than NFSMAXDATA2
2017-05-09 22:07:18 -07:00
Earl Chew
2f041424d5
Return an error if either readmax or writemax are less than NFSMAXDATA2
...
Signed-off-by: Earl Chew <earl_chew@yahoo.com>
2017-05-09 21:55:03 -07:00
Earl Chew
5e43d0a92f
Allow autoreconnect to be disabled
...
Signed-off-by: Earl Chew <earl_chew@yahoo.com>
2017-05-09 21:43:31 -07:00
Earl Chew
63d6679132
Check result of FSINFO before using result in nfs_mount_10_cb()
...
Signed-off-by: Earl Chew <earl_chew@yahoo.com>
2017-05-09 21:35:30 -07:00
Ronnie Sahlberg
bf7d983812
Merge pull request #208 from earlchew/issues-200
...
Latch error return from nfs_mount_8_cb()
2017-05-09 21:29:22 -07:00
Earl Chew
6e99d36587
Latch error return from nfs_mount_8_cb()
...
Signed-off-by: Earl Chew <earl_chew@yahoo.com>
2017-05-09 21:22:46 -07:00
Earl Chew
c7995b4fec
Revert "Provide error return from nfs_mount_8_cb()"
...
This reverts commit a4de2ec926
.
Signed-off-by: Earl Chew <earl_chew@yahoo.com>
2017-05-09 21:22:06 -07:00
Ronnie Sahlberg
13c253673b
We do not need an async version of readlink2
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-05-09 14:56:44 -07:00
Ronnie Sahlberg
973d368867
Merge pull request #194 from earlchew/issues-187
...
nfs_readlink2: Return symlink without incurring ENAMETOOLONG
2017-05-09 14:55:27 -07:00
Ronnie Sahlberg
519686356c
Export the nfs_readlink2[_async] symbols from the win32/64 DLL
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-05-09 14:53:12 -07:00
Ronnie Sahlberg
0d955176de
Changelog updates
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-05-09 14:51:37 -07:00
Ronnie Sahlberg
ba44a82bc9
Merge branch 'master' of github.com:sahlberg/libnfs
2017-05-09 14:50:22 -07:00
Ronnie Sahlberg
0fcb574710
Merge pull request #203 from earlchew/issues-199
...
Free inbuf in rpc_destroy_context()
2017-05-09 14:50:12 -07:00
Ronnie Sahlberg
ebd98bf966
Merge branch 'master' into issues-199
2017-05-09 14:49:58 -07:00
Ronnie Sahlberg
a646519d68
Changelog updates
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-05-09 14:47:44 -07:00
Ronnie Sahlberg
36d5cf8a1c
Merge pull request #204 from earlchew/issues-200
...
Provide error return from nfs_mount_8_cb()
2017-05-09 14:33:03 -07:00
Ronnie Sahlberg
5b28ab5d53
Include sys/sysmacros.h on platforms that have it
...
This addresses issue 202
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-05-09 14:30:14 -07:00
Earl Chew
a4de2ec926
Provide error return from nfs_mount_8_cb()
...
Signed-off-by: Earl Chew <earl_chew@yahoo.com>
2017-05-09 07:15:11 -07:00
Earl Chew
be6fd2b098
Free inbuf in rpc_destroy_context()
...
Signed-off-by: Earl Chew <earl_chew@yahoo.com>
2017-05-09 07:10:23 -07:00
Ronnie Sahlberg
43346ffd02
Make O_NONBLOCK and O_SYNC conditional if they have not yet been defined
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-05-08 22:33:45 -07:00
Earl Chew
e74846219a
nfs_readlink2: Return symlink without incurring ENAMETOOLONG
...
Signed-off-by: Earl Chew <earl_chew@yahoo.com>
2017-05-08 21:56:50 -07:00
Earl Chew
e788078e20
Revert "nfs_readlink2: Return symlink without incurring ENAMETOOLONG"
...
This reverts commit 1af36b4c77
.
Signed-off-by: Earl Chew <earl_chew@yahoo.com>
2017-05-08 21:55:54 -07:00
Ronnie Sahlberg
987638a384
Win32/64 does not have O_NOFOLLOW
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-05-08 21:11:00 -07:00
Ronnie Sahlberg
ea3ee73e23
Merge pull request #192 from earlchew/issue-191
...
nfs_open: Support O_NOFOLLOW
2017-05-08 21:00:55 -07:00
Ronnie Sahlberg
15c7b4c33a
Add mkdir2() to the symbols we export for win32/64
...
and will at some point restrict export to for .so libraries as well.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-05-08 20:54:36 -07:00
Ronnie Sahlberg
2589086ce5
Merge pull request #193 from earlchew/issues-189
...
nfs_mkdir2: Include permissions when creating a new directory
2017-05-08 20:52:55 -07:00
Ronnie Sahlberg
3ad4ac1b1e
Merge branch 'master' of github.com:sahlberg/libnfs
2017-05-08 18:40:10 -07:00
Ronnie Sahlberg
10b102fef2
Update changelog
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-05-08 18:39:58 -07:00
Ronnie Sahlberg
b5c5d5901e
Add support for rpc timeouts to the async interface
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-05-08 18:38:42 -07:00
Ronnie Sahlberg
58ee12fcc7
Merge pull request #198 from earlchew/issues-197
...
Release callback data on nfs_create_2_cb() failure
2017-05-08 15:55:01 -07:00
Earl Chew
b356c06eca
Release callback data on nfs_create_2_cb() failure
...
Signed-off-by: Earl Chew <earl_chew@yahoo.com>
2017-05-08 15:44:48 -07:00
Ronnie Sahlberg
4abadb7943
Remove old declarations of nfs_get|set_timeout
...
The new ones in the previous patch are much nicer and have better
documentation.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-05-05 08:41:06 -07:00
Ronnie Sahlberg
f2fffe858f
Merge pull request #196 from earlchew/issues-195
...
libnfs: Export nfs_set_timeout() and nfs_get_timeout()
2017-05-05 08:34:52 -07:00
Earl Chew
b01776cf94
libnfs: Export nfs_set_timeout() and nfs_get_timeout()
...
Signed-off-by: Earl Chew <earl_chew@yahoo.com>
2017-05-05 08:02:29 -07:00
Earl Chew
1af36b4c77
nfs_readlink2: Return symlink without incurring ENAMETOOLONG
...
Signed-off-by: Earl Chew <earl_chew@yahoo.com>
2017-05-05 07:57:28 -07:00
Earl Chew
adcfda60fa
nfs_mkdir2: Include permissions when creating a new directory
...
Signed-off-by: Earl Chew <earl_chew@yahoo.com>
2017-05-05 07:55:09 -07:00
Earl Chew
9bd2ceddd3
nfs_open: Support O_NOFOLLOW
...
Signed-off-by: Earl Chew <earl_chew@yahoo.com>
2017-05-05 07:50:35 -07:00
Ronnie Sahlberg
7b34b940b2
Changelog updates
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-05-03 15:55:12 -07:00
Ronnie Sahlberg
64f7e73ded
Fix bug in nfs_link when using the wrong(invalid) handle when dropping cache
...
This should be a fix for issue 186
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-05-02 17:50:47 -07:00
Ronnie Sahlberg
24064e96d2
Add example util for nfs_link()
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-05-02 17:36:27 -07:00
Ronnie Sahlberg
a523f84353
Clamp read/write max size for servers that accept huge PDUs
...
Clamp the max read write size we handle to NFS_MAX_XFER_SIZE for servers
that advertize very large PDU support instead of erroring out.
Fix for issue #188
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-05-01 20:37:35 -07:00
Ronnie Sahlberg
1052ba9473
Merge pull request #178 from kevin-vigor/master
...
Make nfs_close_async call flush on the file handle before disposing of it.
2017-04-03 17:46:06 -07:00
Kevin Vigor
9e2dc9795a
Make nfs_close_async call flush on the file handle before disposing of it.
2017-04-03 14:30:03 -06:00
Ronnie Sahlberg
9d2e13c04b
Add a CHANGELOG
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-03-28 08:12:09 -07:00
Ronnie Sahlberg
e22538c7d0
Merge pull request #177 from billziss-gh/master
...
Cygwin should not use winsock2
2017-03-25 11:48:49 -07:00
Bill Zissimopoulos
e35a44e2bf
Cygwin should not use winsock2.
...
The configure.ac script was erroneously including -lws2_32,
i.e. the winsock2 library. Cygwin is a full POSIX environment
and does not need the winsock2 functionality as it supplies its
own POSIX compatible sockets.
Including -lws2_32 caused getnameinfo to fail with error 10093
(WSANOTINITIALISED). This usually means that the Winsock
WSAStartup function has not been called. Calling WSAStartup is
not necessary for Cygwin programs and in fact should be avoided.
2017-03-25 11:43:54 -07:00