search for: pjob

Displaying 12 results from an estimated 12 matches for "pjob".

Did you mean: job
2014 Jun 04
1
samba4 and cups problem
...ile when I try to refresh the printers list from a Windws 2008 server. Jun 4 17:00:24 daisy2k11 smbd[22133]: [2014/06/04 17:00:24.700707, 0] ../source3/printing/printing.c:486(print_job_find) Jun 4 17:00:24 daisy2k11 smbd[22133]: PANIC: assert failed at ../source3/printing/printing.c(486): pjob->jobid == jobid Jun 4 17:00:24 daisy2k11 smbd[22133]: [2014/06/04 17:00:24.700896, 0] ../source3/lib/util.c:785(smb_panic_s3) Jun 4 17:00:24 daisy2k11 smbd[22133]: PANIC (pid 22133): assert failed: pjob->jobid == jobid Jun 4 17:00:24 daisy2k11 smbd[22133]: [2014/06/04 17:00:24.702305,...
2003 Jan 16
1
RE: How do I get the @#$$% job name to show instead of smbprn.yad a.yada?
> -----Original Message----- > From: Joel Hammer [mailto:Joel@HammersHome.com] > Sent: Wednesday, January 15, 2003 6:57 PM > To: Van Sickler, Jim; samba@lists.samba.org > Subject: Re: [Samba] How do I get the @#$$% job name to show > instead of > smbprn.yada.ya da? > > > If the file name is right in /tmp/J, then it looks like samba > is working ok. > > I
2002 Sep 03
1
Spool files not deleted when "printing = cups"
...i May 3 02:03:31 2002 --- source/printing/print_cups.c Tue Sep 3 11:59:56 2002 *************** *** 662,669 **** --- 662,671 ---- DEBUG(0,("Unable to print file to `%s' - %s\n", PRINTERNAME(snum), ippErrorString(cupsLastError()))); httpClose(http); + if (unlink (pjob->filename) != 0) + DEBUG(0,("Unable to unlink CUPS spool file %s\n", pjob->filename)); return (ret); }
2023 Aug 23
1
[PATCH drm-misc-next v2] drm/nouveau: uapi: don't pass NO_PREFETCH flag implicitly
...u_exec_push *p = &exec_job->push.s[i]; + bool no_prefetch = p->flags & DRM_NOUVEAU_EXEC_PUSH_NO_PREFETCH; + + nv50_dma_push(chan, p->va, p->va_len, no_prefetch); } ret = nouveau_fence_emit(fence, chan); @@ -223,7 +225,18 @@ nouveau_exec_job_init(struct nouveau_exec_job **pjob, { struct nouveau_exec_job *job; struct nouveau_job_args args = {}; - int ret; + int i, ret; + + for (i = 0; i < __args->push.count; i++) { + struct drm_nouveau_exec_push *p = &__args->push.s[i]; + + if (unlikely(p->va_len > NV50_DMA_PUSH_MAX_LENGTH)) { + NV_PRINTK(err,...
2023 Aug 23
1
[PATCH drm-misc-next] drm/nouveau: uapi: don't pass NO_PREFETCH flag implicitly
...refetch = !(p->flags & > DRM_NOUVEAU_EXEC_PUSH_NO_PREFETCH); > + > + nv50_dma_push(chan, p->va, p->va_len, prefetch); > } > > ret = nouveau_fence_emit(fence, chan); > @@ -223,7 +225,14 @@ nouveau_exec_job_init(struct nouveau_exec_job **pjob, > { > struct nouveau_exec_job *job; > struct nouveau_job_args args = {}; > - int ret; > + int i, ret; > + > + for (i = 0; i < __args->push.count; i++) { > + struct drm_nouveau_exec_push *p = &__args->push.s[i]; &...
2023 Aug 22
2
[PATCH drm-misc-next] drm/nouveau: uapi: don't pass NO_PREFETCH flag implicitly
...veau_exec_push *p = &exec_job->push.s[i]; + bool prefetch = !(p->flags & DRM_NOUVEAU_EXEC_PUSH_NO_PREFETCH); + + nv50_dma_push(chan, p->va, p->va_len, prefetch); } ret = nouveau_fence_emit(fence, chan); @@ -223,7 +225,14 @@ nouveau_exec_job_init(struct nouveau_exec_job **pjob, { struct nouveau_exec_job *job; struct nouveau_job_args args = {}; - int ret; + int i, ret; + + for (i = 0; i < __args->push.count; i++) { + struct drm_nouveau_exec_push *p = &__args->push.s[i]; + + if (p->va_len > NV50_DMA_PUSH_MAX_LENGTH) + return -EINVAL; + } job...
2016 Sep 02
2
Samba-CUPS interface
Hi, One of our Samba server (4.4.5) is a print server with CUPS backend . In addition we are using a print management product that is itself a backend to cups. Everything works well, except that the document names that are transmitted in the chain is of the form : "smbprn.00000648 MyDocument.pdf" . I guess that the prefix smbprn.00000648 is the samba job ID that is concatenated to the
2016 Sep 05
1
Samba-CUPS interface
...string, we use the job-id to track the job. > > So my untested suggestion is that we/you could remove it from this in > print_cups.c: > > new_jobname = talloc_asprintf(frame, > "%s%.8u %s", PRINT_SPOOL_PREFIX, > pjob->jobid, jobname); > if (new_jobname == NULL) { > goto out; > } > > Andrew Bartlett > Hi Andrew, You are right, I have thought also about this solution of modifying Samba source code. BUT , I wonder : - if there could be any side effect on Samba...
2016 Sep 04
0
Samba-CUPS interface
...tion for that, but I also don't see any indication that we reverse parse that string, we use the job-id to track the job.  So my untested suggestion is that we/you could remove it from this in print_cups.c: new_jobname = talloc_asprintf(frame, "%s%.8u %s", PRINT_SPOOL_PREFIX, pjob->jobid, jobname); if (new_jobname == NULL) { goto out; } Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
2002 Sep 18
1
unlink data file in cups_job_submit
...e data file ourselves. Does this seem right? --- print_cups.c~ Thu May 2 18:03:31 2002 +++ print_cups.c Wed Sep 18 13:17:08 2002 @@ -663,6 +663,9 @@ ippErrorString(cupsLastError()))); httpClose(http); + if (ret == 0) + unlink(pjob->filename); + /* else print_job_end will do it for us */ return (ret); -- Paul
2003 Dec 01
0
No subject
...on 1.71.2.40 diff -u -r1.71.2.40 printing.c --- printing/printing.c 28 Jun 2001 19:24:03 -0000 1.71.2.40 +++ printing/printing.c 16 Jul 2001 23:31:05 -0000 @@ -916,8 +916,8 @@ tdb_store_int(tdb, "INFO/nextjob", jobid); /* we have a job entry - now create the spool file */ - slprintf(pjob.filename, sizeof(pjob.filename)-1, "%s/%sXXXXXX", - path, PRINT_SPOOL_PREFIX); + slprintf(pjob.filename, sizeof(pjob.filename)-1, "%s/%s%.6d.XXXXXX", + path, PRINT_SPOOL_PREFIX, jobid); pjob.fd = smb_mkstemp(pjob.filename); if (pjob.fd == -1) { -- ----------------...
2003 Dec 01
0
No subject
...de y searching for path/smbprn.jobid I'm using this workaround now: --- printing.old Fri Jul 6 04:01:48 2001 +++ printing.c Mon Jul 16 22:54:00 2001 @@ -916,9 +916,25 @@ tdb_store_int(tdb, "INFO/nextjob", jobid); /* we have a job entry - now create the spool file */ - slprintf(pjob.filename, sizeof(pjob.filename)-1, "%s/%sXXXXXX", - path, PRINT_SPOOL_PREFIX); - pjob.fd = smb_mkstemp(pjob.filename); + + /* !! try jobid first !! + * samba uses $PRINT_SPOOL_PREFIX$jobid names + * to detect samba spool jobs + * + * this works for me or .. + * TODO: lphost:lpqueu...