deb_libnfs.git
9 years agoMerge branch 'upstream'
Jérôme Benoit [Mon, 1 Dec 2014 18:10:59 +0000 (19:10 +0100)] 
Merge branch 'upstream'

9 years agoMerge tag 'libnfs-1.9.6' of https://github.com/sahlberg/libnfs into upstream upstream upstream/1.9.6
Jérôme Benoit [Mon, 1 Dec 2014 18:01:56 +0000 (19:01 +0100)] 
Merge tag 'libnfs-1.9.6' of https://github.com/sahlberg/libnfs into upstream

Tag for 1.9.6

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Conflicts:
README
configure.ac
examples/fuse_nfs.c
include/nfsc/libnfs-zdr.h
include/nfsc/libnfs.h
lib/Makefile.am
lib/libnfs-sync.c
lib/libnfs-zdr.c
lib/libnfs.c
lib/socket.c
nfs/Makefile.am
nfs/libnfs-raw-nfs.c
nfs/libnfs-raw-nfs.h
nfs/nfs.c
nfs/nfs.x
nlm/libnfs-raw-nlm.c
nlm/libnfs-raw-nlm.h
nlm/nlm.x
packaging/RPM/libnfs.spec.in

9 years agoNew version 1.9.6
Ronnie Sahlberg [Tue, 25 Nov 2014 14:47:55 +0000 (06:47 -0800)] 
New version 1.9.6

 - Add O_TRUNC support for nfs_create
 - Handle OOM during create
 - Return more stats fields as part of readdir since we get these for "free"
   when we use READDIRPLUS
 - Follow symlinks during path resolution
 - Add lchown, lstat and lutimes
 - Replace all [u_]quad types with [u]int types in our RPC layer
 - Solaris build fixes

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agoIssue READIRPLUS calls with a sensible dircount maxcount ratio
Stefan Blanke [Thu, 30 Oct 2014 16:32:43 +0000 (16:32 +0000)] 
Issue READIRPLUS calls with a sensible dircount maxcount ratio

The NFS spec states:

"The ratio of the directory entry size to the size of the attributes plus the
size of the file handle is usually at least 8 to 1."

Though implementation dependent the spec implies that the previous 1 to 1 ratio
could have a detrimental impact on the performance of the server due to most of
the data per VOP_READDIR call being wasted.

The Linux kernel uses the 8 to 1 ratio.

Signed-off-by: Stefan Blanke <stefan.blanke@framestore.com>
Signed-off-by: Mark Hills <mark.hills@framestore.com>
10 years agoMerge pull request #100 from rosslagerwall/access-improve
Ronnie Sahlberg [Sun, 14 Sep 2014 15:10:17 +0000 (08:10 -0700)] 
Merge pull request #100 from rosslagerwall/access-improve

access() improvements

10 years agolibnfs: Add access2()
Ross Lagerwall [Sun, 14 Sep 2014 14:41:04 +0000 (15:41 +0100)] 
libnfs: Add access2()

Add nfs_access2(), like nfs_access() but it returns the individual
statuses of R_OK, W_OK and X_OK rather than a single success or failure
status.  This saves the latency and overhead of multiple lookups if an
application tries to determine the status of each of R_OK, W_OK and
X_OK.

Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
10 years agolibnfs: Give correct access() results for directories
Ross Lagerwall [Sun, 14 Sep 2014 14:38:57 +0000 (15:38 +0100)] 
libnfs: Give correct access() results for directories

Map ACCESS3_{MODIFY,EXTEND,DELETE} to W_OK and ACCESS3_{LOOKUP,EXECUTE}
to X_OK so that nfs_access() gives sensible results for directories.

Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
10 years agoREADME.win32.txt: delete this obsolete file
Ronnie Sahlberg [Thu, 11 Sep 2014 02:22:23 +0000 (19:22 -0700)] 
README.win32.txt: delete this obsolete file

