[Samba] Re: Trying to delay for oplocks twice

Jeremy Allison jra at samba.org
Wed Jan 4 23:14:37 GMT 2006


On Wed, Jan 04, 2006 at 09:26:15PM +0100, Beschorner Daniel wrote:
> The question is whether blocking is well defined in this case (because lpd
> hangs) or if it is an error that the file serving/locking services of the
> smbd process hang altogether.
> 
> My print section looks like this:
> 
> printing = lprng
> print command = lpr -r -P'%p' %s
> lpq command = lpq -P'%p'
> lprm command = lprm -P'%p' %j
> lppause command = lpc hold '%p' %j
> lpresume command = lpc release '%p' %j
> queuepause command = lpc stop '%p'
> queueresume command = lpc start '%p'
> use client driver = No
> default devmode = No
> force printername = No 
> 
> It's a Linux x64 system with lprng printing.
> 

An smbd is blocked whist running a printing command.
The print command must finish with a "reasonable" time,
which is around 20 seconds or less. If it takes longer
there's a possibility of it not responding in time to
an oplock break message (as these will not be processed
whilst the smbd is waiting).

Jeremy.


More information about the samba mailing list