Linux filesystem development
 help / color / mirror / Atom feed
* readdir help ;)
@ 2003-06-28 13:42 Nir Tzachar
  2003-06-28 15:41 ` Livio Baldini Soares
  0 siblings, 1 reply; 3+ messages in thread
From: Nir Tzachar @ 2003-06-28 13:42 UTC (permalink / raw)
  To: linux-fsdevel

hi all.

I have a strange problem involving sys_getdents. Let me describe it
shortly:
In my filesystem, i create 200 files with " touch `seq 1 200` "
all the files are created on the f/s (assigned inodes and entered in the
directory structure ) .
But, (and its a very big but..) every time one (or several) of the files
*disappears* . What i mean is, sys_getdents will not return it.
Now, this problem probably arises from smth dumb i did again, but maybe
someone have an insight :)

Ok, i tried to solve it, and here is what happens:
Firstly, the directory holding the files is ok, and when i
read it with user space tools ( circumventing the vfs ) all is ok.
When i issue a sys_getdents ( via readdir ) i can c all the entries
being read through my file_op->readdir, and i mean all, even the
miscreant one.....
Filldir return 0 every time, but the entry does not get propagated to
user space, although all the rest entries are ..

umounting and mounting again does not solve the problem.
to further complicate the problem, this entry is in the dcache, since
" ls miscreant_entry " works...

well, im buffled. any advice??



========================================================================
nir.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-06-29  6:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-28 13:42 readdir help ;) Nir Tzachar
2003-06-28 15:41 ` Livio Baldini Soares
2003-06-29  7:03   ` Nir Tzachar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox