Issue with getting -ro to work

6 views
Skip to first unread message

Brian Collins

unread,
Oct 11, 2025, 6:36:09 PMOct 11
to mTCP
Hi,
  I've been using netdrive for about a year now, with a single PC. Just now, I tried to connect two PCs. PC A in read-write, and PC B in read-only mode. The only difference in the connect line for PC B is the '-ro' at the end. The command looks like:

netdrive connect <myserver>:2002 <myimage>.dsk P: -ro

and yet, when I run it, it attempts to open read-write and fails, because PC A has already opened it read-write. I searched the github issues and this forum, and didn't see anything, but of course I may have missed something. The error is:

Error opening virtual hard drive: <myimage>.dsk,
can not open read-write file <myimage>.dsk again

I'm thinking this ought be straightforward, what am I doing wrong here?

Brian

Michael Brutman

unread,
Oct 11, 2025, 6:40:07 PMOct 11
to Brian Collins, mTCP
Hi Brian,

The -ro option is local to the device driver, and the server has no knowledge of it.  So as far as the server is concerned, you are trying to open a read-write image twice.

Even if it was passed to the server, it would be unsafe to do ..  you can't have one PC machine changes while the other PC might be caching those changes.  There is no way to force the cache to be flushed on the second, read-only machine without unmounting and remounting the drive.


Mike

--
You received this message because you are subscribed to the Google Groups "mTCP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mtcp+uns...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mtcp/c7ef899a-173e-4c4a-b914-fc636114e639n%40googlegroups.com.

Brian Collins

unread,
Oct 11, 2025, 6:45:28 PMOct 11
to Michael Brutman, mTCP
Gotcha. I was hoping to be able to compile on one machine, and run the
exe on another.

Oh well, I have connect/disconnect scripts, I'll just use those each
time. Thanks,

Brian
Reply all
Reply to author
Forward
0 new messages