Linux LVM users
 help / color / mirror / Atom feed
* Re: [linux-lvm] Re: [RFLART] kdev_t in ioctls
@ 2002-01-15 14:46 Andries.Brouwer
  0 siblings, 0 replies; 9+ messages in thread
From: Andries.Brouwer @ 2002-01-15 14:46 UTC (permalink / raw)
  To: hch, torvalds; +Cc: alan, linux-kernel, linux-lvm, viro

    On Mon, 14 Jan 2002, Christoph Hellwig wrote:
    >
    > I know - still it makes Linus' suggestion not work on ~90% of the
    > systems.

    It doesn't matter if user-land compilation breaks. As long as old binaries
    work (and they will), we're fine.

    User-land was _already_ broken. By virtue of using a type that it should
    NOT have used.

    If you want to use __kernel_dev_t, go ahead.

            Linus

Yes. As everyone knows, one should not use kernel includes.
On the other hand, having local copies of everything is also
a bad habit, to be avoided when possible.
With Linux it is generally impossible to avoid going to local
copies, but so far losetup survived with the construction

% cat loop.h
#include <linux/posix_types.h>
#undef dev_t
#define dev_t __kernel_dev_t
#include <linux/loop.h>
#undef dev_t
%

Yecch.

(This is terribly ugly, but the alternative may be even worse:
lots of #ifdef's testing architecture etc.)

It is a pity that dev_t, a type that is not used anywhere in the
kernel except at the interface with user space, is a different
type from what user space uses.

Andries

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-01-15 14:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.GSO.4.21.0201141227260.224-100000@weyl.math.psu.edu>
2002-01-14 12:04 ` [linux-lvm] Re: [RFLART] kdev_t in ioctls Linus Torvalds
2002-01-14 12:09   ` Christoph Hellwig
2002-01-14 12:14     ` Christoph Hellwig
2002-01-14 12:45       ` Alan Cox
2002-01-14 12:47         ` Christoph Hellwig
2002-01-14 12:53           ` Linus Torvalds
2002-01-14 12:21   ` Alexander Viro
2002-01-15  6:27   ` Joe Thornber
2002-01-15 14:46 Andries.Brouwer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox