LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Where does CUPS spool data inside (https://www.linuxquestions.org/questions/linux-newbie-8/where-does-cups-spool-data-inside-4175561497/)

akhilbaai 12-15-2015 07:10 AM

Where does CUPS spool data inside
 
Hi,

I'm a bit curious about the internal data handling (spooling) of CUPS.
I've gone through the cupsd.c code and found pipes being implemented. Is spooling happening inside pipes or is it using a normal character buffer? What would be the maximum size of spooled data it can handle ?

jpollard 12-15-2015 07:43 AM

Quote:

Originally Posted by akhilbaai (Post 5464507)
Hi,

I'm a bit curious about the internal data handling (spooling) of CUPS.
I've gone through the cupsd.c code and found pipes being implemented. Is spooling happening inside pipes or is it using a normal character buffer? What would be the maximum size of spooled data it can handle ?

Spooled data is in /var/spool/cups... but it can depend on what distribution is being used as I believe it is a configuration option.

The maximum size depends on the filesystem/partition size and system configuration. By default /var is part of root... thus it would be limited to the size of root, but it is up to the administrator, some like having /var on a separate partition/filesystem, others may chose to make only /var/spool separate, and other separate the mail handling from any other functions.

Pipes are used for interpreting/formatting the data... and the final output goes to a physical printer (or other similar device). Pipes can't be used for spooling (far too small, and only good for passing data from one process to another).

rtmistler 12-15-2015 07:43 AM

Welcome to the forums.

I see at least two different questions entirely repeated on two different forums. Please do not post duplicate threads on multiple forums. This causes confusion, you may end up getting answers or follow-up questions on both threads and this will cause confusion. This question and another question related to person's opinions as to whether or not you should use CUPS for an embedded system. Note also that there is an "Embedded and Single Board Computer" forum which likely would've been the correct place for your other question.

Suggestions are to mark duplicate threads, perhaps in the Enterprise forum, as Solved, and put in cross links pointing to the other threads you've created in the Newbie forum.

The Site FAQ provides some guides to how to best use the forums.

akhilbaai 12-17-2015 06:21 AM

Regret my ignorance,
Thanks for your help & Support


All times are GMT -5. The time now is 09:47 PM.