> The storage gadget takes a backing file and exposes it to a USB host as > a disk. Can I also mount that as a filesystem on the system running the > gadget driver? I'm guessing not -- that sounds like two things mounting > the same device and is probably a Really Bad Idea.
I imagine it'd work for conventional filesystems if (and only if) both ends mount as readonly. For writeable mounts I'd agree with your intuition there. As you correctly stated, if it looks like a block device to both hosts, it's beneath their filesystem layers. When the filesystems assume they have exclusive access bad things will happen. One reader, one writer will confuse the reader. Two writers will trash most FSs. > But please do tell me if I'm wrong about this, because it's something > I'd *like* to do. You could try using some sort of cluster-aware filesystem that's designed for multiple shared mounts (e.g. GFS, OCFSv2). That'd allow multiple writeable mounts without anything exploding. Cheers, Mark ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
