aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfsctl.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index b53b1d042f1..7f0fc8861b8 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -121,6 +121,16 @@ static ssize_t nfsctl_transaction_write(struct file *file, const char __user *bu
121 121
122static ssize_t nfsctl_transaction_read(struct file *file, char __user *buf, size_t size, loff_t *pos) 122static ssize_t nfsctl_transaction_read(struct file *file, char __user *buf, size_t size, loff_t *pos)
123{ 123{
124 static int warned;
125 if (file->f_dentry->d_name.name[0] == '.' && !warned) {
126 char name[sizeof(current->comm)];
127 printk(KERN_INFO
128 "Warning: \"%s\" uses deprecated NFSD interface: %s."
129 " This will be removed in 2.6.40\n",
130 get_task_comm(name, current),
131 file->f_dentry->d_name.name);
132 warned = 1;
133 }
124 if (! file->private_data) { 134 if (! file->private_data) {
125 /* An attempt to read a transaction file without writing 135 /* An attempt to read a transaction file without writing
126 * causes a 0-byte write so that the file can return 136 * causes a 0-byte write so that the file can return