Re: fcntl(2) and other file systems like XFS

From: Jamie Lokier (lfs@tantalophile.demon.co.uk)
Date: Tue Mar 21 2000 - 10:36:10 EST


Eric W. Biederman wrote:
> > And you will notice there are plenty of collisions already, including
> > quite plausible ones with the ext2 ioctls..
>
> Just my 2 cents.
> It was mentioned earlier one of the disadvantages of ioctl was that for
> special files, that have their own ioctls we can't have use bot sets.
>
> I just too a quick look, and it looks like ioctl can accomplish both
> just with a little care. In particular you install some kind of
> wrapper for the inode operations after calling init_special_inode...

I din't think that's a good idea.

What happens when you have /dev on an XFS filesystem, you open a device
and call a device-specific ioctl()... but it collides with an XFS ioctl
number.

Something will go wrong, won't it?

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



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:33 EST