Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Aug 16, 2014
  1. types: remove the [u_]quad type and replace with [u]int64

    authored
    All current platforms have a quad type that maps to a 64bit scalar.
    But there are platforms where quad maps to a 64bit non-scalar.
    
    Replace quad with int64 in the protocol definitions and the ZDR layer
    so that these fields will map to a 64 bit scalar also on those platforms
    where quad can not be used.
    
    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
  2. Merge pull request #99 from mheijkoop/fuse-nfs-usage

    authored
    Fix help message for fuse_nfs example
  3. Marlies Heijkoop
  4. Marlies Heijkoop
Commits on Aug 15, 2014
  1. fix linebreak in README

    authored
Commits on Aug 11, 2014
  1. Merge pull request #97 from rosslagerwall/read-close-crash

    authored
    libnfs: Don't perform operations on nfsfh after user callback
  2. Merge pull request #96 from rosslagerwall/enotempty

    authored
    Map NFS3ERR_NOTEMPTY to ENOTEMPTY
  3. Mike Frysinger

    fix implicit decls of rpc_{g,s}et_error

    vapier authored committed
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  4. Mike Frysinger

    fix typo in chmod funcs

    vapier authored committed
    These were accidentally calling chown instead of chmod.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  5. Mike Frysinger

    fix implicit decl warnings

    vapier authored committed
    Include the proper headers to fix warnings like:
    libnfs-sync.c:1529:3: warning: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration]
    libnfs-zdr.c:506:2: warning: implicit declaration of function 'getuid' [-Wimplicit-function-declaration]
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
    
    sys/time.h needs to be protected with an ifdef
    
    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Commits on Aug 10, 2014
  1. Ross Lagerwall

    libnfs: Don't perform operations on nfsfh after user callback

    rosslagerwall authored
    Since the user callback may perform operations on the nfsfh (e.g. it
    might close it), all updates should be done before the user callback is
    called.
    
    Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
Commits on Aug 8, 2014
  1. Ross Lagerwall

    Map NFS3ERR_NOTEMPTY to ENOTEMPTY

    rosslagerwall authored
    Map NFS3ERR_NOTEMPTY to ENOTEMPTY rather than EEXIST.  POSIX allows
    either EEXIST or ENOTEMPTY for rmdir on a non-empty directory but
    ENOTEMPTY is more explicit and in line with Linux, OS X, FreeBSD and
    OpenBSD's behavior.
    
    Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
Commits on Aug 7, 2014
  1. Ross Lagerwall

    libnfs: Fix segfault if O_TRUNC fails when creating

    rosslagerwall authored
    Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
Commits on Aug 2, 2014
  1. Merge pull request #92 from rosslagerwall/symlink-resolution

    authored
    Follow symlinks during path resolution
Commits on Jul 27, 2014
  1. Ross Lagerwall

    libnfs: Add lchmod

    rosslagerwall authored
    Add lchmod which is like chmod but operates on the symbolic link itself
    if the destination is a symbolic link.
    
    Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
  2. Ross Lagerwall

    libnfs: Add lutimes

    rosslagerwall authored
    Add lutimes which is like utimes but operates on the symbolic link
    itself if the destination is a symbolic link.
    
    Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
  3. Ross Lagerwall

    libnfs: Add lstat

    rosslagerwall authored
    Add lstat which is like stat but operates on the symbolic link itself if
    the destination is a symbolic link.
    
    Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
  4. Ross Lagerwall

    libnfs: Add lchown

    rosslagerwall authored
    Add lchown which is like chown but operates on the symbolic link itself
    if the destination is a symbolic link.
    
    Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
  5. Ross Lagerwall

    libnfs.c: Follow symlinks during path resolution

    rosslagerwall authored
    Follow symlinks during path resolution.  If the symlink points outside
    the mount, -ENOENT is returned.  This is slightly different behavior
    from the in-kernel NFS client where symlinks pointing outside the mount
    get resolved to local paths.
    
    The algorithm for symlink resolution is simple and stupid.  If a symlink
    is encountered, the path is rewritten and path resolution begins again
    from the root filehandle.  A count is kept to prevent loops.  This is
    not particularly efficient but it is good enough for now.
    
    Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
  6. Ross Lagerwall

    libnfs.c: Fix a warning

    rosslagerwall authored
    Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
Commits on Jul 24, 2014
  1. Merge pull request #90 from rosslagerwall/stat-improvements

    authored
    Stat improvements
Commits on Jul 20, 2014
  1. Ross Lagerwall

    libnfs: Add fstat64, analagous to stat64

    rosslagerwall authored
    Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
  2. Ross Lagerwall

    libnfs: Set as much stat information as possible

    rosslagerwall authored
    Set as much stat information as possible for stat, stat64, fstat and
    readdir.
    
    Fill in dev to the given fsid.
    Fill in rdev to the given major and minor numbers.
    Set the file type bits in the mode from the type returned by the server.
    Set the number of blocks used based on the number of bytes used in
    blocks of size 512 (which is what stat(2) uses), rounded up.
    Fill in the nanosecond timestamps.
    
    Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
  3. Merge pull request #89 from rosslagerwall/create-trunc

    authored
    Support use of O_TRUNC with nfs_create
  4. Ross Lagerwall

    libnfs.h: Update open() flags docs

    rosslagerwall authored
    Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
  5. Ross Lagerwall

    libnfs.c: Handle OOM condition

    rosslagerwall authored
    Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
  6. Ross Lagerwall

    libnfs.c: Support use of O_TRUNC with nfs_create

    rosslagerwall authored
    Simplify usage for application programmers by supporting the use of
    O_TRUNC with nfs_create.
    
    Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
Commits on Jul 19, 2014
  1. Merge pull request #88 from rosslagerwall/76-no-autoreconnect

    authored
    libnfs.c: Fix autoreconnect
  2. Merge pull request #86 from rosslagerwall/75-create

    authored
    libnfs.c: add nfs_create
  3. Merge pull request #87 from rbalint/master

    authored
    Use sockaddr_in6 on FreeBSD
  4. New version 1.9.5

    authored
    This version removes old ONC-RPC symbols and automatically includes the
    RPC/ZDR layer include from the raw low level headers.
    
    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
  5. Balint Reczey

    Use sockaddr_in6 instead of sockaddr6_in

    Petr Salinger authored rbalint committed
  6. Ross Lagerwall

    libnfs.c: Fix autoreconnect

    rosslagerwall authored
    Since rpc_connect_async sets autoreconnect to 0, turn autoreconnect on
    after the connection has completed, not before.
    
    This fixes #76.
    
    Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
Commits on Jul 17, 2014
  1. Ross Lagerwall

    libnfs.c: add nfs_create

    rosslagerwall authored
    Add a new family of functions, nfs_create, like nfs_creat but takes an
    additional flags argument which allows extra flags like O_SYNC, O_EXCL
    and O_APPEND to be specified.
Something went wrong with that request. Please try again.