Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D54F3C54FD0 for ; Mon, 27 Apr 2020 11:00:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A9038206B6 for ; Mon, 27 Apr 2020 11:00:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="TYvZAhqx" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726589AbgD0LAE (ORCPT ); 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 AAG0HU1heCBSZWl0eiA8bXJlaXR6QHJlZGhhdC5jb20+iQFTBBMBCAA9AhsDBQkSzAMABQsJ CAcCBhUICQoLAgQWAgMBAh4BAheABQJVzie5FRhoa3A6Ly9rZXlzLmdudX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YXgORPFnbfMY7QWHcjpBVw9MgC4tGeF 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