NFS client patches for Linux 2.6.27

The following set of patches fix known issues with the 2.6.27 NFS client code, and significantly enhance the support for NFSv4.

linux-2.6.27-000-fix_attr_updates.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Thu, 9 Oct 2008 13:27:55 -0400

NFS: Fix attribute updates

This fixes a regression seen when running the Connectathon testsuite against an ext3 filesystem. The reason was that the inode was constantly being marked as 'just updated' by the jiffy wraparound test. This again meant that newer GETATTR calls were failing to pass the nfs_inode_attrs_need_update() test unless the changes caused a ctime update on the server, since they were perceived as having been started before the latest inode update.

Given that nfs_inode_attrs_need_update() already checks for wraparound of nfsi->last_updated, we can drop the buggy "protection" in nfs_update_inode().

Also make a slight micro-optimisation of nfs_inode_attrs_need_update(): we are more often going to see time_after(fattr->time_start, nfsi->last_updated) be true, rather than seeing an update of ctime/size, so put that test first to ensure that we optimise away the ctime/size tests.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.27-001-remove_checks_for_scope_id_in_v6_addresses.dif:

From: J. Bruce Fields <bfields@citi.umich.edu>

Date: Wed, 8 Oct 2008 15:31:14 -0400

NFS: Remove checks for scope id's in v6 addresses in the fs-locations code

The concensus on the list is that servers should not be allowed to send anything other than ordinary IPv6 addresses, or DNS hostnames in the fs-locations attribute.

Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.27-002-fixup_set_port_blocks.dif:

From: J. Bruce Fields <bfields@citi.umich.edu>

Date: Wed, 8 Oct 2008 15:31:14 -0400

NFS: Cleanup nfs_set_port

Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.27-003-fix_nfs_parse_ip_address_corner_case.dif:

From: Chuck Lever <chuck.lever@oracle.com>

Date: Wed, 8 Oct 2008 15:38:10 -0400

NFS: fix nfs_parse_ip_address() corner case

Bruce observed that nfs_parse_ip_address() will successfully parse an IPv6 address that looks like this:

"::1%"

A scope delimiter is present, but there is no scope ID following it. This is harmless, as it would simply set the scope ID to zero. However, in some cases we would like to flag this as an improperly formed address.

We are now also careful to reject addresses where garbage follows the address (up to the length of the string), instead of ignoring the non-address characters; and where the scope ID is nonsense (not a valid device name, but also not numeric). Before, both of these cases would result in a harmless zero scope ID.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[TXT]linux-2.6.27-000-fix..>2008-10-09 18:59 2.3K 
[TXT]linux-2.6.27-001-rem..>2008-10-09 18:59 1.9K 
[TXT]linux-2.6.27-002-fix..>2008-10-09 18:59 1.1K 
[TXT]linux-2.6.27-003-fix..>2008-10-09 18:59 3.0K 
[   ]series 2008-10-09 19:07 280  

Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 mod_perl/2.0.11 Perl/v5.16.3 Server at linux-nfs.org Port 80