[Printing-architecture] printers.conf frequently gets truncated to zero length after unclean shutdowns

Michael Sweet msweet at apple.com
Fri Jul 26 21:36:12 UTC 2013


All,

Here is the proposed change that adds a "SyncOnClose" directive to the cups-files.conf file:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rdar14523043.patch
Type: application/octet-stream
Size: 4639 bytes
Desc: not available
URL: <http://lists.linuxfoundation.org/pipermail/printing-architecture/attachments/20130726/5c099436/attachment.obj>
-------------- next part --------------


As I mentioned before the default is off (SyncOnClose No), and I included a big disclaimer on its use in the HTML documentation.

Let me know if you have any feedback - this will be included in CUPS 1.6.4 and 1.7.0.


On Jul 23, 2013, at 3:01 PM, Michael Sweet <msweet at apple.com> wrote:

> I can make sure that the changes apply cleanly to 1.6.x and are included in the final 1.6.x release (1.6.4).  Beyond that, yes, you'll need to coordinate with your distro of choice or edit and compile yourself.
> 
> 
> On 2013-07-23, at 2:39 PM, Steve Bergman <sbergman27 at gmail.com> wrote:
> 
>> On 07/23/2013 01:16 PM, Michael Sweet wrote:
>>> In this case the unrealistic expectation is that if you pull the plug on a running system that you won't lose any data.  Systems that offer that level of assurance are designed accordingly and generally include some form of backup power that will allow pending writes to complete.
>> 
>> That flies in the face of the 12 years of experience I have with the same workloads running under ext3. And running under ext4/delalloc or xfs, cups should be able to do even better for both performance and reliability if it does things right.
>> 
>> But that's all just spilled milk over the dam now. Most all current Unix/Linux filesystems now require fsync in order to provide sane integrity guarantees. That's just a fact of life that we've all got to live with. If offering a fix in the next major CUPS release is the best you're willing to do, then it is, at least, better than nothing at all. Thank you, at least, for that much.
>> 
>> This moves the focus to convincing the CUPS package maintainers of existing distros to patch their pre-1.7 versions with the necessary functionality. Which is kind of where I started. So back to the RH Bugzilla thread...
>> 
>> -Steve
> 
> _________________________________________________________
> Michael Sweet, Senior Printing System Engineer, PWG Chair
> 

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair



More information about the Printing-architecture mailing list