I believe dossrv (which implements the fat filesystem) is synchronous, so you shouldn't have to do anything special before removing the stick. What are the errors you get the next time you try to mount the stick?
> you have to restart usbd. usbd doesn't handle device ejection as > far as i can tell. I'm pretty sure that it's more nuanced than that. I've been able to eject and re-insert usb devices on uhci interfaces. I think the problems with usbd not noticing device additions and removals is limited to ohci interfaces, and I'm not sure why yet.
--- Begin Message ---> > % unmount /n/usb > % unmount /n/disk > > But have no idea if that's the right way to go about it. Additionally > if I eject it in this manner the next time I try to mount it using the > first two commands I get a bunch of usb errors. you have to restart usbd. usbd doesn't handle device ejection as far as i can tell. > Also, why is the disk only available from the rc window that I used to > mount it? In any other rc window I can't access the /n/usb mountpoint. > I realize I'm probably missing something fundamental about plan 9 > (newbie here). this is because rio puts each window in a sepeate namespace. there are two ways around this. first, start this before you start rio. (alternatively use the plumber to give all new windows access. plumb a string like Local 'cmd for everyone to see' ) alternatively, you can use /srv to post the fd. - erik
--- End Message ---
