Hi, I am using the g_file_storage and loop gadgets to implement an ActiveSync-like capability between an XP desktop (host) and a 2.6.18 client running on a gumstix board. I followed the setup instructions in http://www.linux-usb.org/gadget/file_storage.html: I created a backing storage file, partitioned it, created an msdos file system on it via mkdosfs and populated with several directories and files, performed all necessary loop setup steps, and mounted the msdos file system per instructions 'mount -t vfat /dev/loop0 /mnt/loop.'
It _almost_ works as expected. When I establish a USB connection between my XP desktop and the linux board (gumstix), the device automatically shows up on the desktop as a removable storage device and I have access to all the directories and files residing on /mnt/loop. I can add, remove, and edit any of the files. This is all good. The problem is that the changes I make to the files on the desktop are not immediately reflected in /mnt/loop on the gumstix. If I 'cd' into /mnt/loop on the gumstix I see things only as they were orginally; there are no file additions, deletions, or edits. I can monitor the backing storage (/root/data/backing_file) using the 'stat(2)' routine and confirm that it is being updated as I make changes on the XP desktop, but these changes are not showing up in /mnt/loop. My gumstix-resident application needs immediate access to changes. The changes are there and they are persistent -- I just can't see them. To actually see the changes in /mnt/loop I must reboot the gumstix, and repeat the various 'modprobe', 'losetup', and 'mount' operations. First, am I correct in expecting to see changes made on the host side (the XP desktop) immediately reflected in /mnt/loop on the client/gadget side? If so, how can this be achieved? I am probably leaving out some crucial steps. Any advice would be appreciated. Regards, Todd ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users