Skip to content
Permalink
Browse files

Added some zfs_dbgmsg statements in xattr code.

  • Loading branch information...
PaulZ-98 committed Sep 26, 2019
1 parent 5ca64be commit 0809cc9049fa7d917491596cce8345c301464f44
Showing with 10 additions and 2 deletions.
  1. +10 −2 module/os/linux/zfs/zpl_xattr.c
@@ -365,7 +365,7 @@ __zpl_xattr_get(struct inode *ip, const char *name, void *value, size_t size,
out:
if (error == -ENOENT)
error = -ENODATA;

zfs_dbgmsg("__zpl_xattr_get returning %d", error);
return (error);
}

@@ -395,8 +395,10 @@ __zpl_xattr_where(struct inode *ip, const char *name, int *where, cred_t *cr)
error = zpl_xattr_get_dir(ip, name, NULL, 0, cr);
if (error >= 0)
*where |= XATTR_IN_DIR;
else if (error != -ENOENT)
else if (error != -ENOENT) {
zfs_dbgmsg("__zpl_xattr_where (1) returning %d", error);
return (error);
}

if (*where == (XATTR_IN_SA|XATTR_IN_DIR))
cmn_err(CE_WARN, "ZFS: inode %p has xattr \"%s\""
@@ -405,6 +407,9 @@ __zpl_xattr_where(struct inode *ip, const char *name, int *where, cred_t *cr)
error = -ENODATA;
else
error = 0;
if (error != 0)
zfs_dbgmsg("__zpl_xattr_where (2) returning %d", error);

return (error);
}

@@ -428,6 +433,9 @@ zpl_xattr_get(struct inode *ip, const char *name, void *value, size_t size)
spl_fstrans_unmark(cookie);
crfree(cr);

if (error != 0)
zfs_dbgmsg("zpl_xattr_get returning error %d", error);

return (error);
}

0 comments on commit 0809cc9

Please sign in to comment.
You can’t perform that action at this time.