Ronnie Sahlberg
4ca1e05f4e
rpcgen: fix compilation of nfs header file
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2022-01-05 13:10:06 +10:00
Ronnie Sahlberg
1716b14104
Write PDUs straight to the wire when the queue is empty
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2022-01-05 13:10:00 +10:00
Ronnie Sahlberg
630a80c056
WIN32: add multithreading support for windows
2022-01-02 13:02:31 +10:00
Ronnie Sahlberg
1648cd8393
remove strndup call
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2021-12-31 11:53:33 +10:00
Ronnie Sahlberg
efa9085cfa
add support for nfsv3 getacl
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2021-12-31 11:42:48 +10:00
Ronnie Sahlberg
c851f458a0
multithreading: fix race for waking blocked worker threads
...
We must make sure that we prepare and process all the returned data
before we wake the thread that is waiting for the i/o to complete
or else we will have a race between waking the thread and copying
the returned data in the service thread.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2021-12-31 08:28:20 +10:00
Ronnie Sahlberg
20b39fd251
PS2_EE: update to compile on latest ps2 sdk
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2021-10-15 18:14:18 +10:00
Ronnie Sahlberg
52c7bd7bc5
multithreading: return default error string when multithreading is
...
enabled
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2021-10-14 16:31:42 +10:00
Ronnie Sahlberg
f55637619e
initial pthread support
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2021-10-14 16:31:26 +10:00
Ronnie Sahlberg
81f4609076
Merge pull request #365 from vitalif/master
...
Don't try to ZDR_DECODE strings into a pre-existing pointer
2021-10-11 21:39:24 +10:00
Vitaliy Filippov
d1999dc956
Don't try to ZDR_DECODE strings into a pre-existing pointer
...
Otherwise it segfaults inside any string decoding inside rpc_process_call()
as it doesn't zero the allocated memory, so libnfs_zdr_string() may receive
non-zero *strp which is very easy to reproduce by writing a simple NFS server
example using libnfs :-)
2021-10-11 00:55:14 +03:00
Ronnie Sahlberg
4fa3b79569
Merge pull request #364 from Daniel-Abrecht/strndup
...
Fix mingw build: add strndup implementation to win32_compat.c
2021-10-04 16:43:21 +10:00
Daniel Abrecht
939814826f
Fix mingw build: add strndup implementation to win32_compat.c
2021-10-03 12:51:42 +00:00
Ronnie Sahlberg
b1fbe322be
Merge pull request #363 from rhynec/master
...
Fix PS3 Build - Include nfs4 files in compilation.
2021-10-03 06:12:29 +10:00
rhynec
f6a3b0147d
Fix PS3 Build - Include nfs4 files in compilation.
...
Compilation failed due to changes introduced in cdb377532a
. This is a test patch to see if compilation succeeds with this minor change.
2021-10-02 12:32:42 -05:00
Ronnie Sahlberg
f965ec74cf
ps2ee: PS2 EE support
...
Initial support for building a library for PS2 EmotionEngine
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2021-09-17 07:27:44 +10:00
Ronnie Sahlberg
f88cca547d
nfsv4: fix inode in readdir and nulltermination of readlink
...
Reported-by: Hemambara Kurma <hemambara.kurma@rubrik.com>
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2021-09-08 10:27:57 +10:00
Ronnie Sahlberg
fca28fe112
url: add support for using escaped characters in the url.
...
We need to allow users to specify escaped characters as part of the 'path'
field of a URL.
For example, '?' is used to separate the part and the optional list of
arguments.
IF 'path' contains a '?' character then that must be escaped as %3F.
So that libnfs will be able to tell it apart from the '?' separator.
I.e.
nfs://127.0.0.1/my?path/?version=4
must be escaped as
nfs://127.0.0.1/my%3Fpath/?version=4
before passed to any of the URL parsing functions.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2021-09-01 08:17:23 +10:00
Ronnie Sahlberg
820dc73e32
nfsv3: fix crash when performing very large reads
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2021-08-11 06:12:06 +10:00
Ronnie Sahlberg
965b1914ef
Allow setting max read/write size from the api
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2021-08-10 16:29:42 +10:00
Ronnie Sahlberg
af90dbfbcf
nfs4: update the makefile to do the c++ tweaks automatically
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2021-07-20 19:07:36 +10:00
Ronnie Sahlberg
d1494d41de
nfs4: tweak the raw headerfile for c++
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2021-07-20 18:16:41 +10:00
Ronnie Sahlberg
752cb4134d
url: add support for server:port syntax in the url
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2021-07-18 07:46:09 +10:00
Ronnie Sahlberg
cdb377532a
acl: add support and helpers to read nfsv4 acls
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2021-07-17 20:11:56 +10:00
Ronnie Sahlberg
1cdc8657de
nfs-io: stat, print sStT bits properly
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2021-07-17 20:11:46 +10:00
Ronnie Sahlberg
be437aa102
utils: add a nfs-stat utility
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2021-07-17 20:11:37 +10:00
Ronnie Sahlberg
a7c6637980
Merge pull request #336 from Daniel-Abrecht/master
...
Define u_int in libnfs-zdr.h for mingw again
2020-11-28 06:58:55 +10:00
Daniel Abrecht
4ae2f12b74
Define u_int in libnfs-zdr.h for mingw again
...
The typedef for u_int was removed in 172f46756e
,
assuming that sys/types.h defines it. This doesn't seam to be the case on mingw.
2020-11-27 20:43:43 +01:00
Ronnie Sahlberg
9a10e17800
Merge pull request #330 from bucanero/master
...
sys/time.h include clean-up (PS3 PPU)
2020-08-18 11:38:20 +10:00
Damian
901d4a0040
sys/time.h include clean-up (PS3 PPU)
2020-08-17 21:14:30 -03:00
Ronnie Sahlberg
bbb9c337b5
Merge pull request #329 from bucanero/master
...
Rename to avoid linking issues
2020-08-18 07:22:14 +10:00
Damian Parrino
5f74b69624
Rename to avoid linking issues
2020-08-17 11:15:07 -03:00
Ronnie Sahlberg
da61d648e6
Merge pull request #328 from bucanero/master
...
PlayStation 3 port
2020-08-16 04:02:18 +10:00
Damian
0df1d4beac
include clean-up
2020-08-15 11:35:55 -03:00
Damián Parrino
ef0056cd13
Update README
2020-08-15 11:31:11 -03:00
Damian
1bafddb264
Include clean-up
2020-08-15 11:28:04 -03:00
Damian
c14a5acb51
Porting to PS3
2020-08-14 19:30:00 -03:00
Damian
c7ad0762d8
Porting library to PS3 (psl1ght)
2020-08-14 11:47:39 -03:00
Ronnie Sahlberg
ef0ca03565
Merge pull request #326 from asomers/u_int
...
Don't define u_int
2020-08-01 07:19:41 +10:00
Ronnie Sahlberg
8cf8c620f3
Merge pull request #325 from asomers/gitignore
...
Remove .c and .h from .gitignore
2020-08-01 07:18:09 +10:00
Alan Somers
172f46756e
Don't define u_int
...
It's usually defined by the platform in types.h or sys/types.h.
The compiler complains if libnfs redefines it.
2020-07-26 15:13:13 -06:00
Alan Somers
2b3e8f450b
Remove .c and .h from .gitignore
...
I think these were accidentally included in revision
6c437065d3
2020-07-26 15:12:42 -06:00
Ronnie Sahlberg
cf47ea7e6a
Merge pull request #324 from adamyi/master
...
Fix seekdir
2020-06-23 08:35:35 +10:00
Adam Yi
dfa85d4c36
Fix seekdir
...
The previous implementation doesn't actually update dir->current but
resets dir->current to dir->entries
2020-06-23 02:11:33 +10:00
Ronnie Sahlberg
17f882fbdb
tests: disable test 0101
...
Modern versions of portmapper/mount daemon no longer respond to
broadcast rpc so nfs server discovery no longer works.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2020-06-09 13:44:49 +10:00
Ronnie Sahlberg
c5d022b638
nfsv4.1 Add SECINFO[_NO_NAME] operations
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2020-06-08 14:42:16 +10:00
Ronnie Sahlberg
da2a3dd9d3
nfsv4.1 Add RECLAIM_COMPLETE operation
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2020-06-08 14:29:17 +10:00
Ronnie Sahlberg
ff73bb6cc3
nfsv4.1 Add DESTROY_CLIENTID operation
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2020-06-08 14:26:42 +10:00
Ronnie Sahlberg
de3d1e5f3f
nfsv4.1 Add WANT_DELEGATION operation
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2020-06-08 14:24:09 +10:00
Ronnie Sahlberg
d690031049
nfsv4.1 Add TEST_STATEID operation
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2020-06-08 14:18:26 +10:00