I'm testing an iPhone application and need to test its behaviour when storage space is low or the disk is full. This is fiddly to test on a device and ideally I'd like to be able to test with the simulator (an emulator) which runs on my Mac.
The simulator uses a directory on the local filesystem for storage, therefore I would think it possible to create a virtual disk somehow, and then symlink the storage directory to this disk.
How can I create such a virtual disk?