summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Wuerthner <ralph.wuerthner@de.ibm.com>2014-01-31 10:31:21 +0100
committerJeremy Allison <jra@samba.org>2014-05-15 02:19:41 +0200
commit5d998358e23ea572fa9c695ad953bab8ae49744c (patch)
treee5e8076b404c755206498d6ae0213ec612b359ff
parente9cff2183196f25eb734c8779e84fc382ab1e342 (diff)
downloadsamba-5d998358e23ea572fa9c695ad953bab8ae49744c.tar.gz
s3:vfs_gpfs: increase log level for EPERM and EACCES errors in gpfs_get_xattr()
Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com> Reviewed-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu May 15 02:19:41 CEST 2014 on sn-devel-104
-rw-r--r--source3/modules/vfs_gpfs.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c
index a56af8f99a4..5ad2595544d 100644
--- a/source3/modules/vfs_gpfs.c
+++ b/source3/modules/vfs_gpfs.c
@@ -1468,13 +1468,20 @@ static ssize_t gpfs_get_xattr(struct vfs_handle_struct *handle, const char *pat
ret = get_gpfs_winattrs(discard_const_p(char, path), &attrs);
if ( ret == -1){
+ int dbg_lvl;
+
if (errno == ENOSYS) {
return SMB_VFS_NEXT_GETXATTR(handle, path, name, value,
size);
}
- DEBUG(1, ("gpfs_get_xattr: Get GPFS attributes failed: "
- "%d (%s)\n", ret, strerror(errno)));
+ if (errno != EPERM && errno != EACCES) {
+ dbg_lvl = 1;
+ } else {
+ dbg_lvl = 5;
+ }
+ DEBUG(dbg_lvl, ("gpfs_get_xattr: Get GPFS attributes failed: "
+ "%d (%s)\n", ret, strerror(errno)));
return -1;
}