Messages in this thread | | | Date | Tue, 7 Mar 2000 21:19:09 -0500 (EST) | From | "Albert D. Cahalan" <> | Subject | Re: [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/
| |