Re: [PATCH] print_dev_t for 2.6.0-test1-mm

Joel Becker
2003-07-17T09:00:42Z

On Thu, Jul 17, 2003 at 10:47:08AM +0200, Roman Zippel wrote:
> It's not just NFS2, with NFS3 and later it also depends on how many and
> which bits the server keeps. They usually use the standard major/minor/
> makedev macros, so you only get back what the platform supports.
> Splitting dev_t in major/minor numbers can be lots of fun...

Well, exporting devices over NFS is always tricky, because if
the server isn't an identical OS, you can't even trust the numbers. As
you point out, you get the platform's idea of a device number, and that
doesn't map to your local OS.
It is no different than today. You have to make sure that the
server's filesystem stores device numbers valid for the client if the
client wants to use those device nodes.

Joel

--

"In the room the women come and go
Talking of Michaelangelo."

Joel Becker
Senior Member of Technical Staff
Oracle Corporation
E-mail: joel.becker@oracle.com
Phone: (650) 506-8127