Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp239884rdd; Wed, 22 Nov 2023 14:43:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IExdcj46l29A4zqMQxJC+h20/bO+NcwFChthe5sJeYiYH1gZkW4TsNMIGyclBcat9Taaty4 X-Received: by 2002:a05:6a21:a581:b0:16a:4f24:d30 with SMTP id gd1-20020a056a21a58100b0016a4f240d30mr4877774pzc.53.1700693010349; Wed, 22 Nov 2023 14:43:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700693010; cv=none; d=google.com; s=arc-20160816; b=ZeXRIVnUyvrDQ7PBY6NUxWYOhPA3UQxu8W2YXHm1jjXsX07qwW/fh7fSVSOUPON0p5 2C3OttZ9nrUVoDvecy8jJkVLrrTbMa4SIq36SC1K4LD8tDpbv16u31izYbRbQ48pVmv8 5dt9UK5/ryRMr3mjnopo1IpRkupb5Pd7FQSehza6t5viPGXcuO14fEXxJRA/w689AQlm RJVvGuihx9IFqXU4CFh+fFroPlxm8eyRQ+6yMuXteTyyXphRYXCKoX4Yl229ZUDSvH6T dJTpbI2Tu8cg2j3cTZteIo+5PljOWFprJSsDMFo2gDcHsxOoL24pKWvMur3PFwF6yXbX nUiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:dkim-signature; bh=glZd7CIizrcnFVarqS4XLSw3nlB05Khtm3RISDTzB1Y=; fh=A3pMOUK00huGibGCZBFsLekFLVbB5hHGKjUNNKwO+5E=; b=ucvDPc/fIuEyu6yD3OO5EZcyc2SK0uBDEefVUZTtLYuPDhEgoiZZuGRe8Gh26OLyGN +mCYpitnVW3t1orwGqImxVxu5q21Ao6JG6zupC3Za4hAJDC8raEj0H/sY08fbfeDYA1k 8sDpKvePn+Fwr2IXALwI1AzS46xxeINqeNPGrWl9iEHnpC0ufIZ13QG89fUiO8WBu1ei C7oYqBi9t8k7UhxQhUgSdaJZgwS8ABwwj9JjHm0os/7VD9puqfA60g4Ykh10gJBcnS/1 LbmH4o88gOCmr9chXBh6KVaI6POQtmxLenNUzsyVgBOnqMQi3hiC711gisx25xXBKYaa y4Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=k5UpMt6y; spf=pass (google.com: domain of linux-nfs+bounces-32-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-32-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x5-20020a626305000000b006cba7fcb048si8619pfb.49.2023.11.22.14.43.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 14:43:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-32-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=k5UpMt6y; spf=pass (google.com: domain of linux-nfs+bounces-32-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-32-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 89E63B20D6C for ; Wed, 22 Nov 2023 22:43:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 183E61C686; Wed, 22 Nov 2023 22:43:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="k5UpMt6y" X-Original-To: linux-nfs@vger.kernel.org Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECB121BF for ; Wed, 22 Nov 2023 14:43:21 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-547e7de7b6fso632552a12.0 for ; Wed, 22 Nov 2023 14:43:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700693000; x=1701297800; darn=vger.kernel.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=glZd7CIizrcnFVarqS4XLSw3nlB05Khtm3RISDTzB1Y=; b=k5UpMt6yglESw1pMMn8tAgq6QMQijxj1I1IOmxYrtUVKP5g9YewP1wewjaAF7kqfwB PekKk6QkJddHfA7jcInPUU1x0VXWq1ELocvzgskTkSSm0WneS1lediN9pRaX8tQ0zL83 XIEhtJORzAchC/qRHmwZIZyZwUh3N1bqE1nG5axeFhB1escaSBBiOnqWPutOCHkFMDRO l69+u88b+E3Cjsr7bM+vXAC8QF4xAZMLVz6Vw71qJvCSgilUcc3EiQdfY5GG0rhip4nQ wswlJjocYRLsL8wsR2kURttA4Nm1SOp7jErd8oq1V+D099mOk8lJRtyPxg9iib3KvISX InTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700693000; x=1701297800; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=glZd7CIizrcnFVarqS4XLSw3nlB05Khtm3RISDTzB1Y=; b=J208sE9Yy7HgLy9Yud+CEBPdm//W/wELz0GMCw31M0/Ka4xdDT65+OCD4m/Ff7vKqt +UxeRSLBOj+IiFGz3GNWx/UBfo8WU0EQyCW74NrxY5pHEa4JMQYLszEou41zZc5OSsN6 G8ismW7Q3b/uOFhXJ1SNwP5pzkE/CiMvwsPo9dNTetpmmIYL1DieyDckWAXl6O7btM31 kMnJcSfzgtGXU4KE31Sg0rhBQ6LZa6QDnqd1t3pIkYENxOrirAae1BALwKVLpc23bbWS dyzWFo67Nx6P87avJHWApQqkkskdf9YdfTo7+Xss73vbidYn2JRIUF8icHcVWR9rF4SQ iJ+Q== X-Gm-Message-State: AOJu0Yygyl0zc5L+8H6QshIOFugIGQOH0pTlTiFMOGFhYCzdo3spEzQA cryActchpL3ElIjeoISXQlbZJC36bCcHqXT3oXKwm4Qp X-Received: by 2002:a05:6402:31ee:b0:52e:3ce8:e333 with SMTP id dy14-20020a05640231ee00b0052e3ce8e333mr781338edb.18.1700692999979; Wed, 22 Nov 2023 14:43:19 -0800 (PST) Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <83a30ef92afa05d50232bd3c933f8eb45ed8f98b.camel@kernel.org> <0d7966163db13d71cb4679d51db5cacf91f42b6b.camel@kernel.org> In-Reply-To: <0d7966163db13d71cb4679d51db5cacf91f42b6b.camel@kernel.org> From: Cedric Blancher Date: Wed, 22 Nov 2023 23:42:43 +0100 Message-ID: Subject: Re: How to set the NFSv4 "HIDDEN" attribute on Linux? To: Linux NFS Mailing List Content-Type: text/plain; charset="UTF-8" On Mon, 20 Nov 2023 at 12:46, Jeff Layton wrote: > > On Sun, 2023-11-19 at 17:51 +0100, Cedric Blancher wrote: > > On Sat, 18 Nov 2023 at 12:56, Jeff Layton wrote: > > > > > > On Sat, 2023-11-18 at 07:24 +0100, Cedric Blancher wrote: > > > > Good morning! > > > > > > > > NFSv4 has a "hidden" filesystem object attribute. How can I set that > > > > on a Linux NFSv4 server, or in a filesystem exported on Linux via > > > > NFSv4, so that the NFSv4 client gets this attribute for a file? > > > > > > > > > > You can't. RFC 8881 defines that as "TRUE, if the file is considered > > > hidden with respect to the Windows API." There is no analogous Linux > > > inode attribute. > > > > Can we use setfattr and getfattr to set/get the NFSv4.1 HIDDEN and > > ARCHIVE? We have Windows NFSv4 clients (and kofemann/Roland's codebase > > supports this), and that means we need to be able to set/get and > > backup/restore these flags on the NFSv4 server side. > > > > No. They would need to be stored in the inode on the server somehow and > there is no place to store them. These attributes are simply not > supported by the Linux NFS server. Linux has xattrs, which are per inode, and can be backuped and restored via tar --xattrs. That would be good enough Ced -- Cedric Blancher [https://plus.google.com/u/0/+CedricBlancher/] Institute Pasteur