Skip to contentSkip to conversation

use generic_file_llseek for directories

PATCH Christoph Hellwig 1 participant 1 message Sep 12, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 5 lines · Christoph Hellwig

XFS currently doesn't set up a .llseek for directories and thus defaults to default_llseek. default_llseek only takes the BKL which means there is not exclusion vs xfs_readdir and thus we get a risk of corrupting the file position. Additionally default_llseek only allows seeks to 32bit offsets by default.

Al put this change into mainline as part of fixing up various filesystems in the meantime.