From nobody Fri Dec 03 03:26:57 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BA1D718B373F; Fri, 3 Dec 2021 03:26:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J4yt93DjBz4mBs; Fri, 3 Dec 2021 03:26:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4A31C14E6; Fri, 3 Dec 2021 03:26:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1B33QvBV063805; Fri, 3 Dec 2021 03:26:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B33QvQx063804; Fri, 3 Dec 2021 03:26:57 GMT (envelope-from git) Date: Fri, 3 Dec 2021 03:26:57 GMT Message-Id: <202112030326.1B33QvQx063804@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alan Somers Subject: git: c2d342c50906 - main - fusefs: better debugging for FUSE_RENAME in the tests List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: asomers X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c2d342c509065bee6392624e95b75cf7b3bb9c45 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638502017; 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; bh=nKwJepLfKSm2lrsz2rhsXa6UiZpfbVd5O9nGbV0tAYU=; b=kVvPe7b6i6hEucbbG0KK/mT5jUHSuZQ8dxw674GF5RabjqzgEsadghj4JlW7GUuJS7Ut5n h9phX7OUyoRz5f//vk/d6bUmPBJitajx/l81x0G/mfbSonGpKICuPzZ+DnsMwW2NgSFQzw IxRA55Y2wcmNLOwcI3nSzaZfz2UxoifLsOohH20PnxktB82Ee9v6m4GRCF8MEDqjh+b4A9 YCh6Yt/5/5BqWXmt6iA3z+aOXKCXHj72q++2LKFguyCsdqRdt0Nr59MxfLSYX4Tcpl64Ln /MsaDVDpIJAPwjjnDLLIOIfwSrsXgmBUQDIESPzJM0wYNUKa/+cfjwC6SWn97g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638502017; a=rsa-sha256; cv=none; b=YbpEzikoCNMYv3x53oBdbQTDHqSlDuMdaf4tCP4yVCE4oodvM9xGh7+ulBlveuj6yicdBf G8Ea997D/rRn04qT07zpXLzbBLqz4n9VaD0dVM2bKBgadwY1Ib28ShKRWsBR56AHiJskIs 3xiaggLQjIETF3OmxruDfYWm+NKtwhuei2sikTMHKVH2xeLOJrtwJ1hW2I+pbRJFfVluoa iwewrKxTXPx0bMWblgiOyeSNjzQFf9S+ICe5JndK4NiWKt3UuldXrAkygWjoHJARnWtJmF XEjslIMS1g6H0T2sc9o/+hwEW7Qi+AymquIpCxHkv7pHIio2+5FZbrl7g+AwnQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=c2d342c509065bee6392624e95b75cf7b3bb9c45 commit c2d342c509065bee6392624e95b75cf7b3bb9c45 Author: Alan Somers AuthorDate: 2021-12-03 03:26:27 +0000 Commit: Alan Somers CommitDate: 2021-12-03 03:26:27 +0000 fusefs: better debugging for FUSE_RENAME in the tests MFC after: 2 weeks --- tests/sys/fs/fusefs/mockfs.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/sys/fs/fusefs/mockfs.cc b/tests/sys/fs/fusefs/mockfs.cc index 8a2d1f910867..a943d3d6972c 100644 --- a/tests/sys/fs/fusefs/mockfs.cc +++ b/tests/sys/fs/fusefs/mockfs.cc @@ -290,6 +290,15 @@ void MockFS::debug_request(const mockfs_buf_in &in, ssize_t buflen) in.body.release.flags, in.body.release.lock_owner); break; + case FUSE_RENAME: + { + const char *src = (const char*)in.body.bytes + + sizeof(fuse_rename_in); + const char *dst = src + strlen(src) + 1; + printf(" src=%s newdir=%" PRIu64 " dst=%s", + src, in.body.rename.newdir, dst); + } + break; case FUSE_SETATTR: if (verbosity <= 1) { printf(" valid=%#x", in.body.setattr.valid);