From 0a22ada486aeeee70860f7ec8db96e6abb813eef Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 19 Feb 2004 23:23:52 +0000 Subject: [PATCH] Add CWARN to permission fixups per shaver's original request. b=2661 --- lustre/lvfs/lvfs_linux.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lustre/lvfs/lvfs_linux.c b/lustre/lvfs/lvfs_linux.c index b59039f..e351c07 100644 --- a/lustre/lvfs/lvfs_linux.c +++ b/lustre/lvfs/lvfs_linux.c @@ -199,6 +199,8 @@ struct dentry *simple_mknod(struct dentry *dir, char *name, int mode) /* Fixup file permissions if necessary */ if ((old_mode & S_IALLUGO) != (mode & S_IALLUGO)) { + CWARN("fixing permissions on %s from %o to %o\n", + name, old_mode, mode); dchild->d_inode->i_mode = (mode & S_IALLUGO) | (old_mode & ~S_IALLUGO); mark_inode_dirty(dchild->d_inode); @@ -241,6 +243,8 @@ struct dentry *simple_mkdir(struct dentry *dir, char *name, int mode) /* Fixup directory permissions if necessary */ if ((old_mode & S_IALLUGO) != (mode & S_IALLUGO)) { + CWARN("fixing permissions on %s from %o to %o\n", + name, old_mode, mode); dchild->d_inode->i_mode = (mode & S_IALLUGO) | (old_mode & ~S_IALLUGO); mark_inode_dirty(dchild->d_inode); -- 1.8.3.1