diff mbox series

[05/16] fuse2fs: log names of xattrs being set/get/removed

Message ID 174553065016.1160461.12942341433377716292.stgit@frogsfrogsfrogs
State New
Headers show
Series [01/16] fuse2fs: refuse unsupported features | expand

Commit Message

Darrick J. Wong April 24, 2025, 9:42 p.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Actually record the names of the xattrs being modified to make it easier
to debug fstests failures.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
 misc/fuse2fs.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c
index 5de6562ff97ecd..f499231dd04c94 100644
--- a/misc/fuse2fs.c
+++ b/misc/fuse2fs.c
@@ -2271,7 +2271,7 @@  static int op_getxattr(const char *path, const char *key, char *value,
 		ret = translate_error(fs, 0, err);
 		goto out;
 	}
-	dbg_printf(ff, "%s: ino=%d\n", __func__, ino);
+	dbg_printf(ff, "%s: ino=%d name=%s\n", __func__, ino, key);
 
 	ret = check_inum_access(fs, ino, R_OK);
 	if (ret)
@@ -2438,7 +2438,7 @@  static int op_setxattr(const char *path EXT2FS_ATTR((unused)),
 		ret = translate_error(fs, 0, err);
 		goto out;
 	}
-	dbg_printf(ff, "%s: ino=%d\n", __func__, ino);
+	dbg_printf(ff, "%s: ino=%d name=%s\n", __func__, ino, key);
 
 	ret = check_inum_access(fs, ino, W_OK);
 	if (ret == -EACCES) {
@@ -2504,7 +2504,7 @@  static int op_removexattr(const char *path, const char *key)
 		ret = translate_error(fs, 0, err);
 		goto out;
 	}
-	dbg_printf(ff, "%s: ino=%d\n", __func__, ino);
+	dbg_printf(ff, "%s: ino=%d name=%s\n", __func__, ino, key);
 
 	ret = check_inum_access(fs, ino, W_OK);
 	if (ret)