Re: unsigned short for nlink_t

Trond Myklebust (trond.myklebust@fys.uio.no)
05 Dec 1999 23:48:42 +0100


>>>>> " " == Alexander Viro <viro@math.psu.edu> writes:

> On Fri, 3 Dec 1999, Russell Coker wrote:

>> Currently we have an unsigned short used for the number of hard
>> links to a file. I have an application which uses 30,000 hard
>> links and I had hoped to scale it to more than 64K hard
>> links...
>>
>> Is there any possibility that this could be changed in future
>> kernels? Or is POSIX forcing it to be only a 16bit number?

> Physical layout of many filesystems doesn't support that. Ditto
> for NFS, IIRC.

Both the NFSv2 and v3 protocols allow an unsigned 32-bit value for
'nlinks'.

Cheers,
Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/