Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142887 - devices.tar.bz2 can become corrupt on power failure
Summary: devices.tar.bz2 can become corrupt on power failure
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: udev-meta
  Show dependency tree
 
Reported: 2006-08-05 08:13 UTC by Carlo von Loesch
Modified: 2007-01-27 11:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
udev-devicetarball_backup.patch (udev-devicetarball_backup.patch,1.19 KB, patch)
2006-09-12 04:35 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlo von Loesch 2006-08-05 08:13:45 UTC
When shutting down, the operation of mv -f /tmp/XXX to /lib/udev-state/devices.tar.bz2 appears to be an atomic operation. Unfortunately when the power is gone just when the file was deleted but not yet rewritten, the whole system is corrupted in a way quite hard to find out.

Would be better if the old devices.tar.bz2 was renamed instead, so when at
booting time devices.tar.bz2 fails to unfold, you can use the backup.
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-08-30 21:22:27 UTC
Probably.  Care to make a patch to the scripts to do this?
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2006-09-12 04:35:58 UTC
Created attachment 96781 [details, diff]
udev-devicetarball_backup.patch

Hi,

would something like this be ok?

Cheers
Poly-C
Comment 3 SpanKY gentoo-dev 2006-09-13 20:57:46 UTC
i dont see how those changes solve anything
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-01-27 11:08:59 UTC
(In reply to comment #3)
> i dont see how those changes solve anything

Closing CANTFIX per maintainer request; the above patch doesn't fix anything as already noted in comment #3.

Use /lib/udev/devices/ instead of the tarball thing if you really need devices that udev can't create on its own.