HomeFreeBSD

Remove .readdir from zpl_file_operations table

Description

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

Details

Provenance
Caleb James DeLisle <calebdelisle@lavabit.com>Authored on Apr 16 2013, 9:23 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 19 2013, 10:36 PM
Parents
rGb28e57cb82c5: Allow setting a lower ashift with -o ashift
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG8f1e11b6105b: Remove .readdir from zpl_file_operations table (authored by Caleb James DeLisle <calebdelisle@lavabit.com>).Apr 19 2013, 10:36 PM