[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: disk full message?!
> I had same problem with Zmailer 2.99.50.s15 on i386 Potato.
> I think this is glibc 2.1 problem with statvfs. This probably return
> incorrect f_frsize in statvfs structure.
Ok, finally I myself got around to try this at my Linux/i386 after
updating it to glibc 2.1.1:
(gdb) break fd_statfs
Breakpoint 1 at 0x8048527: file fdstatfs.c, line 30.
(gdb) run .
Starting program: /home/mea/src/zmailer/smtpserver/fdstatfs-test .
Breakpoint 1, fd_statfs (fd=5) at fdstatfs.c:30
30 long availspace = 0;
(gdb) next
40 if ((rc = fstatvfs(fd, &statbuf)) == 0) {
(gdb)
42 if (statbuf.f_frsize != 0)
(gdb) print statbuf
$1 = {f_bsize = 1024, f_frsize = 0, f_blocks = 927332, f_bfree = 211680,
f_bavail = 163775, f_files = 239616, f_ffree = 215170, f_favail = 215170,
f_fsid = {__val = {838, -1072632965}}, f_flag = 0, f_namemax = 255,
f_spare = {0, 0, 0, 0, 0, 0}}
Ok, so for some reason the f_frsize isn't set properly by the compability
layer at glibc 2.1. The Linux kernel does not have f_frsize itself..
The CVS has now a circumvention for this.
> --
> Daniel Podlejski <underley@onet.pl>
/Matti Aarnio <mea@nic.funet.fi>