[lkml]   [2002]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [reiserfs-dev] Re: [PATCH] sparc32: wrong type of nlink_t
    >    From: Tomas Szepe <>
    > Date: Thu, 5 Sep 2002 07:40:08 +0200
    > > Our disk format has link counts > 32k
    > Does the internal reiserfs nlink value translate directly
    > to what stat() puts in st_nlink?
    > It really doesn't matter. Even if you have some huge value that can't
    > be represented in st_nlink, you can report to the user that st_nlink
    > is NLINK_MAX.
    > This is one possible solution to this whole problem.

    And a pretty straightforward one, too. Convert the internal reiserfs
    link stuff to an unsigned short, find NLINK_MAX using the code I posted
    last night (or maybe simply grab it from userspace includes) and add
    a check to your stat() code to return NLINK_MAX if necessary.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:28    [W:0.022 / U:89.140 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site