Remove .readdir from zpl_file_operations table
authorCaleb James DeLisle <calebdelisle@lavabit.com>
Tue, 16 Apr 2013 09:23:39 +0000 (05:23 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 19 Apr 2013 22:36:47 +0000 (15:36 -0700)
commit8f1e11b6105bf46a4258958eb3dcae2ab21ed8b2
treed31c1371ff8820e3ec5325e2f8418ba8d1c8062c
parentb28e57cb82c5d5a992b90c56f67dd7dbf9b6f296
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 <behlendorf1@llnl.gov>
Closes #1404
module/zfs/zpl_file.c