This file has been obsolete for a long time. At least since libfs got
its own internal marshalling support: ZDR.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agosolaris: we need -lsocket and -lnsl for all builds not just examples
Ronnie Sahlberg [Sat, 16 Aug 2014 23:17:06 +0000 (16:17 -0700)] 
solaris: we need -lsocket and -lnsl for all builds not just examples

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agotypes: remove the [u_]quad type and replace with [u]int64
Ronnie Sahlberg [Sat, 16 Aug 2014 21:51:53 +0000 (14:51 -0700)] 
types: remove the [u_]quad type and replace with [u]int64

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>
10 years agoMerge pull request #99 from mheijkoop/fuse-nfs-usage
Ronnie Sahlberg [Sat, 16 Aug 2014 21:37:53 +0000 (14:37 -0700)] 
Merge pull request #99 from mheijkoop/fuse-nfs-usage

Fix help message for fuse_nfs example

10 years agoPrint usage when missing mandatory arguments
Marlies Heijkoop [Sat, 16 Aug 2014 14:38:25 +0000 (16:38 +0200)] 
Print usage when missing mandatory arguments

10 years agoFix usage message to match expected arguments
Marlies Heijkoop [Sat, 16 Aug 2014 14:26:17 +0000 (16:26 +0200)] 
Fix usage message to match expected arguments

10 years agofix linebreak in README
Ronnie Sahlberg [Fri, 15 Aug 2014 02:05:28 +0000 (19:05 -0700)] 
fix linebreak in README

10 years agosocket.c: we need netinet/in.h on some platforms
Ronnie Sahlberg [Fri, 15 Aug 2014 01:56:39 +0000 (18:56 -0700)] 
socket.c: we need netinet/in.h on some platforms

10 years agoMerge pull request #97 from rosslagerwall/read-close-crash
Ronnie Sahlberg [Mon, 11 Aug 2014 13:15:16 +0000 (06:15 -0700)] 
Merge pull request #97 from rosslagerwall/read-close-crash

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

10 years agoMerge pull request #96 from rosslagerwall/enotempty
Ronnie Sahlberg [Mon, 11 Aug 2014 13:14:16 +0000 (06:14 -0700)] 
Merge pull request #96 from rosslagerwall/enotempty

Map NFS3ERR_NOTEMPTY to ENOTEMPTY

10 years agofix implicit decls of rpc_{g,s}et_error
Mike Frysinger [Fri, 8 Aug 2014 09:45:32 +0000 (05:45 -0400)] 
fix implicit decls of rpc_{g,s}et_error

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
10 years agofix typo in chmod funcs
Mike Frysinger [Fri, 8 Aug 2014 09:40:37 +0000 (05:40 -0400)] 
fix typo in chmod funcs

These were accidentally calling chown instead of chmod.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
10 years agofix implicit decl warnings
Mike Frysinger [Tue, 4 Dec 2012 03:30:04 +0000 (22:30 -0500)] 
fix implicit decl warnings

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>
10 years agolibnfs: Don't perform operations on nfsfh after user callback
Ross Lagerwall [Sun, 10 Aug 2014 11:16:47 +0000 (12:16 +0100)] 
libnfs: Don't perform operations on nfsfh after user callback

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>
10 years agoMap NFS3ERR_NOTEMPTY to ENOTEMPTY
Ross Lagerwall [Fri, 8 Aug 2014 19:14:44 +0000 (20:14 +0100)] 
Map NFS3ERR_NOTEMPTY to ENOTEMPTY

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>
10 years agolibnfs: Fix segfault if O_TRUNC fails when creating
Ross Lagerwall [Thu, 7 Aug 2014 19:45:08 +0000 (20:45 +0100)] 
libnfs: Fix segfault if O_TRUNC fails when creating

Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
10 years agoMerge pull request #92 from rosslagerwall/symlink-resolution
Ronnie Sahlberg [Sat, 2 Aug 2014 15:03:45 +0000 (08:03 -0700)] 
Merge pull request #92 from rosslagerwall/symlink-resolution

