Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2753458ybz; Mon, 27 Apr 2020 04:00:44 -0700 (PDT) X-Google-Smtp-Source: APiQypIP3BRT+JR7RIeq9/aQrdTFMTSaSJya0WPuNymXUhdpUFki7HmHOMN7PGDgSnlwS6Goa9Z8 X-Received: by 2002:a17:907:214f:: with SMTP id rk15mr19622950ejb.301.1587985243941; Mon, 27 Apr 2020 04:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587985243; cv=none; d=google.com; s=arc-20160816; b=EonGHXc6wMLkw48TK9rJKfFc/m8o2GuWM8q3hJs8MJpxb1B5ojqncMH0UMdnl9UCHr de+j8Irpv1gPA+icavP0NkhHOk84nLD7tNOeXlOR56UG/tDVXZufw8Yu486OHohAk1qM 1PnKXF4tF315wdv1HXrdf0cK27vQEUCcjxT57bwRCdzy945BMaWMxKSlziNVGLdMgQLu DH3+LuIYGxCF76TjyXJwN5vYrtt7D1B1tquON7iBQ6i1MsQHUqeDXK3G8Wx91wwuyMXr HubB2Pxrx/UfCFpeZu7ESGmvSFzsXwsRLiZWyuGwWCjGPPdaBilukjN/8bHjn9byFBlr 6jEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:autocrypt :to:subject:from:dkim-signature; bh=Z7a2Fb/GgqKLsKLdung2T1u6un/O5fVLJmtiwIOV9jc=; b=za9MxS5b/E73Rd5+ZQX98AHHMhzg4di+qA5oMsvbYjgWKv3ZOzJBFNGpKOLcRY2wiY 3cHW4oW02X8Paqy++Ph/Af2gihHoKqUtmyHqBVed2TjJKH08bC0Ph/to6VC4O4awx+Kk L+FYTUV2SGZlr2lxq6cTQ6FLkH0MhYTQOlxYlWoCtKTVo/LQ3FM6SqDN+WKt3cOhtr2z 13ameAOxelasZkXd0rHpY07TPfpVnmlIvm+W93lkDQfx/qr3IZahvtLe0gDfa+g2hIXq wkgOnnMfYweq+2FbgpnozgKe7vghSXiHIfRTUlIhlBSenjyEU1r2b84fCdcq4VzIWaHU iexw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TYvZAhqx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j2si8080497ejs.138.2020.04.27.04.00.09; Mon, 27 Apr 2020 04:00:43 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TYvZAhqx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726589AbgD0LAE (ORCPT + 99 others); Mon, 27 Apr 2020 07:00:04 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:58683 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726539AbgD0LAD (ORCPT ); Mon, 27 Apr 2020 07:00:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587985202; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:autocrypt:autocrypt; bh=Z7a2Fb/GgqKLsKLdung2T1u6un/O5fVLJmtiwIOV9jc=; b=TYvZAhqxEPqrztXL1kY7zTwvaekfJL00RY8Ell9CsYq3qSCwKmYMONkQKn1hpGs7TkX559 QUzeqFRTn2rZr8Ms3X2f8fJT+LGdkyTGUiPVLXMVnX9DorFk9zk9P7TsMmMTb4CgPNdhjs OUFG6Gs0x6kBN+ZYAH6bsnrJkmgIubY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-117-2TE088DMNd-_i8QatyfzBA-1; Mon, 27 Apr 2020 07:00:00 -0400 X-MC-Unique: 2TE088DMNd-_i8QatyfzBA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6B1811005510 for ; Mon, 27 Apr 2020 10:59:59 +0000 (UTC) Received: from dresden.str.redhat.com (ovpn-114-29.ams2.redhat.com [10.36.114.29]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 07CEA10013A1 for ; Mon, 27 Apr 2020 10:59:58 +0000 (UTC) From: Max Reitz Subject: Testing auto-submounts To: linux-nfs@vger.kernel.org Autocrypt: addr=mreitz@redhat.com; prefer-encrypt=mutual; keydata= mQENBFXOJlcBCADEyyhOTsoa/2ujoTRAJj4MKA21dkxxELVj3cuILpLTmtachWj7QW+TVG8U /PsMCFbpwsQR7oEy8eHHZwuGQsNpEtNC2G/L8Yka0BIBzv7dEgrPzIu+W3anZXQW4702+uES U29G8TP/NGfXRRHGlbBIH9KNUnOSUD2vRtpOLXkWsV5CN6vQFYgQfFvmp5ZpPeUe6xNplu8V mcTw8OSEDW/ZnxJc8TekCKZSpdzYoxfzjm7xGmZqB18VFwgJZlIibt1HE0EB4w5GsD7x5ekh awIe3RwoZgZDLQMdOitJ1tUc8aqaxvgA4tz6J6st8D8pS//m1gAoYJWGwwIVj1DjTYLtABEB AAG0HU1heCBSZWl0eiA8bXJlaXR6QHJ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tJhzxKLE/ugcOMK520dJDeb6x2xVES+S5LXby0D4juZlvUj+1fwZu+7Io5+B bkhSVPb/QdOVTpnz7zWNyNw+OONo1aBUKkhq2UIByYXgORPFnbfMY7QWHcjpBVw9MgC4tGeF R4bv+1nAMMxKmb5VvQCExr0eFhJUAHAhVg== Message-ID: <877990a3-14ea-9c65-c38a-1701cccf504e@redhat.com> Date: Mon, 27 Apr 2020 12:59:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Content-Transfer-Encoding: quoted-printable Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi everyone, Most of this mail may make it seem like it doesn=E2=80=99t concern NFS at= all, so let me get to my question before the explanation on why I=E2=80=99m as= king it: Do you happen to have any tests for auto-submounts, i.e. creating submounts on the client for every crossmount on the server in the exported directory tree? I was looking in nfstest.git (and xfstests) for things like =E2=80=9Csubmount=E2=80=9D, =E2=80=9Ccrossmount=E2=80=9D,= or =E2=80=9Cautomount=E2=80=9D, but didn=E2=80=99t spot anything. Now, for why I=E2=80=99m asking: I=E2=80=99m involved in virtio-fs, a way to share directories between VM = hosts and guests, using the FUSE protocol. We have the problem of presenting unique st_dev/st_ino combinations in the guest for every unique inode on the host. Right now, we just pass through the st_ino value from the host, but if you have submounts in the shared directory, then those st_ino values may collide between different devices (because the whole tree is just a single mount with a single st_dev in the guest). To fix it, we plan on creating an automounted submount in the guest for every submount on the host, such that every submount has its own st_dev, so the combination of st_dev/st_ino will remain unique. This seems similar to what NFS does with the crossmnt option. Now, because of course we want to test that everything works, I was wondering whether there are any such tests for NFS already that we could modify for virtio-fs to get reasonable coverage. Thanks a lot and kind regards, Max