Date:2010-03-25 17:16:56 (14 years 3 days ago)
Author:Tyler Hicks
Commit:9f37622f897a90ad3c3da5c14d94d8f3ffc62b70
Message:eCryptfs: Turn lower lookup error messages into debug messages

Vaugue warnings about ENAMETOOLONG errors when looking up an encrypted
file name have caused many users to become concerned about their data.
Since this is a rather harmless condition, I'm moving this warning to
only be printed when the ecryptfs_verbosity module param is 1.

Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Files: fs/ecryptfs/inode.c (2 diffs)

Change Details

fs/ecryptfs/inode.c
388388    mutex_unlock(&lower_dir_dentry->d_inode->i_mutex);
389389    if (IS_ERR(lower_dentry)) {
390390        rc = PTR_ERR(lower_dentry);
391        printk(KERN_ERR "%s: lookup_one_len() returned [%d] on "
392               "lower_dentry = [%s]\n", __func__, rc,
393               ecryptfs_dentry->d_name.name);
391        ecryptfs_printk(KERN_DEBUG, "%s: lookup_one_len() returned "
392                "[%d] on lower_dentry = [%s]\n", __func__, rc,
393                encrypted_and_encoded_name);
394394        goto out_d_drop;
395395    }
396396    if (lower_dentry->d_inode)
...... 
417417    mutex_unlock(&lower_dir_dentry->d_inode->i_mutex);
418418    if (IS_ERR(lower_dentry)) {
419419        rc = PTR_ERR(lower_dentry);
420        printk(KERN_ERR "%s: lookup_one_len() returned [%d] on "
421               "lower_dentry = [%s]\n", __func__, rc,
422               encrypted_and_encoded_name);
420        ecryptfs_printk(KERN_DEBUG, "%s: lookup_one_len() returned "
421                "[%d] on lower_dentry = [%s]\n", __func__, rc,
422                encrypted_and_encoded_name);
423423        goto out_d_drop;
424424    }
425425lookup_and_interpose:

Archive Download the corresponding diff file



interactive