lkml.org 
[lkml]   [2000]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Return file types from readdir()

Jamie Lokier writes:
> Ulrich Drepper wrote:

>> Please use a new syscall.
>
> A new syscall would be tidy, preferably one returning the binary layout
> that Glibc returns to apps. Perhaps it should take an extra argument
> like BSD's __readdirx for future whiteout/unionfs support.
>
> (readdir64 would not be implemented as a syscall -- you don't need 64
> bit dir offsets).

We should have 64 bits here. Directory offsets need not be actual
offsets into a linear directory file. The extra bits will be useful for
filesystems with complex directories. Consider what the offset means
for a B-tree directory or worse.

Since you don't really need a system call though, don't bother.

BTW, if you were to add a new system call, do it right. Doing the
job right means using a very general interface that has low kernel
overhead. Glibc is not supposed to dictate kernel interfaces.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.019 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site