lkml.org 
[lkml]   [2001]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Larger dev_t
    Andries.Brouwer@cwi.nl wrote:
    >
    > OK - everybody back from San Jose - pity I couldnt come -
    > and it is no longer April 1st, so we can continue quarreling
    > a little.
    >
    > Interesting that where I had divided stuff in the trivial part,
    > the interesting part and the lot-of-work part we already start
    > fighting on the trivial part. Maybe it is not very important -
    > still I'd prefer to do things right from the start.
    >
    > Yes. We need a larger dev_t as everybody agrees.
    > How large?
    >
    > What is dev_t used for? It is a communication channel from
    > filesystem to user space (via the stat() system call)
    > and from user space to filesystem (via the mknod() system call).
    >
    > So, it seems the kernel interface must allow passing the values
    > that actually occur, in present or future file systems.
    > Making the interface narrow is only asking for problems later.
    > Are there already any filesystems that use 64-bits?
    > I would say that that is irrelevant - what we don't have today
    > may come tomorrow - but in fact the NFSv3 interface uses
    > a 64-bit device number.
    >
    > So glibc comes with 64 bits, the kernel has to hand these bits
    > over to NFS but is unwilling to - you are not going to get
    > more than 32. Why?
    >
    > > I have a holy crusade.
    >
    > I fail to see the connection. There is no bloat here, the kernel
    > is hardly involved. Some values are passed. If the values are
    > larger than the filesystem likes it will probably return EINVAL.
    > But the kernel has no business getting in the way.
    >
    > There is no matter of efficiency either - mknod is not precisely
    > the most frequently used system call, and our stat interface, which
    > really is important, is 64 bits today.

    I think the only reason for Linux to take 12 bit major is the
    fact that then he only has to increas the lenght of the static
    major device pointers in the kernel and it will be there...
    However the problem is mostly that the aforementioned array
    of pointers shouldn't me there in first place.

    >
    > Not using 64 also gives interesting small problems with Solaris or
    > FreeBSD NFS mounts. One uses 14+18, the other 8+24, so with 12+20
    > we cannot handle Solaris' majors and we cannot handle FreeBSD's minors.
    >
    > [Then there were discussions about naming.
    > These are interesting, but independent.
    > The current discussion is almost entirely about mknod.]
    >
    > Andries
    > -
    > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    > the body of a message to majordomo@vger.kernel.org
    > More majordomo info at http://vger.kernel.org/majordomo-info.html
    > Please read the FAQ at http://www.tux.org/lkml/

    --
    - phone: +49 214 8656 283
    - job: eVision-Ventures AG, LEV .de (MY OPINIONS ARE MY OWN!)
    - langs: de_DE.ISO8859-1, en_US, pl_PL.ISO8859-2, last ressort:
    ru_RU.KOI8-R
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:17    [W:2.468 / U:0.096 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site