On Tue, 14 Feb 2006, Justin Fu wrote:

> Hi,
> 
> I know this cannot be done at this moment, but I'm interested to hear
> anyone's (potential) solution to this problem:
> 
> (http://www.linux-usb.org/gadget/file_storage.html )
>  AN IMPORTANT WARNING! While FSG is running and the gadget is
> connected to a USB host, that USB host will use the backing storage as
> a private disk drive.  It will not expect to see any changes in the
> backing storage other than the ones it makes. Extraneous changes are
> liable to corrupt the filesystem and may even crash the host.  Only
> one system (normally, the USB host) may write to the backing storage,
> and if one system is writing that data, no other should be reading it.
>  The only safe way to share the backing storage between the host and
> the gadget's operating system at the same time is to make it read-only
> on both sides.
> 
> I currently have a linux system using the NET2280 PCI USB Device
> controller and the File-Backed Storage Linux-USB gadget module.  This
> allows me to access the linux machine as a mass storage device.
> 
> Is there any way so the host and the client can access the shared data
> on the virtual image file at the same time? Or is there any way to
> work around this?
> 
> Even if this involves some software development, please let me know :)
> 
> Any help would be REALLY appreciated.

There isn't any good way to do it using g_file_storage.

On the other hand, you could use g_ether to make the Linux machine appear 
to be a network device.  Then you could share filesystems using NFS or 
Samba.  (Or you could simply set up an Ethernet connection instead of a 
USB connection.)

Alan Stern



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to