Re: [PATCH] new system call mknod64

Roman Zippel
2003-04-21T23:37:32Z

Hi,

On Mon, 21 Apr 2003, Linus Torvalds wrote:

> > Not anymore for blockdevices. And now that Al's back not anymore soon
> > for charater devices, too :)
>
> Actually, we still do it for both block _and_ character devices.
>
> Look at "nfs*xdr.c" to see what's up.

This is actually a good example to show how problematic the major/minor
split is. It depends very much on the nfs server which bits you actually
get back and it requires some guessing from the client side which bits it
can use. A linux-2.2 server will happilly truncate that value to 16 bit,
BSD will give you a 8:24 value back.
It's very unlikely that you can use a 64bit dev_t reliably with nfs in the
foreseeable future.

bye, Roman