lkml.org 
[lkml]   [1999]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: f_frsize value in struct statvfs set to 0 instead of the f_bsize value
    On Fri, Jul 23, 1999 at 02:10:38PM -0700, Zack Brown wrote:
    > Got this today. Thought I'd pass it on...

    Yes, the problem described in inside glibc 2.1 for INTEL systems.
    Report it to glibc maintainers.

    I side-step the problem with a code like this:

    struct statvfs statbuf; /* SysV and BSD definitions differ.. */
    if ((rc = fstatvfs(fd, &statbuf)) == 0) {
    /* Sidestep a problem at glibc 2.1.1 when running at Linux/i386 */
    if (statbuf.f_frsize != 0)
    availspace = statbuf.f_bavail * statbuf.f_frsize;
    else
    availspace = statbuf.f_bavail * statbuf.f_bsize;
    }


    /Matti Aarnio <matti.aarnio@sonera.fi>

    > ---------- Forwarded message ----------
    > Date: Fri, 23 Jul 1999 11:22:55 -0600
    > From: Gordon Haverland <haverlan@agric.gov.ab.ca>
    > To: zbrown@linuxcare.com
    > Subject: kernel traffic
    >
    > Hi!
    > I'm a LUG president in western Canada, don't get involved
    > in kernel development. But I am involved in LPRng, a print
    > spooling system. A while ago, it was pointed out that
    > RedHat 6.0 (probably Linux in general) has a "bug" in
    > that they set the f_frsize value in struct statvfs to
    > 0 instead of the f_bsize value.
    >
    > Anyway, as I don't know where to pass this onto, I was
    > hoping maybe you did.
    >
    > Have a great weekend.
    > Gordon Haverland
    >
    >
    > -
    > 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/

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

    \
     
     \ /
      Last update: 2005-03-22 13:53    [W:0.023 / U:1.512 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site