From: Alexandre P. N. <al...@om...> - 2007-04-19 22:11:06
|
Steve Sakoman wrote: > > I need to try the above with Mac OS and Linux, but the approach > seems to have promise. > > Hmmm . . . the behavior is different with Linux and Mac OS :-( > > Neither notices the "eject" of the media with the "clear_backing_file" > option. In fact, the file storage gadget actually allows changes > after the eject on both OSes! > > I noticed that if I do a "cat > /sys/devices/platform/pxa2xx-udc/gadget/gadget-lun0/file" after the > "clear_backing_file" I still get /root/data/backing_file. I would > have expected a null result. This probably explains why Mac OS & > Linux are able to still access the backing store! > > Any idea what might be going on here? Should I be doing something > different for the "clear_backing_store". > > Steve That's sad... Does modprobe -r g_file_storage works at that point? - Alexandre |