Re: Self modifying ms device

Matthew Dharm <[email protected]> Tue, 4 Dec 2007 07:48:21 -0800
Newsgroups gmane.linux.usb.user
Organization One Eyed Alien Networks
Message-ID <[email protected]>
--===============1170499720==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="Pjk796cY0SfIo9Z2"
Content-Disposition: inline


--Pjk796cY0SfIo9Z2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

You might be able to make this work if you make your device indicate that
it has removeable media.  Then, whenever you post an update, you will need
to force a media-change indication.

That will probably work for Windows, and for Linux will only work for
devices which are accessed without mounting (i.e. via mtools or somesuch).
With a mounted filesystem, you're pretty much stuck.

Matt

On Mon, Dec 03, 2007 at 03:38:09PM -0800, Brad Schick wrote:
> Looking for some input on the following problem that I realized isn't
> really usb specific:
>=20
> My goal is to display an html page that resides on a usb mass-storage
> device and changes over time. The mass-storage device will be
> read-only from the host OS, but needs to self modify its own data. The
> end-user will view an html page that periodically refreshes itself and
> hopefully changes over time. My concern is how caching in the host OS
> may hide these changes.
>=20
> The usb device's MCU is very small and doesn't have space for a FAT
> driver. To modify its data I was planning to just poke changes
> directly to hard-coded offsets (the files can be pre-allocated since
> data is not created, just modified). Perhaps I could also poke the FAT
> file date, but would that be enough to cause Linux to reload the file?
> Or will the kernel assume all changes to local file-systems must pass
> through the kernel and miss even that?
>=20
> Maybe there is a better approach? One big limitation is that nothing
> can be installed on the host. And I'll have to figure out Windows
> eventually as well.
>=20
> Thanks,
> -Brad
>=20
> -------------------------------------------------------------------------
> SF.Net email is sponsored by: The Future of Linux Business White Paper
> from Novell.  From the desktop to the data center, Linux is going
> mainstream.  Let it simplify your IT future.
> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> _______________________________________________
> [email protected]
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-users

--=20
Matthew Dharm                              Home: mdharm-usb@one-eyed-alien.=
net=20
Maintainer, Linux USB Mass Storage Driver

Oh great modem, why hast thou forsaken me?
					-- Dust Puppy
User Friendly, 3/2/1998

--Pjk796cY0SfIo9Z2
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHVXbFHL9iwnUZqnkRAlLaAJ43mcG49RtaKsJbqvb7Z7FW0/p5oQCdEf6V
+vritvwDRz5M9YD7aPymEN4=
=fBIO
-----END PGP SIGNATURE-----

--Pjk796cY0SfIo9Z2--


--===============1170499720==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
--===============1170499720==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

--===============1170499720==--