Follow symlinks during path resolution

10 years agolibnfs: Add lchmod
Ross Lagerwall [Sun, 27 Jul 2014 20:21:18 +0000 (21:21 +0100)] 
libnfs: Add lchmod

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>
10 years agolibnfs: Add lutimes
Ross Lagerwall [Sun, 27 Jul 2014 20:16:01 +0000 (21:16 +0100)] 
libnfs: Add lutimes

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>
10 years agolibnfs: Add lstat
Ross Lagerwall [Sun, 27 Jul 2014 20:00:26 +0000 (21:00 +0100)] 
libnfs: Add lstat

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>
10 years agolibnfs: Add lchown
Ross Lagerwall [Sun, 27 Jul 2014 19:21:33 +0000 (20:21 +0100)] 
libnfs: Add lchown

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>
10 years agolibnfs.c: Follow symlinks during path resolution
Ross Lagerwall [Sun, 27 Jul 2014 17:01:25 +0000 (18:01 +0100)] 
libnfs.c: Follow symlinks during path resolution

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>
10 years agolibnfs.c: Fix a warning
Ross Lagerwall [Sun, 27 Jul 2014 17:06:12 +0000 (18:06 +0100)] 
libnfs.c: Fix a warning

Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
10 years agoFinalize changelog
Balint Reczey [Thu, 24 Jul 2014 17:25:20 +0000 (19:25 +0200)] 
Finalize changelog

10 years agoReally fix FTBFS on kFreeBSD/Hurd by back-porting fix
Balint Reczey [Thu, 24 Jul 2014 17:23:40 +0000 (19:23 +0200)] 
Really fix FTBFS on kFreeBSD/Hurd by back-porting fix

Closes: #754646
10 years agoStart working on new upload
Balint Reczey [Thu, 24 Jul 2014 17:22:13 +0000 (19:22 +0200)] 
Start working on new upload

Git-Dch: Ignore

10 years agoFinalize changelog debian/1.9.5-1
Balint Reczey [Thu, 24 Jul 2014 05:31:51 +0000 (07:31 +0200)] 
Finalize changelog

10 years agoMerge tag 'upstream/1.9.5'
Balint Reczey [Thu, 24 Jul 2014 05:23:07 +0000 (07:23 +0200)] 
Merge tag 'upstream/1.9.5'

Upstream version 1.9.5

# gpg: Signature made Thu 24 Jul 2014 07:23:02 AM CEST using RSA key ID B4691A7D
# gpg: Good signature from "Balint Reczey <balint@balintreczey.hu>"

10 years agoImported Upstream version 1.9.5 upstream/1.9.5
Balint Reczey [Thu, 24 Jul 2014 05:23:02 +0000 (07:23 +0200)] 
Imported Upstream version 1.9.5

10 years agoMerge pull request #90 from rosslagerwall/stat-improvements
Ronnie Sahlberg [Thu, 24 Jul 2014 00:30:13 +0000 (17:30 -0700)] 
Merge pull request #90 from rosslagerwall/stat-improvements

Stat improvements

10 years agolibnfs: Add fstat64, analagous to stat64
Ross Lagerwall [Sun, 20 Jul 2014 22:12:59 +0000 (23:12 +0100)] 
libnfs: Add fstat64, analagous to stat64

Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
10 years agolibnfs: Set as much stat information as possible
Ross Lagerwall [Sun, 20 Jul 2014 20:39:06 +0000 (21:39 +0100)] 
libnfs: Set as much stat information as possible

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>
10 years agoMerge pull request #89 from rosslagerwall/create-trunc
Ronnie Sahlberg [Sun, 20 Jul 2014 18:13:04 +0000 (11:13 -0700)] 
Merge pull request #89 from rosslagerwall/create-trunc

Support use of O_TRUNC with nfs_create

