>
> I am just supposing that a driver handling a clone open MIGHT decide to
> select a minor device that happens to be open already. LiS handles this
> case, but does not call the open routine for the {maj,min} stream so
> designated (it was called originally when it was first opened).
>
> A glance at Solaris source code suggests that they will just create a
> second stream head to the {maj,min}, which will probably lead to trouble later.
>
> So maybe LiS is unique in considering this to be a sensible case.
>
Perhaps. However if you are tracking the open/close state of cloning minor devices
you might consider failing early at this point (ENXIO?) so the driver writer can find
their error before this OS/streams/filesystem gets so messed up it panics several
hours or days later.
Ragnar
_______________________________________________
Linux-streams mailing list
[EMAIL PROTECTED]
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams