Re: [PATCH] start of d_type changes (was: How to extend struct stat?)

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Fri, 15 Oct 1999 20:24:24 +0200


I wrote:
> Here is a patch which changes the internel kernel API of f_op->readdir.
> It is the simple and obvious change: each filesystem passes an
> additional "unsigned char d_type" back to the filldir callback.
> In the absence of useful information, they can pass DT_UNKNOWN.
>
> Surprisingly many filesystems are able to pass useful information back.
> So this patch does that when it's simple to code.
>
> readdir is not the only thing which uses this callback, so the changes
> are a bit bigger than you'd think. nfsd, umsdos and vfat needed minor
> changes. The old struct dirent is also fixed in stone for some vfat and
> umsdos ioctls. Binary compatibility is preserved.

The patch didn't get through the samba listserver (too large). I figure
that since the patch touches ioctls used by Samba, they might be
interested. So an exact copy of the article and patch can be found at:

http://www.tantalophile.demon.co.uk/d_type/d_type.diff

enjoy,
-- Jamie

-
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/