mirror of
https://github.com/ceph/ceph
synced 2024-12-14 23:46:28 +00:00
kclient: initialize readdir next_offset on dir open
Otherwise we don't compensate for . and .. properly.
This commit is contained in:
parent
04455b859a
commit
841827015c
@ -61,6 +61,7 @@ static int ceph_init_file(struct inode *inode, struct file *file, int fmode)
|
||||
return -ENOMEM;
|
||||
}
|
||||
cf->fmode = fmode;
|
||||
cf->next_offset = 2;
|
||||
file->private_data = cf;
|
||||
BUG_ON(inode->i_fop->release != ceph_release);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user