All of lore.kernel.org
 help / color / mirror / Atom feed
From: Till Kamppeter <till.kamppeter@gmail.com>
To: Michael Sweet <msweet@apple.com>
Cc: printing-architecture@lists.linux-foundation.org,
	Steve Bergman <sbergman27@gmail.com>,
	Eric Sandeen <sandeen@redhat.com>
Subject: Re: [Printing-architecture] printers.conf frequently gets truncated to zero length after unclean shutdowns
Date: Tue, 23 Jul 2013 22:51:36 +0200	[thread overview]
Message-ID: <51EEECD8.4030002@gmail.com> (raw)
In-Reply-To: <000AC9EF-2754-4A7D-805B-4832B50EB57A@apple.com>

As a measure of automatic recovery one could perhaps let the startup
script of CUPS check whether printers.conf is zero length and if so,
copy printers.conf.O to printers.conf. And if printers.conf.N exists and
is of non-zero length one could copy printers.conf.N to printers.conf
and only after that start the scheduler.

   Till

On 07/23/2013 09:01 PM, Michael Sweet 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@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
> 
> _______________________________________________
> Printing-architecture mailing list
> Printing-architecture@lists.linux-foundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture
> 


  reply	other threads:[~2013-07-23 20:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-22 17:28 [Printing-architecture] printers.conf frequently gets truncated to zero length after unclean shutdowns Jiri Popelka
2013-07-22 17:46 ` Till Kamppeter
     [not found]   ` <51EDADB4.5000807@redhat.com>
2013-07-23  3:03     ` Michael Sweet
     [not found] ` <51ED6CC4.1040501@redhat.com>
2013-07-23  3:00   ` Michael Sweet
2013-07-23  9:08     ` Tim Waugh
2013-07-23 12:08       ` Michael Sweet
     [not found]         ` <51EE90D7.9070607@gmail.com>
2013-07-23 16:40           ` Michael Sweet
     [not found]             ` <51EEBF83.2090006@gmail.com>
2013-07-23 18:16               ` Michael Sweet
     [not found]                 ` <51EECB0D.5050208@redhat.com>
2013-07-23 18:59                   ` Michael Sweet
     [not found]                 ` <51EECDF8.9070209@gmail.com>
2013-07-23 19:01                   ` Michael Sweet
2013-07-23 20:51                     ` Till Kamppeter [this message]
2013-07-23 23:04                       ` Michael R Sweet
2013-07-24 10:11                       ` Jiri Popelka
2013-07-24 11:39                         ` Michael Sweet
2013-07-26 21:36                     ` Michael Sweet
     [not found]                       ` <51F2F05E.3000207@redhat.com>
2013-07-26 22:10                         ` Michael Sweet
     [not found]     ` <51EE1183.5080704@redhat.com>
2013-07-23 12:05       ` Michael Sweet
     [not found]         ` <51EEA872.4070009@redhat.com>
2013-07-23 17:51           ` Michael Sweet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51EEECD8.4030002@gmail.com \
    --to=till.kamppeter@gmail.com \
    --cc=msweet@apple.com \
    --cc=printing-architecture@lists.linux-foundation.org \
    --cc=sandeen@redhat.com \
    --cc=sbergman27@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.