On Fri, 10 Jun 2005, David Brownell wrote:

> I've been meaning to run the experiment of having the backing
> store be removable media, using a device like /dev/mmcblk0 (for
> MMC/SD) or /dev/hda (for CompactFlash, on non-PC boxes).
> 
> If anyone's done that already, it'd be interesting to get a
> status report.  Does it behave well?  And how about in the
> face of friendly fire, like ejecting the card?

I've never tried it.  I imagine that it would work well until the card was 
ejected, at which point the host would receive nothing but I/O failures.  
Since g_file_storage uses essentially the userspace API to VFS for its 
operations, it ought to experience the same results as a user who ejects 
a card while trying to use it.

> That's relevant on this particular thread because in most
> cases those media come pre-partitioned, so fdisk steps will
> not be required.
> 
> - Dave
> 
> p.s. Alan, nice writeup.  Does something like this need to
>      go into linux/Documentation/usb maybe?

Thank you.  I thought it would be better to place this on the Gadget web 
page, which already has rudimentary instructions for setting up 
g_file_storage.  Who's in charge of that page?

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to