Messages in this thread | | | Date | Sat, 24 Jul 1999 11:34:40 +0300 | From | Matti Aarnio <> | Subject | Re: 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/
| |