Permalink
Commits on Jul 8, 2017
  1. pdu->timeout needs to be uint64_t

    pdu->timeout is the timeout for for the pdu using the unix epoch but
    expressed in ms, not seconds.
    As such it must be 64 bit as on 32 bit we would have already wrapped the
    timer.
    
    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 8, 2017
  2. rpc->timeout does not need to be 64 bit

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 8, 2017
  3. Fix compiler warnings about cast from char* -> uint32_t*

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 8, 2017
  4. TESTS: Tweak timeout test settings

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 8, 2017
  5. Change the paths for the nfs includes from libnfs-private.h

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 8, 2017
  6. NFSv4: add support for nfs_lstat64()

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 8, 2017
  7. TESTS: Add tests for nfs_lstat64()

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 8, 2017
  8. Don't use random()/srandom()

    We can create a initial verifier that is good enough by just using
    the current time and the pid.
    
    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 8, 2017
  9. WIN32: Update the project file with nfs_v4.c (and the renamed nfs_v3.c)

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 8, 2017
Commits on Jul 7, 2017
  1. Merge branch 'nfsv4'

    committed Jul 7, 2017
  2. Bump the pdu timeout by 1000ms when we do not have clock_gettime()

    If we fallback to time() we have 1 second granularity of our timestamps.
    Thus we need to bump the pdu timestamp we set by this granularity or
    the timeout will trigger too early.
    
    For a 1s timeout, this means that we now will trigger the timeout between
    1.0 - 2.0 seconds instead of the previous  0.0 - 1.0 seconds.
    
    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 7, 2017
  3. Make valgrind happy for libnfs_zdr_bytes

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 7, 2017
  4. NFSv4: Add support for nfs_stat64()

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 7, 2017
Commits on Jul 6, 2017
  1. NFS4: Add support to nfs_mount()

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 5, 2017
Commits on Jul 3, 2017
  1. TETS: rename the tests

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 3, 2017
  2. TESTS Add tests for nfs_open()

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 3, 2017
  3. Typos

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 3, 2017
  4. Reformat socket.c

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 3, 2017
  5. Reformat libnfs.h

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 3, 2017
  6. TESTS: Add path and valgrind leak tests for nfs_fstat64()

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 3, 2017
  7. TESTS: Add path adn valgrind tests for nfs_stat64()

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 3, 2017
Commits on Jul 2, 2017
  1. TESTS: Split the leak checks tests out based on function

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 2, 2017
  2. Fix nfs_creat() so it works with local directories and add tests

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 2, 2017
  3. TESTS: add tests for mknod

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 2, 2017
  4. TEST: add tests for nfs_link

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 2, 2017
Commits on Jul 1, 2017
  1. Make nfs_unlink work for local paths and add tests

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 1, 2017
  2. Allow mkdir/rmdir to work for the local directory and add tests

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 1, 2017
  3. Fix SEGV in rename error paths and add tests

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 1, 2017
  4. TESTS: Tests and fixes for nfs_rename

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 1, 2017
  5. 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>
    committed Jul 1, 2017
Commits on Jun 30, 2017
  1. TESTS: improve softlink tests and validate the links are visible locally

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jun 30, 2017
  2. More reformatting of libnfs-raw.h

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jun 30, 2017
  3. README: clarify status of nfsv4 support. I.e. not yet functional.

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jun 30, 2017
  4. Merge branch 'nfsv4'

    committed Jun 30, 2017
  5. TESTS: add tests for symlink/readlink

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jun 30, 2017