9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] hot plugging
@ 2005-09-09 18:48 Fco. J. Ballesteros
  2005-09-09 18:51 ` Russ Cox
  0 siblings, 1 reply; 3+ messages in thread
From: Fco. J. Ballesteros @ 2005-09-09 18:48 UTC (permalink / raw)
  To: 9fans; +Cc: jmk, quanstro

I think that there are several problems here.
One is the ability to switch from one device to another.
Another is what to do with the "state" of the device going out.

In Plan B, after several attempts that did mess things up,
I found that in general, what to do with the "state" depends
on the application. In general, raising an error for an ongoing
request is what we do. The application knows if it's ok to retry or
to abort.

If we talk about drivers, what to do may depend on the driver.
For example, for non reliable networks it may be ok just to switch the
ether card (there are other tcp/ip issues here though). For disks, 
it depends on the application, once again.

However, regarding the first problem, the volume mechanism is
a satisfactory answer; For example, say you:

mount -bV #ether /net

This means: take any resource named "#ether", and mount it (-b)
at /net. If one ethernet is not available, the mount mechanism
picks up another.

Thus, I'd say this is a clean way to fix up the first problem.

Right now, I'm in the process of implementing a volfs that works
both for Plan 9 and Plan B, in an effort to reconcile both systems.

If the mechanism were incorporated into the kernel instead, I don't
see why not could it mount in-kernel volumes, to make the example above
work.

Just an idea. Comments?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] hot plugging
  2005-09-09 18:48 [9fans] hot plugging Fco. J. Ballesteros
@ 2005-09-09 18:51 ` Russ Cox
  2005-09-09 19:02   ` Francisco Ballesteros
  0 siblings, 1 reply; 3+ messages in thread
From: Russ Cox @ 2005-09-09 18:51 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I think that these are two different issues.  No matter what
the right way is to present the ever-changing hardware to
the user, there is plenty of restructuring to do just to track
the ever changing hardware at the hardware level itself.

Russ


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] hot plugging
  2005-09-09 18:51 ` Russ Cox
@ 2005-09-09 19:02   ` Francisco Ballesteros
  0 siblings, 0 replies; 3+ messages in thread
From: Francisco Ballesteros @ 2005-09-09 19:02 UTC (permalink / raw)
  To: Russ Cox, Fans of the OS Plan 9 from Bell Labs

Of course, the drivers (and its framework) must admit
you to plug in/out the hw without crashing the system :-)
And you have to handle dependencies between them.

On 9/9/05, Russ Cox <rsc@swtch.com> wrote:
> I think that these are two different issues.  No matter what
> the right way is to present the ever-changing hardware to
> the user, there is plenty of restructuring to do just to track
> the ever changing hardware at the hardware level itself.
> 
> Russ
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-09-09 19:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-09 18:48 [9fans] hot plugging Fco. J. Ballesteros
2005-09-09 18:51 ` Russ Cox
2005-09-09 19:02   ` Francisco Ballesteros

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).