10 years agolibnfs.h: Update open() flags docs
Ross Lagerwall [Sun, 20 Jul 2014 07:18:06 +0000 (08:18 +0100)] 
libnfs.h: Update open() flags docs

Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
10 years agolibnfs.c: Handle OOM condition
Ross Lagerwall [Sun, 20 Jul 2014 07:13:45 +0000 (08:13 +0100)] 
libnfs.c: Handle OOM condition

Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
10 years agolibnfs.c: Support use of O_TRUNC with nfs_create
Ross Lagerwall [Sun, 20 Jul 2014 07:07:46 +0000 (08:07 +0100)] 
libnfs.c: Support use of O_TRUNC with nfs_create

Simplify usage for application programmers by supporting the use of
O_TRUNC with nfs_create.

Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
10 years agoMerge pull request #88 from rosslagerwall/76-no-autoreconnect
Ronnie Sahlberg [Sat, 19 Jul 2014 23:01:13 +0000 (16:01 -0700)] 
Merge pull request #88 from rosslagerwall/76-no-autoreconnect

libnfs.c: Fix autoreconnect

10 years agoMerge pull request #86 from rosslagerwall/75-create
Ronnie Sahlberg [Sat, 19 Jul 2014 22:58:30 +0000 (15:58 -0700)] 
Merge pull request #86 from rosslagerwall/75-create

libnfs.c: add nfs_create

10 years agoMerge pull request #87 from rbalint/master
Ronnie Sahlberg [Sat, 19 Jul 2014 22:56:59 +0000 (15:56 -0700)] 
Merge pull request #87 from rbalint/master

Use sockaddr_in6 on FreeBSD

10 years agoNew version 1.9.5
Ronnie Sahlberg [Sat, 19 Jul 2014 22:47:35 +0000 (15:47 -0700)] 
New version 1.9.5

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>
10 years agoUse sockaddr_in6 instead of sockaddr6_in
Petr Salinger [Fri, 18 Jul 2014 23:14:43 +0000 (01:14 +0200)] 
Use sockaddr_in6 instead of sockaddr6_in

10 years agolibnfs.c: Fix autoreconnect
Ross Lagerwall [Sat, 19 Jul 2014 10:32:40 +0000 (11:32 +0100)] 
libnfs.c: Fix autoreconnect

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>
10 years agoUpdate watchfile to fix Github breakage
Jonathan McCrohan [Sat, 17 Nov 2012 14:34:45 +0000 (14:34 +0000)] 
Update watchfile to fix Github breakage

Closes: #693528
10 years agoAdd myself to uploaders
Balint Reczey [Fri, 18 Jul 2014 16:01:03 +0000 (18:01 +0200)] 
Add myself to uploaders

10 years agoStart working on next upload
Balint Reczey [Fri, 18 Jul 2014 16:00:01 +0000 (18:00 +0200)] 
Start working on next upload

10 years agolibnfs.c: add nfs_create
Ross Lagerwall [Thu, 17 Jul 2014 21:31:23 +0000 (22:31 +0100)] 
libnfs.c: add nfs_create

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.

10 years agoRPC: include libnfs-zdr.h from all raw libnfs-raw-*.h files
Ronnie Sahlberg [Sun, 13 Jul 2014 22:36:59 +0000 (15:36 -0700)] 
RPC: include libnfs-zdr.h from all raw libnfs-raw-*.h files

Include the zdr header from all raw lowlevel headers so that we don't have to
include it manually from apps.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agoMerge pull request #85 from rsahlberg/remove-zhr.h-dependency
Ronnie Sahlberg [Sun, 13 Jul 2014 22:20:09 +0000 (15:20 -0700)] 
Merge pull request #85 from rsahlberg/remove-zhr.h-dependency

Remove zhr.h dependency

