Thread (2 messages) 2 messages, 2 authors, 2012-09-24

ext4_readdir ignores filldir error code

From: Kasatkin, Dmitry <hidden>
Date: 2012-09-24 12:47:26
Also in: linux-fsdevel

Hello,

I noticed following in ext4_readdir() and in other file systems..

filldir returns error in "error":
       error = filldir(dirent, de->name, ...)

But function itself returns "ret"

What I can see is that when filldir fails, ext4_readir quits, but with
no error....
       while (!error && !stored && filp->f_pos < inode->i_size) {


Is it by design or an error?

- Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help