git: 57d42454e143 - stable/12 - fusefs: better debugging for FUSE_RENAME in the tests
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 19 Oct 2022 03:21:59 UTC
The branch stable/12 has been updated by asomers:
URL: https://cgit.FreeBSD.org/src/commit/?id=57d42454e143a8ea6f34ab94dec8e6313529e43f
commit 57d42454e143a8ea6f34ab94dec8e6313529e43f
Author: Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2021-12-03 03:26:27 +0000
Commit: Alan Somers <asomers@FreeBSD.org>
CommitDate: 2022-10-19 03:21:08 +0000
fusefs: better debugging for FUSE_RENAME in the tests
(cherry picked from commit c2d342c509065bee6392624e95b75cf7b3bb9c45)
---
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 2295891b1b87..383bea65e764 100644
--- a/tests/sys/fs/fusefs/mockfs.cc
+++ b/tests/sys/fs/fusefs/mockfs.cc
@@ -252,6 +252,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);