10 years agoZDR: remove dependency on zdr.h from the examples and nfs-ls
Ronnie Sahlberg [Sat, 5 Jul 2014 19:44:18 +0000 (12:44 -0700)] 
ZDR: remove dependency on zdr.h from the examples and nfs-ls

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
10 years agoRPC: get rid of bool_t
Ronnie Sahlberg [Sat, 5 Jul 2014 16:07:23 +0000 (09:07 -0700)] 
RPC: get rid of bool_t

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
10 years agoRPC: get rid of references to SCVXPRT
Ronnie Sahlberg [Sat, 5 Jul 2014 15:52:46 +0000 (08:52 -0700)] 
RPC: get rid of references to SCVXPRT

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agoRPC: get rid of all references to CLIENT
Ronnie Sahlberg [Sat, 5 Jul 2014 15:45:45 +0000 (08:45 -0700)] 
RPC: get rid of all references to CLIENT

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agoupdate changelog and prepare release debian/1.9.4-1
Ritesh Raj Sarraf [Mon, 30 Jun 2014 09:14:22 +0000 (14:44 +0530)] 
update changelog and prepare release

10 years agoAdd myself for packaging copyright and some minor tweaks
Ritesh Raj Sarraf [Mon, 30 Jun 2014 09:12:25 +0000 (14:42 +0530)] 
Add myself for packaging copyright and some minor tweaks

10 years agoUpdate debian/copyright with MIT/X11 (BSD Like) license
Ritesh Raj Sarraf [Mon, 30 Jun 2014 08:57:10 +0000 (14:27 +0530)] 
Update debian/copyright with MIT/X11 (BSD Like) license

10 years agoAdd Breaks instead of Conflicts
Ritesh Raj Sarraf [Mon, 30 Jun 2014 08:31:52 +0000 (14:01 +0530)] 
Add Breaks instead of Conflicts

10 years agoUpdate symbols
Ritesh Raj Sarraf [Mon, 30 Jun 2014 08:29:21 +0000 (13:59 +0530)] 
Update symbols

10 years agoImported Upstream version 1.9.4 upstream/1.9.4
Ritesh Raj Sarraf [Mon, 30 Jun 2014 08:15:52 +0000 (13:45 +0530)] 
Imported Upstream version 1.9.4

10 years agoMerge tag 'upstream/1.9.4'
Ritesh Raj Sarraf [Mon, 30 Jun 2014 08:15:52 +0000 (13:45 +0530)] 
Merge tag 'upstream/1.9.4'

Upstream version 1.9.4

* tag 'upstream/1.9.4':
  Imported Upstream version 1.9.4

10 years agoNew version 1.9.4
Ronnie Sahlberg [Sun, 29 Jun 2014 21:57:45 +0000 (14:57 -0700)] 
New version 1.9.4

New version of libnfs:

- IPv6 support
- Support for Portmapper version 3 and an example portmap client.
- Directory caching top make repeated opendir() calls faster
- Readahead support
- Build manpages for the utilities (==nfs-ls)
- Support for O_APPEND
- Rename the list macros to avoid collission on *BSD

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agolibnfs.c: Change the directory cache to a smaller more reasonable value
Ronnie Sahlberg [Sun, 29 Jun 2014 21:42:28 +0000 (14:42 -0700)] 
libnfs.c: Change the directory cache to a smaller more reasonable value

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agoMerge pull request #82 from plieven/readahead
Ronnie Sahlberg [Sun, 29 Jun 2014 21:41:28 +0000 (14:41 -0700)] 
Merge pull request #82 from plieven/readahead

add readahead support

10 years agoadd readahead support
Peter Lieven [Mon, 23 Jun 2014 14:31:32 +0000 (16:31 +0200)] 
add readahead support

This patch add support for an internal readahead machanism. The maximum readahead
size can be specified via URL parameter readahead. This should significantly
speed up small sequential reads.

