[4530] in Athena Bugs

home help back first fref pref prev next nref lref last post

Vax 6.4R lpd computes disksize incorrectly

daemon@ATHENA.MIT.EDU (epeisach@ATHENA.MIT.EDU)
Thu Mar 15 14:31:21 1990

From: epeisach@ATHENA.MIT.EDU
Date: Thu, 15 Mar 90 14:31:08 -0500
To: bugs@ATHENA.MIT.EDU

When a job is sent to the printer, lpd first tries to determine if there
is room on the remote disk for the file. I believe there is an error in
this code as it apparently accepts the job and starts spooling to disk
and the later after filling the disk returns an error message.

The code is gross. Looking at recvjob.c, the routine chksize is one that
is supposed to do the work. It opens the raw disk and attempts to read
the superblock and then do computations based on this. A better method
would be to use the routine statfs which would be more accurate....

	Ezra 

home help back first fref pref prev next nref lref last post