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

Roman Zippel
2003-07-17T08:32:38Z

Hi,

On Thu, 17 Jul 2003, Joel Becker wrote:

> On Wed, Jul 16, 2003 at 04:49:17PM -0700, Andrew Morton wrote:
> > Please describe a scenario in which a filesystem which works on current
> > kernels will, in a 64-bit-dev_t kernel, call init_special_inode() with a
> > 16:16 encoded device number.
>
> Perhaps he's thinking of NFSv2. If you want to make a device
> bigger than 8:8... Personally, I'm happy to ignore NFSv2 for this.

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

bye, Roman