Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90804 - /etc/asound.state gets corrupted on shutdown on laptop with disk with 8MB cache
Summary: /etc/asound.state gets corrupted on shutdown on laptop with disk with 8MB cache
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-28 17:51 UTC by Ladislav Tomes
Modified: 2005-12-18 06:25 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ladislav Tomes 2005-04-28 17:51:36 UTC
Randomly but frequently on regular shutdown of laptop using HD with 8MB cache, /etc/asound.state gets corrupted (truncated incomplete file). SAVE_ON_STOP="on" is set in /etc/init.d/alsasound, root is JFS fs, mounted  with "sync" option. I have reproduced error several times, allways after shutdown, never during normal operation. I did not noticed any other file corruption.

Slackware shutdown script used to wait (1 second or so) to allow laptop harddisks to flush cache and finish syncing before powering down machine.   

I wonder if Gentoo power down/reboot is too fast for some disks.

Reproducible: Sometimes
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2005-04-28 18:46:23 UTC
i doubt it ... gentoo init scripts run 'sync' many times before shutting down ... just read the tail end of halt.sh
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-18 06:25:08 UTC
Can't reproduce, as Mike said, the shutdown process calls sync to make sure that nothing gets lost.