9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Ideas for an printer filesystem
@ 2007-09-06 23:56 Enrico Weigelt
  2007-09-07  8:44 ` Francisco J Ballesteros
  2007-12-01  4:42 ` ron minnich
  0 siblings, 2 replies; 18+ messages in thread
From: Enrico Weigelt @ 2007-09-06 23:56 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


Hi folks,

some toughs about putting network transparent printer handling
to an synthetic filesystem.

I don't want to differenciate between printers and queues,
like most other printing management systems do. Instead I'll
introduce the concept of virtual printers, which may be
connected to one or more existing printers and define their
own options (ie. some virtual workgroup printer distriutes
load between several devices and adds an banner for each user).
Clients only see "their" printer, no matter if its virtual
or physical.


View to the printer repository:

* /printers/
    /drivers/<...>/       lists all available drivers
    /ports/<...>/         lists all available ports
    /all-printers/<...>/  lists all printers (including clones)

View to an single printer:

* /printer
    /config/<opt>          config options
    /jobs.id/<job-id>      contains the jobs, per ID (unique key)
    /jobs.order/<order-nr> the same jobs, but by order nr
    /status                the printer's status and allows to set it.
    /logfile               the printer's logfile
    /clone                 interface for cloing the printer
    /next-id               spits out an new (random) job-id

View to an single job:

* /myjob
    /id                unique key
    /priority
    /owner
    /logfile           the job's logfile
    /status            job's status, writable to alter status
      values: new, processing, printing, done, kill
    /size.total
    /size.done
    /pages.total
    /pages.done
    /colorspace        (ie. rgb,cmyk,pantone,mono,greyscale)
    /papersize
    /orientation
    /options/<opt>     extended options (ie. for folding, etc)
    /content.ps        whole content as postscript

Processes:

* Cloning a printer (to have multiple instances w/ separate options):
  choose some name and write it to ./clone

* Remove an virtual printer:
  write "disconnect" to its status, and the printer will disappear
  once it has nothing more to do

* Creating a new job:
  + fetch a new job-id
  + mkdir a new job queue entry (with fetched key)
  + all necessary structures will appear automatically
  + upload the postscript data to ./content.ps
  + do appropriate changes (ie. papersize, orientation, colorspace, ...)
  + write "new" to ./status

* Abort an job
  + look for the job's dir and write "abort" to ./status
  + the job will disappear once abort is completed

...



What do you think about this ?


cu
--
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2007-12-11 20:36 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-06 23:56 [9fans] Ideas for an printer filesystem Enrico Weigelt
2007-09-07  8:44 ` Francisco J Ballesteros
2007-09-07 10:08   ` erik quanstrom
2007-09-07 10:17     ` Francisco J Ballesteros
2007-09-07 10:54       ` erik quanstrom
2007-11-30  7:19         ` Aki Nyrhinen
2007-11-30  3:37       ` Enrico Weigelt
2007-11-30  9:42         ` Francisco J Ballesteros
2007-11-30 12:32           ` Enrico Weigelt
2007-11-30 13:06             ` Rodolfo =?unknown-8bit?Q?Garc=EDa?=
2007-11-30 13:38               ` Enrico Weigelt
2007-11-30 16:56                 ` Rodolfo =?unknown-8bit?Q?Garc=EDa?=
2007-11-30 16:46             ` Anant Narayanan
2007-11-30 22:40               ` Lucas James
2007-12-01  4:42 ` ron minnich
2007-12-01  4:54   ` Bruce Ellis
2007-12-11 13:30     ` roger peppe
2007-12-11 20:36       ` Bruce Ellis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).