Signed-off-by: Peter Lieven <pl@kamp.de>
10 years agoupdate copyright bilerplates also in generated files
Ronnie Sahlberg [Sat, 14 Jun 2014 00:03:35 +0000 (17:03 -0700)] 
update copyright bilerplates also in generated files

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agoAdd versioned conflict/replace
Ritesh Raj Sarraf [Sun, 8 Jun 2014 19:43:44 +0000 (01:13 +0530)] 
Add versioned conflict/replace

Closes: #750899
10 years agolibnfs.c: add nlink to nfsdirent so we can get it for 'free'
Ronnie Sahlberg [Sun, 8 Jun 2014 18:40:35 +0000 (11:40 -0700)] 
libnfs.c: add nlink to nfsdirent so we can get it for 'free'

update the nfs-ls utility to just use nfsdirent as is instead of having to
stat the files.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agolibnfs.c: add a simple dircache to libnfs
Ronnie Sahlberg [Sun, 8 Jun 2014 18:22:06 +0000 (11:22 -0700)] 
libnfs.c: add a simple dircache to libnfs

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agolibnfs.c: always pass the attributes to the callback for recursive lookups
Ronnie Sahlberg [Sun, 8 Jun 2014 16:45:22 +0000 (09:45 -0700)] 
libnfs.c: always pass the attributes to the callback for recursive lookups

Always pass a fattr3 structure to the callbacks for the internal function
to perform recursive lookups : nfs_lookuppath_async().
This will allow us to access for example the mtime for an object before we
start performing any expensive functions.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agowin32_errnowrapper.h: add licence boilerplate
Ronnie Sahlberg [Sun, 8 Jun 2014 14:54:45 +0000 (07:54 -0700)] 
win32_errnowrapper.h: add licence boilerplate

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agoaros: add licence to aros_compat.h
Ronnie Sahlberg [Sun, 8 Jun 2014 14:53:03 +0000 (07:53 -0700)] 
aros: add licence to aros_compat.h

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agoproto files: add a simplified bsd licence to the dot-x files
Ronnie Sahlberg [Sun, 8 Jun 2014 14:51:38 +0000 (07:51 -0700)] 
proto files: add a simplified bsd licence to the dot-x files

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agoinit.c: fixup the mangled lgplv2.1 boilerplate
Ronnie Sahlberg [Sun, 8 Jun 2014 14:34:54 +0000 (07:34 -0700)] 
init.c: fixup the mangled lgplv2.1 boilerplate

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agoinit.c: use list macro when removing pdus from the wait list
Ronnie Sahlberg [Sun, 8 Jun 2014 14:21:43 +0000 (07:21 -0700)] 
init.c: use list macro when removing pdus from the wait list

Use the macro when removing the pdus in the wait list from the queues.
Also make sure to remove them from the right queue, from waitqueue and not
the outqueue for PDUs we have already sent out.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agoMerge pull request #79 from plieven/readahead
Ronnie Sahlberg [Sun, 8 Jun 2014 13:33:09 +0000 (06:33 -0700)] 
Merge pull request #79 from plieven/readahead

socket: fix broken connect for non broadcast traffic

10 years agosocket: fix broken connect for non broadcast traffic
Peter Lieven [Sun, 8 Jun 2014 12:20:12 +0000 (14:20 +0200)] 
socket: fix broken connect for non broadcast traffic

commit 1c1e09a completely broke connects for non broadcast
traffic since it forgot to copy the server address into
the socket_storage struct.

Signed-off-by: Peter Lieven <pl@kamp.de>
10 years agoAdd Conflicts against libnfs1
Ritesh Raj Sarraf [Sat, 7 Jun 2014 06:24:09 +0000 (11:54 +0530)] 
Add Conflicts against libnfs1

10 years agoUpload to unstable debian/1.9.3-3
Ritesh Raj Sarraf [Wed, 4 Jun 2014 05:34:04 +0000 (11:04 +0530)] 
Upload to unstable

10 years agoUpdate changelog and prepare for release to experimental debian/1.9.3-2
Ritesh Raj Sarraf [Tue, 27 May 2014 08:38:23 +0000 (14:08 +0530)] 
Update changelog and prepare for release to experimental

