From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.netapp.com ([216.240.18.37]:8993 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756820Ab1GKU7G convert rfc822-to-8bit (ORCPT ); Mon, 11 Jul 2011 16:59:06 -0400 Subject: Re: [PATCH 1/1] NFSv4.1: handle decoding of three attribute bitmaps Content-Type: text/plain; charset=us-ascii From: Andy Adamson In-Reply-To: <1310410189.12660.13.camel@lade.trondhjem.org> Date: Mon, 11 Jul 2011 16:59:04 -0400 Cc: linux-nfs@vger.kernel.org Message-Id: <1760963E-39BF-41EF-BA68-83A28AB19071@netapp.com> References: <1310406847-31297-1-git-send-email-andros@netapp.com> <1310407708.12660.2.camel@lade.trondhjem.org> <1310410189.12660.13.camel@lade.trondhjem.org> To: Trond Myklebust Sender: linux-nfs-owner@vger.kernel.org List-ID: MIME-Version: 1.0 On Jul 11, 2011, at 2:49 PM, Trond Myklebust wrote: > On Mon, 2011-07-11 at 14:30 -0400, Andy Adamson wrote: >> On Jul 11, 2011, at 2:08 PM, Trond Myklebust wrote: >> >>> On Mon, 2011-07-11 at 13:54 -0400, andros@netapp.com wrote: >>>> From: Andy Adamson >>>> >>>> Attribute IDs assigned in RFC 5661 now require three bitmaps. >>>> >>>> Signed-off-by: Andy Adamson >>>> Cc:stable@kernel.org [2.6.39] >>> >>> Is this really so urgent? >>> >>> [trondmy@lade linux-2.6]$ git grep FATTR4_WORD2 fs/nfs include/linux >>> include/linux/nfs4.h:#define FATTR4_WORD2_SUPPATTR_EXCLCREAT (1UL << 11) >>> include/linux/nfs4.h:#define FATTR4_WORD2_LAYOUT_BLKSIZE (1UL << 1) >>> >>> IOW: we don't appear to be using any of those bits, and so the current >>> default behaviour of just ignoring any bitmap values that we don't >>> recognise would seem to be sufficient. >> >> I should have given more context :) >> >> In testing nfs4_getfacl, OnTap returns three attribute bits which triggered a BUG_ON in xdr_shrink_bufhead >> as the third bitmap was incorrectly interpreted as the length. >> >> Plus, RFC 5661 defines suppattr_exclcreat bit 75 as a mandatory attribute which means it can/will be returned with any supported attributes query. >> >> So, I think this needed and is a candidate for stable. > > You missed my point. The only part that should make any difference in > your patch is the bit which changes the declaration of > nfs4_fattr_bitmap_maxsz. > > The rest shouldn't be needed because the bits in the WORD2 range should > all be zero: our client doesn't ever request any of those attributes. Yes - I see. Thanks New patch on the way. -->Andy > > Cheers > Trond > > -- > Trond Myklebust > Linux NFS client maintainer > > NetApp > Trond.Myklebust@netapp.com > www.netapp.com >