RAM disks unmount at sleep

Originator:boredzo
Number:rdar://8426423 Date Originated:2010-09-13T22:16-0700
Status:Open Resolved:
Product:Mac OS X Product Version:10.6.4/10F569
Classification:Other Bug Reproducible:Always
 
Summary:
Putting the computer to sleep destroys any RAM disks.

Steps to Reproduce:
1. Create a RAM disk using the disk images system, either by running hdiutil directly, or by using my “Make RAM Disk” utility: http://boredzo.org/make-ram-disk
2. Put the computer to sleep.
3. Wake it up.

Expected Results:
The RAM disk remains in place.

Actual Results:
The RAM disk disappears.

Regression:
Maybe, but not a recent one—it's done this for a long time.

Mac OS's RAM disk didn't have this problem, but it wasn't powered by the disk images system.

Notes:
I have also occasionally seen this bug with other disk images (those backed by files) and when plugging or unplugging network cables (suggesting that this is caused not by sleep specifically but by network-interface changes), but not consistently. The most consistent way to reproduce this is with a RAM disk and by putting the computer to sleep.

I can reproduce this consistently on my desktop Mac, but not on my laptop. I'm attaching the System Profile for the desktop Mac.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!