Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2930413pxj; Sun, 20 Jun 2021 05:27:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXec1KOZ4fgX9zmLwEbjQ/j5EmXYbXElkA7Sr9bp7LLC4inoRev2Sq8uqDn0c4gvlm4vbB X-Received: by 2002:a17:907:264b:: with SMTP id ar11mr19204181ejc.525.1624192074569; Sun, 20 Jun 2021 05:27:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624192074; cv=none; d=google.com; s=arc-20160816; b=pIdHkvtKadwg/ZKm5HuWFyijasp6nzw9rpgupfza4Cj86sdbBxfcrFOmdjm7ChtT8e BVDKtoWGhFCi5NLwqpfiers13fMRnhkwgZPtVFuuCh2DjbqFw4KBXYRW1bCId8ZQ73d7 aYB3K78qD4bwgxML5RTxMyqidlo4tHOU12h7YeI+Sq13xUK75ICEp1UpfGiy7O+XEQ/O yQuRCx2JX2RiQSVJn3bNmj3Yy6MNKimtQVZc3kdmTGR0iKO4SF0kdg0ZJlxoXm50I6xM 2XlVE3/54PIgv9/rbflW+zSGU2X2QkP5mUWU8IfPmT3rJjhnKVbIsfYO9G63MIciHgKq 9jRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:subject:to:from:date; bh=0qPXTYdRnLtDE20++mt345xK+d9B7a8q/3/ABCNjFTI=; b=i1hwUaHJG/oEPsy70KUUmMBRAoaDoHKwm+jevtDX2S/29fCPQieXW1UBG0rAowqmfO lgoCYkE0xWdr9rn/JiUpvIdSA2EvIBvN3F8ze7Jq1YCQ0GTEMMULABqin3X/GFAsojsL 1/yPsIoXc6JlXweOza9Msyz8BHeyt23wwjBxMGVpHXiS0lhBRrf/TLQKQi8V8wmDi+C5 eiKeLTFvV1rGuFs8ILZwNGcrVguK3W1TinBmZ//idLw3fTJAS2n+plIl20QQHMNHQYuh ju5Gf1EWZbFCOKpQOKoPx53rLnKFFd9gVk132wmBv3tHbWPo3yBru+REBr+ftSjiMj7s EM/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l24si14087892eda.502.2021.06.20.05.27.18; Sun, 20 Jun 2021 05:27:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229593AbhFTM33 (ORCPT + 99 others); Sun, 20 Jun 2021 08:29:29 -0400 Received: from out20-50.mail.aliyun.com ([115.124.20.50]:60932 "EHLO out20-50.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbhFTM31 (ORCPT ); Sun, 20 Jun 2021 08:29:27 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1967406|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_enroll_verification|0.148466-0.00233928-0.849195;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047213;MF=wangyugui@e16-tech.com;NM=1;PH=DS;RN=2;RT=2;SR=0;TI=SMTPD_---.KVAB6Id_1624192033; Received: from 192.168.2.112(mailfrom:wangyugui@e16-tech.com fp:SMTPD_---.KVAB6Id_1624192033) by smtp.aliyun-inc.com(10.147.43.230); Sun, 20 Jun 2021 20:27:13 +0800 Date: Sun, 20 Jun 2021 20:27:14 +0800 From: Wang Yugui To: "NeilBrown" , linux-nfs@vger.kernel.org Subject: Re: any idea about auto export multiple btrfs snapshots? In-Reply-To: <20210618152631.F3DE.409509F4@e16-tech.com> References: <162397637680.29912.2268876490205517592@noble.neil.brown.name> <20210618152631.F3DE.409509F4@e16-tech.com> Message-Id: <20210620202713.AE85.409509F4@e16-tech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.75.04 [en] Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi, > It seems more fixes are needed. when compare btrfs subvol with xfs crossmnt, we found out a new feature difference. /mnt/test xfs /mnt/text/xfs2 another xfs(crossmnt) nfsd4_encode_dirent_fattr() report "/mnt/test/xfs2" + "/"; but /mnt/test btrfs /mnt/test/sub1 btrfs subvol nfsd4_encode_dirent_fattr() report "/mnt/test/" + "sub1"; for '/mnt/test/sub1', nfsd should treat the mountpoint as '/mn/test/sub1', rather than '/mnt/test'? I'm sorry that yet no patch is avaliable, kernel source is quite difficult for me. Best Regards Wang Yugui (wangyugui@e16-tech.com) 2021/06/20