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
Dirk Meister
1336b5280e
Fix NFS4 behavior of chmod/chown/utimes
...
This patch fixes various issues around chmod/chown/utimes:
- The chmod/chown/utimes approach uses open_async_internal, which only works
for files. This patch uses lookup_path so that chmod/chown is also
possible on directories.
- Implements SET_TO_SERVER for utimes
I never succeeded in getting all tests passing even without
these changes. Nor did I succeed in getting the CMake compilation to
work. Sorry. The patch includes extra unit tests for these calls.
We use the libary as part of a test harness to test an NFS server
implementation, so I am reasonably confident that the changes work.
They are also manually tested against the Linux Kernel NFS Server.
2020-05-18 20:50:01 -07:00
crusader-mike
6564abaa1f
fixed CMake build on windows, few trivial fixes
2019-09-12 15:07:35 -05:00
Ronnie Sahlberg
ca939ba918
Merge pull request #283 from rbalint/master
...
Really skip test building rpm package in not rpm-based systems
2019-05-08 21:32:03 +10:00
Ronnie Sahlberg
9e031df11d
check return for write() in one of the test tools
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2019-02-05 13:18:11 +10:00
Balint Reczey
d214e3376b
Really skip test building rpm package in not rpm-based systems
2019-01-07 17:37:01 +07:00
Ronnie Sahlberg
48a559cb47
Add nfs_statvfs64()
...
Add a new function nfs_statvfs64() that returns a struct nfs_statvfs_64
where all fields are uint64_t.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2018-12-26 13:33:38 +10:00
Ronnie Sahlberg
21e208b092
fix bug in nfsv4 opendir where it stripped off the final path component
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2018-07-12 18:42:44 +10:00
Ronnie Sahlberg
456e52507b
Don't use portmapper to discover the port for NFSv4
...
Default to use port 2049. If server runs on a different port then
we must manually override this with the nfsport flag.
NFSv4 servers can run without any portmapper daemon at all and we
must be prepared for that.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2018-04-29 13:46:22 +10:00
Lukas Rusak
7969c78291
add cmake build system support
2017-10-02 13:00:33 -07:00
Ronnie Sahlberg
8489557694
NFSv4: add utimes/lutimes support
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-09-03 06:25:55 +10:00
Ronnie Sahlberg
5ebd10f54c
NFSv4: Add access()/access2()
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-09-03 05:43:04 +10:00
Ronnie Sahlberg
4c6d19b3b8
NFSv4: Add support for chown/lchown/fchown
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-09-02 06:42:59 +10:00
Ronnie Sahlberg
6c034223fd
NFSv4: Add support for chmod/lchmod/fchmod
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-09-01 14:02:43 +10:00
Ronnie Sahlberg
c7655f90ca
NFSv4: Add support for statvfs()
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-08-27 07:56:19 +10:00
Ronnie Sahlberg
8f12f7f0a0
NFSv4: Add lseek() support.
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-08-26 08:05:12 +10:00
Ronnie Sahlberg
d39017a43a
NFSv4: Add tests for truncate()
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-08-26 01:47:07 +10:00
Ronnie Sahlberg
73b81297e7
NFSv4: Add support for ftruncate()
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-08-26 01:31:25 +10:00
Ronnie Sahlberg
f1c7b96610
NFSv4: We only need 18 events to stat a file in v4. Update the timeout test.
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-08-15 20:15:43 +10:00
Ronnie Sahlberg
bd95371005
NFSv4: Add support for mknod()
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-08-15 20:05:47 +10:00
Ronnie Sahlberg
efb21535ab
NFSv4: Use nfs->mask when create the default mode for open(O_CREAT)
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-08-06 18:57:55 +10:00
Ronnie Sahlberg
65a0110476
NFSv4: Add support for open(O_CREAT)
...
Add support for O_CREAT for NFSv4. Note, it is not implemented for NFSv3.
While it creates files we still need to add plumbing to get umask
implemented or else all files created will have mode 0.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-08-06 18:43:28 +10:00
Ronnie Sahlberg
17cf8d39fa
NFSv4: Document how to run the tests for NFSv4
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-08-06 09:11:58 +10:00
Ronnie Sahlberg
65de83140a
NFSv4: Add support (and tests) for open(O_APPEND)
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-08-03 20:25:59 +10:00
Ronnie Sahlberg
42d14779b7
NFSv4: Add support for open(O_TRUNC)
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-30 08:36:18 +10:00
Ronnie Sahlberg
61e071d448
NFSv4: Add support for nfs_[p]write()
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-29 19:52:41 +10:00
Ronnie Sahlberg
5a78bd5a7a
NFSv4: Update nfs_open() to support symlinks
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-28 19:39:27 +10:00
Ronnie Sahlberg
0d9dd0ee44
NFSv4 Add support for nfs_open() nfs_fstat64() nfs_close()
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-26 14:26:29 +10:00
Ronnie Sahlberg
93fbecd7c1
NFSv4 Add support for nfs_rmdir()
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-14 07:04:28 +10:00
Ronnie Sahlberg
8a9fceb725
NFSv4: Add support for nfs_mkdir2()
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-13 23:04:35 +10:00
Ronnie Sahlberg
3ced39f567
Rework the NFSv4 path lookup framework so it handles symlinks properly.
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-13 18:22:27 +10:00
Ronnie Sahlberg
8df917633d
TESTS: Tweak timeout test settings
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-08 15:00:23 +10:00
Ronnie Sahlberg
0d95058e4e
TESTS: Add tests for nfs_lstat64()
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-08 13:38:32 +10:00
Ronnie Sahlberg
70197d5ab8
TETS: rename the tests
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-04 08:43:55 +10:00
Ronnie Sahlberg
4ed461ffee
TESTS Add tests for nfs_open()
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-04 08:18:13 +10:00
Ronnie Sahlberg
6144c01732
TESTS: Add path and valgrind leak tests for nfs_fstat64()
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-03 10:27:03 +10:00
Ronnie Sahlberg
422713e701
TESTS: Add path adn valgrind tests for nfs_stat64()
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-03 10:10:46 +10:00
Ronnie Sahlberg
abf2f7fc70
TESTS: Split the leak checks tests out based on function
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-03 07:39:50 +10:00
Ronnie Sahlberg
6ea6002e08
Fix nfs_creat() so it works with local directories and add tests
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-03 07:01:07 +10:00
Ronnie Sahlberg
9fdc774bf3
TESTS: add tests for mknod
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-02 12:28:06 +10:00
Ronnie Sahlberg
aff3099f00
TEST: add tests for nfs_link
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-02 10:42:19 +10:00
Ronnie Sahlberg
c6ac1b5a14
Make nfs_unlink work for local paths and add tests
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-02 09:31:17 +10:00
Ronnie Sahlberg
e1a2f9f5e7
Allow mkdir/rmdir to work for the local directory and add tests
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-02 08:52:36 +10:00
Ronnie Sahlberg
0c5732eb26
Fix SEGV in rename error paths and add tests
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-02 07:48:56 +10:00
Ronnie Sahlberg
903021ed59
TESTS: Tests and fixes for nfs_rename
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-01 17:10:23 +10:00
Ronnie Sahlberg
ea94d4e3a6
nfs_symlink: Fix it so we can create symlinks in the current directory
...
Fix a bug in hte symlink code that required that linkname contained at least one
path component and thus prevented us from creating symlinks in the current
directory.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-01 10:19:00 +10:00
Ronnie Sahlberg
8fa13b3a90
TESTS: improve softlink tests and validate the links are visible locally
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-01 09:21:57 +10:00
Ronnie Sahlberg
db6d0836f4
TESTS: add tests for symlink/readlink
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-07-01 08:40:59 +10:00
Ronnie Sahlberg
659874b1ce
TESTS: Verify we do not leak memory on timeouts
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-06-29 09:02:49 +10:00
Ronnie Sahlberg
04cdb72bb1
TESTS: Verify we fail on RPC timeouts
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2017-06-29 08:34:44 +10:00