[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#210861: libc6: readdir always returns dtype as unknown



On Sun, 2003-09-14 at 17:08, Philip Blundell wrote:
> On Sun, 2003-09-14 at 16:02, Jacob Kolding wrote:
> > But a friend of mine has the same problem with kernel 2.4.22 and
> > reiserfs so how can it be a kernel problem. unless it's at kernel config
> > option?
> >
> > attached is the strace from my friend.
> 
> In this case, getdents64() is indeed being used correctly.  But reiserfs
> doesn't provide d_type information, so again you will get DT_UNKNOWN. 
> Your friend needs to change to a different filesystem.

In that case readdir seems like a rather useless function if it is so
dependent on kernel versions an fs types.

Do you know of any other functions that can be used instead?
My goal is to have a program that works with any 
fs type and kernel version.

/Jacob Kolding


> p.
> 




Reply to: