summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorCaleb James DeLisle <[email protected]>2013-04-16 05:23:39 -0400
committerBrian Behlendorf <[email protected]>2013-04-19 15:36:47 -0700
commit8f1e11b6105bf46a4258958eb3dcae2ab21ed8b2 (patch)
treed31c1371ff8820e3ec5325e2f8418ba8d1c8062c /module
parentb28e57cb82c5d5a992b90c56f67dd7dbf9b6f296 (diff)
Remove .readdir from zpl_file_operations table
The zpl_readdir() function shouldn't be registered as part of the zpl_file_operations table, it must only be part of the zpl_dir_file_operations table. By removing this callback the VFS will now correctly return ENOTDIR when calling getdents() on a file. Signed-off-by: Brian Behlendorf <[email protected]> Closes #1404
Diffstat (limited to 'module')
-rw-r--r--module/zfs/zpl_file.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/module/zfs/zpl_file.c b/module/zfs/zpl_file.c
index 9c27b7f1d..db6a72c98 100644
--- a/module/zfs/zpl_file.c
+++ b/module/zfs/zpl_file.c
@@ -446,7 +446,6 @@ const struct file_operations zpl_file_operations = {
.llseek = generic_file_llseek,
.read = zpl_read,
.write = zpl_write,
- .readdir = zpl_readdir,
.mmap = zpl_mmap,
.fsync = zpl_fsync,
#ifdef HAVE_FILE_FALLOCATE