Return-Path: Received: from mx2.netapp.com ([216.240.18.37]:23589 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758084Ab1GKSab convert rfc822-to-8bit (ORCPT ); Mon, 11 Jul 2011 14:30:31 -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: <1310407708.12660.2.camel@lade.trondhjem.org> Date: Mon, 11 Jul 2011 14:30:14 -0400 Cc: linux-nfs@vger.kernel.org Message-Id: References: <1310406847-31297-1-git-send-email-andros@netapp.com> <1310407708.12660.2.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: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. -->Andy > > Cheers > Trond > -- > Trond Myklebust > Linux NFS client maintainer > > NetApp > Trond.Myklebust@netapp.com > www.netapp.com >