All of lore.kernel.org
 help / color / mirror / Atom feed
* [Printing-architecture] printers.conf frequently gets truncated to zero length after unclean shutdowns
@ 2013-07-22 17:28 Jiri Popelka
  2013-07-22 17:46 ` Till Kamppeter
       [not found] ` <51ED6CC4.1040501@redhat.com>
  0 siblings, 2 replies; 18+ messages in thread
From: Jiri Popelka @ 2013-07-22 17:28 UTC (permalink / raw)
  To: Michael Sweet; +Cc: printing-architecture, sandeen, sbergman27

Hello,

When cupsd lives on a filesystem with delayed allocation, like ext4 and
it experience an unclean shutdown under heavy load, its printers.conf 
very often ends up being truncated to zero.

Even original report (https://bugzilla.redhat.com/show_bug.cgi?id=984883)
has been against cups-1.4.2 I've seen no reason to think this has been 
fixed in recent versions.
I see cupsd since 1.5 (due to STR #3715) has been more carefully 
creating and removing conf files,
but that doesn't seem to be sufficient.
Especially updating of printers.conf probably needs some sort of 
synchronization data to disk.

I have a patch (in comment #11), which makes cupsd read backup 
filename.O file if filename is truncated to zero, but that's only a 
work-around
and I'm afraid it won't work if the file gets updated couple times 
between last sync and the unexpected shutdown.

I've promised interested parties to ask you publicly
and since bug tracker @ cups.org is still down ... here I am ;-)

With regards,
Jiri

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

end of thread, other threads:[~2013-07-26 22:10 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.