Close one more bug

10 years agoAdd version symbols file
Ritesh Raj Sarraf [Tue, 27 May 2014 08:33:19 +0000 (14:03 +0530)] 
Add version symbols file

10 years agoHonor SO version number and package naming convention
Ritesh Raj Sarraf [Tue, 27 May 2014 07:10:56 +0000 (12:40 +0530)] 
Honor SO version number and package naming convention

10 years agoslist.h: Change SLIST_* to LIBNFS_LIST_* to avoid name clash on *BSD
Ronnie Sahlberg [Thu, 15 May 2014 02:11:03 +0000 (19:11 -0700)] 
slist.h: Change SLIST_* to LIBNFS_LIST_* to avoid name clash on *BSD

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agodocs: add a prebuilt manpage to the distribution
Ronnie Sahlberg [Thu, 15 May 2014 02:04:43 +0000 (19:04 -0700)] 
docs: add a prebuilt manpage to the distribution

Add a prebuilt manpage for nfs-ls and change the makefiles to not build the
manpage by default. This is because the manpages change rarely and this removes
the need for an internet connection when building the library.
(previously building the library required downloading a template from
sourceforge)

Update the README and mention that you now need to manually rebuild the
manpages if the manpage sources change.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
10 years agoMerge pull request #74 from alexsn/master
Ronnie Sahlberg [Sat, 19 Apr 2014 18:38:11 +0000 (11:38 -0700)] 
Merge pull request #74 from alexsn/master

nfs-ls: Fix crash when called with no arguments

10 years agonfs-ls: Fix crash when called with no arguments
Alex Snast [Sat, 19 Apr 2014 16:30:43 +0000 (19:30 +0300)] 
nfs-ls: Fix crash when called with no arguments

When called with no argument we jump to 'finished' label
after which nfs_destroy_url is called with *url having
some garbage stack value.

10 years agonfs_open: add support for O_APPEND
Ronnie Sahlberg [Fri, 18 Apr 2014 16:32:01 +0000 (09:32 -0700)] 
nfs_open: add support for O_APPEND

10 years agoupdate changelog debian/1.9.3-1
Ritesh Raj Sarraf [Tue, 15 Apr 2014 17:06:43 +0000 (22:36 +0530)] 
update changelog

10 years agoSpecify copyright format version
Ritesh Raj Sarraf [Tue, 15 Apr 2014 16:50:23 +0000 (22:20 +0530)] 
Specify copyright format version

10 years agoTake maintenance for libnfs
Ritesh Raj Sarraf [Tue, 15 Apr 2014 09:35:20 +0000 (15:05 +0530)] 
Take maintenance for libnfs

Closes: #743510
10 years agoAdd dh-autoreconf as build-dependency
Ritesh Raj Sarraf [Tue, 15 Apr 2014 09:32:55 +0000 (15:02 +0530)] 
Add dh-autoreconf as build-dependency

10 years agoUse dh-autoreconf
Ritesh Raj Sarraf [Tue, 15 Apr 2014 09:32:15 +0000 (15:02 +0530)] 
Use dh-autoreconf

10 years agoAdd README.source
Ritesh Raj Sarraf [Tue, 15 Apr 2014 09:23:24 +0000 (14:53 +0530)] 
Add README.source

10 years agoMerge tag 'upstream/1.9.3'
Ritesh Raj Sarraf [Tue, 15 Apr 2014 09:21:13 +0000 (14:51 +0530)] 
Merge tag 'upstream/1.9.3'

Upstream version 1.9.3

* tag 'upstream/1.9.3':
  Imported Upstream version 1.9.3

10 years agoImported Upstream version 1.9.3 upstream/1.9.3
Ritesh Raj Sarraf [Tue, 15 Apr 2014 09:21:12 +0000 (14:51 +0530)] 
Imported Upstream version 1.9.3